|
|
@@ -14,24 +14,12 @@ $(BLKPACK): |
|
|
|
$(BIN2C): $(BLKPACK) |
|
|
|
$(BLKUNPACK): $(BLKPACK) |
|
|
|
|
|
|
|
stage0.bin: stage2 xcomp.fs |
|
|
|
cat xcomp.fs | ./stage2 > stage0.bin |
|
|
|
|
|
|
|
stage0-bin.h: stage0.bin $(BIN2C) |
|
|
|
$(BIN2C) KERNEL < stage0.bin > $@ |
|
|
|
|
|
|
|
stage1: stage.c $(OBJS) stage0-bin.h |
|
|
|
$(CC) stage.c $(OBJS) -o $@ |
|
|
|
|
|
|
|
stage1dbg: stage.c $(OBJS) stage0-bin.h |
|
|
|
$(CC) -DDEBUG stage.c $(OBJS) -o $@ |
|
|
|
|
|
|
|
# not dependent on forth.bin to avoid circular deps. |
|
|
|
forth-bin.h: $(BIN2C) |
|
|
|
$(BIN2C) KERNEL < forth.bin > $@ |
|
|
|
|
|
|
|
stage2: stage.c $(OBJS) forth-bin.h blkfs-bin.h |
|
|
|
$(CC) -DSTAGE2 stage.c $(OBJS) -o $@ |
|
|
|
$(CC) stage.c $(OBJS) -o $@ |
|
|
|
|
|
|
|
blkfs: $(BLKPACK) |
|
|
|
$(BLKPACK) ../blk > $@ |
|
|
@@ -51,8 +39,8 @@ emul.o: emul.c |
|
|
|
|
|
|
|
|
|
|
|
.PHONY: updatebootstrap |
|
|
|
updatebootstrap: stage1 stage1.fs |
|
|
|
./stage1 < stage1.fs > forth.bin |
|
|
|
updatebootstrap: stage2 xcomp.fs |
|
|
|
./stage2 < xcomp.fs > forth.bin |
|
|
|
|
|
|
|
.PHONY: pack |
|
|
|
pack: |
|
|
|