collapseos/arch/z80/sms/Makefile

34 lines
582 B
Makefile
Raw Normal View History

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