mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-30 20: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.
30 lines
510 B
Makefile
30 lines
510 B
Makefile
# See /doc/hw/z80/rc2014.txt for details
|
|
TARGET = os.bin
|
|
BASE = ../../..
|
|
CDIR = $(BASE)/cvm
|
|
EDIR = $(BASE)/emul/z80
|
|
STAGE = $(CDIR)/stage
|
|
BLKPACK = $(BASE)/tools/blkpack
|
|
EMUL = $(EDIR)/rc2014
|
|
|
|
.PHONY: all
|
|
all: $(TARGET)
|
|
$(TARGET): xcomp.fs $(STAGE) blkfs
|
|
$(STAGE) blkfs < xcomp.fs > $@
|
|
|
|
$(BLKPACK):
|
|
$(MAKE) -C ../tools
|
|
|
|
blkfs: $(BLKPACK)
|
|
cat $(BASE)/blk.fs blk.fs | $(BLKPACK) > $@
|
|
|
|
$(STAGE):
|
|
$(MAKE) -C $(CDIR) stage
|
|
|
|
$(EMUL):
|
|
$(MAKE) -C $(EDIR)
|
|
|
|
.PHONY: emul
|
|
emul: $(EMUL) $(TARGET)
|
|
$(EMUL) $(TARGET)
|