aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-02-09 22:44:51 -0500
committerB. Watson <yalhcru@gmail.com>2016-02-09 22:44:51 -0500
commitb001b2c00d72ea28e9272c30a53fcf83e21c9249 (patch)
tree4cec3077d88fbb052e38d658e2626f59bf406ebe /Makefile
parentce772f39231647cf7a5558d94f542f4ebcdc7025 (diff)
downloadtaipan-b001b2c00d72ea28e9272c30a53fcf83e21c9249.tar.gz
cart image works now
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 36f950f..12c595a 100644
--- a/Makefile
+++ b/Makefile
@@ -254,7 +254,7 @@ mkcart: mkcart.c
# via "JSR $0400".
romable_taimain.raw: $(TAIMAIN_C_SRC) $(TAIMAIN_ASM_SRC) $(TAIMAIN_HDRS)
rm -f taimain.xex
- $(MAKE) TAIMAIN_ADDR=0x3ff EXTRACFLAGS="-Wl -D__AUTOSTART__=1 -Wl -D__EXEHDR__=1 -DCART_TARGET=1 --asm-define CART_TARGET=1" taimain.xex
+ $(MAKE) FONT_ADDR=0x9c00 TAIMAIN_ADDR=0x3ff EXTRACFLAGS="-Wl -D__AUTOSTART__=1 -Wl -D__EXEHDR__=1 -DCART_TARGET=1 --asm-define CART_TARGET=1" taimain.xex
tail -c+2 taimain.xex > romable_taimain.raw
rm -f taimain.xex
@@ -270,10 +270,13 @@ fill512:
blankbank:
perl -Mbytes -e 'print chr(0xff) x 8192' > blankbank
-splitrom.raw.0:
-splitrom.raw.1:
-splitrom.raw.2:
-splitrom.raw.3:
+splitrom.raw.0: splitrom.raw.3
+
+splitrom.raw.1: splitrom.raw.3
+
+splitrom.raw.2: splitrom.raw.3
+
+splitrom.raw.3: romable_taimain.raw
split -b 7680 -a 1 -d romable_taimain.raw splitrom.raw.
bank0: splitrom.raw.0 fill512
@@ -288,7 +291,7 @@ bank2: splitrom.raw.2 fill512
bank3: splitrom.raw.3 bank3.s taifont
cl65 -l bank3.lst -m bank3.map -t none -o bank3 bank3.s
-bank7: bank7.s titledata.dat
+bank7: bank7.s titledata.dat ver.dat help.dat newtitle.s
cl65 -l bank7.lst -m bank7.map -t none -o bank7 bank7.s
taipan.rom: bank0 bank1 bank2 bank3 bank7 blankbank
@@ -312,7 +315,7 @@ taipan.cart: taipan.rom mkcart
# Obligatory clean and distclean rules.
clean:
- rm -f *.o *.lst convfont *.xex AUTORUN.SYS taipan.atr ver.dat help.dat tags cartmsg.dat
+ rm -f *.o *.lst convfont *.xex AUTORUN.SYS taipan.atr ver.dat help.dat tags cartmsg.dat splitrom.raw.* taipan.rom taipan.cart bank[0-9] fill512 blankbank romable_taimain.raw
distclean: clean
rm -f *~ core .*.swp 1.* 2.* 1 2 3 map map.* *.map a b c foo bar baz comptitle.s comptitle.dat