2021-06-16 17:32:34 +00:00
|
|
|
include ../../../Makefile.inc
|
|
|
|
|
|
|
|
DOS33 = ../../../utils/dos33fs-utils/dos33
|
|
|
|
TOKENIZE = ../../../utils/asoft_basic-utils/tokenize_asoft
|
|
|
|
LINKERSCRIPTS = ../../../linker_scripts
|
|
|
|
EMPTYDISK = ../../../empty_disk/empty.dsk
|
|
|
|
|
2021-06-16 20:50:28 +00:00
|
|
|
all: boxes.dsk make_boxes_asm
|
2021-06-16 17:32:34 +00:00
|
|
|
|
2021-06-19 12:35:20 +00:00
|
|
|
boxes.dsk: HELLO MYST.BAS MYST_TINY.BAS MYST_TINY COOL_PATTERN COOL_BOT \
|
|
|
|
SLOW_TEST FAST_TEST
|
2021-06-16 17:32:34 +00:00
|
|
|
cp $(EMPTYDISK) boxes.dsk
|
|
|
|
$(DOS33) -y boxes.dsk SAVE A HELLO
|
2021-06-16 17:57:52 +00:00
|
|
|
$(DOS33) -y boxes.dsk SAVE A MYST.BAS
|
|
|
|
$(DOS33) -y boxes.dsk SAVE A MYST_TINY.BAS
|
2021-06-16 20:50:28 +00:00
|
|
|
$(DOS33) -y boxes.dsk BSAVE -a 0xC00 MYST_TINY
|
|
|
|
$(DOS33) -y boxes.dsk BSAVE -a 0xC00 COOL_PATTERN
|
2021-06-18 04:37:42 +00:00
|
|
|
$(DOS33) -y boxes.dsk BSAVE -a 0x370 COOL_BOT
|
2021-06-19 12:35:20 +00:00
|
|
|
$(DOS33) -y boxes.dsk BSAVE -a 0xC00 SLOW_TEST
|
|
|
|
$(DOS33) -y boxes.dsk BSAVE -a 0xC00 FAST_TEST
|
2021-06-16 17:32:34 +00:00
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
HELLO: hello.bas
|
|
|
|
$(TOKENIZE) < hello.bas > HELLO
|
|
|
|
|
2021-06-16 20:50:28 +00:00
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
MYST_TINY: myst_tiny.o
|
|
|
|
ld65 -o MYST_TINY myst_tiny.o -C $(LINKERSCRIPTS)/apple2_c00.inc
|
|
|
|
|
|
|
|
myst_tiny.o: myst_tiny.s
|
|
|
|
ca65 -o myst_tiny.o myst_tiny.s -l myst_tiny.lst
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
COOL_PATTERN: cool_pattern.o
|
|
|
|
ld65 -o COOL_PATTERN cool_pattern.o -C $(LINKERSCRIPTS)/apple2_c00.inc
|
|
|
|
|
|
|
|
cool_pattern.o: cool_pattern.s
|
|
|
|
ca65 -o cool_pattern.o cool_pattern.s -l cool_pattern.lst
|
|
|
|
|
2021-06-19 12:35:20 +00:00
|
|
|
###
|
|
|
|
|
|
|
|
SLOW_TEST: slow_test.o
|
|
|
|
ld65 -o SLOW_TEST slow_test.o -C $(LINKERSCRIPTS)/apple2_c00.inc
|
|
|
|
|
|
|
|
slow_test.o: slow_test.s
|
|
|
|
ca65 -o slow_test.o slow_test.s -l slow_test.lst
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
FAST_TEST: fast_test.o
|
|
|
|
ld65 -o FAST_TEST fast_test.o -C $(LINKERSCRIPTS)/apple2_c00.inc
|
|
|
|
|
|
|
|
fast_test.o: fast_test.s
|
|
|
|
ca65 -o fast_test.o fast_test.s -l fast_test.lst
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-06-17 03:32:16 +00:00
|
|
|
###
|
|
|
|
|
|
|
|
COOL_BOT: cool_bot.o
|
2021-06-18 04:37:42 +00:00
|
|
|
ld65 -o COOL_BOT cool_bot.o -C $(LINKERSCRIPTS)/apple2_370.inc
|
2021-06-17 03:32:16 +00:00
|
|
|
|
|
|
|
cool_bot.o: cool_bot.s
|
|
|
|
ca65 -o cool_bot.o cool_bot.s -l cool_bot.lst
|
|
|
|
|
|
|
|
|
2021-06-16 20:50:28 +00:00
|
|
|
|
|
|
|
|
2021-06-16 17:32:34 +00:00
|
|
|
###
|
|
|
|
|
2021-06-16 17:57:52 +00:00
|
|
|
MYST.BAS: myst.bas
|
|
|
|
$(TOKENIZE) < myst.bas > MYST.BAS
|
2021-06-16 17:32:34 +00:00
|
|
|
|
|
|
|
###
|
|
|
|
|
2021-06-16 17:57:52 +00:00
|
|
|
MYST_TINY.BAS: myst_tiny.bas
|
|
|
|
$(TOKENIZE) < myst_tiny.bas > MYST_TINY.BAS
|
2021-06-16 17:32:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
make_boxes: make_boxes.o
|
|
|
|
$(CC) -o make_boxes make_boxes.o $(LFLAGS)
|
|
|
|
|
|
|
|
make_boxes.o: make_boxes.c
|
|
|
|
$(CC) $(CFLAGS) -c make_boxes.c
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2021-06-16 20:50:28 +00:00
|
|
|
make_boxes_asm: make_boxes_asm.o
|
|
|
|
$(CC) -o make_boxes_asm make_boxes_asm.o $(LFLAGS)
|
|
|
|
|
|
|
|
make_boxes_asm.o: make_boxes_asm.c
|
|
|
|
$(CC) $(CFLAGS) -c make_boxes_asm.c
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2021-06-16 17:32:34 +00:00
|
|
|
clean:
|
2021-06-19 12:35:20 +00:00
|
|
|
rm -f *~ *.o *.lst MYST.BAS MYST_TINY.BAS MYST_TINY make_boxes make_boxes_asm COOL_PATTERN SLOW_TEST
|