include $(ROOT)/usr/include/make/X86defs

SHARED_CFILES = aud_util.c

TARGET_CFILES = \
    adc_ctrl_bits.c \
    dac_ctrl_bits.c \
    adc_config.c \
    adc_config_15.c \
    adc_mb.c \
    dac_config.c \
    dac_config_15.c \
    dac_mb.c \
    aud_acc.c \
    aud_racc.c \
    adc_dac.c \
    aud_com.c \
    adc_rand.c \
    dac_rand.c \
    aud_en_dis.c \
    aud_gpio.c \
    aud_mclk.c \
    aud_bclk.c \
    aud_lrclk.c \
    aud_pll.c \
    adc_addr_walk.c \
    dac_addr_walk.c \
    aud_bpclk.c

LCINCS = -I$(ROOT)/usr/include/sc

default: $(TARGETS) $(TARGET_CFILES)

$(TARGETS): $(SHARED_OBJECTS) $(ROOT)/usr/lib/x86/libiosim.a

runtests: $(TARGETS) start_simulator
	./adc_config_15 -c cpu0 -E n
	./dac_config_15 -c cpu0 -E n -q

include $(COMMONRULES)
