Replace fix-rom script with utils binary
This commit is contained in:
parent
a4697fa666
commit
35593dada1
3 changed files with 41 additions and 16 deletions
8
Makefile
8
Makefile
|
@ -39,6 +39,7 @@ default: fdimage.img
|
|||
|
||||
# Host utils
|
||||
utils/%: src/utils/%.c
|
||||
mkdir -p utils
|
||||
$(CC) -o $@ $<
|
||||
|
||||
# Boot sectors
|
||||
|
@ -46,8 +47,8 @@ boot/%.bs: boot/%.asm
|
|||
$(NASM) $(NASM_ARGS) -DFLOPPY=$(FLOPPY) -o $@ $<
|
||||
|
||||
# BIOS option roms
|
||||
rom/%.rom: rom/%.asm
|
||||
$(NASM) $(NASM_ARGS) -o $@ $< && utils/fix-rom.sh $@
|
||||
rom/%.rom: rom/%.asm utils/fix-rom
|
||||
$(NASM) $(NASM_ARGS) -o $@ $< && utils/fix-rom $@
|
||||
|
||||
# Regular COM programs
|
||||
com/%.com: com/%.asm
|
||||
|
@ -70,7 +71,8 @@ hdimage.img: boot/mbr.bs fdimage.img
|
|||
|
||||
clean:
|
||||
find -name '*.lst' -delete
|
||||
rm -f $$(cat .gitignore) boot/*.bs com/*.com rom/*.rom utils/emul
|
||||
rm -f $$(cat .gitignore) boot/*.bs com/*.com rom/*.rom utils/*
|
||||
rmdir utils
|
||||
|
||||
qemu-floppy: fdimage.img $(ROMS)
|
||||
$(QEMU) $(QEMU_ARGS) -boot a -fda fdimage.img
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue