From adde7937792cc3766a38d3a0d4bd3d451b02cf93 Mon Sep 17 00:00:00 2001 From: Carsten Strotmann Date: Mon, 12 Apr 2021 20:36:18 +0200 Subject: [PATCH] Makefile: qemu and bootdisk targets --- 8086/pc-baremetal/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/8086/pc-baremetal/Makefile b/8086/pc-baremetal/Makefile index 95f43ae..a65bdbe 100644 --- a/8086/pc-baremetal/Makefile +++ b/8086/pc-baremetal/Makefile @@ -1,6 +1,7 @@ TARGET = forth.com BASE = ../.. BLKPACK = $(BASE)/tools/blkpack +BOOTPRG = ./bootdisk .PHONY: all all: $(TARGET) @@ -11,6 +12,14 @@ all: $(TARGET) $(TARGET): kernel.fb meta.fb emu2 $(BASE)/8086/msdos/volks4th.com "include kernel.fb bye" +.PHONY: floppy +floppy: + $(BOOTPRG)/mkimg144 -bs $(BOOTPRG)/flp144.bin -o floppy.img -us $(TARGET) + +.PHONY: qemu +qemu: + qemu-system-i386 -curses -drive file=floppy.img,if=floppy,format=raw + .PHONY: clean clean: rm -f $(TARGET) meta.com *.fb