TOP=../..

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

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

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

# nirp.dbd will be made up from these files:
nirp_DBD += base.dbd

# Include dbd files from all support applications:
#nirp_DBD += xxx.dbd

nirp_DBD += devIocStats.dbd
nirp_DBD += asSupport.dbd
nirp_DBD += caPutLog.dbd
nirp_DBD += ether_ip.dbd
nirp_DBD += PVAServerRegister.dbd
nirp_DBD += qsrv.dbd
# Add all the support libraries needed by this IOC
#nirp_LIBS += xxx

# nirp_registerRecordDeviceDriver.cpp derives from nirp.dbd
nirp_SRCS += nirp_registerRecordDeviceDriver.cpp

# Build the main IOC entry point on workstation OSs.
nirp_SRCS_DEFAULT += nirpMain.cpp
nirp_SRCS_vxWorks += -nil-

# Add support from base/src/vxWorks if needed
#nirp_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary
nirp_LIBS += autosave
nirp_LIBS += caPutLog
nirp_LIBS += devIocStats
nirp_LIBS += ether_ip
nirp_LIBS += qsrv
# Needed to link cexpsh() support
nirp_LIBS += $(CEXP_LIBS)

# EPICS_BASE_PVA_CORE_LIBS comes from pvAccessCPP and is defined at <>/cfg/CONFIG_PVACCESS_MODULE
nirp_LIBS += $(EPICS_BASE_PVA_CORE_LIBS)
nirp_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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

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

