From bd0caeee2d7b5745503394cbb9d0ea0563c995c8 Mon Sep 17 00:00:00 2001 From: Cameron Hall Date: Tue, 16 Jan 2018 18:32:21 -0600 Subject: add debug target --- .travis.yml | 1 + Makefile | 5 +++-- config.mk | 7 +++++++ ruby_de_debug.sha1 | 1 + 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 ruby_de_debug.sha1 diff --git a/.travis.yml b/.travis.yml index 9a196819b..27e572c75 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,6 +31,7 @@ matrix: - make -j2 sapphire - make -j2 sapphire_rev1 - make -j2 sapphire_rev2 + - make -j2 ruby_debug_de COMPARE=0 - os: linux env: _="Formatting" addons: diff --git a/Makefile b/Makefile index 13c91f71d..21973a915 100644 --- a/Makefile +++ b/Makefile @@ -19,9 +19,9 @@ PREPROC := tools/preproc/preproc SCANINC := tools/scaninc/scaninc RAMSCRGEN := tools/ramscrgen/ramscrgen -ASFLAGS := -mcpu=arm7tdmi -I include --defsym $(GAME_VERSION)=1 --defsym REVISION=$(GAME_REVISION) --defsym $(GAME_LANGUAGE)=1 +ASFLAGS := -mcpu=arm7tdmi -I include --defsym $(GAME_VERSION)=1 --defsym REVISION=$(GAME_REVISION) --defsym $(GAME_LANGUAGE)=1 --defsym DEBUG=$(DEBUG) CC1FLAGS := -mthumb-interwork -Wimplicit -Wparentheses -Wunused -Werror -O2 -fhex-asm -CPPFLAGS := -I tools/agbcc/include -iquote include -nostdinc -undef -Werror -Wno-trigraphs -D $(GAME_VERSION) -D REVISION=$(GAME_REVISION) -D $(GAME_LANGUAGE) +CPPFLAGS := -I tools/agbcc/include -iquote include -nostdinc -undef -Werror -Wno-trigraphs -D $(GAME_VERSION) -D REVISION=$(GAME_REVISION) -D $(GAME_LANGUAGE) -D DEBUG=$(DEBUG) #### Files #### @@ -142,6 +142,7 @@ sapphire_rev1: ; @$(MAKE) --no-print-directory GAME_VERSION=SAPPHIRE GAME_REVISI sapphire_rev2: ; @$(MAKE) --no-print-directory GAME_VERSION=SAPPHIRE GAME_REVISION=2 ruby_de: ; @$(MAKE) --no-print-directory GAME_VERSION=RUBY GAME_LANGUAGE=GERMAN sapphire_de: ; @$(MAKE) --no-print-directory GAME_VERSION=SAPPHIRE GAME_LANGUAGE=GERMAN +ruby_de_debug: ; @$(MAKE) --no-print-directory GAME_VERSION=RUBY GAME_LANGUAGE=GERMAN DEBUG=1 #### Graphics Rules #### diff --git a/config.mk b/config.mk index 9f901658e..bdcf5aa7e 100644 --- a/config.mk +++ b/config.mk @@ -4,6 +4,7 @@ GAME_VERSION ?= RUBY GAME_REVISION ?= 0 GAME_LANGUAGE ?= ENGLISH +DEBUG ?= 0 COMPARE ?= 1 # Version @@ -42,3 +43,9 @@ else $(error unknown language $(GAME_LANGUAGE)) endif endif + +# Debug +ifeq ($(DEBUG), 1) + BUILD_NAME := $(BUILD_NAME)_debug +endif + diff --git a/ruby_de_debug.sha1 b/ruby_de_debug.sha1 new file mode 100644 index 000000000..4ecbf29a7 --- /dev/null +++ b/ruby_de_debug.sha1 @@ -0,0 +1 @@ +ca5e3d415c4b47353a73a616878ba833f3648b7a pokeruby_de_debug.gba -- cgit v1.2.3