mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-20 23:28:05 +11:00
490eceab6d
I'm about to reuse sdc.c in sms.c and the old directory structure was becoming awkward.
39 lines
675 B
Makefile
39 lines
675 B
Makefile
TARGET = os.bin
|
|
BASE = ../..
|
|
CDIR = $(BASE)/cvm
|
|
STAGE = $(CDIR)/stage
|
|
BLKPACK = $(BASE)/tools/blkpack
|
|
EMUL = $(BASE)/emul/z80/ti84
|
|
MKTIUPGRADE = mktiupgrade
|
|
|
|
.PHONY: all
|
|
all: $(TARGET)
|
|
$(TARGET): xcomp.fs $(STAGE) blkfs
|
|
$(STAGE) blkfs < xcomp.fs > $@
|
|
|
|
$(BLKPACK):
|
|
$(MAKE) -C ../tools
|
|
|
|
blkfs: $(BLKPACK)
|
|
$(BLKPACK) $(BASE)/blk blk > $@
|
|
|
|
$(STAGE):
|
|
$(MAKE) -C $(CDIR) 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
|