patch-pre2.0.3 linux/drivers/char/Makefile

Next file: linux/drivers/char/keyboard.c
Previous file: linux/drivers/char/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.2/linux/drivers/char/Makefile linux/drivers/char/Makefile
@@ -127,10 +127,14 @@
 M = y
 endif
 
-ifdef CONFIG_SOFT_WATCHDOG
-L_OBJS += softdog.o
+ifeq ($(CONFIG_SOFT_WATCHDOG),y)
 M = y
-# This is not modularized, so if configured then "misc.c" will be resident
+L_OBJS += softdog.o
+else
+  ifeq ($(CONFIG_SOFT_WATCHDOG),m)
+  M_OBJS += softdog.o
+  MM = m
+  endif   
 endif
 
 ifdef CONFIG_SUN_MOUSE

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this