1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-15 19:38:06 +11:00
collapseos/recipes/sms/Makefile

33 lines
541 B
Makefile
Raw Normal View History

2020-05-15 12:15:31 +10:00
TARGET = os.bin
BASE = ../..
STAGE = $(BASE)/cvm/stage
BLKPACK = $(BASE)/tools/blkpack
SMSROM = $(BASE)/tools/smsrom
EMUL = $(BASE)/emul/z80/sms
.PHONY: all
2020-05-15 12:15:31 +10:00
all: $(TARGET)
$(TARGET): xcomp.fs $(STAGE) blkfs
cat xcomp.fs | $(STAGE) blkfs > $@
$(SMSROM):
$(BLKPACK):
$(MAKE) -C ../tools
blkfs: $(BLKPACK)
$(BLKPACK) $(BASE)/blk blk > $@
2020-05-15 12:15:31 +10:00
$(STAGE):
$(MAKE) -C $(BASE)/cvm stage
os.sms: $(TARGET) $(STAGE) $(SMSROM)
$(SMSROM) $(TARGET) > $@
2020-05-16 11:49:10 +10:00
2020-05-15 12:15:31 +10:00
$(EMUL):
$(MAKE) -C ${@:%/sms=%}
.PHONY: emul
emul: $(EMUL) $(TARGET)
$(EMUL) $(TARGET)