mirror of
https://github.com/forth-ev/VolksForth.git
synced 2024-12-30 11:29:55 +00:00
26 lines
557 B
Makefile
26 lines
557 B
Makefile
TARGET = forth.com
|
|
BASE = ../..
|
|
BLKPACK = $(BASE)/tools/blkpack
|
|
BOOTPRG = ./bootdisk
|
|
|
|
.PHONY: all
|
|
all: $(TARGET)
|
|
|
|
%.fb: %.fth $(BLKPACK)
|
|
$(BLKPACK) < $< > $@
|
|
|
|
$(TARGET): kernel.fb meta.fb
|
|
emu2 $(BASE)/8086/pc-baremetal/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 -monitor telnet:127.0.0.1:1234,server,nowait
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(TARGET) meta.com *.fb floppy.img
|