diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2023-09-22 14:05:19 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-02-04 20:58:02 +0100 |
| commit | bc87587330e9265b23861d0f763fdb1612e5f632 (patch) | |
| tree | 2576cea91325dc3739c9c494e20f6ceb47faefb4 /Makefile | |
| download | code.nes-bc87587330e9265b23861d0f763fdb1612e5f632.tar.gz code.nes-bc87587330e9265b23861d0f763fdb1612e5f632.zip | |
Initial commit
Add the basic structure and the first example: managing controller
input.
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
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 $@ |
