mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-30 22:18:06 +11:00
b4f3fde062
Having the signature generation code in /tools prevents self-hosting on the SMS.
29 lines
499 B
Makefile
29 lines
499 B
Makefile
# See /doc/hw/z80/sms.txt
|
|
TARGET = os.sms
|
|
BASE = ../../..
|
|
STAGE = $(BASE)/cvm/stage
|
|
BLKPACK = $(BASE)/tools/blkpack
|
|
EMUL = $(BASE)/emul/z80/sms
|
|
|
|
.PHONY: all
|
|
all: $(TARGET)
|
|
$(TARGET): xcomp.fs $(STAGE) blkfs
|
|
cat xcomp.fs | $(STAGE) blkfs > $@
|
|
|
|
$(BLKPACK):
|
|
$(MAKE) -C ../tools
|
|
|
|
blkfs: $(BLKPACK) $(BASE)/blk.fs blk.fs
|
|
cat $(BASE)/blk.fs blk.fs | $(BLKPACK) > $@
|
|
|
|
$(STAGE):
|
|
$(MAKE) -C $(BASE)/cvm stage
|
|
|
|
$(EMUL):
|
|
$(MAKE) -C ${@:%/sms=%}
|
|
|
|
.PHONY: emul
|
|
emul: $(EMUL) $(TARGET)
|
|
$(EMUL) $(TARGET)
|
|
|