TOP=../..
include $(TOP)/configure/CONFIG
#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE

CROSS_COMPILER_TARGET_ARCHS=RTEMS-uC5282
#----------------------------------------------------
#  Optimization of db files using dbst (DEFAULT: NO)
#DB_OPT = YES

#----------------------------------------------------
# Create and install (or just install)
# databases, templates, substitutions like this
DB += ipadai.db
DB += ipadbo.db
DB += ipadcalcout.db
DB += ipadlongin.db
DB += ipadlongout.db
DB += ipadmbbo.db
DB += ipadwaveform.db

DB += padXTCAV.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))


