dos33fsprogs/disk/qboot/Makefile

50 lines
1.1 KiB
Makefile
Raw Normal View History

2021-01-06 04:19:25 +00:00
include ../../Makefile.inc
2020-08-20 20:43:34 +00:00
2021-01-06 04:19:25 +00:00
DOS33 = ../../utils/dos33fs-utils/dos33
DOS33_RAW = ../../utils/dos33fs-utils/dos33_raw
2021-01-06 05:33:25 +00:00
PNG_TO_HGR = ../../utils/hgr-utils/png2hgr
2020-08-20 20:43:34 +00:00
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
2021-01-06 04:19:25 +00:00
ld65 -o BOOT boot_sector.o -C ../../linker_scripts/apple2_800.inc
2020-08-20 20:43:34 +00:00
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
2021-01-06 04:19:25 +00:00
ld65 -o LS ls.o -C ../../linker_scripts/apple2_1f00.inc
2020-08-22 05:26:08 +00:00
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
2021-01-06 04:19:25 +00:00
ld65 -o THE80S 80s.o -C ../../linker_scripts/apple2_1f00.inc
2020-08-21 05:26:14 +00:00
80s.o: 80s.s new_80s.hgr
ca65 -o 80s.o 80s.s -l 80s.lst
new_80s.hgr: new_80s.png
2021-01-06 05:33:25 +00:00
$(PNG_TO_HGR) new_80s.png > new_80s.hgr
2020-08-21 05:26:14 +00:00
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