From bc87587330e9265b23861d0f763fdb1612e5f632 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 22 Sep 2023 14:05:19 +0200 Subject: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the basic structure and the first example: managing controller input. Signed-off-by: Miquel Sabaté Solà --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e9d56bf --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +CC65 ?= cl65 +CCOPTS ?= --verbose --target nes + +## +# General targets. + +.PHONY: all +all: clean deps build + +.PHONY: clean +clean: + @rm -rf out + @mkdir out + +.PHONY: deps +deps: + @which $(CC65) >/dev/null 2>/dev/null || (echo "ERROR: $(CC65) not found." && false) + +.PHONY: build +build: out/input.nes + +out/input.nes: examples/input.s examples/wrapper.s + $(CC65) $(CCOPTS) examples/input.s examples/wrapper.s -o $@ -- cgit v1.2.3