patch-2.4.0-prerelease linux/drivers/net/hamradio/Makefile

Next file: linux/drivers/net/hamradio/bpqether.c
Previous file: linux/drivers/net/gmac.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test12/linux/drivers/net/hamradio/Makefile linux/drivers/net/hamradio/Makefile
@@ -11,10 +11,6 @@
 #
 
 
-SUB_DIRS     := 
-MOD_SUB_DIRS := $(SUB_DIRS)
-ALL_SUB_DIRS := $(SUB_DIRS) soundmodem
-
 O_TARGET := hamradio.o
 
 export-objs	= hdlcdrv.o
@@ -34,22 +30,10 @@
 obj-$(CONFIG_BAYCOM_EPP)	+= baycom_epp.o		hdlcdrv.o
 obj-$(CONFIG_SOUNDMODEM)	+= 			hdlcdrv.o
 
+subdir-$(CONFIG_SOUNDMODEM) += soundmodem
+
 ifeq ($(CONFIG_SOUNDMODEM),y)
-SUB_DIRS += soundmodem
-O_OBJS += soundmodem/soundmodem.o
-else
-  ifeq ($(CONFIG_SOUNDMODEM),m)
-  MOD_SUB_DIRS += soundmodem
-  endif
+obj-y += soundmodem/soundmodem.o
 endif
-
-# Files that are both resident and modular: remove from modular.
-obj-m		:= $(filter-out $(obj-y), $(obj-m))
-
-# Translate to Rules.make lists.
-O_OBJS		:= $(filter-out $(export-objs), $(obj-y))
-OX_OBJS		:= $(filter     $(export-objs), $(obj-y))
-M_OBJS		:= $(sort $(filter-out $(export-objs), $(obj-m)))
-MX_OBJS		:= $(sort $(filter     $(export-objs), $(obj-m)))
 
 include $(TOPDIR)/Rules.make

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)