2020-05-15 12:15:31 +10:00
|
|
|
TARGET = os.bin
|
2020-06-27 11:23:13 +10:00
|
|
|
BASE = ../../
|
|
|
|
STAGE = $(BASE)/cvm/stage
|
|
|
|
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)
|
|
|
|
$(TARGET): xcomp.fs $(STAGE)
|
|
|
|
cat xcomp.fs | $(STAGE) > $@
|
|
|
|
|
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)
|
|
|
|
|