TOP=../..

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

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

PROD_IOC = knobUserEpics

#INC += knobCtrl.h 
#INC += knobCtrlClntComm.h

DBD += knobUserEpics.dbd

# knobUserEpics.dbd will be made up from these files:
knobUserEpics_DBD += base.dbd
knobUserEpics_DBD += iocAdmin.dbd
knobUserEpics_DBD += asSupport.dbd
ifneq ($(CAPUTLOG),)
knobUserEpics_DBD += caPutLog.dbd
endif
knobUserEpics_DBD += PVAServerRegister.dbd
knobUserEpics_DBD += qsrv.dbd
knobUserEpics_DBD += system.dbd

knobUserEpics_DBD += knobUserLcls.dbd

knobUserEpics_DBD += knobUserEpicsSupport.dbd
knobUserEpics_DBD += knobUserCtrlCommUdp.dbd
knobUserEpics_DBD += knobDeviceCa.dbd
knobUserEpics_DBD += devKnobUserEpics.dbd

knobUserEpics_SRCS += knobUserLcls.c
knobUserEpics_SRCS += devKnobUserEpics.c
knobUserEpics_SRCS += knobUserEpics.c knobUserEpicsUtil.c 
knobUserEpics_SRCS += knobDeviceCa.c 
knobUserEpics_SRCS += knobUserCtrlCommUdp.c

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
knobUserEpics_SRCS += knobUserEpics_registerRecordDeviceDriver.cpp
knobUserEpics_SRCS_DEFAULT += knobUserEpicsMain.cpp
knobUserEpics_SRCS_vxWorks += -nil-

knobUserEpics_LIBS += devIocStats
knobUserEpics_LIBS += devGenVar
ifneq ($(CAPUTLOG),)
knobUserEpics_LIBS += caPutLog
endif
knobUserEpics_LIBS += qsrv
knobUserEpics_LIBS += autosave
knobUserEpics_LIBS += commUdpTcpLib

knobUserEpics_LIBS += $(EPICS_BASE_PVA_CORE_LIBS)
knobUserEpics_LIBS += $(EPICS_BASE_IOC_LIBS)

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

