dos33fsprogs/qboot/Makefile

49 lines
1.0 KiB
Makefile
Raw Normal View History

2020-08-20 20:43:34 +00:00
include ../Makefile.inc
2020-08-21 05:26:14 +00:00
DOS33 = ../dos33fs-utils/dos33
2020-08-20 20:43:34 +00:00
DOS33_RAW = ../dos33fs-utils/dos33_raw
2020-08-21 05:26:14 +00:00
all: boot.dsk compare.dsk
2020-08-20 20:43:34 +00:00
2020-08-22 05:26:08 +00:00
compare.dsk: THE80S LS
2020-08-21 05:26:14 +00:00
cp empty.dsk compare.dsk
$(DOS33) -y compare.dsk BSAVE -a 0x1f00 THE80S
2020-08-22 05:26:08 +00:00
$(DOS33) -y compare.dsk BSAVE -a 0x1f00 LS
2020-08-21 05:26:14 +00:00
2020-08-22 05:26:08 +00:00
boot.dsk: BOOT THE80S LS
2020-08-20 20:43:34 +00:00
cp empty.dsk boot.dsk
2020-08-21 05:26:14 +00:00
$(DOS33_RAW) boot.dsk 0 0 BOOT 0 1
$(DOS33_RAW) boot.dsk 0 2 BOOT 1 1
$(DOS33_RAW) boot.dsk 0 4 BOOT 2 1
$(DOS33_RAW) boot.dsk 3 0 THE80S 0 33
2020-08-22 05:26:08 +00:00
$(DOS33_RAW) boot.dsk 8 0 LS 0 33
2020-08-20 20:43:34 +00:00
BOOT: boot_sector.o
ld65 -o BOOT boot_sector.o -C ../linker_scripts/apple2_800.inc
boot_sector.o: boot_sector.s stage2.s
ca65 -o boot_sector.o boot_sector.s -l boot_sector.lst
2020-08-22 05:26:08 +00:00
###
LS: ls.o
ld65 -o LS ls.o -C ../linker_scripts/apple2_1f00.inc
ls.o: ls.s lsc.hgr
ca65 -o ls.o ls.s -l ls.lst
###
2020-08-21 05:26:14 +00:00
THE80S: 80s.o
ld65 -o THE80S 80s.o -C ../linker_scripts/apple2_1f00.inc
80s.o: 80s.s new_80s.hgr
ca65 -o 80s.o 80s.s -l 80s.lst
new_80s.hgr: new_80s.png
../hgr-utils/png2hgr new_80s.png > new_80s.hgr
2020-08-20 20:43:34 +00:00
clean:
2020-08-21 05:26:14 +00:00
rm -f *~ *.o *.lst BOOT THE80S
2020-08-20 20:43:34 +00:00