TOP=../..

include $(TOP)/configure/CONFIG

CROSS_COMPILER_TARGET_ARCHS=RTEMS-uC5282
#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE

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

#----------------------------------------------------
# Create and install (or just install) into <top>/db
# databases, templates, substitutions like this
#DB += xxx.db
DB += pacwaveform.db
DB += paclongin.db 
DB += paclongout.db 
DB += pacmbbo.db 
DB += pacsub.db 
DB += pacfanout.db 
DB += paccalcout.db 
DB += pacai.db 
DB += pacao.db 


DB += pacLSR.spac_template
DB += pacGN1.pac_template
DB += pacRFR.spac_template

DB += $(IOCADMIN)/db/iocAdminRTEMS.db
DB += $(AUTOSAVE)/db/save_restoreStatus.db
DB_INSTALLS += pac.acf
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
%.pac_template: ../%.pac_substitutions ../pac.pac_template
	$(RM) $@
	../buildtemplate $< $@

%.spac_template: ../%.spac_substitutions ../pac.spac_template
	$(RM) $@
	../buildtemplate $< $@

clean::
	$(RM) $(patsubst %.substitutions,%.template,$(wildcard *.substitutions))
