1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-30 22:08:08 +11:00
collapseos/recipes/sms/Makefile

24 lines
387 B
Makefile
Raw Normal View History

2020-05-15 12:15:31 +10:00
TARGET = os.bin
EDIR = ../../emul
STAGE = $(EDIR)/stage
EMUL = $(EDIR)/hw/sms/sms
.PHONY: all
2020-05-15 12:15:31 +10:00
all: $(TARGET)
$(TARGET): xcomp.fs $(STAGE)
cat xcomp.fs | $(STAGE) > $@
$(STAGE):
$(MAKE) -C $(EDIR) stage
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)