summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100755
index 0000000..d11876c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+.PHONY: all compare clean
+
+ROMS := tcg.gbc
+OBJS := main.o
+
+all: tcg.gbc compare
+compare: baserom.gbc $(ROMS)
+ cmp $^
+
+%.o: %.asm
+ rgbasm -o $@ $<
+
+tcg.gbc: $(OBJS)
+ rgblink -o $@ $^
+ rgbfix -v $@
+
+clean:
+ rm -f $(ROMS)
+ rm -f $(OBJS) \ No newline at end of file