dos33fsprogs/mode7_demo/Makefile
2018-03-01 19:52:11 -05:00

47 lines
1.0 KiB
Makefile

include ../Makefile.inc
DOS33 = ../dos33fs-utils/dos33
PNG2GR = ../gr-utils/png2gr
PNG2RLE = ../gr-utils/png2rle
all: mode7_demo.dsk
$(DOS33):
cd ../dos33fs-utils && make
mode7_demo.dsk: $(DOS33) MODE7_DEMO
$(DOS33) -y mode7_demo.dsk BSAVE -a 0x2000 MODE7_DEMO
###
MODE7_DEMO: mode7_demo.o
ld65 -o MODE7_DEMO mode7_demo.o -C ../linker_scripts/apple2_2000.inc
mode7_demo.o: mode7_demo.s mode7_demo_backgrounds.inc sprites.inc \
a2.scrolltext deater.scrolltext \
../asm_routines/gr_unrle.s \
../asm_routines/gr_fast_clear.s \
../asm_routines/gr_setpage.s \
../asm_routines/gr_fade.s \
../asm_routines/gr_copy.s \
../asm_routines/gr_scroll.s \
../asm_routines/mockingboard_a.s \
credits.s mode7.s rasterbars.s starfield_demo.s \
zp.inc
ca65 -o mode7_demo.o mode7_demo.s -l mode7_demo.lst
$(PNG2RLE):
cd ../gr-utils && make
mode7_demo_backgrounds.inc: $(PNG2RLE) \
../tfv/demo.png
$(PNG2RLE) asm ../tfv/demo.png demo_rle > mode7_demo_backgrounds.inc
clean:
rm -f *~ *.o MODE7_DEMO *.lst