2020-05-14 22:15:31 -04:00
|
|
|
TARGET = os.bin
|
2020-06-11 12:23:59 -04:00
|
|
|
EDIR = ../../emul
|
|
|
|
STAGE = $(EDIR)/stage
|
|
|
|
EMUL = $(EDIR)/hw/sms/sms
|
2019-07-01 11:05:25 -04:00
|
|
|
|
|
|
|
.PHONY: all
|
2020-05-14 22:15:31 -04:00
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): xcomp.fs $(STAGE)
|
|
|
|
cat xcomp.fs | $(STAGE) > $@
|
|
|
|
|
2020-06-11 12:23:59 -04:00
|
|
|
$(STAGE):
|
|
|
|
$(MAKE) -C $(EDIR) 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)
|
|
|
|
|