Rename fatvbr -> fat, generalize makefile
This commit is contained in:
parent
e9b19ce989
commit
54149839a3
9
Makefile
9
Makefile
@ -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) ::
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user