mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-30 22:48:08 +11:00
394f962510
All recipe makesfiles would previously assume a built emul/. Fixes #113
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)
|
|
|