Rename fatvbr -> fat, generalize makefile

這個提交存在於:
Nero 2019-09-21 18:05:41 +00:00
父節點 e9b19ce989
當前提交 54149839a3
共有 2 個檔案被更改,包括 3 行新增6 行删除

檢視檔案

@ -31,16 +31,13 @@ kernel.com: kernel/*.asm lib/*.asm
debug.rom: debug/*.asm lib/*.asm debug.rom: debug/*.asm lib/*.asm
nasm -s -o $@ -I lib -I debug debug/main.asm && scripts/fix-rom.sh $@ nasm -s -o $@ -I lib -I debug debug/main.asm && scripts/fix-rom.sh $@
boot/floppy.bs: boot/fatvbr.asm boot/%.bs: boot/%.asm
nasm -s -DCMDLINE='"KERNEL.COM"' -o $@ $< nasm -s -DFLOPPY=$(FLOPPY) -DCMDLINE='"KERNEL.COM"' -o $@ $<
boot/mbr.bs: boot/mbr.asm
nasm -s -DFLOPPY=$(FLOPPY) -o $@ $<
programs/%.com: programs/%.asm programs/%.com: programs/%.asm
nasm -s -I lib -o $@ $< nasm -s -I lib -o $@ $<
fdimage.img: boot/floppy.bs $(DISTFILES) fdimage.img: boot/fat.bs $(DISTFILES)
mformat -C -i $@ -f $(FLOPPY) -B boot/floppy.bs :: mformat -C -i $@ -f $(FLOPPY) -B boot/floppy.bs ::
mcopy -i $@ $(DISTFILES) :: mcopy -i $@ $(DISTFILES) ::