dos33fsprogs/dya/Makefile

49 lines
1.4 KiB
Makefile
Raw Normal View History

2018-11-19 18:06:19 +00:00
include ../Makefile.inc
DOS33 = ../dos33fs-utils/dos33
PNG2GR = ../gr-utils/png2gr
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 0x1c00 DOTD2.KRW
2018-11-19 18:06:19 +00:00
HELLO: hello.bas
../asoft_basic-utils/tokenize_asoft < hello.bas > HELLO
CHIPTUNE_PLAYER: chiptune_player.o
ld65 -o CHIPTUNE_PLAYER chiptune_player.o -C ../linker_scripts/apple2_800.inc
2018-11-19 18:06:19 +00:00
chiptune_player.o: chiptune_player.s \
mockingboard_a.s \
lz4_decode.s \
2018-11-19 18:06:19 +00:00
../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
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 \
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