2021-11-04 21:19:21 +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
|
|
|
|
|
2021-11-05 00:27:29 +00:00
|
|
|
all: tiny_tracker.dsk text_to_tiny frequency
|
2021-11-04 21:19:21 +00:00
|
|
|
|
|
|
|
tiny_tracker.dsk: HELLO PEASANT
|
|
|
|
cp $(EMPTY_DISK)/empty.dsk ./tiny_tracker.dsk
|
|
|
|
$(DOS33) -y tiny_tracker.dsk SAVE A HELLO
|
|
|
|
$(DOS33) -y tiny_tracker.dsk -t BIN -a 0x2000 BSAVE PEASANT
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
HELLO: hello.bas
|
|
|
|
$(TOKENIZE) < hello.bas > HELLO
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2021-11-05 00:42:36 +00:00
|
|
|
peasant_music.s: peasant.txt text_to_tiny
|
|
|
|
./text_to_tiny peasant.txt > peasant_music.s
|
2021-11-04 21:19:21 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
PEASANT: peasant.o
|
|
|
|
ld65 -o PEASANT peasant.o -C $(LINKER_SCRIPTS)/apple2_2000.inc
|
|
|
|
|
|
|
|
peasant.o: peasant.s \
|
|
|
|
zp.inc hardware.inc \
|
|
|
|
peasant_music.s \
|
|
|
|
interrupt_handler.s mockingboard_setup.s
|
|
|
|
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-05 00:27:29 +00:00
|
|
|
frequency: frequency.o
|
|
|
|
$(CC) -o frequency frequency.o -lm
|
|
|
|
|
|
|
|
frequency.o: frequency.c
|
|
|
|
$(CC) $(CFLAGS) -c frequency.c
|
|
|
|
|
|
|
|
####
|
|
|
|
|
2021-11-04 21:19:21 +00:00
|
|
|
clean:
|
2021-11-05 00:42:36 +00:00
|
|
|
rm -f *~ *.o *.lst YANKEE PEASANT HELLO text_to_tiny frequency peasant_music.s
|
|
|
|
|