collapseos/recipes/sms/Makefile

31 lines
526 B
Makefile
Raw Normal View History

2020-05-14 22:15:31 -04:00
TARGET = os.bin
BASE = ../../
STAGE = $(BASE)/cvm/stage
BLKPACK = $(BASE)/tools/blkpack
EMUL = $(BASE)/emul/hw/sms/sms
.PHONY: all
2020-05-14 22:15:31 -04:00
all: $(TARGET)
$(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
$(STAGE):
$(MAKE) -C $(BASE)/cvm stage
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)