asmgen/demo/sprite_compiler/Makefile

55 lines
2.0 KiB
Makefile
Raw Normal View History

2018-07-24 02:22:26 +00:00
COLORSPRITE = ../../sprites/moldy_burger.png
BWSPRITE = ../../sprites/apple-sprite9x11.png
ASMGEN_SRC = ../../asmgen.py
ASMGEN = python $(ASMGEN_SRC) -a mac65 -p 6502
all: cpbg.dsk fonttest.dsk
2018-07-24 02:22:26 +00:00
rowlookup.s: $(ASMGEN_SRC)
$(ASMGEN) -r > rowlookup.s
2017-06-25 15:29:10 +00:00
2018-07-24 02:22:26 +00:00
collookupbw.s: $(ASMGEN_SRC)
$(ASMGEN) -s hgrbw -c > collookupbw.s
2017-06-25 15:29:10 +00:00
2018-07-24 02:22:26 +00:00
collookupcolor.s: $(ASMGEN_SRC)
$(ASMGEN) -c > collookupcolor.s
2017-06-25 15:29:10 +00:00
2018-07-24 02:22:26 +00:00
bwsprite.s: $(ASMGEN_SRC) collookupbw.s rowlookup.s $(BWSPRITE)
$(ASMGEN) -s hgrbw $(BWSPRITE) -n bwsprite -m -b > bwsprite.s
2017-06-25 15:29:10 +00:00
2018-07-24 02:22:26 +00:00
colorsprite.s: $(ASMGEN_SRC) collookupcolor.s rowlookup.s $(COLORSPRITE)
$(ASMGEN) -s hgrcolor $(COLORSPRITE) -n colorsprite -m > colorsprite.s
2017-06-25 15:29:10 +00:00
2018-07-24 02:22:26 +00:00
bwtest.dsk: $(ASMGEN_SRC) bwtest.s bwsprite.s
atasm -obwtest.xex bwtest.s -Lbwtest.var -gbwtest.lst
atrcopy bwtest.dsk boot -b bwtest.xex --brun 6000 -f
2018-07-24 02:22:26 +00:00
colortest.dsk: $(ASMGEN_SRC) colortest.s bwsprite.s
atasm -ocolortest.xex colortest.s -Lcolortest.var -gcolortest.lst
atrcopy colortest.dsk boot -b colortest.xex --brun 6000 -f
2018-07-24 17:07:10 +00:00
cpbg-asmgen-driver.s: $(ASMGEN_SRC) $(BWSPRITE) fatfont.s
2018-07-24 02:22:26 +00:00
$(ASMGEN) -s hgrbw -m -k -d -g -f ../../fonts/fatfont128.dat -o cpbg $(BWSPRITE) $(COLORSPRITE)
2017-07-04 20:36:36 +00:00
cpbg.xex: cpbg.s cpbg-asmgen-driver.s
atasm -mae -ocpbg.xex cpbg.s -Lcpbg.var -gcpbg.lst
2018-07-24 17:07:10 +00:00
cpbg.dsk: $(ASMGEN_SRC) cpbg.s cpbg-asmgen-driver.s
atrcopy cpbg.dsk boot -f -s cpbg.s -r 0x6000
2017-07-04 20:36:36 +00:00
2018-07-24 02:22:26 +00:00
fonttest-asmgen-driver.s: $(ASMGEN_SRC) ../../fonts/fatfont128.dat
$(ASMGEN) -s hgrbw -f ../../fonts/fatfont128.dat -r -o fonttest
fatfont.s:
$(ASMGEN) --src ../../fonts/fatfont128.dat > fatfont.s
fonttest.dsk: fonttest.s fatfont.s fonttest-asmgen-driver.s slowfont.s
2018-07-24 17:07:10 +00:00
atrcopy fonttest.dsk boot -s fonttest.s --brun 6000 -f
2017-07-04 20:36:36 +00:00
clean:
rm -f rowlookup.s collookupbw.s collookupcolor.s
rm -f bwtest.dsk bwtest.xex bwtest.var bwtest.lst
rm -f colortest.dsk colortest.xex colortest.var colortest.lst
rm -f cpbg.dsk cpbg.xex cpbg.var cpbg.lst cpbg-asmgen-driver.s cpbg-bwsprite.s cpbg-hgrcols-7x1.s cpbg-hgrrows.s
rm -f fonttest.dsk fonttest.xex fonttest-asmgen-driver.s fonttest.var fonttest.lst