2017-07-21 20:48:01 +00:00
|
|
|
SPRITES = atari-sprite9x11.png apple-sprite9x11.png
|
2017-07-21 21:11:46 +00:00
|
|
|
CPSPRITES = apple-sprite9x11.png moldy_burger.png
|
2017-07-25 02:17:11 +00:00
|
|
|
TOHGR = tohgr
|
2017-07-25 22:17:24 +00:00
|
|
|
A2 = build-apple2/
|
2017-07-17 17:55:14 +00:00
|
|
|
|
2017-07-25 22:17:24 +00:00
|
|
|
all: build-apple2 working.dsk demo.dsk
|
|
|
|
|
|
|
|
build-apple2:
|
|
|
|
mkdir build-apple2
|
|
|
|
|
|
|
|
$(A2)player-missile.hgr: player-missile.png
|
|
|
|
cp player-missile.png $(A2)
|
|
|
|
quicksprite.py $(A2)player-missile.png
|
|
|
|
|
|
|
|
$(A2)kansasfest-hackfest.hgr: kansasfest-hackfest.png
|
|
|
|
cp kansasfest-hackfest.png $(A2)kansasfest-hackfest-top.png
|
|
|
|
$(TOHGR) $(A2)kansasfest-hackfest-top.png
|
|
|
|
cp kansasfest-hackfest.png $(A2)kansasfest-hackfest-bot.png
|
|
|
|
quicksprite.py -i bw $(A2)kansasfest-hackfest-bot.png
|
|
|
|
quicksprite.py --merge 96 -o $(A2)kansasfest-hackfest $(A2)kansasfest-hackfest-top.hgr $(A2)kansasfest-hackfest-bot.hgr
|
|
|
|
|
|
|
|
$(A2)partycrasher-software.hgr: partycrasher-software.png
|
|
|
|
cp partycrasher-software.png $(A2)partycrasher-software-top.png
|
|
|
|
$(TOHGR) $(A2)partycrasher-software-top.png
|
|
|
|
cp partycrasher-software.png $(A2)partycrasher-software-bot.png
|
|
|
|
quicksprite.py -i bw $(A2)partycrasher-software-bot.png
|
|
|
|
quicksprite.py --merge 116 -o $(A2)partycrasher-software $(A2)partycrasher-software-top.hgr $(A2)partycrasher-software-bot.hgr
|
|
|
|
|
|
|
|
$(A2)title.hgr: title.png
|
|
|
|
cp title.png $(A2)title-top.png
|
|
|
|
$(TOHGR) $(A2)title-top.png
|
|
|
|
cp title.png $(A2)title-bot.png
|
|
|
|
quicksprite.py -i bw $(A2)title-bot.png
|
|
|
|
quicksprite.py --merge 136 167 -o $(A2)title $(A2)title-top.hgr $(A2)title-bot.hgr
|
|
|
|
|
|
|
|
$(A2)working-sprite-driver.s: $(SPRITES) fatfont128.dat
|
|
|
|
quicksprite.py -a mac65 -p 6502 -s hgrbw -m -k -d -g -f fatfont128.dat -o $(A2)working $(SPRITES)
|
|
|
|
|
|
|
|
$(A2)working.xex: wipes-null.s main.s constants.s rand.s maze.s $(A2)working-sprite-driver.s vars.s debug.s actors.s background.s screen.s logic.s platform-apple2.s
|
|
|
|
rm -f $(A2)working.xex
|
|
|
|
echo '.include "main.s"' > $(A2)working.s
|
|
|
|
echo '.include "wipes-null.s"' >> $(A2)working.s
|
|
|
|
echo '.include "platform-apple2.s"' >> $(A2)working.s
|
|
|
|
echo '.include "$(A2)working-sprite-driver.s"' >> $(A2)working.s
|
|
|
|
atasm -mae -o$(A2)working.xex $(A2)working.s -L$(A2)working.var -g$(A2)working.lst
|
|
|
|
|
|
|
|
working.dsk: $(A2)working.xex
|
2017-07-19 00:30:28 +00:00
|
|
|
rm -f working.dsk
|
2017-07-25 22:17:24 +00:00
|
|
|
atrcopy working.dsk boot -b $(A2)working.xex --brun 6000 -f
|
|
|
|
#cp $(A2)working.var /home/rob/.wine/drive_c/applewin/APPLE2E.SYM
|
2017-07-19 00:30:28 +00:00
|
|
|
|
2017-07-25 22:17:24 +00:00
|
|
|
$(A2)demo.xex: wipes-demo.s main.s constants.s rand.s maze.s $(A2)working-sprite-driver.s vars.s debug.s actors.s background.s screen.s logic.s platform-apple2.s
|
|
|
|
rm -f $(A2)demo.xex
|
|
|
|
echo '.include "main.s"' > $(A2)demo.s
|
|
|
|
echo '.include "wipes-demo.s"' >> $(A2)demo.s
|
|
|
|
echo '.include "platform-apple2.s"' >> $(A2)demo.s
|
|
|
|
echo '.include "$(A2)working-sprite-driver.s"' >> $(A2)demo.s
|
|
|
|
atasm -mae -o$(A2)demo.xex $(A2)demo.s -L$(A2)demo.var -g$(A2)demo.lst
|
2017-07-22 12:30:18 +00:00
|
|
|
|
2017-07-25 22:17:24 +00:00
|
|
|
demo.dsk: $(A2)demo.xex $(A2)player-missile.hgr $(A2)partycrasher-software.hgr $(A2)kansasfest-hackfest.hgr $(A2)title.hgr
|
|
|
|
atrcopy demo.dsk boot -d $(A2)partycrasher-software.hgr@2000 $(A2)player-missile.hgr@4000 $(A2)kansasfest-hackfest.hgr@2000 $(A2)title.hgr@4001 -b $(A2)demo.xex --brun 6000 -f
|
2017-07-22 12:19:57 +00:00
|
|
|
|
2017-07-17 17:55:14 +00:00
|
|
|
clean:
|
2017-07-25 22:17:24 +00:00
|
|
|
rm -rf $(A2)
|
|
|
|
rm -f demo.dsk working.dsk
|