patch-2.4.4 linux/drivers/tc/Makefile
Next file: linux/drivers/usb/dc2xx.c
Previous file: linux/drivers/sound/ymfpci_image.h
Back to the patch index
Back to the overall index
- Lines: 58
- Date:
Fri Apr 13 20:26:07 2001
- Orig file:
v2.4.3/linux/drivers/tc/Makefile
- Orig date:
Fri Jun 25 17:38:40 1999
diff -u --recursive --new-file v2.4.3/linux/drivers/tc/Makefile linux/drivers/tc/Makefile
@@ -7,27 +7,36 @@
#
# Note 2! The CFLAGS definitions are now in the main makefile...
-SUB_DIRS :=
-MOD_SUB_DIRS :=
-ALL_SUB_DIRS :=
-
-L_TARGET := tc.a
-L_OBJS := tc.o
-
-# Nasty trick as nobody references tcsyms.o, but we still want it linked.
-# Stolen from pci Makefile
-ifeq ($(CONFIG_MODULES),y)
-O_TARGET = tc_syms.o
-OX_OBJS = tcsyms.o
-O_OBJS = tc.o
-L_OBJS := tc_syms.o
-else
-L_OBJS := tc.o
-endif
-
-ifdef CONFIG_ZS
-L_OBJS += zs.o
-endif
+# All of the (potential) objects that export symbols.
+# This list comes from 'grep -l EXPORT_SYMBOL *.[hc]'.
+
+export-objs := tc.o
+
+# Object file lists.
+
+obj-y :=
+obj-m :=
+obj-n :=
+obj- :=
+
+obj-$(CONFIG_TC) += tc.o
+obj-$(CONFIG_ZS) += zs.o
+obj-$(CONFIG_VT) += lk201.o lk201-map.o lk201-remap.o
+
+# Files that are both resident and modular: remove from modular.
+
+obj-m := $(filter-out $(obj-y), $(obj-m))
+
+# Translate to Rules.make lists.
+
+L_TARGET := tc.a
+
+L_OBJS := $(sort $(filter-out $(export-objs), $(obj-y)))
+LX_OBJS := $(sort $(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
+lk201-map.c: lk201-map.map
+ loadkeys --mktable lk201-map.map > lk201-map.c
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)