diff options
author | Joshua Oreman | 2009-10-15 20:07:20 +0200 |
---|---|---|
committer | Marty Connor | 2009-10-15 20:07:20 +0200 |
commit | 3fa277920804b056ce72fd9ba0074a7ff7c871fa (patch) | |
tree | 9c6ccba6fb1b7c978e8f87f2d6b0bd0fa4d0c51f /src/Makefile.housekeeping | |
parent | [3c90x] Fix a3c90x_close() and a3c90x_remove() methods. (diff) | |
download | ipxe-3fa277920804b056ce72fd9ba0074a7ff7c871fa.tar.gz ipxe-3fa277920804b056ce72fd9ba0074a7ff7c871fa.tar.xz ipxe-3fa277920804b056ce72fd9ba0074a7ff7c871fa.zip |
[build] Fix DEBUG builds for filenames with hyphens
Debug builds for filenames with hyphens such as:
$ make bin/via-rhine.dsk DEBUG=via-rhine
fail with:
[BUILD] bin/via-rhine.dbg1.o
<command-line>: error: missing whitespace after the macro name
make: *** [bin/via-rhine.dbg1.o] Error 1
This is because "-" is not a legal character in C identifiers, and
gcc rejects "-Ddebug_via-rhine=1" as an argument.
Signed-off-by: Daniel Verkamp <daniel@drv.nu>
Signed-off-by: Joshua Oreman <oremanj@rwcr.net>
Signed-off-by: Marty Connor <mdc@etherboot.org>
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r-- | src/Makefile.housekeeping | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index df2a6201..e83a3e52 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -410,7 +410,7 @@ endif # COMPILE_c = $(CC) $(CFLAGS) $(CFLAGS_c) $(OBJ_CFLAGS) RULE_c = $(Q)$(COMPILE_c) -c $< -o $@ $(POST_O) -RULE_c_to_dbg%.o = $(Q)$(COMPILE_c) -Ddebug_$(OBJECT)=$* -c $< -o $@ $(POST_O) +RULE_c_to_dbg%.o = $(Q)$(COMPILE_c) -Ddebug_$(subst -,_,$(OBJECT))=$* -c $< -o $@ $(POST_O) RULE_c_to_c = $(Q)$(COMPILE_c) -E -c $< > $@ RULE_c_to_s = $(Q)$(COMPILE_c) -S -g0 -c $< -o $@ |