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

SRC_DIRS += $(TOP)/board/rfs/Db
SRC_DIRS += $(TOP)/board/res/Db
SRC_DIRS += $(TOP)/common/rf/Db

ifneq ($(AUTOSAVE),)
DB += $(AUTOSAVE)/db/save_restoreStatus.db
endif

ifneq ($(IOCADMIN),)
DB += $(IOCADMIN)/db/iocAdminSoft.db
endif

DB += resTempPT1000.db

# Per-chassis-type database files
# 'Short' indicates shorter register PV names
# which must be used with full LCLS-II names
DB += rfChassisLclsRFSShort.db
DB += rfChassisLclsPRCShort.db
DB += rfChassisLclsRESShort.db

# Per-cryomodule waveform display support
DB += wfCav.db
DB += wfSupportCm.db

# Signal calibration databases. 'Simple' cal 
# files for use at LBNL, FNAL. 
# Full cal files to be used at LCLS-II, LERF.
# For each cryomodule, load one instance of 
# either rfCmCal.db or rfCmCalSimple.db.
DB += rfCavCal.db
DB += rfCavCalSimple.db
DB += rfCmCal.db
DB += rfCmCalSimple.db

# Interlock databases.
DB += intlkChas.db

# Interlock counters
DB += intlkCountCav.db
DB += intlkCountCm.db

# Cryomodule database files
# 'Short' indicates shorter register PV names
# which must be used with full LCLS-II names
# For each cryomodule, load one instance of
# rfCryomoduleShort.db.
# Removed non-short version as not in use
DB += rfCryomoduleCommon.db
DB += rfCryomoduleShort.db

# Python launcher program support
DB += launcher_cm.conf
DB += launcherCav.db
DB += launcherCm.db
DB += launcherFltDataCm.db

# RFS tone/DAC test
DB += rfsTestCm.db

# Frequency scan
DB += freqCm.db

# Per-PRC PRL waveform/monitoring support
DB += rfChassisLclsPRCPRL.db

# Per-cryomodule PRL tracking support
DB += prlTrackingCm.db

# LCLS2 timing/ms/bsa
DB += timingLclsChas.template
DB += timingLclsCm.template

# Databases to support FNAL test stand
DB += alarm_lerf.db
DB += alhFP_rf_l1b_cm2_chas.db
DB += alhSP_rf_l1b_cm2.db
DB += alhSP_rf_l1b_cm2_chas.db
DB += watcher_fnal.db

DB += launcher_heartbeat.template

ifneq ($(QF2PREMONITOR),)
DB_INSTALLS += $(QF2PREMONITOR)/db/QF2preUtilityLCLS2.db
DB_INSTALLS += $(QF2PREMONITOR)/db/QF2preMonitorLCLS2.db
DB_INSTALLS += $(QF2PREMONITOR)/db/QF2preAlarmLCLS2PRC.db
DB_INSTALLS += $(QF2PREMONITOR)/db/QF2preAlarmLCLS2RFS.db
DB += QF2preLCLS2Rack.db
DB += QF2preLCLS2Cm.db
endif

include $(TOP)/configure/RULES

#----------------------------------------
#  ADD RULES AFTER THIS LINE
