summaryrefslogtreecommitdiff
path: root/Rules.make
diff options
context:
space:
mode:
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-05-12 05:54:21 -0500
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2002-05-12 05:54:21 -0500
commit0633cab8fcccf39ed562525d58355b166c11c9b8 (patch)
tree189d68a2c47a8092b85e6bc479c49d6158eeb353 /Rules.make
parent9ce04433847512f9f9b38553cbac1c4bd0a22bef (diff)
Rules.make: Remove special rule for $(export-objs)
We can now remove the extra rule for $(export-objs) and instead just use $(export-objs): export_flags := -DEXPORT_SYMTAB to set a variable $(export_flags) for targets listed in $(export-objs)
Diffstat (limited to 'Rules.make')
-rw-r--r--Rules.make9
1 files changed, 4 insertions, 5 deletions
diff --git a/Rules.make b/Rules.make
index d812f892f2c1..b75053e41139 100644
--- a/Rules.make
+++ b/Rules.make
@@ -53,7 +53,9 @@ ALL_SUB_DIRS := $(sort $(subdir-y) $(subdir-m) $(subdir-n) $(subdir-))
# Common rules
#
-c_flags = $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$@) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F)))
+# export_flags will be set to -DEXPORT_SYMBOL for objects in $(export-objs)
+
+c_flags = $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$@) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(export_flags)
cmd_cc_s_c = $(CC) $(c_flags) -S $< -o $@
@@ -311,11 +313,8 @@ endif # CONFIG_MODVERSIONS
ifneq "$(strip $(export-objs))" ""
-cmd_cc_o_c_export = $(CC) $(c_flags) -DEXPORT_SYMTAB -c -o $@ $<
-
$(export-objs): $(TOPDIR)/include/linux/modversions.h
-$(export-objs): %.o: %.c dummy
- $(call if_changed,cmd_cc_o_c_export)
+$(export-objs): export_flags := -DEXPORT_SYMTAB
endif