aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-04 20:43:46 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-04 20:43:46 -0400
commit8495ebe542903a4fb93f7bbb19fc4e53d050073b (patch)
tree6116daee630f84a1a59cf0aaaf6eef137cb5824b /Makefile
downloadnes-snake-8495ebe542903a4fb93f7bbb19fc4e53d050073b.tar.gz
nes-snake-8495ebe542903a4fb93f7bbb19fc4e53d050073b.zip
project skeleton
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..316e9fb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,27 @@
+NAME = snake
+OBJS = snake.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 $<
+
+run: $(NAME).nes
+ fceux $(NAME).nes
+
+clean:
+ @rm -f $(OBJS) $(NAME).rom $(NAME).nes
+
+.PHONY: all clean