#
# Makefile for ALSA
# Copyright (c) 1999 by Jaroslav Kysela <perex@suse.cz>
#

O_TARGET     := instr.o

list-multi   := snd-ainstr-fm.o snd-ainstr-simple.o snd-ainstr-gf1.o \
		snd-ainstr-iw.o

export-objs  := ainstr_fm.o ainstr_simple.o ainstr_gf1.o ainstr_iw.o

snd-ainstr-fm-objs := ainstr_fm.o
snd-ainstr-simple-objs := ainstr_simple.o
snd-ainstr-gf1-objs := ainstr_gf1.o
snd-ainstr-iw-objs := ainstr_iw.o

# Toplevel Module Dependency
obj-$(CONFIG_SND_ALSA_ALS100) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_AZT2320) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_DT0197H) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_ES18XX) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_OPL3SA2) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_AD1816A) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_CS4232) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_CS4236) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_ES1688) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_GUSCLASSIC) += snd-ainstr-iw.o snd-ainstr-gf1.o snd-ainstr-simple.o
obj-$(CONFIG_SND_ALSA_GUSMAX) += snd-ainstr-iw.o snd-ainstr-gf1.o snd-ainstr-simple.o
obj-$(CONFIG_SND_ALSA_GUSEXTREME) += snd-ainstr-iw.o snd-ainstr-gf1.o snd-ainstr-simple.o snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_INTERWAVE) += snd-ainstr-iw.o snd-ainstr-gf1.o snd-ainstr-simple.o
obj-$(CONFIG_SND_ALSA_INTERWAVE_STB) += snd-ainstr-iw.o snd-ainstr-gf1.o snd-ainstr-simple.o
obj-$(CONFIG_SND_ALSA_OPTI92X_AD1848) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_OPTI92X_CS4231) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_OPTI93X) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_SB8) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_SB16) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_SBAWE) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_WAVEFRONT) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_ALS4000) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_CMIPCI) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_CS4281) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_ES1938) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_FM801) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_SONICVIBES) += snd-ainstr-fm.o
obj-$(CONFIG_SND_ALSA_TRIDENT) += snd-ainstr-simple.o
obj-$(CONFIG_SND_ALSA_YMFPCI) += snd-ainstr-fm.o

obj-m := $(sort $(obj-m))

include $(TOPDIR)/Rules.make

snd-ainstr-fm.o: $(snd-ainstr-fm-objs)
	$(LD) $(LD_RFLAG) -r -o $@ $(snd-ainstr-fm-objs)

snd-ainstr-simple.o: $(snd-ainstr-simple-objs)
	$(LD) $(LD_RFLAG) -r -o $@ $(snd-ainstr-simple-objs)

snd-ainstr-gf1.o: $(snd-ainstr-gf1-objs)
	$(LD) $(LD_RFLAG) -r -o $@ $(snd-ainstr-gf1-objs)

snd-ainstr-iw.o: $(snd-ainstr-iw-objs)
	$(LD) $(LD_RFLAG) -r -o $@ $(snd-ainstr-iw-objs)
