summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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