summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-01 15:00:00 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-01 15:00:00 -0400
commit935dbe6f3815e2daaba88c69cb087c8ec6ad1844 (patch)
tree4b9262ac18a32a9db67f6811e066bf82edbcacfc /Makefile
downloadnes-input-test-935dbe6f3815e2daaba88c69cb087c8ec6ad1844.tar.gz
nes-input-test-935dbe6f3815e2daaba88c69cb087c8ec6ad1844.zip
initial framework for creating roms
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1c24c9e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+NAME = test
+OBJS = test.o
+
+CC = wla-6502
+LD = wlalink
+
+CFLAGS =
+LDFLAGS =
+
+all: $(NAME).nes
+
+$(NAME).nes: $(NAME).rom header.bin
+ @cat header.bin $< > $@
+
+$(NAME).rom: $(OBJS) linkfile
+ @$(LD) $(LDFLAGS) linkfile $@
+
+%.o: %.s
+ @$(CC) $(CFLAGS) -o $<
+
+clean:
+ @rm -f $(OBJS) $(NAME).rom $(NAME).nes
+
+.PHONY: all clean