#
# 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
SYMFILES = i2c_export.c tea6330t_export.c
endif

I2C      = i2c.o i2c_export.o
TEA6330T = tea6330t.o tea6330t_export.o

include  $(TOPDIR)/Rules.make

all: $(TARGETS)
	@echo
	@echo "ALSA lowlevel modules were sucessfully compiled."
	@echo

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
