TOP=../..

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

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

PROD_IOC = freqCount

# freqCount.dbd will be created and installed
DBD += freqCount.dbd

# freqCount.dbd will be made up from these files:
freqCount_DBD += base.dbd

# streams:
#freqCount_DBD += aaiRecord.dbd
#freqCount_DBD += aaoRecord.dbd
freqCount_DBD += asyn.dbd
freqCount_DBD += asynRecord.dbd
freqCount_DBD += stream.dbd
freqCount_DBD += drvAsynIPPort.dbd
freqCount_DBD += drvVxi11.dbd
freqCount_DBD += drvAsynSerialPort.dbd

#include definitions for any other support applications needed
freqCount_DBD += Hp53181AStream.dbd

freqCount_DBD += freq.dbd

# iocAdmin
freqCount_DBD += iocAdmin.dbd
# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
freqCount_SRCS += freqCount_registerRecordDeviceDriver.cpp
freqCount_SRCS_DEFAULT += freqCountMain.cpp
freqCount_SRCS_vxWorks += -nil-

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

#add a definition for each support application used by this application
LaserSoft_LIBS += asyn
LaserSoft_LIBS += stream
freqCount_LIBS += Hp53181AStream
#freqCount_LIBS += iocAdmin
freqCount_LIBS += devIocStats

#NOTES:
#      1)It is not possible to build sncExample both as a component of freqCount
#        and standalone. You must choose only one.
#      2)To build sncExample SNCSEQ must be defined in <top>/configure/RELEASE

#The following builds sncExample as a component of freqCount
#freqCount_SRCS += sncExample.stt
#freqCount_LIBS += seq pv

freqCount_LIBS += $(EPICS_BASE_IOC_LIBS)

#The following builds sncExample as a standalone application
#PROD_HOST += sncExample
#sncExample_SNCFLAGS += +m
#sncExample_SRCS += sncExample.stt
#sncExample_LIBS += seq pv
#sncExample_LIBS += $(EPICS_BASE_HOST_LIBS)

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

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

