Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
516B

  1. TARGETS = forth
  2. OBJS = cpu.o
  3. CDIR = ../../cvm
  4. STAGE = $(CDIR)/stage
  5. BLKFS = $(CDIR)/blkfs
  6. .PHONY: all
  7. all: $(TARGETS)
  8. forth: forth.c forth.bin $(OBJS)
  9. $(CC) -DFBIN_PATH=\"`pwd`/forth.bin\" forth.c $(OBJS) -lncurses -o $@
  10. emul.o: emul.c $(BLKFS)
  11. $(CC) -DFBIN_PATH=\"`pwd`/forth.bin\" -DBLKFS_PATH=\"`pwd`/$(BLKFS)\" -c -o emul.o emul.c
  12. forth.bin: xcomp.fs $(STAGE)
  13. $(CDIR)/stage < xcomp.fs > $@
  14. $(BLKFS): $(STAGE)
  15. $(STAGE):
  16. $(MAKE) -C $(CDIR) all
  17. .PHONY: clean
  18. clean:
  19. rm -f $(TARGETS) $(OBJS) forth.bin