TOP=../..

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

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

PROD_IOC = LLRFSupport

DBD += LLRFSupport.dbd

# LLRFSupport.dbd will be made up from these files:
LLRFSupport_DBD += base.dbd

LLRFSupport_DBD += asSupport.dbd
LLRFSupport_DBD += iocAdmin.dbd
LLRFSupport_DBD += caPutLog.dbd
LLRFSupport_DBD += Bk9000_MBT.dbd
LLRFSupport_DBD += ModBusTCPClnt.dbd
LLRFSupport_DBD += analogSub.dbd

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
LLRFSupport_SRCS += LLRFSupport_registerRecordDeviceDriver.cpp
LLRFSupport_SRCS_DEFAULT += LLRFSupportMain.cpp
LLRFSupport_SRCS_vxWorks += -nil-


LLRFSupport_LIBS += autosave
LLRFSupport_LIBS += devIocStats
LLRFSupport_LIBS += caPutLog

# Bx9000_MBT must be before ModBusTCPClnt
LLRFSupport_LIBS += Bk9000_MBT
LLRFSupport_LIBS += ModBusTCPClnt


# Link QSRV (pvAccess Server) if available
ifdef EPICS_QSRV_MAJOR_VERSION
   LLRFSupport_LIBS += qsrv
   LLRFSupport_LIBS += $(EPICS_BASE_PVA_CORE_LIBS)
   LLRFSupport_DBD += PVAServerRegister.dbd
   LLRFSupport_DBD += qsrv.dbd
endif

LLRFSupport_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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

