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