2020-05-14 22:15:31 -04:00
|
|
|
TARGET = os.bin
|
2020-10-24 14:37:19 -04:00
|
|
|
BASE = ../..
|
2020-06-26 21:23:13 -04:00
|
|
|
STAGE = $(BASE)/cvm/stage
|
2020-09-20 10:21:21 -04:00
|
|
|
BLKPACK = $(BASE)/tools/blkpack
|
2020-10-10 13:28:36 -04:00
|
|
|
SMSROM = $(BASE)/tools/smsrom
|
2020-10-24 16:50:22 -04:00
|
|
|
EMUL = $(BASE)/emul/z80/sms/sms
|
2019-07-01 11:05:25 -04:00
|
|
|
|
|
|
|
.PHONY: all
|
2020-05-14 22:15:31 -04:00
|
|
|
all: $(TARGET)
|
2020-09-20 10:21:21 -04:00
|
|
|
$(TARGET): xcomp.fs $(STAGE) blkfs
|
|
|
|
cat xcomp.fs | $(STAGE) blkfs > $@
|
|
|
|
|
2020-10-10 13:28:36 -04:00
|
|
|
$(SMSROM):
|
2020-09-20 10:21:21 -04:00
|
|
|
$(BLKPACK):
|
|
|
|
$(MAKE) -C ../tools
|
|
|
|
|
|
|
|
blkfs: $(BLKPACK)
|
|
|
|
$(BLKPACK) $(BASE)/blk blk > $@
|
2020-05-14 22:15:31 -04:00
|
|
|
|
2020-06-11 12:23:59 -04:00
|
|
|
$(STAGE):
|
2020-06-26 21:23:13 -04:00
|
|
|
$(MAKE) -C $(BASE)/cvm stage
|
2020-06-11 12:23:59 -04:00
|
|
|
|
2020-10-10 13:28:36 -04:00
|
|
|
os.sms: $(TARGET) $(STAGE) $(SMSROM)
|
|
|
|
$(SMSROM) $(TARGET) > $@
|
2020-05-15 21:49:10 -04:00
|
|
|
|
2020-05-14 22:15:31 -04:00
|
|
|
$(EMUL):
|
|
|
|
$(MAKE) -C ${@:%/sms=%}
|
|
|
|
|
|
|
|
.PHONY: emul
|
|
|
|
emul: $(EMUL) $(TARGET)
|
|
|
|
$(EMUL) $(TARGET)
|
|
|
|
|