TOP=../..

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

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

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

# RF.dbd will be made up from these files:
RF_DBD += base.dbd

# From FEED
RF_DBD += feed.dbd
RF_DBD += slacRf.dbd
RF_DBD += slacRfSeq.dbd

RF_DBD += rfSupport.dbd

RF_SRCS += rfSub.c
RF_SRCS += RF_registerRecordDeviceDriver.cpp

# Comment out wfAnalysis until
# tested more at SLAC
#RF_SRCS += wfAnalysis.cpp
#RF_DBD += wfAnalysis.dbd
#RF_LIBS += newmat
#newmat_DIR = $(TOP)/newmat10

ifneq ($(BUSY),)
RF_DBD += busySupport.dbd
RF_LIBS += busy
else
$(error Set BUSY= in configure/RELEASE or configure/RELEASE.local)
endif

ifneq ($(ASYN),)
  ifneq ($(QF2PREMONITOR),)
  RF_DBD += QF2preMonitor.dbd
  RF_LIBS += QF2preMonitor
  endif
RF_DBD += asyn.dbd
RF_LIBS += asyn
endif

ifneq ($(AUTOSAVE),)
RF_DBD += asSupport.dbd
RF_LIBS += autosave
endif

ifneq ($(ETHERIP),)
RF_DBD += ether_ip.dbd
RF_LIBS += ether_ip
endif

ifneq ($(IOCADMIN),)
RF_DBD += iocAdmin.dbd
RF_LIBS += devIocStats
endif

ifneq ($(SNCSEQ),)
RF_DBD += devSeqCar.dbd
RF_LIBS += seqCar
endif

ifneq ($(CAPUTLOG),)
RF_DBD += caPutLog.dbd
RF_LIBS += caPutLog
endif

# From FEED
RF_LIBS += feed
RF_LIBS += slacRf
RF_LIBS += slacRfSeq

# Build the main IOC entry point on workstation OSs.
RF_SRCS_DEFAULT += RFMain.cpp
RF_SRCS_vxWorks += -nil-

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

# Add support for sequence programs
ifneq ($(SNCSEQ),)
RF_LIBS += seq pv
endif

# Finally link to the EPICS Base libraries
RF_LIBS += $(EPICS_BASE_IOC_LIBS)
RF_SYS_LIBS += z

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

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

