From: Ben Gras Date: Tue, 13 Jul 2010 14:11:31 +0000 (+0000) Subject: lib: clang-libraries top-level target. X-Git-Tag: v3.1.8~250 X-Git-Url: http://zhaoyanbai.com/repos/%22../static/icons/man.3.ps?a=commitdiff_plain;h=0574bb5a63d1240043ee618cab201561dff013a5;p=minix.git lib: clang-libraries top-level target. --- diff --git a/Makefile b/Makefile index d7538e19f..54e0b559a 100644 --- 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 diff --git a/lib/Makefile b/lib/Makefile index 620ea1123..58bcb2de8 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -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 index 000000000..08fe496af --- /dev/null +++ b/lib/clang_build.sh @@ -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 $@