2021-06-30 23:33:04 -04:00
|
|
|
include ../../../Makefile.inc
|
|
|
|
|
|
|
|
DOS33 = ../../../utils/dos33fs-utils/dos33
|
|
|
|
TOKENIZE = ../../../utils/asoft_basic-utils/tokenize_asoft
|
|
|
|
LINKER_SCRIPTS = ../../../linker_scripts
|
|
|
|
EMPTY_DISK = ../../../empty_disk
|
|
|
|
|
|
|
|
all: lines.dsk
|
|
|
|
|
2022-03-14 00:26:11 -04:00
|
|
|
lines.dsk: HELLO LINES LINES_ROM HGR_HLIN
|
2021-06-30 23:33:04 -04:00
|
|
|
cp $(EMPTY_DISK)/empty.dsk lines.dsk
|
|
|
|
$(DOS33) -y lines.dsk SAVE A HELLO
|
|
|
|
$(DOS33) -y lines.dsk BSAVE -a 0x0C00 LINES
|
|
|
|
$(DOS33) -y lines.dsk BSAVE -a 0x0C00 LINES_ROM
|
2022-03-14 00:26:11 -04:00
|
|
|
$(DOS33) -y lines.dsk BSAVE -a 0x0C00 HGR_HLIN
|
2021-06-30 23:33:04 -04:00
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
HELLO: hello.bas
|
|
|
|
$(TOKENIZE) < hello.bas > HELLO
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
TRIANGLE.BAS: triangle.bas
|
|
|
|
$(TOKENIZE) < triangle.bas > TRIANGLE.BAS
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
LINES: lines.o
|
|
|
|
ld65 -o LINES lines.o -C $(LINKER_SCRIPTS)/apple2_c00.inc
|
|
|
|
|
|
|
|
lines.o: lines.s
|
|
|
|
ca65 -o lines.o lines.s -l lines.lst
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
LINES_ROM: lines_rom.o
|
|
|
|
ld65 -o LINES_ROM lines_rom.o -C $(LINKER_SCRIPTS)/apple2_c00.inc
|
|
|
|
|
|
|
|
lines_rom.o: lines_rom.s
|
|
|
|
ca65 -o lines_rom.o lines_rom.s -l lines_rom.lst
|
|
|
|
|
2022-03-14 00:26:11 -04:00
|
|
|
###
|
|
|
|
|
|
|
|
HGR_HLIN: hgr_hlin.o
|
|
|
|
ld65 -o HGR_HLIN hgr_hlin.o -C $(LINKER_SCRIPTS)/apple2_c00.inc
|
|
|
|
|
|
|
|
hgr_hlin.o: hgr_hlin.s
|
|
|
|
ca65 -o hgr_hlin.o hgr_hlin.s -l hgr_hlin.lst
|
|
|
|
|
|
|
|
|
2021-06-30 23:33:04 -04:00
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
clean:
|
2022-03-14 00:26:11 -04:00
|
|
|
rm -f *~ *.o *.lst HELLO LINES LINES_ROM HGR_HLIN
|
2021-06-30 23:33:04 -04:00
|
|
|
|