TOP=../..

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

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

#CFLAGS += -O0
PROD_IOC_RTEMS = PSCD
# PSCD.dbd will be created and installed
DBD += PSCD.dbd

# PSCD.dbd will be made up from these files:
PSCD_DBD += base.dbd
PSCD_DBD += devPSCD.dbd

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
PSCD_SRCS += PSCD_registerRecordDeviceDriver.cpp
PSCD_SRCS_DEFAULT += PSCDMain.cpp
PSCD_SRCS_vxWorks += -nil-

# Add locally compiled object code
PSCD_SRCS += epicsPciWrapper.c
PSCD_SRCS += drvPSCD.c
PSCD_SRCS += devPSCD.c
PSCD_SRCS += camgo.c
PSCD_SRCS += camalo.c
PSCD_SRCS += camalor.c
PSCD_SRCS += camio.c
PSCD_SRCS += camdel.c
PSCD_SRCS += camadd.c
PSCD_SRCS += cammod.c
#PSCD_SRCS += pack.c
PSCD_SRCS += CAMtest.c
PSCD_SRCS += DIMtest.c

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

#PSCD_LIBS += xxxSupport

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

ifneq ($(SNCSEQ),)
    # This builds sncExample as a component of PSCD
    PSCD_SNCFLAGS += +r
#    PSCD_DBD += sncExample.dbd
#    PSCD_SRCS += sncExample.stt
#    PSCD_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

PSCD_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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

