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 += llrfPadSupport

# install driver header
INC += drvPadLlrf.h

# The following are compiled and added to the Support library
llrfPadSupport_SRCS += devWfPadLlrf.c
llrfPadSupport_SRCS += drvPadAfeQspi.c
llrfPadSupport_SRCS += subPadDetect.c
#llrfPadSupport_SRCS += subAtt.c
llrfPadSupport_SRCS += devLonginPad.c
#=============================
# build an ioc application

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

# example.dbd will be made up from these files:
llrfPadApp_DBD += base.dbd
ifndef TEST_ONLY
llrfPadApp_DBD += iocAdmin.dbd
endif
llrfPadApp_DBD += llrfPadSupport.dbd
llrfPadApp_DBD += autosaveSupport.dbd

llrfPadApp_DBD += fcomUtil.dbd

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
llrfPadApp_SRCS += llrfPadApp_registerRecordDeviceDriver.cpp

# Add locally compiled object code

ifndef TEST_ONLY
llrfPadApp_LIBS += devIocStats
llrfPadApp_LIBS += autosave
endif
llrfPadApp_LIBS += llrfPadSupport devBusMapped padSupport udpComm fcomUtil 
llrfPadApp_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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