TOP=../..

include $(TOP)/configure/CONFIG

CROSS_COMPILER_TARGET_ARCHS=RTEMS-beatnik
#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE
#=============================

#==================================================
# Build an IOC support library

LIBRARY += bpmSupport

# bpmRecord.h will be created from bpmRecord.dbd
#DBDINC += bpmRecord
# install devBpmSoft.dbd into <top>/dbd
DBD += bpmSupport.dbd

# The following are compiled and added to the Support library
bpmSupport_SRCS += drvPadUdpComm.c devWfRawSig.c devAiStripRaw.c
bpmSupport_SRCS += devCalcoutStripSim.c
bpmSupport_SRCS += devSiSoft.c
bpmSupport_SRCS += devBoOnln.c
bpmSupport_SRCS += fidProcess.c

bpmSupport_LIBS_DEFAULT += udpCommSupport
bpmSupport_LIBS_RTEMS   += -nil-

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

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

# example.dbd will be made up from these files:
bpmApp_DBD += base.dbd
bpmApp_DBD += iocMon.dbd
bpmApp_DBD += bpmSupport.dbd
bpmApp_DBD += evrSupport.dbd
bpmApp_DBD += devMrfEr.dbd
bpmApp_DBD += dbRestore.dbd
bpmApp_DBD += slc.dbd
bpmApp_DBD += epicsbsac.dbd

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
bpmApp_SRCS += bpmApp_registerRecordDeviceDriver.cpp
bpmApp_SRCS_DEFAULT += bpmAppMain.c
bpmApp_SRCS_RTEMS = -nil-

# Add locally compiled object code

bpmApp_LIBS +=  bpmSupport devBusMapped


EVNT_LIBS += evrSupport
EVNT_LIBS += drvSupport
EVNT_LIBS += sSubRecord
EVNT_LIBS += generalTime
EVNT_LIBS_IOC += devMrfEr
EVNT_LIBS_IOC += mrfVme64x

bpmApp_LIBS_RTEMS-beatnik+= $(EVR_RTEMS_IOC_LIBS)

bpmApp_LIBS += $(EVR_IOC_LIBS)
bpmApp_LIBS += iocMon
bpmApp_LIBS += $(bpmApp_LIBS_$(T_A))
bpmApp_LIBS += restore
bpmApp_LIBS += $(SLC_IOC_LIBS)


bpmApp_LIBS += $(EPICS_BASE_IOC_LIBS)

bpmApp_LIBS += miscUtils

USR_CFLAGS_DEFAULT=-DBSDSOCKET
USR_CFLAGS_RTEMS  = -I$(TOP)/include -I$(RTEMS_BASE)/

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

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

