summaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
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.housekeeping
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.housekeeping')
-rw-r--r--src/Makefile.housekeeping3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index 7c3c4bbf..497e69e7 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -226,7 +226,8 @@ TGT_MAKEROM_FLAGS = $(strip $(MAKEROM_FLAGS_$(TGT_ROM_NAME)) \
#
COMMA := ,
DEBUG_LIST = $(subst $(COMMA), ,$(DEBUG))
-DEBUG_OBJ_BASE = $(word 1,$(subst :, ,$(1))).dbg$(word 2,$(subst :, ,$(1)))
+DEBUG_OBJ_LEVEL = $(firstword $(word 2,$(subst :, ,$(1))) 1)
+DEBUG_OBJ_BASE = $(word 1,$(subst :, ,$(1))).dbg$(call DEBUG_OBJ_LEVEL,$(1))
DEBUG_OBJ = $(BIN)/$(call DEBUG_OBJ_BASE,$(1)).o
DEBUG_ORIG_OBJ = $(BIN)/$(word 1,$(subst :, ,$(1))).o
DEBUG_OBJS = $(foreach D,$(DEBUG_LIST),$(call DEBUG_OBJ,$(D)))