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)
# databases, templates, substitutions like this

# yCPSWasyn database templates
DB += gmd_cpsw.db

DB += gmd-process.db
DB += process-hist.db
DB += gmd-streamData.db
DB += gmd-preamp.db
DB += gmd-firmwareEquation.db

# NC BLD control
DB += NCBldCtrl.db

# Only to test the GMD in the lab
DB += test_only.db

# No need to build these, just install
# them from their install directory
DB_INSTALLS += $(AUTOSAVE)/db/save_restoreStatus.db

# IOC admin
IOCRELEASE_DB += iocRelease.db
DB_INSTALLS += $(SNCSEQ)/db/devSeqCar.db
DB_INSTALLS += $(IOCADMIN)/db/iocAdminSoft.db

# Install Database for tprTrigger module
DB_INSTALLS += $(TPRTRIGGER)/db/tprTrig.db
DB_INSTALLS += $(TPRTRIGGER)/db/tprDeviceNamePV.db

# Install Database for tprPattern module
DB_INSTALLS += $(TPRPATTERN)/db/tprPattern.db

# For BSA
DB_INSTALLS += $(EVENT)/db/Bsa.db

# ATCA common
DB_INSTALLS += $(ATCACOMMON)/db/crossbarCtrl.db
DB_INSTALLS += $(ATCACOMMON)/db/ATCACommon.db
DB_INSTALLS += $(ATCACOMMON)/db/ATCACommonDeprecated.db
DB_INSTALLS += $(ATCACOMMON)/db/Stream.db

# BSA/BSSS driver
DB_INSTALLS += $(BSADRIVER)/db/bsa.db
DB_INSTALLS += $(BSADRIVER)/db/bsss.db
DB_INSTALLS += $(BSADRIVER)/db/bsssCtrl.db
DB_INSTALLS += $(BSADRIVER)/db/bsas.db         # channel control tempalte (enable/disable channel, severity filtering for channel), need to load up for each data channels
DB_INSTALLS += $(BSADRIVER)/db/bsasCtrl.db     # rate control template, work with global PVs

DB_INSTALLS += $(BSADRIVER)/db/bld.db         # channel control tempalte (enable/disable channel, severity filtering for channel), need to load up for each data channels
DB_INSTALLS += $(BSADRIVER)/db/bldCtrl.db     # rate control template, work with global PVs

#----------------------------------------------------
# Create and install (or just install)
# Archive files, templates, substitutions like this
#
ARCHIVE += gmd-ioc.archive
ARCHIVE += gmd-process.tpl-arch
ARCHIVE += process-hist.archive

#----------------------------------------------------
# Create and install (or just install)
# Autosave request files, templates, substitutions like this
#
REQ += gmd-process.tpl-req
REQ += gmd_cpsw.tpl-req

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

