TOP=../..

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

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


PROD_LIBS += stream
PROD_LIBS += asyn

PROD_IOC = caen1527-watchdog

# Link locally-provided code into the support library,
# rather than directly into the IOC application.
caen1527-watchdog_SRCS += initTrace.c
caen1527-watchdog_LIBS += $(EPICS_BASE_IOC_LIBS)

# caen1527-watchdog.dbd will be created and installed
DBD += caen1527-watchdog.dbd

# caen1527-watchdog.dbd will be made up from these files:
caen1527-watchdog_DBD += base.dbd
caen1527-watchdog_DBD += asyn.dbd
caen1527-watchdog_DBD += drvAsynSerialPort.dbd
caen1527-watchdog_DBD += stream.dbd
caen1527-watchdog_DBD += initTrace.dbd

# Include dbd files from all support applications:
#caen1527-watchdog_DBD += xxx.dbd

# Add all the support libraries needed by this IOC
#caen1527-watchdog_LIBS += xxx

# caen1527-watchdog_registerRecordDeviceDriver.cpp derives from caen1527-watchdog.dbd
caen1527-watchdog_SRCS += caen1527-watchdog_registerRecordDeviceDriver.cpp

# Build the main IOC entry point on workstation OSs.
caen1527-watchdog_SRCS_DEFAULT += caen1527-watchdogMain.cpp
caen1527-watchdog_SRCS_vxWorks += -nil-

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

# Finally link to the EPICS Base libraries
caen1527-watchdog_LIBS += $(EPICS_BASE_IOC_LIBS)

#=============================
ifneq ($(findstring linux-arm,$(T_A)),)
BIN_INSTALLS += $(EPICS_BASE_BIN)/caRepeater
LIB_INSTALLS += $(ASYN)/lib/linux-arm/libasyn.so
LIB_INSTALLS += $(STREAM)/lib/linux-arm/libstream.so
LIB_INSTALLS += $(SNCSEQ)/lib/linux-arm/libseq.so
LIB_INSTALLS += $(SNCSEQ)/lib/linux-arm/libpv.so
LIB_INSTALLS += $(SNCSEQ)/lib/linux-arm/libpv.so
endif

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

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

