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
DB += padai.db
DB += padbo.db
DB += padcalcout.db
DB += padlongin.db
DB += padlongout.db
DB += padmbbo.db
DB += padwaveform.db
DB += padLAB01.kly_template
DB += padTS01.kly_template
DB += padTS04.kly_template
DB += padESB033.kly_template

# ==========================================
# Install autosave/restore request files
SECURITY += padAccessControl.acf
# =========================================

# DB_INSTALLS += pad.acf 
DB += $(IOCADMIN)/db/iocAdminRTEMS.db
#DB_INSTALLS += $(IOCADMIN)/db/iocAdmin.db
DB_INSTALLS += $(AUTOSAVE)/db/save_restoreStatus.db

IOCRELEASE_DB     += iocRelease.db

#----------------------------------------------------
# If <anyname>.db template is not named <anyname>*.template add
# <anyname>_TEMPLATE = <templatename>


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

%.kly_template: ../%.kly_substitutions ../pad.kly_template
	$(RM) $@
	../buildtemplate $< $@
		
clean::
	$(RM) $(patsubst %.substitutions,%.template,$(wildcard *.substitutions))


