TOP=../..

TOP=../..

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

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

PROD_IOC = LEMserverSoft

# LEMserverSoft.dbd will be created and installed
DBD = LEMserverSoft.dbd
LEMserverSoft_DBD += base.dbd
LEMserverSoft_DBD += asSupport.dbd
LEMserverSoft_DBD += iocAdmin.dbd
LEMserverSoft_DBD += caPutLog.dbd
LEMserverSoft_DBD += system.dbd

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
LEMserverSoft_SRCS += LEMserverSoft_registerRecordDeviceDriver.cpp
LEMserverSoft_SRCS_DEFAULT += LEMserverSoftMain.cpp
LEMserverSoft_SRCS_vxWorks += -nil-

# Add locally compiled object code

# The following adds support from base/src/vxWorks
LEMserverSoft_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary

LEMserverSoft_LIBS += autosave
LEMserverSoft_LIBS += devIocStats
LEMserverSoft_LIBS += caPutLog

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


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

LEMserverSoft_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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

