SPASM = spasm WABBIT = wabbit UNSQUISH83 = ./unsquish83.sh all: all-bin all-h all-bin: romdump.8xp romdump.83p romdump.82p romdump.73p romdump.85s romdump.86p rmtmp romdump.73p: romdump.asm header.asm rm -f romdump.bin $(MAKE) romdump.bin CALCMODEL=TI73 $(WABBIT) romdump.bin $@ romdump.82p: romdump.asm header.asm rm -f romdump.bin $(MAKE) romdump.bin CALCMODEL=TI82 $(WABBIT) romdump.bin $@ romdump.83p: romdump.asm header.asm rm -f romdump.bin $(MAKE) romdump.bin CALCMODEL=TI83 $(UNSQUISH83) romdump.bin romdumps.bin $(WABBIT) romdumps.bin $@ romdump.8xp: romdump.asm header.asm rm -f romdump.bin $(MAKE) romdump.bin CALCMODEL=TI83P $(WABBIT) romdump.bin $@ romdump.85s: romdump.asm header.asm rm -f romdump.bin $(MAKE) romdump.bin CALCMODEL=TI85 echo -n -e '\x9d' >>romdump.bin $(WABBIT) romdump.bin ROMDump.85s mv -f ROMDump.85s $@ romdump.86p: romdump.asm header.asm rm -f romdump.bin $(MAKE) romdump.bin CALCMODEL=TI86 $(WABBIT) romdump.bin ROMDump.86p mv -f ROMDump.86p $@ romdump.bin: romdump.asm header.asm echo "#define $(CALCMODEL)" >temp.asm echo '#include "romdump.asm"' >>temp.asm $(SPASM) temp.asm romdump.bin rm -f temp.asm rmtmp: rm -f romdump.bin romdumps.bin all-h: ../tf2hex/tf2hex rom73.h rom82.h rom83.h rom83p.h rom85.h rom86.h ../tf2hex/tf2hex: cd ../tf2hex && $(MAKE) rom73.h: romdump.73p ../tf2hex/tf2hex $< $@ 73 rom82.h: romdump.82p ../tf2hex/tf2hex $< $@ 82 rom83.h: romdump.83p ../tf2hex/tf2hex $< $@ 83 rom83p.h: romdump.8xp ../tf2hex/tf2hex $< $@ 8Xp rom85.h: romdump.85s ../tf2hex/tf2hex $< $@ 85 rom86.h: romdump.86p ../tf2hex/tf2hex $< $@ 86 clean: rmtmp rm -f romdump.8xp romdump.83p romdump.82p romdump.73p romdump.85s romdump.86p rm -f rom73.h rom82.h rom83.h rom83p.h rom85.h rom86.h cd ../tf2hex && $(MAKE) clean .PHONY: all all-bin all-h clean rmtmp