TOP=../..

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

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

PROD_IOC_Linux = umc
# umc.dbd will be created and installed
DBD += umc.dbd

# umc.dbd will be made up from these files:
umc_DBD += base.dbd

# Include dbd files from all support applications:
umc_DBD += asyn.dbd
umc_DBD += drvAsynIPPort.dbd
umc_DBD += motorSupport.dbd
umc_DBD += motorRecord.dbd
umc_DBD += motorSimSupport.dbd
umc_DBD += devSoftMotor.dbd
umc_DBD += devAerotech.dbd
umc_DBD += stream.dbd
umc_DBD += calcSupport.dbd
umc_DBD += autosave.dbd
umc_DBD += iocAdmin.dbd 

# Add all the support libraries needed by this IOC
umc_LIBS += asyn
umc_LIBS += motor
umc_LIBS += motorSimSupport
umc_LIBS += softMotor
umc_LIBS += Aerotech
umc_LIBS += stream
umc_LIBS += calc
umc_LIBS += devIocStats 
umc_LIBS += autosave

# umc_registerRecordDeviceDriver.cpp derives from umc.dbd
umc_SRCS += umc_registerRecordDeviceDriver.cpp

# Build the main IOC entry point on workstation OSs.
umc_SRCS_DEFAULT += umcMain.cpp
umc_SRCS_vxWorks += -nil-

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

# NOTE: To build SNL programs, SNCSEQ must be defined
# in the <top>/configure/RELEASE file

ifneq ($(SNCSEQ),)
        umc_SNCFLAGS += +r

        umc_DBD += setGap.dbd
        umc_SRCS += setGap.stt

        umc_DBD += savePos.dbd
        umc_SRCS += savePos.stt

        umc_DBD += calibrateEncoders.dbd
        umc_SRCS += calibrateEncoders.stt

        umc_LIBS += seq pv

endif


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

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

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

