|
@@ -533,14 +533,14 @@ endif
|
533
|
533
|
#
|
534
|
534
|
COMPILE_c = $(CC) $(CFLAGS) $(CFLAGS_c) $(OBJ_CFLAGS)
|
535
|
535
|
RULE_c = $(Q)$(COMPILE_c) -c $< -o $@ $(POST_O)
|
536
|
|
-RULE_c_to_dbg%.o = $(Q)$(COMPILE_c) -Ddebug_$(subst -,_,$(OBJECT))=$* -c $< -o $@ $(POST_O)
|
|
536
|
+RULE_c_to_dbg%.o = $(Q)$(COMPILE_c) -DDBGLVL_MAX=$* -c $< -o $@ $(POST_O)
|
537
|
537
|
RULE_c_to_c = $(Q)$(COMPILE_c) -E -c $< > $@
|
538
|
538
|
RULE_c_to_s = $(Q)$(COMPILE_c) -S -g0 -c $< -o $@
|
539
|
539
|
|
540
|
540
|
PREPROCESS_S = $(CPP) $(CFLAGS) $(CFLAGS_S) $(OBJ_CFLAGS)
|
541
|
541
|
ASSEMBLE_S = $(AS) $(ASFLAGS)
|
542
|
542
|
RULE_S = $(Q)$(PREPROCESS_S) $< | $(ASSEMBLE_S) -o $@
|
543
|
|
-RULE_S_to_dbg%.o = $(Q)$(PREPROCESS_S) -Ddebug_$(subst -,_,$(OBJECT))=$* $< | $(ASSEMBLE_S) -o $@
|
|
543
|
+RULE_S_to_dbg%.o = $(Q)$(PREPROCESS_S) -DDBGLVL_MAX=$* $< | $(ASSEMBLE_S) -o $@
|
544
|
544
|
RULE_S_to_s = $(Q)$(PREPROCESS_S) $< > $@
|
545
|
545
|
|
546
|
546
|
DEBUG_TARGETS += dbg%.o c s
|