dos33fsprogs/music/tiny_music/Makefile

55 lines
1.1 KiB
Makefile
Raw Permalink Normal View History

2021-11-02 04:01:43 +00:00
include ../../Makefile.inc
DOS33 = ../../utils/dos33fs-utils/dos33
EMPTY_DISK = ../../empty_disk
HGR2PNG = ../../utils/hgr-utils/png2hgr
LINKER_SCRIPTS = ../../linker_scripts
TOKENIZE = ../../utils/asoft_basic-utils/tokenize_asoft
all: tiny_music.dsk
2021-11-04 22:32:51 +00:00
tiny_music.dsk: HELLO YANKEE
2021-11-02 04:01:43 +00:00
cp $(EMPTY_DISK)/empty.dsk ./tiny_music.dsk
$(DOS33) -y tiny_music.dsk SAVE A HELLO
2021-11-04 22:32:51 +00:00
$(DOS33) -y tiny_music.dsk -t BIN -a 0x2000 BSAVE YANKEE
2021-11-02 04:01:43 +00:00
####
HELLO: hello.bas
$(TOKENIZE) < hello.bas > HELLO
####
2021-11-04 22:32:51 +00:00
YANKEE: yankee.o
ld65 -o YANKEE yankee.o -C $(LINKER_SCRIPTS)/apple2_2000.inc
2021-11-02 04:01:43 +00:00
2021-11-04 22:32:51 +00:00
yankee.o: yankee.s \
zp.inc hardware.inc \
yankee_music.s \
interrupt_handler.s mockingboard_setup.s
ca65 -o yankee.o yankee.s -l yankee.lst
####
2021-11-02 04:01:43 +00:00
2021-11-04 22:32:51 +00:00
PEASANT: peasant.o
ld65 -o PEASANT peasant.o -C $(LINKER_SCRIPTS)/apple2_2000.inc
2021-11-02 04:01:43 +00:00
2021-11-04 22:32:51 +00:00
peasant.o: peasant.s \
2021-11-04 18:06:52 +00:00
zp.inc hardware.inc \
2021-11-04 22:32:51 +00:00
peasant_music.s \
2021-11-02 04:01:43 +00:00
interrupt_handler.s mockingboard_setup.s
2021-11-04 22:32:51 +00:00
ca65 -o peasant.o peasant.s -l peasant.lst
####
text_to_tiny: text_to_tiny.o
$(CC) -o text_to_tiny text_to_tiny.o -lm
text_to_tiny.o: text_to_tiny.c
$(CC) $(CFLAGS) -c text_to_tiny.c
2021-11-02 04:01:43 +00:00
####
clean:
2021-11-04 22:32:51 +00:00
rm -f *~ *.o *.lst YANKEE PEASANT HELLO text_to_tiny