aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2023-11-27 10:31:03 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-02-04 21:02:54 +0100
commitcee93625989b651cfe91387eabd0abd3f64a00df (patch)
treed1525bd15c191c2926ea1166263b249a8bbeb79c /Makefile
parent0e1839f48ada69b81f5879449d0e0fe435f851c5 (diff)
downloadcode.nes-cee93625989b651cfe91387eabd0abd3f64a00df.tar.gz
code.nes-cee93625989b651cfe91387eabd0abd3f64a00df.zip
scroll: Start with the scrolling examples
This is still work in progress but at least there's some basic structure to it. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c8ae5e7..e2d5006 100644
--- a/Makefile
+++ b/Makefile
@@ -11,14 +11,14 @@ clean:
@rm -rf out
@find . -type f -name "*.o" -delete
@find . -type f -name "*.nes" -delete
- @mkdir -p out/basics
+ @mkdir -p out/basics out/scroll
.PHONY: deps
deps:
@which $(CC65) >/dev/null 2>/dev/null || (echo "ERROR: $(CC65) not found." && false)
.PHONY: build
-build: basics space
+build: basics space scroll
.PHONY: basics
basics: unrom
@@ -36,3 +36,7 @@ unrom:
space:
@cd space && CC65=$(CC65) CCOPTS="$(CCOPTS)" $(MAKE)
@mv space/space.nes out/
+
+.PHONY: scroll
+scroll:
+ $(CC65) $(CCOPTS) scroll/level.s -o out/scroll/level.nes