summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorMichael Brown2007-01-18 20:00:09 +0100
committerMichael Brown2007-01-18 20:00:09 +0100
commit37f1b1258784add1ea9ebec6a99aa07711908a13 (patch)
tree8c57d74dbdf3e351cdd4b178d7c59f12c2a78c8b /src/Makefile
parentDeclaring the CPU architecture in the middle of an assembly file is (diff)
downloadipxe-37f1b1258784add1ea9ebec6a99aa07711908a13.tar.gz
ipxe-37f1b1258784add1ea9ebec6a99aa07711908a13.tar.xz
ipxe-37f1b1258784add1ea9ebec6a99aa07711908a13.zip
Allow truly arbitrary debug levels to be specified via DEBUG=
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index c75e95b1..7c8af3fd 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -116,8 +116,7 @@ $(BIN)/%.flags :
#
COMPILE_c = $(CC) $(CFLAGS) $(CFLAGS_c) $(OBJ_CFLAGS)
RULE_c = $(COMPILE_c) -c $< -o $@
-RULE_c_to_dbg.o = $(COMPILE_c) -Ddebug_$(OBJECT) -c $< -o $@
-RULE_c_to_dbg2.o = $(COMPILE_c) -Ddebug_$(OBJECT)=2 -c $< -o $@
+RULE_c_to_dbg%.o = $(COMPILE_c) -Ddebug_$(OBJECT)=$* -c $< -o $@
RULE_c_to_c = $(COMPILE_c) -E -c $< > $@
RULE_c_to_s = $(COMPILE_c) -S -g0 -c $< -o $@
@@ -126,7 +125,7 @@ ASSEMBLE_S = $(AS) $(ASFLAGS)
RULE_S = $(PREPROCESS_S) $< | $(ASSEMBLE_S) -o $@
RULE_S_to_s = $(PREPROCESS_S) $< > $@
-DEBUG_TARGETS += dbg2.o dbg.o c s
+DEBUG_TARGETS += dbg%.o c s
# SRCDIRS lists all directories containing source files.
#