2020-01-01 07:07:39 +11:00
|
|
|
BASEDIR = ../../..
|
|
|
|
ZASM = $(BASEDIR)/emul/zasm/zasm
|
|
|
|
KERNEL = $(BASEDIR)/kernel
|
|
|
|
APPS = $(BASEDIR)/apps
|
2019-07-22 05:37:03 +10:00
|
|
|
|
2019-07-23 00:10:42 +10:00
|
|
|
.PHONY: all clean
|
|
|
|
all: os.sms
|
2019-07-22 05:37:03 +10:00
|
|
|
|
2019-11-16 02:33:13 +11:00
|
|
|
# -o value synced with offset in glue.asm
|
2019-07-22 05:37:03 +10:00
|
|
|
ed.bin: $(APPS)/ed/glue.asm
|
2020-01-01 07:07:39 +11:00
|
|
|
$(ZASM) -o 1f $(KERNEL) $(APPS) user.h < $(APPS)/ed/glue.asm > $@
|
2019-07-22 05:37:03 +10:00
|
|
|
|
2019-11-16 02:33:13 +11:00
|
|
|
# -o value synced with offset in glue.asm
|
2019-07-22 05:37:03 +10:00
|
|
|
zasm.bin: $(APPS)/zasm/glue.asm
|
2020-01-01 07:07:39 +11:00
|
|
|
$(ZASM) -o 24 $(KERNEL) $(APPS) user.h < $(APPS)/zasm/glue.asm > $@
|
2019-07-22 05:37:03 +10:00
|
|
|
|
|
|
|
os.sms: glue.asm ed.bin zasm.bin
|
2020-01-01 07:07:39 +11:00
|
|
|
$(ZASM) $(KERNEL) $(APPS) ed.bin zasm.bin < glue.asm > $@
|
2019-07-22 05:37:03 +10:00
|
|
|
|
2019-07-23 00:10:42 +10:00
|
|
|
clean:
|
|
|
|
rm -f os.sms ed.bin zasm.bin
|