[levon@movementarian.org: [PATCH] define KBUILD_BASENAME for .i .s]

From: John Levon (levon@movementarian.org)
Date: Sun Mar 03 2002 - 17:37:26 EST


Keith Owens has OK'd this minor cleanup

thanks
john


attached mail follows:



Probably this really doesn't matter but ...

against 2.4.18

regards
john

--- Rules.make.old Thu Dec 31 18:05:20 1987
+++ Rules.make Thu Dec 31 18:05:59 1987
@@ -50,10 +50,10 @@
 #
 
 %.s: %.c
- $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$@) -S $< -o $@
+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) -S $< -o $@
 
 %.i: %.c
- $(CPP) $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$@) $< > $@
+ $(CPP) $(CFLAGS) $(EXTRA_CFLAGS) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) $< > $@
 
 %.o: %.c
        $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) -c -o $@ $<

-- 
I am a complete moron for forgetting about endianness. May I be
forever marked as such.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 07 2002 - 21:00:29 EST