From 549381f336a8053149f13b50944ce858b031873d Mon Sep 17 00:00:00 2001 From: ExpoSeed <43502820+ExpoSeed@users.noreply.github.com> Date: Tue, 17 Nov 2020 02:44:30 -0600 Subject: [PATCH] Add debug makefile targets (#2) Thanks to Expo --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 52000c570a..cee566d78d 100644 --- a/Makefile +++ b/Makefile @@ -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