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