1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-15 09:08:06 +11:00
collapseos/arch/z80/sms/Makefile

29 lines
499 B
Makefile
Raw Normal View History

# See /doc/hw/z80/sms.txt
TARGET = os.sms
BASE = ../../..
STAGE = $(BASE)/cvm/stage
BLKPACK = $(BASE)/tools/blkpack
EMUL = $(BASE)/emul/z80/sms
.PHONY: all
2020-05-15 12:15:31 +10:00
all: $(TARGET)
$(TARGET): xcomp.fs $(STAGE) blkfs
cat xcomp.fs | $(STAGE) blkfs > $@
$(BLKPACK):
$(MAKE) -C ../tools
blkfs: $(BLKPACK) $(BASE)/blk.fs blk.fs
cat $(BASE)/blk.fs blk.fs | $(BLKPACK) > $@
2020-05-15 12:15:31 +10:00
$(STAGE):
$(MAKE) -C $(BASE)/cvm stage
2020-05-15 12:15:31 +10:00
$(EMUL):
$(MAKE) -C ${@:%/sms=%}
.PHONY: emul
emul: $(EMUL) $(TARGET)
$(EMUL) $(TARGET)