collapseos/arch/z80/rc2014/Makefile

30 lines
498 B
Makefile
Raw Normal View History

# See /doc/hw/z80/rc2014.txt for details
TARGET = os.bin
BASE = ../../..
CDIR = $(BASE)/cvm
EDIR = $(BASE)/emul/z80
STAGE = $(CDIR)/stage
BLKPACK = $(BASE)/tools/blkpack
EMUL = $(EDIR)/rc2014
.PHONY: all
2020-04-02 23:21:53 -04:00
all: $(TARGET)
$(TARGET): xcomp.fs $(STAGE) blkfs
$(STAGE) blkfs < xcomp.fs > $@
$(BLKPACK):
$(MAKE) -C ../tools
blkfs: $(BLKPACK)
$(BLKPACK) $(BASE)/blk blk > $@
2020-04-02 23:21:53 -04:00
$(STAGE):
$(MAKE) -C $(CDIR) stage
$(EMUL):
$(MAKE) -C $(EDIR)
.PHONY: emul
emul: $(EMUL) $(TARGET)
$(EMUL) $(TARGET)