#==============================================================
#
#  Abs:  Makefile to build EPICS Database components
#
#  Name: Makefile
#
#  Facility: EED Beam Charge (Toroid)
#
#  Auth: 13-Jul-2010, Arturo Alarcon  (Alarcon)
#  Rev:  dd-mmm-yyyy, First Lastname  (USERNAME)
#--------------------------------------------------------------
#  Mod:
#        15-Jan-2020, K. Luchini      (luchini):
#         install devSeqCar.db
#         install BeamCharge_evr_lcls.db
#        13-Jan-2020, K. Luchini      (luchini):
#         remove install of alarm_device.template
#        30-Apr-2014, S. Candamoor    (scondam):
#         install adc_fanout.template, Mapping Caen
#         signals to TMIT while IP330 signals are 
#         temporarily disconnected
#
#==============================================================
#
TOP=../../..
include $(TOP)/configure/CONFIG
#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE
#----------------------------------------------------
#  Optimization of db files using dbst (DEFAULT: NO)
#DB_OPT = YES

#----------------------------------------------------
# Create and install (or just install) into <top>/db
# databases, templates, substitutions like this
#
# For iocAdmin database
DB_INSTALLS       += $(IOCADMIN)/db/iocAdminRTEMS.db
DB_INSTALLS       += $(IOCADMIN)/db/iocAdminSoft.db
IOCRELEASE_DB     += iocRelease.db

# Sequence Admin
DB_INSTALLS       += $(SNCSEQ)/db/devSeqCar.db
# For autosave status database
DB_INSTALLS       += $(AUTOSAVE)/db/save_restoreStatus.db

IPAC_TEMPLATE += $(IPAC)/db/IP330.template
IPAC_TEMPLATE += $(IPAC)/db/IP330BSA.template

# Timing database
GENERALTIME_TEMPLATE += $(GENERALTIME)/db/generalTimeNonVx.template

DB += bsaTORODIFFEdef.db
DB += comparator.template
DB += adc_module.template
DB += adc_channel.template
DB += ai.template
DB += IP330BSA_TSE_CAL.template
DB += BeamCharge_Alarms_LCLS.db
DB += BeamCharge_Evr_LCLS.db

# scondam: 30-Apr-2014: Mapping Caen signals to
# TMIT while IP330 signals are temporarily disconnected
DB += adc_fanout.template

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