[build] Fix DEBUG builds for filenames with hyphens
commit3fa277920804b056ce72fd9ba0074a7ff7c871fa
authorJoshua Oreman <oremanj@rwcr.net>
Thu, 15 Oct 2009 18:07:20 +0000 (15 14:07 -0400)
committerMarty Connor <mdc@etherboot.org>
Thu, 15 Oct 2009 18:07:20 +0000 (15 14:07 -0400)
tree9c6ccba6fb1b7c978e8f87f2d6b0bd0fa4d0c51f
parent584e3782417051321d2537d71ac97aa29287cf1e
[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>
src/Makefile.housekeeping