TOP=../..

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

USR_SYS_LIBS += pcre

#=============================
# Build the IOC application

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

# SelfSeedingMotion.dbd will be made up from these files:
SelfSeedingMotion_DBD += base.dbd

# Include dbd files from all support applications:
SelfSeedingMotion_DBD += asyn.dbd
SelfSeedingMotion_DBD += stream.dbd
SelfSeedingMotion_DBD += drvAsynIPPort.dbd
SelfSeedingMotion_DBD += drvAsynSerialPort.dbd
SelfSeedingMotion_DBD += Bx9000_MBT.dbd
SelfSeedingMotion_DBD += ModBusTCPClnt.dbd
SelfSeedingMotion_DBD += iocAdmin.dbd
SelfSeedingMotion_DBD += autosaveSupport.dbd
SelfSeedingMotion_DBD += caPutLog.dbd
SelfSeedingMotion_DBD += motorSupport.dbd
SelfSeedingMotion_DBD += devSmarActMCSMotor.dbd
SelfSeedingMotion_DBD += devImsMotor.dbd
SelfSeedingMotion_DBD += devSmartMotorMotor.dbd
SelfSeedingMotion_DBD += devSmartMotorAsynSupport.dbd
SelfSeedingMotion_DBD += modbus.dbd

SelfSeedingMotion_DBD += epicsPing.dbd
SelfSeedingMotion_LIBS += epicsPing


# The following are compiled and added to the Support library
#SelfSeedingMotion_SRCS  += smarActMCSMotorDriver.cpp

# Add all the support libraries needed by this IOC
SelfSeedingMotion_LIBS += genSub
SelfSeedingMotion_LIBS += stream
SelfSeedingMotion_LIBS += seq pv
SelfSeedingMotion_LIBS += Bx9000_MBT
SelfSeedingMotion_LIBS += ModBusTCPClnt
SelfSeedingMotion_LIBS += devIocStats
SelfSeedingMotion_LIBS += autosave
SelfSeedingMotion_LIBS += caPutLog
SelfSeedingMotion_LIBS += Ims
SelfSeedingMotion_LIBS += smarActMCSMotor
SelfSeedingMotion_LIBS += SmartMotor
SelfSeedingMotion_LIBS += SmartMotorAsyn
SelfSeedingMotion_LIBS += modbus
SelfSeedingMotion_LIBS += $(EPICS_BASE_IOC_LIBS)
SelfSeedingMotion_LIBS += motor
SelfSeedingMotion_LIBS += asyn


SCRIPTS += $(EPICSPING)/bin/linux-x86/pingScript.sh
SCRIPTS += $(EPICSPING)/bin/linux-x86/waitDevice.sh


# SelfSeedingMotion_registerRecordDeviceDriver.cpp derives from SelfSeedingMotion.dbd
SelfSeedingMotion_SRCS += SelfSeedingMotion_registerRecordDeviceDriver.cpp

# Build the main IOC entry point on workstation OSs.
SelfSeedingMotion_SRCS_DEFAULT += SelfSeedingMotionMain.cpp
SelfSeedingMotion_SRCS_vxWorks += -nil-



ifneq ($(SNCSEQ),)
    SelfSeedingMotion_SNCFLAGS += +r
    SelfSeedingMotion_DBD += SXRSS_home_IMS.dbd
    SelfSeedingMotion_SRCS += SXRSS_home_IMS.stt
    SelfSeedingMotion_DBD += SXRSS_home_Animatics.dbd
    SelfSeedingMotion_SRCS += SXRSS_home_Animatics.stt
    SelfSeedingMotion_DBD += SXRSS_home_SmarAct.dbd
    SelfSeedingMotion_SRCS += SXRSS_home_SmarAct.stt
endif





# Finally link to the EPICS Base libraries
SelfSeedingMotion_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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