#
# Makefile for ALSA low level driver (Linux version)
# Copyright (c) 1994-98 by Jaroslav Kysela <perex@suse.cz>
#

TOPDIR   = ../..

include  $(TOPDIR)/Makefile.conf
include  $(TOPDIR)/cards.config

TARGETS = $(SNDVERSIONS)
ifeq (1,$(CONFIG_SND_TEA6330T))
TARGETS += $(TOPDIR)/modules/snd-i2c.o \
	   $(TOPDIR)/modules/snd-tea6330t.o
EXPORTS += i2c.o tea6330t.o
endif

I2C      = i2c.o
TEA6330T = tea6330t.o

include  $(TOPDIR)/Rules.make

all: $(TARGETS)

include  $(TOPDIR)/Rules1.make

$(TOPDIR)/modules/snd-i2c.o: .depend $(SNDVERSIONS) $(I2C)
	$(LINKER) -o $@ $(I2C)

$(TOPDIR)/modules/snd-tea6330t.o: .depend $(SNDVERSIONS) $(TEA6330T)
	$(LINKER) -o $@ $(TEA6330T)

gcompile: $(TARGETS)

clean:
	rm -f .depend *.o *.orig ultra.map ultra.map? *~
	rm -f core $(SNDVERSIONS) $(SYMFILES)

.depend: $(SYMFILES)
	$(CPP) $(COPTS) $(INCLUDE) *.c > .depend

dep:	.depend

dummy:

#
# include a dependency file if one exists
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif
