1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-26 22:48:06 +11:00
collapseos/recipes/ti84/Makefile

33 lines
578 B
Makefile
Raw Normal View History

TARGET = os.bin
BASEDIR = ../..
2020-05-08 20:50:34 +10:00
FDIR = $(BASEDIR)/forth
EDIR = $(BASEDIR)/emul
2020-05-15 00:55:39 +10:00
STAGE = $(EDIR)/stage
EMUL = $(EDIR)/hw/ti/ti84
MKTIUPGRADE = mktiupgrade
.PHONY: all
2020-05-08 20:50:34 +10:00
all: $(TARGET)
2020-05-15 00:55:39 +10:00
$(TARGET): xcomp.fs $(STAGE)
cat xcomp.fs | $(STAGE) > $@
$(STAGE):
$(MAKE) -C $(EDIR) stage
$(EMUL):
$(MAKE) -C ${@:%/ti84=%}
.PHONY: emul
emul: $(EMUL) $(TARGET)
$(EMUL) $(TARGET)
os.rom: $(TARGET)
dd if=$(TARGET) bs=1M of=$@ conv=sync
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