From 57fde0bb5184371da33b212de6731c6e6829349f Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 5 Dec 2023 15:37:35 +0100 Subject: Implemented both parts of the second day MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 15c6c3c..37723c5 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,8 @@ CC65 ?= cl65 CCOPTS ?= --target nes QUIET = @echo ' ' CC65 $@; +SOURCES = $(shell find src/ -type f -name '*.s' -printf "%f\n") +ROMS = $(SOURCES:%.s=out/%.nes) .PHONY: all all: clean deps build @@ -18,7 +20,7 @@ deps: @which $(CC65) >/dev/null 2>/dev/null || (echo "ERROR: $(CC65) not found." && false) .PHONY: build -build: out/1.nes +build: $(ROMS) out/%.nes: src/%.s $(QUIET) $(CC65) $(CCOPTS) $< -o $@ -- cgit v1.2.3