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

TOPDIR  = ..

include $(TOPDIR)/Makefile.conf

TARGETS = $(TOPDIR)/modules/snd-detect.o
OBJECTS = detect.o gus.o es1688.o sb.o

include $(TOPDIR)/Rules.make

all: $(TARGETS)
	@echo
	@echo "ALSA detection device were sucessfully compiled."
	@echo

$(TOPDIR)/modules/snd-detect.o: .depend $(OBJECTS)
	$(LINKER) -o $@ $(OBJECTS)

gcompile: $(TARGETS)

insert: $(TARGETS) remove
	sync		# for sure - debug versions may hang
	/sbin/insmod snd-detect.o
	/sbin/lsmod

remove:
	sync		# for sure - debug versions may hang
	- /sbin/rmmod snd-detect
	- /sbin/lsmod

clean:
	rm -f core .depend *.o *.orig snd.map snd.map? *~

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

dep:	.depend

dummy:

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