dos33fsprogs/music/dya/Makefile

50 lines
1.5 KiB
Makefile
Raw Normal View History

include ../../Makefile.inc
2018-11-19 18:06:19 +00:00
DOS33 = ../../utils/dos33fs-utils/dos33
PNG2GR = ../../utils/gr-utils/png2gr
TOKENIZE = ../../utils/asoft_basic-utils/tokenize_asoft
2018-11-19 18:06:19 +00:00
2018-11-19 18:37:06 +00:00
all: chiptune_dya.dsk
2018-11-19 18:06:19 +00:00
$(DOS33):
cd ../dos33fs-utils && make
2018-11-19 18:37:06 +00:00
chiptune_dya.dsk: CHIPTUNE_PLAYER HELLO
cp chiptune_empty.dsk chiptune_dya.dsk
$(DOS33) -y chiptune_dya.dsk SAVE A HELLO
$(DOS33) -y chiptune_dya.dsk BSAVE -a 0x0800 CHIPTUNE_PLAYER
$(DOS33) -y chiptune_dya.dsk BSAVE -a 0x1c00 DOTD1.KRW
$(DOS33) -y chiptune_dya.dsk BSAVE -a 0xd100 DOTD2.KRW
2018-11-19 18:06:19 +00:00
HELLO: hello.bas
$(TOKENIZE) < hello.bas > HELLO
2018-11-19 18:06:19 +00:00
CHIPTUNE_PLAYER: chiptune_player.o
ld65 -o CHIPTUNE_PLAYER chiptune_player.o -C apple2_800.inc
2018-11-19 18:06:19 +00:00
chiptune_player.o: chiptune_player.s \
mockingboard_a.s \
lz4_decode.s \
../../asm_routines/keypress_minimal.s \
rasterbars.s volume_bars.s interrupt_handler.s qkumba_rts.s \
chip_title_uncompressed.inc zp.inc
2018-11-19 18:06:19 +00:00
ca65 -o chiptune_player.o chiptune_player.s -l chiptune_player.lst
CHIPTUNE_UNROLLED: chiptune_unrolled.o
ld65 -o CHIPTUNE_UNROLLED chiptune_unrolled.o -C ../../linker_scripts/apple2_c00.inc
2018-11-19 18:06:19 +00:00
chiptune_unrolled.o: chiptune_player.s \
../../asm_routines/mockingboard.s \
../../asm_routines/dos33_routines.s \
../../asm_routines/lz4_decode.s \
../../asm_routines/keypress_minimal.s \
2018-11-19 18:06:19 +00:00
rasterbars.s volume_bars.s interrupt_handler_unrolled.s \
chip_title.inc zp.inc
ca65 -D UNROLLED=1 -o chiptune_unrolled.o chiptune_player.s -l chiptune_unrolled.lst
clean:
rm -f *~ TITLE.GR *.o *.lst \
2018-11-19 18:37:06 +00:00
CHIPTUNE_PLAYER HELLO
2018-11-19 18:06:19 +00:00