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

# Per-chassis-type database files
# 'Short' indicates shorter register PV names
# which must be used with full LCLS-II names
DB += rfChassisLclsRFS.db
DB += rfChassisLclsRFSShort.db
DB += rfChassisLclsPRC.db
DB += rfChassisLclsPRCShort.db
DB += rfChassisLclsRES.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
# either rfCryomodule.db or rfCryomoduleShort.db.
DB += rfCryomoduleCommon.db
DB += rfCryomodule.db
DB += rfCryomoduleShort.db

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

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

# Frequency scan
DB += freqCm.db

# 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

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
