TOP=../..

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

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

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

# sysck.dbd will be made up from these files:
sysck_DBD += base.dbd
sysck_DBD += iocAdmin.dbd
sysck_DBD += asSupport.dbd
sysck_DBD += caPutLog.dbd

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
sysck_SRCS += sysck_registerRecordDeviceDriver.cpp
sysck_SRCS_DEFAULT += sysckMain.cpp
sysck_SRCS_vxWorks += -nil-

# for iocAdmin dbRestore
sysck_LIBS += devIocStats
sysck_LIBS += autosave
sysck_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 sysck
    sysck_SNCFLAGS += +r
    sysck_DBD += sncExample.dbd
    sysck_SRCS += sncExample.stt
    sysck_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

sysck_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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

