2020-01-02 14:48:01 +11:00
|
|
|
TARGET = os.bin
|
2020-01-01 07:07:39 +11:00
|
|
|
BASEDIR = ../..
|
|
|
|
ZASM = $(BASEDIR)/emul/zasm/zasm
|
|
|
|
KERNEL = $(BASEDIR)/kernel
|
|
|
|
APPS = $(BASEDIR)/apps
|
2020-01-03 08:59:38 +11:00
|
|
|
EMUL = $(BASEDIR)/emul/hw/ti/ti84
|
2019-11-08 05:42:40 +11:00
|
|
|
MKTIUPGRADE = mktiupgrade
|
2019-11-08 03:52:29 +11:00
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): glue.asm
|
2020-01-01 07:07:39 +11:00
|
|
|
$(ZASM) $(KERNEL) $(APPS) < glue.asm > $@
|
2020-01-02 14:48:01 +11:00
|
|
|
|
2020-01-03 08:59:38 +11:00
|
|
|
$(EMUL):
|
|
|
|
$(MAKE) -C ${@:%/ti84=%}
|
|
|
|
|
|
|
|
.PHONY: emul
|
|
|
|
emul: $(EMUL) $(TARGET)
|
|
|
|
$(EMUL) $(TARGET)
|
|
|
|
|
2020-01-02 14:48:01 +11:00
|
|
|
os.rom: $(TARGET)
|
|
|
|
cp $(TARGET) $@
|
2019-11-08 03:52:29 +11:00
|
|
|
truncate -s 1M $@
|
|
|
|
|
2020-01-02 14:48:01 +11:00
|
|
|
os.8xu: os.rom
|
|
|
|
$(MKTIUPGRADE) -p -k keys/0A.key -d TI-84+ os.rom $@ 00
|
2019-11-08 05:42:40 +11:00
|
|
|
|
|
|
|
.PHONY: send
|
|
|
|
send: os.8xu
|
2020-01-01 07:07:39 +11:00
|
|
|
tilp -n --calc ti84+ --cable DirectLink os.8xu
|