From 9ff2033e936689135210989a5fee057a4a13527e Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 13 Mar 2025 22:52:49 +0100 Subject: Add a title and a main screens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit adds the skeleton for having a title and a main screen. For now the title menu doesn't do much, as the selection is simply ignored, but at least it already knows how to cycle between these two states. Signed-off-by: Miquel Sabaté Solà --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4130ebf..cd212d1 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,9 @@ endif CC65 ?= cl65 CCOPTS ?= --target nes +ifeq "$(DEBUG)" "1" +CCOPTS += -g -Ln out/labels.txt +endif .PHONY: all all: clean deps build @@ -29,10 +32,16 @@ build: build-full build-partial .PHONY: build-full build-full: + $(Q) rm -f config/generated.s + $(Q) touch config/generated.s + $(E) " CC jetpac (full)" $(Q) $(CC65) $(CCOPTS) src/jetpac.s -C config/nrom.cfg -o out/jetpac.nes .PHONY: build-partial build-partial: + $(Q) rm -f config/generated.s + $(Q) echo "PARTIAL = 1" >> config/generated.s + $(E) " CC jetpac (partial)" - $(Q) $(CC65) $(CCOPTS) src/jetpac.s -C config/nrom.cfg --asm-define PARTIAL=1 -o out/partial.nes + $(Q) $(CC65) $(CCOPTS) src/jetpac.s -C config/nrom.cfg -Wa -DPARTIAL=1 -o out/partial.nes -- cgit v1.2.3