mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-24 12:08:06 +11:00
95ab1ad588
Working in "blk/" folder from a modern system is harder than it should be. Moving blocks around is a bit awkward, grepping is a bit less convenient than it could be, git blame has troubles following, etc. In this commit, we modify blkpack and blkunpack to work with single text files with blocks being separated by a special markup. I think this will make the code significantly more convenient to work into.
34 lines
582 B
Makefile
34 lines
582 B
Makefile
# See /doc/hw/z80/sms.txt
|
|
TARGET = os.bin
|
|
BASE = ../../..
|
|
STAGE = $(BASE)/cvm/stage
|
|
BLKPACK = $(BASE)/tools/blkpack
|
|
SMSROM = $(BASE)/tools/smsrom
|
|
EMUL = $(BASE)/emul/z80/sms
|
|
|
|
.PHONY: all
|
|
all: $(TARGET)
|
|
$(TARGET): xcomp.fs $(STAGE) blkfs
|
|
cat xcomp.fs | $(STAGE) blkfs > $@
|
|
|
|
$(SMSROM):
|
|
$(BLKPACK):
|
|
$(MAKE) -C ../tools
|
|
|
|
blkfs: $(BLKPACK)
|
|
cat $(BASE)/blk.fs blk.fs | $(BLKPACK) > $@
|
|
|
|
$(STAGE):
|
|
$(MAKE) -C $(BASE)/cvm stage
|
|
|
|
os.sms: $(TARGET) $(STAGE) $(SMSROM)
|
|
$(SMSROM) $(TARGET) > $@
|
|
|
|
$(EMUL):
|
|
$(MAKE) -C ${@:%/sms=%}
|
|
|
|
.PHONY: emul
|
|
emul: $(EMUL) $(TARGET)
|
|
$(EMUL) $(TARGET)
|
|
|