Add debug makefile targets (#2)

Thanks to Expo
This commit is contained in:
ExpoSeed 2020-11-17 02:44:30 -06:00 committed by GitHub
parent 6422164d31
commit 549381f336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ MAKEFLAGS += --no-print-directory
# Secondary expansion is required for dependency variables in object rules.
.SECONDEXPANSION:
.PHONY: all rom clean compare tidy tools mostlyclean clean-tools $(TOOLDIRS) berry_fix libagbsyscall modern
.PHONY: all rom clean compare tidy tools mostlyclean clean-tools $(TOOLDIRS) berry_fix libagbsyscall modern debug modern_debug
infoshell = $(foreach line, $(shell $1 | sed "s/ /__SPACE__/g"), $(info $(subst __SPACE__, ,$(line))))
@ -339,3 +339,7 @@ berry_fix:
libagbsyscall:
@$(MAKE) -C libagbsyscall TOOLCHAIN=$(TOOLCHAIN)
debug: ; @$(MAKE) DDEBUG=1 DINFO=1
modern_debug: ; @$(MAKE) MODERN=1 DDEBUG=1 DINFO=1