aboutsummaryrefslogtreecommitdiff
path: root/space/Makefile
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2023-10-24 17:40:19 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-02-04 20:58:36 +0100
commit149020464517ff3d021eef5ccd50d3939ad463e6 (patch)
tree056ec1919fe0c0d515e7a0a414916307b768ef84 /space/Makefile
parentbe2414f5b11b182998fca7e87712ff0502c8ee93 (diff)
downloadcode.nes-149020464517ff3d021eef5ccd50d3939ad463e6.tar.gz
code.nes-149020464517ff3d021eef5ccd50d3939ad463e6.zip
Lay out a proper structure for the project
Let's divide things by topic instead of a broad "examples" directory. This will allow for simple files to co-exist together with full-blown projects. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'space/Makefile')
-rw-r--r--space/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/space/Makefile b/space/Makefile
new file mode 100644
index 0000000..e38607c
--- /dev/null
+++ b/space/Makefile
@@ -0,0 +1,15 @@
+CC65 ?= cl65
+CCOPTS ?= --verbose --target nes
+
+.PHONY: all
+all: clean build
+
+.PHONY: clean
+clean:
+ @rm -f space.nes
+
+.PHONY: build
+build: space.nes
+
+%.nes: src/%.s
+ $(CC65) $(CCOPTS) $< -o $@