summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorU-Fish-PC\Daniel <corrnondacqb@yahoo.com>2014-04-09 13:26:08 -0400
committerU-Fish-PC\Daniel <corrnondacqb@yahoo.com>2014-04-09 13:26:08 -0400
commit0c48819ec733c30174e9eb57d3f4065eb503d892 (patch)
tree78c20f29f50ab9e1f495083e272b43dc2f5e870a /Makefile
Initial commit
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