summaryrefslogtreecommitdiff
path: root/eonticket/Makefile
diff options
context:
space:
mode:
authorHáčky <hatschky@gmail.com>2014-11-27 07:15:45 +0000
committerHáčky <hatschky@gmail.com>2014-11-27 07:15:45 +0000
commit319ed6d0e0266f5f6174a5acd929914db8cfae1d (patch)
tree76408d9cadcbed1e702efa8c44f4cf5e364b0a4d /eonticket/Makefile
parent17853b802692237d98f96d1a80caf2019f71753e (diff)
Code cleanup; preparation for Japanese Battle eHEADmaster
Diffstat (limited to 'eonticket/Makefile')
-rw-r--r--eonticket/Makefile49
1 files changed, 27 insertions, 22 deletions
diff --git a/eonticket/Makefile b/eonticket/Makefile
index 4644780..6492326 100644
--- a/eonticket/Makefile
+++ b/eonticket/Makefile
@@ -1,31 +1,36 @@
-all: 00-C000-de.z80 00-C000-en.z80
+all: 00-C000-DE.z80 00-C000-EN.z80 verify
+verify:
+ md5sum --check eonticket.md5
eonticket-%.tx: eonticket.asm
- python ../scripts/charmap.py $< $@
-%.tx: %.asm
- python ../scripts/charmap.py $< $@
-
-00-C000-%.o: 00-C000-%.asm 00-C000.tx eonticket-%.bin
- rgbasm -o $@ $<
-eonticket-%.o: eonticket-%.asm eonticket-%.tx
+ python ../scripts/regionalize.py $< $@ $* $*
+eonticket-%.o: eonticket-%.tx
rgbasm -o $@ $<
+eonticket-%.gbc: eonticket-%.o
+ rgblink -o $@ $<
+eonticket-%.bin: eonticket-%.gbc
+ python ../scripts/stripgbc.py $< $@
+eonticket-%.mev: eonticket-%.bin
+ python ../scripts/checksum.py $< $@
-%.gbc: %.o
+prologue-%.tx: prologue.asm
+ python ../scripts/regionalize.py $< $@ $* $*
+prologue-%.o: prologue-%.tx
+ rgbasm -o $@ $<
+prologue-%.gbc: prologue-%.o
rgblink -o $@ $<
+prologue-%.bin: prologue-%.gbc
+ python ../scripts/stripgbc.py $< $@
-# hack to use RGBDS for something other than its intended purpose
-00-C000-de.z80: 00-C000-de.gbc
- dd if=$< of=$@ bs=1 skip=256 count=7134
-00-C000-en.z80: 00-C000-en.gbc
- dd if=$< of=$@ bs=1 skip=256 count=7074
-# cmp -b ../z80/$@ $@
-eonticket-de.z80: eonticket-de.gbc
- dd if=$< of=$@ bs=1 skip=256 count=691
-eonticket-en.z80: eonticket-en.gbc
- dd if=$< of=$@ bs=1 skip=256 count=631
-eonticket-%.bin: eonticket-%.z80
- python ../scripts/scriptchecksum.py $< $@
+00-C000-%.tx: 00-C000.asm eonticket-%.mev prologue-%.bin
+ python ../scripts/ereadertext.py $< $@ $*
+00-C000-%.o: 00-C000-%.tx
+ rgbasm -o $@ $<
+00-C000-%.gbc: 00-C000-%.o
+ rgblink -o $@ $<
+00-C000-%.z80: 00-C000-%.gbc
+ python ../scripts/stripgbc.py $< $@
clean:
- rm -f *.tx *.o *.gbc *.z80 *.bin \ No newline at end of file
+ rm -f *.tx *.o *.gbc *.z80 *.bin *.mev \ No newline at end of file