mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 18:08:06 +11:00
efe4b13a4e
I'm planning on adding other subfolders. 8086 for example...
29 lines
471 B
Makefile
29 lines
471 B
Makefile
TARGET = os.bin
|
|
BASE = ../..
|
|
CDIR = $(BASE)/cvm
|
|
EDIR = $(BASE)/emul/z80
|
|
STAGE = $(CDIR)/stage
|
|
BLKPACK = $(BASE)/tools/blkpack
|
|
EMUL = $(EDIR)/rc2014/classic
|
|
|
|
.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 ${@:%/classic=%}
|
|
|
|
.PHONY: emul
|
|
emul: $(EMUL) $(TARGET)
|
|
$(EMUL) $(TARGET)
|