hfs-boot/Makefile
Kelvin Sherlock 95aa4d8bd5 large volume support (WIP, untested).
the general theory is, multiply the extents by the allocation adjustment to get physical block offsets.
currently, comparisons are still 16-bit though.
2021-07-22 23:58:20 -04:00

40 lines
816 B
Makefile

.PHONY: all
all : bootblock loader
bootblock : bootblock.omf | hfs24.po
mpw makebiniigs -s -org 2048 bootblock.omf -o bootblock
dd bs=512 if=bootblock of=hfs24.po conv=notrunc oseek=0
loader : loader.omf loader.rii | hfs24.po
mpw makebiniigs -s -org 8192 -t \$$bc loader.omf -o loader
mpw reziigs loader.rii -o loader
sh cp-loader.sh
# bootblock.omf : bootblock.obj
# mpw linkiigs bootblock.obj -o bootblock.omf
bootblock.obj : bootblock.aii hfs.aii smartport.aii
# mpw asmiigs bootblock.aii -o bootblock.obj
loader.obj : loader.aii hfs.aii macros.aii
.PHONY: clean
clean:
$(RM) bootblock bootblock.omf bootblock.obj loader loader.omf loader.obj
hfs.po:
mkfs-profuse --fst=hfs --size=800k --name="hfs boot" hfs.po
%.obj : %.aii
mpw asmiigs -l $< -o $@
%.omf : %.obj
mpw linkiigs $< -o $@