patch-2.1.105 linux/drivers/sound/lowlevel/Makefile
Next file: linux/drivers/sound/lowlevel/init.c
Previous file: linux/drivers/sound/lowlevel/Config.in
Back to the patch index
Back to the overall index
- Lines: 88
- Date:
Sun Jun 7 10:37:41 1998
- Orig file:
v2.1.104/linux/drivers/sound/lowlevel/Makefile
- Orig date:
Mon Jan 5 01:41:01 1998
diff -u --recursive --new-file v2.1.104/linux/drivers/sound/lowlevel/Makefile linux/drivers/sound/lowlevel/Makefile
@@ -1,67 +1,24 @@
-all: lowlevel.o
-
-ALLOBJS = init.o aci.o awe_wave.o aedsp16.o
-OBJS = init.o
-
-ifeq ($(CONFIG_LOWLEVEL_SOUND),y)
-ifeq ($(CONFIG_ACI_MIXER),y)
- OBJS := $(OBJS) aci.o
-endif
-ifeq ($(CONFIG_AWE32_SYNTH),y)
-OBJS := $(OBJS) awe_wave.o
-else
- ifeq ($(CONFIG_AWE32_SYNTH),m)
- MX_OBJS := $(MX_OBJS) awe_wave.o
- endif
-endif
-ifeq ($(CONFIG_AEDSP16),y)
- OBJS := $(OBJS) aedsp16.o
-else
- ifeq ($(CONFIG_AEDSP16),m)
- MX_OBJS := $(MX_OBJS) aedsp16.o
- endif
-endif
-endif
-
-ifndef TOPDIR
-TOPDIR=/usr/src/linux
-endif
-
-lowlevel.o: $(OBJS)
- $(LD) -r -o lowlevel.o $(OBJS)
-
-module: manual_config.h
- rm -f lowlevel.o
- make CFLAGS="$(CFLAGS) -DLOWLEVEL_MODULE" $(ALLOBJS)
- $(LD) -r -o lowlevel.o $(ALLOBJS)
- touch module
-
-manual_config.h:
- @echo You should create `pwd`/manual_config.h.
- @echo See `pwd`/README for more info.
- @exit 1
+# Makefile for the Linux low-level sound card drivers.
+#
+# 11 Feb 1998, Michael Elizabeth Chastain, <mailto:mec@shout.net>
+# Rewritten to use lists instead of if statements.
-clean:
- rm -f core x y z *~ *.o module .depend
+export-objs := soundlow.o
-dep:
- $(CPP) -M $(CFLAGS) -I. *.c > .depend
+list-y :=
+list-m :=
+list-n :=
+list- :=
+
+obj-$(CONFIG_SOUND_OSS) += soundlow.o
+obj-$(CONFIG_ACI_MIXER) += aci.o
+obj-$(CONFIG_AEDSP16) += aedsp16.o
+obj-$(CONFIG_AWE32_SYNTH) += awe_wave.o
+
+O_TARGET := lowlevel.o
+O_OBJS := $(sort $(filter-out $(export-objs), $(obj-y)))
+OX_OBJS := $(sort $(filter $(export-objs), $(obj-y)))
+M_OBJS := $(sort $(filter-out $(export-objs), $(obj-m)))
+MX_OBJS := $(sort $(filter $(export-objs), $(obj-m)))
-ifndef HOSTCC
-#
-# Running outside the kernel build.
-#
-CC = gcc
-HOSTCC = gcc
-CFLAGS = -O2 -D__KERNEL__ -DMODULE -I/usr/src/linux/include -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -m486
-USE_DEPEND=y
-else
include $(TOPDIR)/Rules.make
-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