mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-11-01 16:04:55 +00:00
70 lines
1.3 KiB
Makefile
70 lines
1.3 KiB
Makefile
include ../../../Makefile.inc
|
|
|
|
DOS33 = ../../../utils/dos33fs-utils/dos33
|
|
TOKENIZE = ../../../utils/asoft_basic-utils/tokenize_asoft
|
|
LINKERSCRIPTS = ../../../linker_scripts
|
|
EMPTYDISK = ../../../empty_disk/empty.dsk
|
|
|
|
all: boxes.dsk make_boxes
|
|
|
|
boxes.dsk: HELLO A2_BOXES BOXES RR NYAN
|
|
cp $(EMPTYDISK) boxes.dsk
|
|
$(DOS33) -y boxes.dsk SAVE A HELLO
|
|
$(DOS33) -y boxes.dsk BSAVE -a 0x300 BOXES
|
|
$(DOS33) -y boxes.dsk BSAVE -a 0xC00 A2_BOXES
|
|
$(DOS33) -y boxes.dsk BSAVE -a 0xC00 RR
|
|
$(DOS33) -y boxes.dsk BSAVE -a 0xC00 NYAN
|
|
|
|
###
|
|
|
|
HELLO: hello.bas
|
|
$(TOKENIZE) < hello.bas > HELLO
|
|
|
|
###
|
|
|
|
A2_BOXES: a2_boxes.o
|
|
ld65 -o A2_BOXES a2_boxes.o -C $(LINKERSCRIPTS)/apple2_c00.inc
|
|
|
|
a2_boxes.o: a2_boxes.s
|
|
ca65 -o a2_boxes.o a2_boxes.s -l a2_boxes.lst
|
|
|
|
###
|
|
|
|
RR: rr.o
|
|
ld65 -o RR rr.o -C $(LINKERSCRIPTS)/apple2_c00.inc
|
|
|
|
rr.o: rr.s
|
|
ca65 -o rr.o rr.s -l rr.lst
|
|
|
|
###
|
|
|
|
NYAN: nyan.o
|
|
ld65 -o NYAN nyan.o -C $(LINKERSCRIPTS)/apple2_c00.inc
|
|
|
|
nyan.o: nyan.s
|
|
ca65 -o nyan.o nyan.s -l nyan.lst
|
|
|
|
|
|
|
|
###
|
|
|
|
BOXES: boxes.o
|
|
ld65 -o BOXES boxes.o -C $(LINKERSCRIPTS)/apple2_300.inc
|
|
|
|
boxes.o: boxes.s
|
|
ca65 -o boxes.o boxes.s -l boxes.lst
|
|
|
|
|
|
###
|
|
|
|
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
|
|
|
|
###
|
|
|
|
clean:
|
|
rm -f *~ *.o *.lst HELLO A2_BOXES BOXES RR make_boxes
|