2022-03-14 00:26:11 -04:00

59 lines
1.1 KiB
Makefile

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
lines.dsk: HELLO LINES LINES_ROM HGR_HLIN
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
$(DOS33) -y lines.dsk BSAVE -a 0x0C00 HGR_HLIN
###
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
###
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
###
clean:
rm -f *~ *.o *.lst HELLO LINES LINES_ROM HGR_HLIN