patch-2.1.41 linux/drivers/sound/Makefile

Next file: linux/drivers/sound/Readme
Previous file: linux/drivers/sound/Config.std
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.40/linux/drivers/sound/Makefile linux/drivers/sound/Makefile
@@ -4,7 +4,33 @@
 # parent makes. (hopefully)
 #
 #
+#
+#
+ifeq ($(ARCH),m68k)
+  L_TARGET := sound.a
+  L_OBJS   :=
+  M_OBJS   :=
+  ifeq ($(CONFIG_DMASOUND),y)
+    L_OBJS += dmasound.o
+  else
+    ifeq ($(CONFIG_DMASOUND),m)
+    M_OBJS += dmasound.o
+    endif
+  endif
+
+  include $(TOPDIR)/Rules.make
+
+  clean:
+	rm -f core *.o *.a *.s
+
+  # dummy rule to keep 'make xconfig' happy
+  mkscript:
+
+# More dummy targets for make [menu]config
+mkscript:
+kernelconfig:
 
+else
 .PHONY: dummy
 SUB_DIRS	= lowlevel
 VERSION		= `head -1 .version`
@@ -36,6 +62,7 @@
 
 install:	sound.o
 	cp sound.o $(MODULEDIR)
+else
 endif
 
 .c.o:
@@ -159,5 +186,6 @@
 #
 ifeq (.depend,$(wildcard .depend))
 include .depend
+endif
 endif
 endif

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