#==============================================================
#
#  Abs:  Makefile to build EPICS Feedback Simulator Application
#
#  Name: Makefile
#
#  Facility:  SLAC/LCLS
#
#  Auth: 26-Jul-2005, K. Luchini          (LUCHINI)
#  Rev:  dd-mmm-yyyy, Reviewer's Name     (USERNAME)
#
#--------------------------------------------------------------
#  Mod:
#       04-May-2023, K. Luchini           (LUCHINI):
#         upgrade to epics base R7.0.3.1-1.0
#         add caPutLog.dbd and caPutLog lib		
#       12-Mar-2006, K. Luchini           (LUCHINI):
#         added subSys library.
#       07-Mar-2006, K. Luchini           (LUCHINI):
#         used the new files mgntInclude.dbd and mgntSoft.dbd
#         to generate mgnt.dbd and mgntSoft.dbd
#
#==============================================================
#
TOP=../..
include $(TOP)/configure/CONFIG

# For debugging - don't optimize
USR_CFLAGS_RTEMS  = -I$(TOP)/include -I$(RTEMS_BASE)
USR_CFLAGS   += -O0
USR_CFLAGS   += -DDEBUG_PRINT
USR_CXXFLAGS += -std=c++0x
USR_CXXFLAGS += -DHAVE_YAML
#USR_CFLAGS_DEFAULT += -DHOST_TEST -g

#======================================================
# Path to "NON EPICS" External PACKAGES: USER INCLUDES
#======================================================
USR_INCLUDES += -I$(PCRE_INCLUDE)

#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE
#========================================
# build an ioc application
PROD_IOC  = fbckSupport

# Build the ioc database
DBD += fbckSupport.dbd
fbckSupport_DBD += base.dbd
fbckSupport_DBD += iocAdmin.dbd
fbckSupport_DBD += devSeqCar.dbd
fbckSupport_DBD += caPutLog.dbd
fbckSupport_DBD += PVAServerRegister.dbd
fbckSupport_DBD += qsrv.dbd
fbckSupport_DBD += fbckSup.dbd
fbckSupport_DBD += fbckEnergyChirp.dbd
fbckSupport_DBD += asSupport.dbd
#Added for Cater 120497
fbckSupport_DBD += system.dbd

# add locally compiled object code
# Note that fbckSupport_registerRecordDeviceDriver.cpp 
# will be created from fbckSupport.dbd
fbckSupport_SRCS     += fbckSup.c
fbckSupport_SRCS     += fbckSupport_registerRecordDeviceDriver.cpp
USR_SRCS_DEFAULT     += fbckSupportMain.cpp
fbckSupport_SRCS_vxWorks += -nil-

# The following adds support from base/src/vxWorks
fbckSupport_LIBS += devIocStats
fbckSupport_LIBS += caPutLog
fbckSupport_LIBS += qsrv
fbckSupport_LIBS += autosave
fbckSupport_LIBS += seq pv seqCar

# Build SNL programs
# NOTE: to build SLN programs, SNCSEQ must be defined
# in the <top>/configure/RELEASE file
#
ifneq ($(SNCSEQ),)
 fbckSupport_SNCFLAGS += +r
 fbckSupport SNCFLAGS += -a
 fbckSupport_SNCFLAGS += +c
 fbckSupport_SNCFLAGS += +d
 fbckSupport_SRCS     += fbckEnergyChirp.st
 fbckSupport_LIBS     += seq pv
endif

fbckSupport_LIBS += $(EPICS_BASE_IOC_LIBS)
fbckSupport_LIBS += $(EPICS_BASE_IOC_LIBS)
fbckSupport_LIBS += $(EPICS_BASE_PVA_CORE_LIBS)

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

