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