1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-07-24 21:30:19 +10:00
collapseos/emul/8086/Makefile
2020-10-24 23:20:20 -04:00

25 lines
441 B
Makefile

TARGETS = forth
OBJS = cpu.o
CDIR = ../../cvm
STAGE = $(CDIR)/stage
BLKFS = $(CDIR)/blkfs
.PHONY: all
all: $(TARGETS)
forth: forth.c forth.bin $(OBJS) $(BLKFS)
$(CC) -DFBIN_PATH=\"`pwd`/forth.bin\" -DBLKFS_PATH=\"`pwd`/$(BLKFS)\" forth.c $(OBJS) -lncurses -o $@
forth.bin: xcomp.fs $(STAGE)
$(CDIR)/stage < xcomp.fs > $@
$(BLKFS): $(STAGE)
$(STAGE):
$(MAKE) -C $(CDIR) all
.PHONY: clean
clean:
rm -f $(TARGETS) $(OBJS) forth.bin