2019-07-22 05:37:03 +10:00
|
|
|
ZASM = ../../../tools/zasm.sh
|
|
|
|
KERNEL = ../../../kernel
|
|
|
|
APPS = ../../../apps
|
|
|
|
|
2019-07-23 00:10:42 +10:00
|
|
|
.PHONY: all clean
|
|
|
|
all: os.sms
|
2019-07-22 05:37:03 +10:00
|
|
|
|
|
|
|
ed.bin: $(APPS)/ed/glue.asm
|
|
|
|
echo ".equ USER_CODE ED_CODE" | cat user-tmpl.h - > user.h
|
|
|
|
$(ZASM) $(KERNEL) $(APPS) user.h < $< > $@
|
|
|
|
|
|
|
|
zasm.bin: $(APPS)/zasm/glue.asm
|
|
|
|
echo ".equ USER_CODE ZASM_CODE" | cat user-tmpl.h - > user.h
|
|
|
|
$(ZASM) $(KERNEL) $(APPS) user.h < $< > $@
|
|
|
|
|
|
|
|
os.sms: glue.asm ed.bin zasm.bin
|
|
|
|
$(ZASM) $(KERNEL) ed.bin zasm.bin < $< > $@
|
|
|
|
|
2019-07-23 00:10:42 +10:00
|
|
|
clean:
|
|
|
|
rm -f os.sms ed.bin zasm.bin
|