2021-04-11 20:43:24 +00:00
|
|
|
TARGET = forth.com
|
|
|
|
BASE = ../..
|
|
|
|
BLKPACK = $(BASE)/tools/blkpack
|
2021-04-12 18:36:18 +00:00
|
|
|
BOOTPRG = ./bootdisk
|
2021-04-11 20:43:24 +00:00
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
%.fb: %.fth $(BLKPACK)
|
|
|
|
$(BLKPACK) < $< > $@
|
|
|
|
|
|
|
|
$(TARGET): kernel.fb meta.fb
|
2021-04-20 07:36:50 +00:00
|
|
|
emu2 $(BASE)/8086/pc-baremetal/volks4th.com "include kernel.fb bye"
|
2021-04-11 20:43:24 +00:00
|
|
|
|
2021-04-12 18:36:18 +00:00
|
|
|
.PHONY: floppy
|
|
|
|
floppy:
|
|
|
|
$(BOOTPRG)/mkimg144 -bs $(BOOTPRG)/flp144.bin -o floppy.img -us $(TARGET)
|
|
|
|
|
|
|
|
.PHONY: qemu
|
|
|
|
qemu:
|
2021-04-12 20:28:34 +00:00
|
|
|
qemu-system-i386 -curses -drive file=floppy.img,if=floppy,format=raw -monitor telnet:127.0.0.1:1234,server,nowait
|
2021-04-12 18:36:18 +00:00
|
|
|
|
2021-04-11 20:43:24 +00:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2021-04-20 07:36:50 +00:00
|
|
|
rm -f $(TARGET) meta.com *.fb floppy.img
|