TOP=../..

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

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

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

# rfPhCtrl.dbd will be made up from these files:
trgControl_DBD += base.dbd
trgControl_DBD += iocAdmin.dbd

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
trgControl_SRCS += trgControl_registerRecordDeviceDriver.cpp
trgControl_SRCS_DEFAULT += trgControlMain.cpp
trgControl_SRCS_vxWorks += -nil-


trgControl_LIBS += devIocStats

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

ifneq ($(SNCSEQ),)
    # This builds sncExample as a component of trgControl
    trgControl_SNCFLAGS += +r
    trgControl_DBD  += sncTrgControl.dbd
    trgControl_SRCS += sncTrgControl.stt
    trgControl_DBD  += sncpllAutoAcquire.dbd
    trgControl_SRCS += sncpllAutoAcquire.stt
    trgControl_LIBS += seq pv
endif

trgControl_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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

