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 

DB += hadcon_global.db
DB += hadcon_debug_global.db

ioc_no := 231 238 239 210 234 232 203 207 236 237 208
DB += $(foreach ioc, $(ioc_no), hadcon_global_scan_etrax$(ioc).db)

ioc_oneWire_temp_no := 231 238 239 210 234 232 203 207 236 237 208
DB += $(foreach ioc, $(ioc_oneWire_temp_no), hadcon_oneWire_temperature_ID_etrax$(ioc).db)

ioc_oneWire_adc_no := 210 239 210 234 232 203 207
DB += $(foreach ioc, $(ioc_oneWire_adc_no), hadcon_oneWire_adc_ID_etrax$(ioc).db)

ioc_atmel_adc_no := 236 237
DB += $(foreach ioc, $(ioc_atmel_adc_no), hadcon_atmel_global_etrax$(ioc).db)
DB += $(foreach ioc, $(ioc_atmel_adc_no), hadcon_atmel_adc_channel_etrax$(ioc).db)

ioc_atmel_relay_no := 201
DB += $(foreach ioc, $(ioc_atmel_relay_no), hadcon_atmel_adc_threshold_etrax$(ioc).db)

ioc_can_rpc_gas_system_no := 208
DB += $(foreach ioc, $(ioc_can_rpc_gas_system_no), hadcon_can_rpc_gas_system_etrax$(ioc).db)
DB += $(foreach ioc, $(ioc_can_rpc_gas_system_no), hadcon_can_rpc_gas_system_etrax$(ioc)_principles_readout.db)
DB += $(foreach ioc, $(ioc_can_rpc_gas_system_no), hadcon_can_rpc_gas_system_etrax$(ioc)_principles_master_loop_and_alarms.db)
DB += $(foreach ioc, $(ioc_can_rpc_gas_system_no), hadcon_can_rpc_gas_system_etrax$(ioc)_principles_alarm.db)
#----------------------------------------------------
# If <anyname>.db template is not named <anyname>*.template add
# <anyname>_TEMPLATE = <templatename>

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

