dos33fsprogs/ootw/Makefile

48 lines
1005 B
Makefile

include ../Makefile.inc
DOS33 = ../dos33fs-utils/dos33
PNG2RLE = ../gr-utils/png2rle
all: ootw.dsk
ootw.dsk: HELLO OOTW
$(DOS33) -y ootw.dsk SAVE A HELLO
$(DOS33) -y ootw.dsk BSAVE -a 0x2000 OOTW
####
OOTW: ootw.o
ld65 -o OOTW ootw.o -C ../linker_scripts/apple2_2000.inc
ootw.o: ootw.s \
gr_copy.s gr_fast_clear.s gr_pageflip.s gr_unrle.s gr_putsprite.s \
keyboard.s \
ootw_pool.s ootw_cavern.s physicist.s random16.s slug_cutscene.s \
ootw_pool.inc ootw_cavern.inc ootw_quake.inc ootw_sprites.inc
ca65 -o ootw.o ootw.s -l ootw.lst
####
HELLO: hello.bas
../asoft_basic-utils/tokenize_asoft < hello.bas > HELLO
#####
ootw_pool.inc: $(PNG2RLE) another.png
$(PNG2RLE) asm another.png pool_rle > ootw_pool.inc
ootw_cavern.inc: $(PNG2RLE) another_cave.png
$(PNG2RLE) asm another_cave.png cavern_rle > ootw_cavern.inc
ootw_quake.inc: $(PNG2RLE) another_cave_shake.png
$(PNG2RLE) asm another_cave_shake.png quake_rle > ootw_quake.inc
#####
clean:
rm -f *~ *.o *.lst HELLO OOTW