scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 47b38c5176ab09a277d1196c2ca14dfd86c3a17b
parent ae5ef00bfb5f7fff6873dcfa556f5dcc11ebf9bd
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  7 Oct 2021 19:05:09 +0200

build: Add submodule for qbe

Qbe is an external dependency for scc, and to make easy
to bootstrap scc is better to add it like a submodule,
in a way that we can install it at the same time than
any other part of scc.

Diffstat:
A.gitmodules | 3+++
Msrc/cmd/Makefile | 13+++++++++++++
Asrc/cmd/qbe | 1+
3 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/.gitmodules b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "src/cmd/qbe"] + path = src/cmd/qbe + url = git://c9x.me/qbe.git diff --git a/src/cmd/Makefile b/src/cmd/Makefile @@ -1,6 +1,7 @@ .POSIX: DIRS =\ + qbe\ ld\ as\ cc\ @@ -17,9 +18,21 @@ TARGET =\ $(BINDIR)/objdump\ $(BINDIR)/objcopy\ $(BINDIR)/addr2line\ + $(BINDIR)/qbe\ all: $(TARGET) $(DIRS) +qbe: qbe/.git + +qbe/.git: + git submodule init qbe + git submodule update + +qbe/obj/qbe: qbe + +$(BINDIR)/qbe: qbe/obj/qbe + cp qbe/obj/qbe $@ + $(BINDIR)/nm: nm.o $(LIBMACH) $(LIBSCC) $(CC) $(PROJ_LDFLAGS) nm.o -lmach -lscc -o $@ diff --git a/src/cmd/qbe b/src/cmd/qbe @@ -0,0 +1 @@ +Subproject commit bb16529b34a844c6e15f8837950585761122106e