mirror of
https://github.com/hsoft/collapseos.git
synced 2024-09-06 12:18:45 +10:00
24 lines
387 B
Makefile
24 lines
387 B
Makefile
TARGET = os.bin
|
|
EDIR = ../../emul
|
|
STAGE = $(EDIR)/stage
|
|
EMUL = $(EDIR)/hw/sms/sms
|
|
|
|
.PHONY: all
|
|
all: $(TARGET)
|
|
$(TARGET): xcomp.fs $(STAGE)
|
|
cat xcomp.fs | $(STAGE) > $@
|
|
|
|
$(STAGE):
|
|
$(MAKE) -C $(EDIR) 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)
|
|
|