TOP=../..

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

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

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

# DechirperMotion.dbd will be made up from these files:
DechirperMotion_DBD += base.dbd

# Include dbd files from all support applications:
DechirperMotion_DBD += asyn.dbd
DechirperMotion_DBD += drvAsynIPPort.dbd
DechirperMotion_DBD += iocAdmin.dbd
DechirperMotion_DBD += autosaveSupport.dbd
DechirperMotion_DBD += caPutLog.dbd
DechirperMotion_DBD += motorSupport.dbd
DechirperMotion_DBD += devAerotech.dbd
DechirperMotion_DBD += modbus.dbd 


## FOR TESTING PURPOSES ONLY
DechirperMotion_DBD += motorSimSupport.dbd
DechirperMotion_LIBS += motorSimSupport


# Add all the support libraries needed by this IOC
DechirperMotion_LIBS += devIocStats
DechirperMotion_LIBS += autosave
DechirperMotion_LIBS += caPutLog
DechirperMotion_LIBS += modbus
DechirperMotion_LIBS += Aerotech
DechirperMotion_LIBS += motor
DechirperMotion_LIBS += asyn


# DechirperMotion_registerRecordDeviceDriver.cpp derives from DechirperMotion.dbd
DechirperMotion_SRCS += DechirperMotion_registerRecordDeviceDriver.cpp

ifneq ($(SNCSEQ),)
  DechirperMotion_LIBS += seq pv
  DechirperMotion_DBD += moveMotors.dbd 
  DechirperMotion_SRCS += moveMotors.stt
endif


# Build the main IOC entry point on workstation OSs.
DechirperMotion_SRCS_DEFAULT += DechirperMotionMain.cpp
DechirperMotion_SRCS_vxWorks += -nil-

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

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

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

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

