TOP=../..

include $(TOP)/configure/CONFIG
#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE
#=============================

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

PROD_IOC = LLRFControl

DBD += LLRFControl.dbd
# LLRFControl.dbd will be made up from these files:
LLRFControl_DBD += base.dbd
#include definitions for any other support applications needed
LLRFControl_DBD += RFControl.dbd
LLRFControl_DBD += RFControlBoard.dbd
LLRFControl_DBD += RFControlFirmware.dbd
LLRFControl_DBD += InternalData.dbd

LLRFControl_DBD += autosave.dbd
LLRFControl_DBD += devIocStats.dbd

LLRFControl_DBD += evrSupport.dbd
LLRFControl_DBD += devMrfEr.dbd
LLRFControl_DBD += drvPerfMeasure.dbd

LLRFControl_DBD += systemCommand.dbd

# Check PulseID
LLRFControl_DBD += subPulseId.dbd

# <name>_registerRecordDeviceDriver.cpp will be created from <name>.dbd
LLRFControl_SRCS += LLRFControl_registerRecordDeviceDriver.cpp
LLRFControl_SRCS_DEFAULT += LLRFControlMain.cpp
LLRFControl_SRCS += systemCommand.c
# Check PulseID
LLRFControl_SRCS += subPulseId.c


#The following adds support from base/src/vxWorks
LLRFControl_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary

#add a definition for each support application used by this application
#LLRFControl_LIBS += xxx

#NOTES:
#      1)It is not possible to build sncExample both as a component of LLRFControl
#        and standalone. You must choose only one.
#      2)To build sncExample SNCSEQ must be defined in <top>/configure/RELEASE

#The following builds sncExample as a component of LLRFControl
#LLRFControl_SRCS += sncExample.stt
#LLRFControl_LIBS += seq pv

# --- For SNC program settings ---
ifneq ($(SNCSEQ),)
    LLRFControl_DBD += LLRFControlLLA.dbd
    LLRFControl_SRCS += LLRFControlLLA_main.st
    LLRFControl_SRCS += LLRFControlLLA_procedure.c
    LLRFControl_LIBS += seq pv
endif

LLRFControl_LIBS += RFControl
LLRFControl_LIBS += RFControlBoard
LLRFControl_LIBS += RFControlFirmware
LLRFControl_LIBS += InternalData
LLRFControl_LIBS += LLRFLibs

LLRFControl_LIBS += autosave

LLRFControl_LIBS += devIocStats

LLRFControl_LIBS += evrSupport
LLRFControl_LIBS += devMrfEr
LLRFControl_LIBS += drvMrf
#LLRFControl_LIBS += mrfApi

LLRFControl_LIBS += perfMeasure

LLRFControl_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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

