1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-21 00:38:07 +11:00
collapseos/recipes/sms/Makefile
2020-06-26 21:23:13 -04:00

24 lines
396 B
Makefile

TARGET = os.bin
BASE = ../../
STAGE = $(BASE)/cvm/stage
EMUL = $(BASE)/emul/hw/sms/sms
.PHONY: all
all: $(TARGET)
$(TARGET): xcomp.fs $(STAGE)
cat xcomp.fs | $(STAGE) > $@
$(STAGE):
$(MAKE) -C $(BASE)/cvm stage
os.sms: $(TARGET) $(STAGE)
dd if=$(TARGET) bs=32752 conv=sync | cat - sega.bin > $@
$(EMUL):
$(MAKE) -C ${@:%/sms=%}
.PHONY: emul
emul: $(EMUL) $(TARGET)
$(EMUL) $(TARGET)