TOP=../..

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

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

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

# pvas.dbd will be made up from these files:
pvas_DBD += base.dbd
pvas_DBD += iocAdmin.dbd
#pvas_DBD += dbRestore.dbd
#pvas_DBD += caPutLog.dbd
# test pvaSrv for EPICS V4
pvas_DBD += dbPv.dbd

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
pvas_SRCS += pvas_registerRecordDeviceDriver.cpp
pvas_SRCS_DEFAULT += pvasMain.cpp
pvas_SRCS_vxWorks += -nil-

# for iocAdmin dbRestore
pvas_LIBS += devIocStats
#pvas_LIBS += restore
#pvas_LIBS += caPutLog

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

#ifneq ($(SNCSEQ),)
#    # This builds sncExample as a component of pvas
#    pvas_SNCFLAGS += +r
#    pvas_DBD += sncExample.dbd
#    pvas_SRCS += sncExample.stt
#    pvas_LIBS += seq pv
#
#    # The following builds sncProgram as a standalone application
#    PROD_HOST += sncProgram
#    sncProgram_SNCFLAGS += +m
#    sncProgram_SRCS += sncProgram.st
#    sncProgram_LIBS += seq pv
#    sncProgram_LIBS += $(EPICS_BASE_HOST_LIBS)
#endif

# test pvaSrv for EPICS V4
pvas_LIBS += pvaSrv pvIOC pvAccess pvData pvMB

pvas_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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

