mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-21 00:28:05 +11:00
097c677641
This allows us to get rid of the zasm.sh wrapper.
22 lines
546 B
Makefile
22 lines
546 B
Makefile
BASEDIR = ../../..
|
|
ZASM = $(BASEDIR)/emul/zasm/zasm
|
|
KERNEL = $(BASEDIR)/kernel
|
|
APPS = $(BASEDIR)/apps
|
|
|
|
.PHONY: all clean
|
|
all: os.sms
|
|
|
|
# -o value synced with offset in glue.asm
|
|
ed.bin: $(APPS)/ed/glue.asm
|
|
$(ZASM) -o 1f $(KERNEL) $(APPS) user.h < $(APPS)/ed/glue.asm > $@
|
|
|
|
# -o value synced with offset in glue.asm
|
|
zasm.bin: $(APPS)/zasm/glue.asm
|
|
$(ZASM) -o 24 $(KERNEL) $(APPS) user.h < $(APPS)/zasm/glue.asm > $@
|
|
|
|
os.sms: glue.asm ed.bin zasm.bin
|
|
$(ZASM) $(KERNEL) $(APPS) ed.bin zasm.bin < glue.asm > $@
|
|
|
|
clean:
|
|
rm -f os.sms ed.bin zasm.bin
|