2020-10-31 11:31:47 +11:00
|
|
|
# See /doc/hw/z80/sms.txt
|
2020-05-15 12:15:31 +10:00
|
|
|
TARGET = os.bin
|
2020-10-31 11:31:47 +11:00
|
|
|
BASE = ../../..
|
2020-06-27 11:23:13 +10:00
|
|
|
STAGE = $(BASE)/cvm/stage
|
2020-09-21 00:21:21 +10:00
|
|
|
BLKPACK = $(BASE)/tools/blkpack
|
2020-10-11 04:28:36 +11:00
|
|
|
SMSROM = $(BASE)/tools/smsrom
|
2020-10-26 06:58:00 +11:00
|
|
|
EMUL = $(BASE)/emul/z80/sms
|
2019-07-02 01:05:25 +10:00
|
|
|
|
|
|
|
.PHONY: all
|
2020-05-15 12:15:31 +10:00
|
|
|
all: $(TARGET)
|
2020-09-21 00:21:21 +10:00
|
|
|
$(TARGET): xcomp.fs $(STAGE) blkfs
|
|
|
|
cat xcomp.fs | $(STAGE) blkfs > $@
|
|
|
|
|
2020-10-11 04:28:36 +11:00
|
|
|
$(SMSROM):
|
2020-09-21 00:21:21 +10:00
|
|
|
$(BLKPACK):
|
|
|
|
$(MAKE) -C ../tools
|
|
|
|
|
|
|
|
blkfs: $(BLKPACK)
|
|
|
|
$(BLKPACK) $(BASE)/blk blk > $@
|
2020-05-15 12:15:31 +10:00
|
|
|
|
2020-06-12 02:23:59 +10:00
|
|
|
$(STAGE):
|
2020-06-27 11:23:13 +10:00
|
|
|
$(MAKE) -C $(BASE)/cvm stage
|
2020-06-12 02:23:59 +10:00
|
|
|
|
2020-10-11 04:28:36 +11:00
|
|
|
os.sms: $(TARGET) $(STAGE) $(SMSROM)
|
|
|
|
$(SMSROM) $(TARGET) > $@
|
2020-05-16 11:49:10 +10:00
|
|
|
|
2020-05-15 12:15:31 +10:00
|
|
|
$(EMUL):
|
|
|
|
$(MAKE) -C ${@:%/sms=%}
|
|
|
|
|
|
|
|
.PHONY: emul
|
|
|
|
emul: $(EMUL) $(TARGET)
|
|
|
|
$(EMUL) $(TARGET)
|
|
|
|
|