[llvm-branch-commits] [cfe-branch] r102788 - /cfe/branches/Apple/cremebrulee-IB/Makefile
Daniel Dunbar
daniel at zuster.org
Fri Apr 30 15:05:22 PDT 2010
Author: ddunbar
Date: Fri Apr 30 17:05:22 2010
New Revision: 102788
URL: http://llvm.org/viewvc/llvm-project?rev=102788&view=rev
Log:
Add config for install-libclang target.
Modified:
cfe/branches/Apple/cremebrulee-IB/Makefile
Modified: cfe/branches/Apple/cremebrulee-IB/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/cremebrulee-IB/Makefile?rev=102788&r1=102787&r2=102788&view=diff
==============================================================================
--- cfe/branches/Apple/cremebrulee-IB/Makefile (original)
+++ cfe/branches/Apple/cremebrulee-IB/Makefile Fri Apr 30 17:05:22 2010
@@ -46,6 +46,19 @@
# Don't build compiler-rt.
Extra_Make_Variables += CLANG_NO_RUNTIME=1
+else ifeq ($(MAKECMDGOALS),install-libclang)
+
+# Install to 'clang-ide' subdirectory.
+Install_Path_Suffix := usr/clang-ide
+# Only include x86 backend.
+LLVM_Backends := x86
+# Don't build compiler-rt.
+Extra_Make_Variables += CLANG_NO_RUNTIME=1
+# Don't install any archive files.
+Extra_Make_Variables += NO_INSTALL_ARCHIVES=1
+# Use install-clang-c install target.
+LLVM_Install_Target := install-clang-c
+
else
# Default project (clang).
@@ -109,7 +122,7 @@
endif
# Set Install_Prefix and validate it exists.
-Install_Prefix := $(Install_Root)/usr
+Install_Prefix := $(Install_Root)
ifneq (OK, $(shell test -d $(Install_Prefix) && echo "OK"))
$(error "invalid install prefix: '$(Install_Prefix)'")
endif
@@ -250,13 +263,16 @@
##
# Standard Clang Build Support
-.PHONY: install-clang install-clang_final build-clang build-clang_final build-clang_stage1
+.PHONY: install-clang install-libclang
+.PHONY: install-clang_final build-clang build-clang_final build-clang_stage1
.PHONY: configure-clang_final configure-clang_singlestage configure-clang_stage2
.PHONY: configure-clang_stage1
.PHONY: install-clang-rootlinks install-clang-opensourcelicense
install-clang: install-clang_final $(Extra_Clang_Install_Targets)
+install-libclang: install-clang_final $(Extra_Clang_Install_Targets)
+
install-clang_final: build-clang
$(_v) for arch in $(RC_ARCHS) ; do \
echo "Installing for $$arch..." && \
More information about the llvm-branch-commits
mailing list