1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-23 22:58:06 +11:00
collapseos/recipes/rc2014/Makefile
2020-06-30 10:24:12 -04:00

22 lines
353 B
Makefile

TARGET = os.bin
BASEDIR = ../..
CDIR = $(BASEDIR)/cvm
EDIR = $(BASEDIR)/emul
STAGE = $(CDIR)/stage
EMUL = $(EDIR)/hw/rc2014/classic
.PHONY: all
all: $(TARGET)
$(TARGET): xcomp.fs $(STAGE)
cat xcomp.fs | $(STAGE) > $@
$(STAGE):
$(MAKE) -C $(CDIR) stage
$(EMUL):
$(MAKE) -C ${@:%/classic=%}
.PHONY: emul
emul: $(EMUL) $(TARGET)
$(EMUL) $(TARGET)