|
|
@@ -3,12 +3,13 @@ CFSPACK = ../cfspack/cfspack |
|
|
|
KERNEL = ../../kernel |
|
|
|
APPS = ../../apps |
|
|
|
ZASMBIN = zasm/zasm |
|
|
|
INCCFS = zasm/includes.cfs |
|
|
|
|
|
|
|
.PHONY: all |
|
|
|
all: $(TARGETS) |
|
|
|
|
|
|
|
shell/kernel.h: shell/shell_.asm $(ZASMBIN) |
|
|
|
$(ZASMBIN) < $< | ./bin2c.sh KERNEL | tee $@ > /dev/null |
|
|
|
shell/kernel.h: shell/shell_.asm $(ZASMBIN) $(INCCFS) |
|
|
|
$(ZASMBIN) $(INCCFS) < $< | ./bin2c.sh KERNEL | tee $@ > /dev/null |
|
|
|
|
|
|
|
zasm/kernel.h: zasm/kernel.bin |
|
|
|
./bin2c.sh KERNEL < $< | tee $@ > /dev/null |
|
|
@@ -16,7 +17,7 @@ zasm/kernel.h: zasm/kernel.bin |
|
|
|
zasm/user.h: zasm/zasm.bin |
|
|
|
./bin2c.sh USERSPACE < $< | tee $@ > /dev/null |
|
|
|
|
|
|
|
zasm/includes.cfs: $(CFSPACK) |
|
|
|
$(INCCFS): $(CFSPACK) |
|
|
|
rm -rf zasm/includes |
|
|
|
cp -r $(KERNEL) zasm/includes |
|
|
|
cp -r $(APPS)/zasm zasm/includes/zasm |
|
|
@@ -26,11 +27,8 @@ zasm/includes.cfs: $(CFSPACK) |
|
|
|
$(CFSPACK) zasm/includes > $@ |
|
|
|
rm -rf zasm/includes |
|
|
|
|
|
|
|
zasm/includes.h: zasm/includes.cfs |
|
|
|
./bin2c.sh FSDEV < $< | tee $@ > /dev/null |
|
|
|
|
|
|
|
shell/shell: shell/shell.c libz80/libz80.o shell/kernel.h $(CFSPACK) |
|
|
|
$(ZASMBIN): zasm/zasm.c libz80/libz80.o zasm/kernel.h zasm/user.h zasm/includes.h |
|
|
|
$(ZASMBIN): zasm/zasm.c libz80/libz80.o zasm/kernel.h zasm/user.h |
|
|
|
runbin/runbin: runbin/runbin.c libz80/libz80.o |
|
|
|
$(TARGETS): |
|
|
|
$(CC) $< libz80/libz80.o -o $@ |
|
|
@@ -43,9 +41,9 @@ $(CFSPACK): |
|
|
|
make -C ../cfspack |
|
|
|
|
|
|
|
.PHONY: updatebootstrap |
|
|
|
updatebootstrap: $(ZASMBIN) |
|
|
|
$(ZASMBIN) < zasm/glue.asm > zasm/kernel.bin |
|
|
|
$(ZASMBIN) < $(APPS)/zasm/glue.asm > zasm/zasm.bin |
|
|
|
updatebootstrap: $(ZASMBIN) $(INCCFS) |
|
|
|
$(ZASMBIN) $(INCCFS) < zasm/glue.asm > zasm/kernel.bin |
|
|
|
$(ZASMBIN) $(INCCFS) < $(APPS)/zasm/glue.asm > zasm/zasm.bin |
|
|
|
|
|
|
|
# Sometimes, when developing zasm, stuff get messed up and it's hard to unmess |
|
|
|
# because zasm's brake-up ends up in its bootstrap bins. Sure, we can revert |
|
|
|