]> Zhao Yanbai Git Server - minix.git/commitdiff
lib: clang-libraries top-level target.
authorBen Gras <ben@minix3.org>
Tue, 13 Jul 2010 14:11:31 +0000 (14:11 +0000)
committerBen Gras <ben@minix3.org>
Tue, 13 Jul 2010 14:11:31 +0000 (14:11 +0000)
Makefile
lib/Makefile
lib/clang_build.sh [new file with mode: 0755]

index d7538e19f750b0eb53bda6bc46139ca187fbef24..54e0b559a1e9cc67dbb3ef3110f386b21bc36a1c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -54,6 +54,9 @@ gnu-includes: includes
 gnu-libraries: includes
        $(MAKE) -C lib build_gnu
 
+clang-libraries: includes
+       $(MAKE) -C lib build_clang
+
 commands: includes libraries
        $(MAKE) -C commands all
 
index 620ea112336ce36b4ec3e563ba406da5ecacd40c..58bcb2de8e4ea14a095a708a98e4cd99cae6c6ff 100644 (file)
@@ -15,6 +15,9 @@ build_ack:
 build_gnu:
        sh gnu_build.sh obj depend all install
 
+build_clang:
+       sh clang_build.sh obj depend all install
+
 clean_ack:
        sh ack_build.sh clean
 
diff --git a/lib/clang_build.sh b/lib/clang_build.sh
new file mode 100755 (executable)
index 0000000..08fe496
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+export CC=clang
+export COMPILER_TYPE=gnu
+export MAKEOBJDIR=obj-gnu
+export PATH=$PATH:/usr/gnu/bin:/usr/llvm/bin
+
+make $@