#==============================================================
#
#  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:
#		
#       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
#
#----------------------------------------
#  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 += dbRestore.dbd
fbckSupport_DBD += iocAdmin.dbd
fbckSupport_DBD += fbckSup.dbd
fbckSupport_DBD += fbckEnergyChirp.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
#mgnt_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary
#fbcksim_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary

fbckSupport_LIBS += restore
fbckSupport_LIBS += devIocStats

# 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)
#========================================

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