2020-10-31 11:31:47 +11:00
|
|
|
# See /doc/hw/z80/trs80.txt
|
2020-05-15 02:08:17 +10:00
|
|
|
TARGET = os.bin
|
2020-10-31 11:31:47 +11:00
|
|
|
BASE = ../../..
|
2020-09-21 01:57:04 +10:00
|
|
|
BLKPACK = $(BASE)/tools/blkpack
|
|
|
|
STAGE = $(BASE)/cvm/stage
|
2020-12-06 14:04:22 +11:00
|
|
|
EDIR = $(BASE)/emul/z80
|
|
|
|
EMUL = $(EDIR)/trs80
|
2020-02-13 02:20:47 +11:00
|
|
|
|
|
|
|
.PHONY: all
|
2020-04-28 21:51:41 +10:00
|
|
|
all: $(TARGET)
|
2020-09-21 01:57:04 +10:00
|
|
|
$(TARGET): xcomp.fs $(STAGE) blkfs
|
|
|
|
cat xcomp.fs | $(STAGE) blkfs > $@
|
|
|
|
|
|
|
|
$(BLKPACK):
|
|
|
|
$(MAKE) -C ../tools
|
|
|
|
|
2020-12-06 14:04:22 +11:00
|
|
|
blkfs: blk.fs $(BLKPACK)
|
2020-11-15 10:00:31 +11:00
|
|
|
cat $(BASE)/blk.fs blk.fs | $(BLKPACK) > $@
|
2020-06-12 02:23:59 +10:00
|
|
|
|
|
|
|
$(STAGE):
|
2020-09-21 01:57:04 +10:00
|
|
|
$(MAKE) -C $(BASE)/cvm stage
|
2020-12-06 14:04:22 +11:00
|
|
|
|
|
|
|
$(EMUL):
|
|
|
|
$(MAKE) -C $(EDIR)
|
|
|
|
|
|
|
|
.PHONY: emul
|
|
|
|
emul: $(EMUL) $(TARGET)
|
|
|
|
$(EMUL) $(TARGET)
|