Update of /cvsroot/linux-vax/kernel-2.5
In directory sc8-pr-cvs1:/tmp/cvs-serv30843
Modified Files:
Rules.make
Log Message:
New way of generating compiler listings - fits better with current kbuild
Index: Rules.make
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.5/Rules.make,v
retrieving revision 1.1.1.10
retrieving revision 1.9
diff -u -r1.1.1.10 -r1.9
--- Rules.make 2 Jan 2003 12:58:13 -0000 1.1.1.10
+++ Rules.make 7 Jan 2003 00:30:56 -0000 1.9
@@ -52,6 +52,9 @@
# Common rules
#
+# define listing_o_c to get compiler listings from .c -> .o compilations
+listing_o_c = -Wa,-adnhls=$(subst $(comma),_,$(subst -,_,$(*F))).lst -g
+
# export_flags will be set to -DEXPORT_SYMBOL for objects in $(export-objs)
c_flags = $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$(*F).o) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(export_flags)
@@ -66,7 +69,7 @@
%.i: %.c dummy
$(call if_changed,cmd_cc_i_c)
-cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $<
+cmd_cc_o_c = $(CC) $(c_flags) $(listing_o_c) -c -o $@ $<
%.o: %.c dummy
$(call if_changed,cmd_cc_o_c)
|