summaryrefslogtreecommitdiff
path: root/eonticket/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'eonticket/Makefile')
-rw-r--r--eonticket/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/eonticket/Makefile b/eonticket/Makefile
new file mode 100644
index 0000000..86be2c4
--- /dev/null
+++ b/eonticket/Makefile
@@ -0,0 +1,24 @@
+all: 00-C000.z80
+
+%.tx: %.asm
+ python ../scripts/charmap.py $< $@
+
+00-C000.o: 00-C000.tx eonticket.bin
+ rgbasm -o $@ $<
+eonticket.o: eonticket.tx
+ rgbasm -o $@ $<
+
+%.gbc: %.o
+ rgblink -o $@ $<
+
+# hack to use RGBDS for something other than its intended purpose
+00-C000.z80: 00-C000.gbc
+ dd if=$< of=$@ bs=1 skip=256 count=7074
+# cmp -b ../z80/$@ $@
+eonticket.z80: eonticket.gbc
+ dd if=$< of=$@ bs=1 skip=256 count=631
+eonticket.bin: eonticket.z80
+ python ../scripts/scriptchecksum.py $< $@
+
+clean:
+ rm -f *.tx *.o *.gbc *.z80 *.bin \ No newline at end of file