[llvm-branch-commits] [cfe-branch] r109990 - /cfe/branches/Apple/whitney-IB/ClangBNI.mk

Daniel Dunbar daniel at zuster.org
Sun Aug 1 15:48:50 PDT 2010


Author: ddunbar
Date: Sun Aug  1 17:48:50 2010
New Revision: 109990

URL: http://llvm.org/viewvc/llvm-project?rev=109990&view=rev
Log:
Sketch target for laying down clang symlinks in a platforms subdirectory.

Modified:
    cfe/branches/Apple/whitney-IB/ClangBNI.mk

Modified: cfe/branches/Apple/whitney-IB/ClangBNI.mk
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/whitney-IB/ClangBNI.mk?rev=109990&r1=109989&r2=109990&view=diff
==============================================================================
--- cfe/branches/Apple/whitney-IB/ClangBNI.mk (original)
+++ cfe/branches/Apple/whitney-IB/ClangBNI.mk Sun Aug  1 17:48:50 2010
@@ -26,9 +26,11 @@
 
 # This makefile currently supports the following build targets:
 #
-#   install-clang    - Build the Clang compiler.
-#   install-cross    - Build the Clang compiler, for ARM.
-#   install-libclang - Build the libclang dylib.
+#   install-clang	 - Build the Clang compiler.
+#   install-cross	 - Build the Clang compiler, for ARM.
+#   install-libclang	 - Build the libclang dylib.
+#   install-clang-links	 - Install links from a platforms subdirectory to the
+#                          root clang.
 #
 # The default build target is 'install-clang'.
 #
@@ -80,6 +82,11 @@
 # Never bootstrap.
 Clang_Enable_Bootstrap := 0
 
+else ifeq ($(MAKECMDGOALS),install-clang-links)
+
+# Dummy project which only installs compiler links from the INSTALL_LOCATION to
+# the primary SDK compiler.
+
 else
 
 # Default project (clang).
@@ -442,6 +449,13 @@
 	$(INSTALL_FILE) $(Sources)/LICENSE.TXT $(OSL)/clang-llvm.txt
 	$(INSTALL_FILE) $(Sources)/tools/clang/LICENSE.TXT $(OSL)/clang.txt
 
+install-clang-links:
+	$(MKDIR) -p $(DSTROOT)/$(Install_Prefix)/bin
+	ln -sf ../../../../../usr/bin/clang $(DSTROOT)/$(Install_Prefix)/bin/clang
+ifeq ($(Clang_Enable_CXX), 1)
+	ln -sf ../../../../../usr/bin/clang++ $(DSTROOT)/$(Install_Prefix)/bin/clang++
+fi
+
 ##
 # Cross Compilation Build Support
 





More information about the llvm-branch-commits mailing list