TOP=../..
include $(TOP)/configure/CONFIG

#-------------------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE
#-------------------------------------------------

# ================================================
# Build the IOC application
# ================================================
#PROD_IOC_RTEMS = beamLoss
PROD_IOC = beamLoss
# beamLoss.dbd will be created and installed
DBD += beamLoss.dbd

# beamLoss.dbd will be made up from these files:

beamLoss_DBD += base.dbd

# ================================================================================
# The system command is available for all architectures
# Found in EPICS BASE
# ================================================================================
beamLoss_DBD += system.dbd

beamLoss_DBD += devIocStats.dbd
beamLoss_DBD += autosaveSupport.dbd
beamLoss_DBD += caPutLog.dbd
#beamLoss_DBD += asyn.dbd
beamLoss_DBD += aCalcoutRecord.dbd
beamLoss_DBD += calcSupport.dbd
beamLoss_DBD += history.dbd

beamLoss_DBD += drvUioPciGen.dbd
beamLoss_DBD += devBusMapped.dbd
beamLoss_DBD += epicspci.dbd
beamLoss_DBD += $(CEXP_DBDS)

# Add support for pvlistServer
#beamLoss_DBD += pvlistServer.dbd


# If you have an EVR uncomment the following two lines:
beamLoss_DBD += evrSupport.dbd
beamLoss_DBD += devMrfEr.dbd

# Support for sis8300 Digitizer
beamLoss_DBD += gtr.dbd
beamLoss_DBD += gtr-sis8300App.dbd
beamLoss_DBD += drvGtrSis8300.dbd

# ==========================================================================
# beamLoss_registerRecordDeviceDriver.cpp derives from beamLoss.dbd
# ==========================================================================
beamLoss_SRCS += beamLoss_registerRecordDeviceDriver.cpp

# =====================================================
# Build the main IOC entry point on workstation OSs.
# =====================================================
beamLoss_SRCS_DEFAULT += beamLossMain.cpp

# =====================================================
# Link in the code from other libraries
# =====================================================

# =====================================================
# Link in the code from other libraries
# =====================================================
# Needed to link in iocAdmin support
beamLoss_LIBS += devIocStats

# Needed to link in autosave support
beamLoss_LIBS += autosave

# Needed to link caPutLog support
beamLoss_LIBS += caPutLog

# Add support for pvlistServer
#beamLoss_LIBS += pvlistServer

# ===================================
# Needed to link in the EVR support
# ===================================
beamLoss_LIBS += evrSupport
beamLoss_LIBS += devMrfEr


 ifeq ($(T_A),linuxRT-x86_64)
  beamLoss_LIBS += drvMrf
 endif

 ifeq ($(T_A),linux-x86_64)
  beamLoss_LIBS += drvMrf
 endif


beamLoss_LIBS += drvUioPciGen
beamLoss_LIBS += devBusMapped
beamLoss_LIBS += epicspci
#beamLoss_LIBS += asyn
beamLoss_LIBS += calc
beamLoss_LIBS += history
beamLoss_LIBS += sscan

beamLoss_LIBS += $(CEXP_LIBS)

# Adding in support for sis8300 Digitizer

beamLoss_LIBS += drvGtrSis8300
beamLoss_LIBS += sis8300Digi
beamLoss_LIBS += gtr

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

# =====================================================
# Finally link to the EPICS Base libraries
# =====================================================
beamLoss_LIBS += $(EPICS_BASE_IOC_LIBS)

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

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

