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 += rfChassisRFSShortPipII.db
DB += rfChassisRESShortPipII.db

# Per-cryomodule waveform display support
DB += wfCavPipII.db
DB += wfSupportCmPipII.db

# Signal calibration databases.
# For each cryomodule, load one instance of
# rfCmCalPipII.db
DB += rfCavCalPipII.db
DB += rfCmCalPipII.db

# Interlock databases.
DB += intlkChasPipII.db

# Interlock counters
DB += intlkCountCavPipII.db
DB += intlkCountCmPipII.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 += rfCryomoduleCommonPipII.db
DB += rfCryomoduleShortPipII.db

# Python launcher program support
DB += launcherCavPipII.db
DB += launcherCmPipII.db
DB += launcherFltDataCmPipII.db

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

# Frequency scan
#DB += freqCmPipII.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 += QF2preRackPipII.db
DB += QF2preCmPipII.db
endif

include $(TOP)/configure/RULES

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