2020-05-15 12:15:31 +10:00
|
|
|
TARGET = os.bin
|
2020-06-27 11:23:13 +10:00
|
|
|
BASE = ../../
|
|
|
|
STAGE = $(BASE)/cvm/stage
|
2020-09-21 00:21:21 +10:00
|
|
|
BLKPACK = $(BASE)/tools/blkpack
|
2020-06-27 11:23:13 +10:00
|
|
|
EMUL = $(BASE)/emul/hw/sms/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 > $@
|
|
|
|
|
|
|
|
$(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
|
|
|
|
|
|
|
os.sms: $(TARGET) $(STAGE)
|
2020-05-16 11:49:10 +10:00
|
|
|
dd if=$(TARGET) bs=32752 conv=sync | cat - sega.bin > $@
|
|
|
|
|
2020-05-15 12:15:31 +10:00
|
|
|
$(EMUL):
|
|
|
|
$(MAKE) -C ${@:%/sms=%}
|
|
|
|
|
|
|
|
.PHONY: emul
|
|
|
|
emul: $(EMUL) $(TARGET)
|
|
|
|
$(EMUL) $(TARGET)
|
|
|
|
|