diff options
author | Michael Brown | 2011-03-01 15:18:35 +0100 |
---|---|---|
committer | Michael Brown | 2011-03-01 15:18:35 +0100 |
commit | 3f13e3d5d2376c857d144da543c5ace12fc7c6fc (patch) | |
tree | 3e1065773862cbcda77c0f841eeb8a60ec8b7077 /src/Makefile.housekeeping | |
parent | [autoboot] Use a custom error number for "nothing to boot" (diff) | |
download | ipxe-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.housekeeping | 1 |
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 |