patch-2.3.50 linux/drivers/zorro/Makefile

Next file: linux/drivers/zorro/proc.c
Previous file: linux/drivers/video/vgacon.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.49/linux/drivers/zorro/Makefile linux/drivers/zorro/Makefile
@@ -9,24 +9,17 @@
 # parent makefile.
 #
 
-SUB_DIRS     :=
-MOD_SUB_DIRS := $(SUB_DIRS)
-ALL_SUB_DIRS := $(SUB_DIRS)
-
 L_TARGET := zorro.a
 
-# Nasty trick as nobody references zorrosyms.o, but we still want it linked.
-ifeq ($(CONFIG_MODULES),y)
-O_TARGET = zorro_syms.o
-OX_OBJS  = zorrosyms.o
-O_OBJS   = zorro.o names.o
-L_OBJS   := zorro_syms.o
-else
-L_OBJS   := zorro.o names.o
-endif
+# Nasty trick as we need to link files with no references from the outside.
+O_TARGET := zorro_core.o
+L_OBJS   := zorro_core.o
+OX_OBJS   := zorro.o
 
 ifdef CONFIG_PROC_FS
-L_OBJS   += proc.o
+O_OBJS   += proc.o
 endif
+
+L_OBJS   += names.o
 
 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)