TOP=../..

include $(TOP)/configure/CONFIG
#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE
#=============================

#==================================================
# Build an IOC support library

#=============================
# build an ioc application

PROD_IOC = LaserSoft
# LaserSoft.dbd will be created and installed
DBD += LaserSoft.dbd


# LaserSoft.dbd will be made up from these files:
LaserSoft_DBD += base.dbd

# streams:
#LaserSoft_DBD += aaiRecord.dbd
#LaserSoft_DBD += aaoRecord.dbd
LaserSoft_DBD += asyn.dbd
#LaserSoft_DBD += asynRecord.dbd
#LaserSoft_DBD += drvAsynIPPort.dbd
#LaserSoft_DBD += drvVxi11.dbd
#LaserSoft_DBD += drvAsynSerialPort.dbd
LaserSoft_DBD += stream.dbd

# Support for XPS Motors
LaserSoft_DBD += motorSupport.dbd
LaserSoft_DBD += devNewport.dbd

# LaserSteering 
LaserSoft_DBD += laserSteering.dbd

# Support for IMS
#LaserSoft_DBD += devImsMotor.dbd

# iocAdmin
LaserSoft_DBD += iocAdmin.dbd

# Autosave support (IOC save/restore)
LaserSoft_DBD += autosave.dbd

# caPutLog support (Send CA writes to message log)
#LaserSoft_DBD += caPutLog.dbd

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
LaserSoft_SRCS += LaserSoft_registerRecordDeviceDriver.cpp
LaserSoft_SRCS_DEFAULT += LaserSoftMain.cpp
LaserSoft_SRCS_vxWorks += -nil-

# Add locally compiled object code


# The following adds support from base/src/vxWorks
LaserSoft_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary

#add a definition for each support application used by this application

# Support for IMS
#LaserSoft_LIBS += Ims

# Motor Record Library
LaserSoft_LIBS += Newport
LaserSoft_LIBS += motor
LaserSoft_LIBS += laserSteering

# Adding PERL libraries from cram migration
USR_SYS_LIBS += pcre

# streams:
LaserSoft_LIBS += stream
LaserSoft_LIBS += asyn

# iocAdmin
#LaserSoft_LIBS += iocAdmin
LaserSoft_LIBS += devIocStats 

# autosave support (IOC save/restore)
LaserSoft_LIBS += autosave

# caPutLog support (IOC save/restore)
#LaserSoft_LIBS += caPutLog

# NOTE: To build SNL programs, SNCSEQ must be defined
# in the <top>/configure/RELEASE file
ifneq ($(SNCSEQ),)
    # This builds sncExample as a component of LaserSoft
    LaserSoft_SNCFLAGS += +r
    LaserSoft_DBD += sncLaserSoft.dbd
    LaserSoft_SRCS += sncLaserSoft.st
    LaserSoft_LIBS += seq pv

    # The following builds sncProgram as a standalone application
#     PROD_HOST += LaserSoft
#     sncProgram_SNCFLAGS += +m
#     sncProgram_SRCS += LaserSoft.st
#     sncProgram_LIBS += seq pv
#     sncProgram_LIBS += $(EPICS_BASE_HOST_LIBS)
endif

LaserSoft_LIBS += $(EPICS_BASE_IOC_LIBS) 

PROD_SYS_LIBS_Linux += pcre

#===========================

include $(TOP)/configure/RULES
#----------------------------------------
#  ADD RULES AFTER THIS LINE

