TOP=../..

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

#=============================
# Build the IOC application
USR_SYS_LIBS += pcre
LIBRARY_IOC += deltaSupport
deltaSupport_LIBS += $(EPICS_BASE_IOC_LIBS)
PROD_IOC = phaseShifter


# phaseShifter.dbd will be created and installed
DBD += phaseShifter.dbd

# Include dbd files from all support applications:
#phaseShifter_DBD += xxx.dbd
# phaseShifter.dbd will be made up from these files:
phaseShifter_DBD += base.dbd
phaseShifter_DBD += asyn.dbd
phaseShifter_DBD += stream.dbd
phaseShifter_DBD += drvAsynIPPort.dbd
phaseShifter_DBD += autosave.dbd
phaseShifter_DBD += motorSupport.dbd
phaseShifter_DBD += motorRecord.dbd
phaseShifter_DBD += devSmartMotorAsynSupport.dbd
phaseShifter_DBD += devSoftMotor.dbd
phaseShifter_DBD += calcSupport.dbd
phaseShifter_DBD += iocAdmin.dbd
phaseShifter_DBD += autosaveSupport.dbd
phaseShifter_DBD += caPutLog.dbd
phaseShifter_DBD += devAerotech.dbd 
#phaseShifter_DBD += modbus.dbd



# Add all the support libraries needed by this IOC
#phaseShifter_LIBS += xxx
phaseShifter_LIBS += devIocStats
phaseShifter_LIBS += SmartMotorAsyn
phaseShifter_LIBS += softMotor
phaseShifter_LIBS += motor
phaseShifter_LIBS += autosave
phaseShifter_LIBS += asyn
phaseShifter_LIBS += calc
phaseShifter_LIBS += sscan 
phaseShifter_LIBS += caPutLog
phaseShifter_LIBS += stream
phaseShifter_LIBS += Aerotech
phaseShifter_LIBS += motor
#phaseShifter_LIBS += modbus
#phaseShifter_LIBS += pcre


# phaseShifter_registerRecordDeviceDriver.cpp derives from phaseShifter.dbd
phaseShifter_SRCS += phaseShifter_registerRecordDeviceDriver.cpp


# Build the main IOC entry point on workstation OSs.
phaseShifter_SRCS_DEFAULT += phaseShifterMain.cpp
phaseShifter_SRCS_vxWorks += -nil-



#ifneq ($(SNCSEQ),)
    # Build sncExample into phaseShifter
    sncExample_SNCFLAGS += +r
    phaseShifter_LIBS += seq pv
#endif

# Add support from base/src/vxWorks if needed
#phaseShifter_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary

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


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

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


