cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit 173957fae99508b18915daf1bd5768172afc44a3
parent e70ee0ec1a0f7784dac638ac2d782afec4dd7a4c
Author: Michael Forney <mforney@mforney.org>
Date:   Mon, 13 May 2019 12:19:13 -0700

Add qbe submodule to make it easy to build

Diffstat:
A.gitmodules | 3+++
MMakefile | 5+++++
MREADME.md | 7+++++++
Aqbe | 1+
4 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/.gitmodules b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "qbe"] + path = qbe + url = https://git.sr.ht/~mcf/qbe diff --git a/Makefile b/Makefile @@ -82,6 +82,11 @@ bootstrap: stage2 stage3 check: all @CCQBE=./cc-qbe ./runtests +.PHONY: qbe +qbe: + git submodule update --init qbe + $(MAKE) -C qbe + .PHONY: clean clean: rm -rf cc $(DRIVER_OBJ) cc-qbe $(OBJ) stage2 stage3 diff --git a/README.md b/README.md @@ -51,6 +51,13 @@ string arrays (`static char *[]`): You may also want to customize your environment or `config.mk` with the appropriate `CC`, `CFLAGS` and `LDFLAGS`. +If you don't have QBE installed, you can build it from the included +submodule (NOTE: BSD users will need to use gmake here), then add it to +your PATH so that the driver will be able to run it. + + make qbe + PATH=$PWD/qbe/obj:$PATH + Once this is done, you can build with make diff --git a/qbe b/qbe @@ -0,0 +1 @@ +Subproject commit 014a7885bd6d0533b01708df17461cb2e2709e4e