summaryrefslogtreecommitdiffstats
path: root/src/Makefile.housekeeping
diff options
context:
space:
mode:
authorMichael Brown2011-03-01 15:18:35 +0100
committerMichael Brown2011-03-01 15:18:35 +0100
commit3f13e3d5d2376c857d144da543c5ace12fc7c6fc (patch)
tree3e1065773862cbcda77c0f841eeb8a60ec8b7077 /src/Makefile.housekeeping
parent[autoboot] Use a custom error number for "nothing to boot" (diff)
downloadipxe-3f13e3d5d2376c857d144da543c5ace12fc7c6fc.tar.gz
ipxe-3f13e3d5d2376c857d144da543c5ace12fc7c6fc.tar.xz
ipxe-3f13e3d5d2376c857d144da543c5ace12fc7c6fc.zip
[build] Allow DEBUG=... to affect builds of assembler source files
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r--src/Makefile.housekeeping1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index 0570f018..c7a54341 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -470,6 +470,7 @@ RULE_c_to_s = $(Q)$(COMPILE_c) -S -g0 -c $< -o $@
PREPROCESS_S = $(CPP) $(CFLAGS) $(CFLAGS_S) $(OBJ_CFLAGS)
ASSEMBLE_S = $(AS) $(ASFLAGS)
RULE_S = $(Q)$(PREPROCESS_S) $< | $(ASSEMBLE_S) -o $@
+RULE_S_to_dbg%.o = $(Q)$(PREPROCESS_S) -Ddebug_$(subst -,_,$(OBJECT))=$* $< | $(ASSEMBLE_S) -o $@
RULE_S_to_s = $(Q)$(PREPROCESS_S) $< > $@
DEBUG_TARGETS += dbg%.o c s