TOP=../..

include $(TOP)/configure/CONFIG

CROSS_COMPILER_TARGET_ARCHS=RTEMS-beatnik

#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE
#=============================

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

PROD_IOC_RTEMS = BeamCharge
# BeamCharge.dbd will be created and installed
DBD += BeamCharge.dbd

# BeamCharge.dbd will be made up from these files:
BeamCharge_DBD += base.dbd
BeamCharge_DBD += drvIpac.dbd
BeamCharge_DBD += IP330.dbd
BeamCharge_DBD += caenADCV965.dbd

BeamCharge_DBD += autosaveSupport.dbd
# BeamCharge_DBD += iocAdmin.dbd
BeamCharge_DBD += devIocStats.dbd

BeamCharge_DBD += evrSupport.dbd
BeamCharge_DBD += devMrfEr.dbd

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
BeamCharge_SRCS += BeamCharge_registerRecordDeviceDriver.cpp
BeamCharge_SRCS_DEFAULT += BeamChargeMain.cpp
BeamCharge_SRCS_vxWorks += -nil-

# Add locally compiled object code
# BeamCharge_SRCS += BeamChargeHello.c

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

BeamCharge_LIBS += IP330
BeamCharge_LIBS += Ipac
BeamCharge_LIBS += caenADCV965

BeamCharge_LIBS += autosave
BeamCharge_LIBS += devIocStats

BeamCharge_LIBS += evrSupport
BeamCharge_LIBS += devMrfEr
BeamCharge_LIBS += mrfVme64x

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

ifneq ($(SNCSEQ),)
    # This builds sncExample as a component of BeamCharge
    # BeamCharge_SNCFLAGS += +r
    # BeamCharge_DBD += sncExample.dbd
    # BeamCharge_SRCS += sncExample.stt
    # BeamCharge_LIBS += seq pv
endif

BeamCharge_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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

