mirror of
https://github.com/hsoft/collapseos.git
synced 2024-09-06 21:48:44 +10:00
28 lines
516 B
Makefile
28 lines
516 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)
|
|
$(CC) -DFBIN_PATH=\"`pwd`/forth.bin\" forth.c $(OBJS) -lncurses -o $@
|
|
|
|
emul.o: emul.c $(BLKFS)
|
|
$(CC) -DFBIN_PATH=\"`pwd`/forth.bin\" -DBLKFS_PATH=\"`pwd`/$(BLKFS)\" -c -o emul.o emul.c
|
|
|
|
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
|
|
|