1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-27 04:58:05 +11:00
collapseos/emul/8086/Makefile

28 lines
544 B
Makefile
Raw Normal View History

2020-10-26 01:27:52 +11:00
TARGETS = forth pcat
2020-10-25 11:41:51 +11:00
OBJS = cpu.o
CDIR = ../../cvm
STAGE = $(CDIR)/stage
BLKFS = $(CDIR)/blkfs
.PHONY: all
all: $(TARGETS)
2020-10-25 14:20:20 +11:00
forth: forth.c forth.bin $(OBJS) $(BLKFS)
$(CC) -DFBIN_PATH=\"`pwd`/forth.bin\" -DBLKFS_PATH=\"`pwd`/$(BLKFS)\" forth.c $(OBJS) -lcurses -o $@
2020-10-25 11:41:51 +11:00
forth.bin: xcomp.fs $(STAGE)
$(CDIR)/stage < xcomp.fs > $@
2020-10-25 11:41:51 +11:00
2020-10-26 01:27:52 +11:00
pcat: pcat.c $(OBJS) $(BLKFS)
$(CC) -DBLKFS_PATH=\"`pwd`/$(BLKFS)\" pcat.c $(OBJS) -lcurses -o $@
2020-10-26 01:27:52 +11:00
2020-10-25 11:41:51 +11:00
$(BLKFS): $(STAGE)
$(STAGE):
$(MAKE) -C $(CDIR) all
.PHONY: clean
clean:
rm -f $(TARGETS) $(OBJS) forth.bin