scc

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

commit 652edbc30affbf2f37dcf423c6eb92619afea0d8
parent 0c80fe8e83971be5be76a2d67892270537914f90
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun,  3 Oct 2021 22:50:17 +0200

build: Select set of libc targets based in uname

The libc depends of the compiler to be able to generate
code for different processors, and trying to compile a
system without support from the toolchain will make the
compilation fail. In order to try to minimize this point,
this commits uses uname -m to select the set of confi-
gurations that must be build.

Diffstat:
MMakefile | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -15,12 +15,27 @@ NODEP = 1 all: +@$(MAKE) `$(SCRIPTDIR)/config` toolchain + +@$(MAKE) `$(SCRIPTDIR)/config` `uname -m` + +x86_64 amd64: FORCE +@$(MAKE) `$(SCRIPTDIR)/config` CONF=amd64-linux libc libcrt +@$(MAKE) `$(SCRIPTDIR)/config` CONF=amd64-openbsd libc libcrt +@$(MAKE) `$(SCRIPTDIR)/config` CONF=amd64-netbsd libc libcrt +@$(MAKE) `$(SCRIPTDIR)/config` CONF=amd64-dragonfly libc libcrt +@$(MAKE) `$(SCRIPTDIR)/config` CONF=amd64-darwin libc libcrt +i386: FORCE + +@$(MAKE) `$(SCRIPTDIR)/config` CONF=i386-linux libc libcrt + +ppc: FORCE + +@$(MAKE) `$(SCRIPTDIR)/config` CONF=ppc-linux libc libcrt + +arm: FORCE + +@$(MAKE) `$(SCRIPTDIR)/config` CONF=arm-linux libc libcrt + +arm64: FORCE + +@$(MAKE) `$(SCRIPTDIR)/config` CONF=arm64-linux libc libcrt + toolchain: dirs src libc: dirs src/libc