aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-05-06 16:06:20 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-05-06 16:22:48 +0200
commit111be468f0c78a572731ba1a273f8166dcdf7b1c (patch)
treefc6ebb97f580dafb9f949627d7720b0c86818922 /Makefile
parentee183ebbdfdf407044948aefa06f8a131dd23213 (diff)
downloadcode.nes-111be468f0c78a572731ba1a273f8166dcdf7b1c.tar.gz
code.nes-111be468f0c78a572731ba1a273f8166dcdf7b1c.zip
rand: Add an example with PRNG
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 930fc0b..e7e7901 100644
--- a/Makefile
+++ b/Makefile
@@ -18,14 +18,14 @@ clean:
@rm -rf out
@find . -type f -name "*.o" -delete
@find . -type f -name "*.nes" -delete
- @mkdir -p out/basics out/scroll out/space out/fx
+ @mkdir -p out/basics out/scroll out/space out/fx out/rand
.PHONY: deps
deps:
@which $(CC65) >/dev/null 2>/dev/null || (echo "ERROR: $(CC65) not found." && false)
.PHONY: build
-build: basics space scroll fx
+build: basics space scroll fx rand
.PHONY: basics
basics:
@@ -73,3 +73,8 @@ scroll:
fx:
$(E) " CC fx/blink"
$(Q) $(CC65) $(CCOPTS) fx/blink.s -C config/mmc3.cfg -o out/fx/blink.nes
+
+.PHONY: rand
+rand:
+ $(E) " CC rand/rand"
+ $(Q) $(CC65) $(CCOPTS) rand/rand.s -C config/nrom.cfg -o out/rand/rand.nes