mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-30 19:58:05 +11:00
490eceab6d
I'm about to reuse sdc.c in sms.c and the old directory structure was becoming awkward.
29 lines
454 B
Makefile
29 lines
454 B
Makefile
TARGET = os.bin
|
|
BASE = ../..
|
|
CDIR = $(BASE)/cvm
|
|
EDIR = $(BASE)/emul/z80
|
|
STAGE = $(CDIR)/stage
|
|
BLKPACK = $(BASE)/tools/blkpack
|
|
EMUL = $(EDIR)/rc2014
|
|
|
|
.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 $(EDIR)
|
|
|
|
.PHONY: emul
|
|
emul: $(EMUL) $(TARGET)
|
|
$(EMUL) $(TARGET)
|