mirror of
https://github.com/ipxe/ipxe
synced 2025-12-08 18:30:28 +03:00
Allow truly arbitrary debug levels to be specified via DEBUG=
This commit is contained in:
@@ -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.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user