mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-27 23:28:05 +11:00
31 lines
563 B
Makefile
31 lines
563 B
Makefile
TARGET = os.bin
|
|
BASEDIR = ../..
|
|
ZASM = $(BASEDIR)/emul/zasm/zasm
|
|
KERNEL = $(BASEDIR)/kernel
|
|
APPS = $(BASEDIR)/apps
|
|
EMUL = $(BASEDIR)/emul/hw/ti/ti84
|
|
MKTIUPGRADE = mktiupgrade
|
|
|
|
.PHONY: all
|
|
all: $(TARGET)
|
|
$(TARGET): glue.asm
|
|
$(ZASM) $(KERNEL) $(APPS) < glue.asm > $@
|
|
|
|
$(EMUL):
|
|
$(MAKE) -C ${@:%/ti84=%}
|
|
|
|
.PHONY: emul
|
|
emul: $(EMUL) $(TARGET)
|
|
$(EMUL) $(TARGET)
|
|
|
|
os.rom: $(TARGET)
|
|
cp $(TARGET) $@
|
|
truncate -s 1M $@
|
|
|
|
os.8xu: os.rom
|
|
$(MKTIUPGRADE) -p -k keys/0A.key -d TI-84+ os.rom $@ 00
|
|
|
|
.PHONY: send
|
|
send: os.8xu
|
|
tilp -n --calc ti84+ --cable DirectLink os.8xu
|