cdd0b64570
Instead of expecting a `USER_CODE` symbol to be set, we expect `.org` to be set in all userspace glue code. This gives us more flexibility with regards to how we manage that. Moreover, instead of making `USER_RAMSTART` mandatory, we make it default to the end of the binary, which is adequate in a majority of cases. Will be useful for my upcoming mega-commit... :)
21 lines
470 B
Makefile
21 lines
470 B
Makefile
ZASM = ../../../tools/zasm.sh
|
|
KERNEL = ../../../kernel
|
|
APPS = ../../../apps
|
|
|
|
.PHONY: all clean
|
|
all: os.sms
|
|
|
|
# -o value synced with offset in glue.asm
|
|
ed.bin: $(APPS)/ed/glue.asm
|
|
$(ZASM) -o 19 $(KERNEL) $(APPS) user.h < $< > $@
|
|
|
|
# -o value synced with offset in glue.asm
|
|
zasm.bin: $(APPS)/zasm/glue.asm
|
|
$(ZASM) -o 1d $(KERNEL) $(APPS) user.h < $< > $@
|
|
|
|
os.sms: glue.asm ed.bin zasm.bin
|
|
$(ZASM) $(KERNEL) ed.bin zasm.bin < $< > $@
|
|
|
|
clean:
|
|
rm -f os.sms ed.bin zasm.bin
|