TOP=../..

include $(TOP)/configure/CONFIG

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

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

LIBRARY_IOC_RTEMS += bpmPadSupport

# install driver header
INC += drvPadBpm.h

# The following are compiled and added to the Support library
bpmPadSupport_SRCS += devWfPadBpm.c
bpmPadSupport_SRCS += drvPadAfeQspi.c
#bpmPadSupport_SRCS += drvPadStream.c
bpmPadSupport_SRCS += subPadDetect.c
bpmPadSupport_SRCS += subAtt.c

bpmPadSupport_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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

# example.dbd will be made up from these files:
bpmPadApp_DBD += base.dbd
bpmPadApp_DBD += iocAdmin.dbd
bpmPadApp_DBD += bpmPadSupport.dbd

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
bpmPadApp_SRCS += bpmPadApp_registerRecordDeviceDriver.cpp

# Add locally compiled object code

bpmPadApp_LIBS += devIocStats
bpmPadApp_LIBS += bpmPadSupport devBusMapped
bpmPadApp_LIBS += $(EPICS_BASE_IOC_LIBS)

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

include $(TOP)/configure/RULES
#----------------------------------------
#  ADD RULES AFTER THIS LINE
hubba:
	echo $(CROSS_LDFLAGS)
