hfs-boot/Makefile
2021-07-18 22:00:54 -04:00

40 lines
802 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
# 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 $@