2020-10-30 20:31:47 -04:00
|
|
|
# See /doc/hw/z80/rc2014.txt for details
|
2020-05-14 11:32:51 -04:00
|
|
|
TARGET = os.bin
|
2020-10-30 20:31:47 -04:00
|
|
|
BASE = ../../..
|
2020-09-20 10:50:13 -04:00
|
|
|
CDIR = $(BASE)/cvm
|
2020-10-24 16:50:22 -04:00
|
|
|
EDIR = $(BASE)/emul/z80
|
2020-06-30 10:24:12 -04:00
|
|
|
STAGE = $(CDIR)/stage
|
2020-09-20 10:50:13 -04:00
|
|
|
BLKPACK = $(BASE)/tools/blkpack
|
2020-10-25 15:58:00 -04:00
|
|
|
EMUL = $(EDIR)/rc2014
|
2020-04-11 15:11:36 -04:00
|
|
|
|
2019-04-25 16:03:45 -04:00
|
|
|
.PHONY: all
|
2020-04-02 23:21:53 -04:00
|
|
|
all: $(TARGET)
|
2020-09-20 10:50:13 -04:00
|
|
|
$(TARGET): xcomp.fs $(STAGE) blkfs
|
|
|
|
$(STAGE) blkfs < xcomp.fs > $@
|
|
|
|
|
|
|
|
$(BLKPACK):
|
|
|
|
$(MAKE) -C ../tools
|
|
|
|
|
|
|
|
blkfs: $(BLKPACK)
|
2020-11-14 18:00:31 -05:00
|
|
|
cat $(BASE)/blk.fs blk.fs | $(BLKPACK) > $@
|
2020-04-02 23:21:53 -04:00
|
|
|
|
2020-06-11 12:23:59 -04:00
|
|
|
$(STAGE):
|
2020-06-30 10:24:12 -04:00
|
|
|
$(MAKE) -C $(CDIR) stage
|
2020-01-02 16:59:38 -05:00
|
|
|
|
|
|
|
$(EMUL):
|
2020-10-25 15:58:00 -04:00
|
|
|
$(MAKE) -C $(EDIR)
|
2020-01-02 16:59:38 -05:00
|
|
|
|
|
|
|
.PHONY: emul
|
|
|
|
emul: $(EMUL) $(TARGET)
|
|
|
|
$(EMUL) $(TARGET)
|