patch-2.1.23 linux/drivers/sbus/audio/Makefile

Next file: linux/drivers/sbus/audio/amd7930.c
Previous file: linux/drivers/sbus/audio/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.22/linux/drivers/sbus/audio/Makefile linux/drivers/sbus/audio/Makefile
@@ -0,0 +1,36 @@
+#
+# Makefile for the linux kernel.
+#
+# Note! Dependencies are done automagically by 'make dep', which also
+# removes any old dependencies. DON'T put your own dependencies here
+# unless it's something special (ie not a .c file).
+#
+# Note 2! The CFLAGS definitions are now in the main makefile...
+
+#
+# sbus audio drivers
+#
+
+O_TARGET := sparcaudio.o
+O_OBJS   :=
+M_OBJS   :=
+
+ifeq ($(CONFIG_SPARCAUDIO_AMD7930),y)
+M=y
+O_OBJS += amd7930.o
+else
+  ifeq ($(CONFIG_SPARCAUDIO_AMD7930),m)
+  MM=y
+  M_OBJS += amd7930.o
+  endif
+endif
+
+ifdef M
+O_OBJS += audio.o
+else
+  ifdef MM
+  M_OBJS += audio.o
+  endif
+endif
+
+include $(TOPDIR)/Rules.make

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