mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-27 21:48:05 +11:00
19 lines
460 B
Makefile
19 lines
460 B
Makefile
|
ZASM = ../../../tools/zasm.sh
|
||
|
KERNEL = ../../../kernel
|
||
|
APPS = ../../../apps
|
||
|
|
||
|
.PHONY: all
|
||
|
all: os.sms ed.bin
|
||
|
|
||
|
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 < $< > $@
|
||
|
|