patch-2.1.28 linux/drivers/sound/lowlevel/Makefile

Next file: linux/drivers/sound/lowlevel/README.aedsp16
Previous file: linux/drivers/sound/lowlevel/Config.tmpl
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.27/linux/drivers/sound/lowlevel/Makefile linux/drivers/sound/lowlevel/Makefile
@@ -1,6 +1,6 @@
 all:	lowlevel.o
 
-ALLOBJS = init.o aci.o awe_wave.o
+ALLOBJS = init.o aci.o awe_wave.o aedsp16.o
 OBJS = init.o
 
 ifdef CONFIG_LOWLEVEL_SOUND
@@ -10,6 +10,9 @@
 ifdef CONFIG_AWE32_SYNTH
 OBJS := $(OBJS) awe_wave.o
 endif
+ifdef CONFIG_AEDSP16
+OBJS := $(OBJS) aedsp16.o
+endif
 endif
 
 lowlevel.o:	$(OBJS)
@@ -27,8 +30,20 @@
 	@exit 1
 
 clean:
-	rm -f core x y z *~ *.o module
+	rm -f core x y z *~ *.o module .depend
+
+dep:
+	$(CPP) -M $(CFLAGS) -I. *.c > .depend
 
 ifdef HOSTCC
 include $(TOPDIR)/Rules.make
+else
+USE_DEPEND=y
+endif
+
+ifdef USE_DEPEND
+# include a dependency file if one exists
+ifeq (.depend,$(wildcard .depend))
+include .depend
+endif
 endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov