[cfe-commits] r83582 - in /cfe/trunk: Makefile lib/AST/Makefile lib/Analysis/Makefile lib/Basic/Makefile lib/CodeGen/Makefile lib/Driver/Makefile lib/Frontend/Makefile lib/Index/Makefile lib/Lex/Makefile lib/Parse/Makefile lib/Rewrite/Makefile lib/Sema/Makefile

Douglas Gregor dgregor at apple.com
Thu Oct 8 15:15:33 PDT 2009


Author: dgregor
Date: Thu Oct  8 17:15:31 2009
New Revision: 83582

URL: http://llvm.org/viewvc/llvm-project?rev=83582&view=rev
Log:
Installation of Clang libraries and headers, from Axel Naumann!

Modified:
    cfe/trunk/Makefile
    cfe/trunk/lib/AST/Makefile
    cfe/trunk/lib/Analysis/Makefile
    cfe/trunk/lib/Basic/Makefile
    cfe/trunk/lib/CodeGen/Makefile
    cfe/trunk/lib/Driver/Makefile
    cfe/trunk/lib/Frontend/Makefile
    cfe/trunk/lib/Index/Makefile
    cfe/trunk/lib/Lex/Makefile
    cfe/trunk/lib/Parse/Makefile
    cfe/trunk/lib/Rewrite/Makefile
    cfe/trunk/lib/Sema/Makefile

Modified: cfe/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Makefile?rev=83582&r1=83581&r2=83582&view=diff

==============================================================================
--- cfe/trunk/Makefile (original)
+++ cfe/trunk/Makefile Thu Oct  8 17:15:31 2009
@@ -30,3 +30,28 @@
 	                    -or -name '*.h' > cscope.files
 
 .PHONY: test report clean cscope.files
+
+install-local::
+	$(Echo) Installing include files
+	$(Verb) $(MKDIR) $(PROJ_includedir)
+	$(Verb) if test -d "$(PROJ_SRC_ROOT)/tools/clang/include" ; then \
+	  cd $(PROJ_SRC_ROOT)/tools/clang/include && \
+	  for  hdr in `find . -type f '!' '(' -name '*~' \
+	      -o -name '.#*' -o -name '*.in' ')' -print | grep -v CVS | \
+	      grep -v .svn` ; do \
+	    instdir=`dirname "$(PROJ_includedir)/$$hdr"` ; \
+	    if test \! -d "$$instdir" ; then \
+	      $(EchoCmd) Making install directory $$instdir ; \
+	      $(MKDIR) $$instdir ;\
+	    fi ; \
+	    $(DataInstall) $$hdr $(PROJ_includedir)/$$hdr ; \
+	  done ; \
+	fi
+ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT))
+	$(Verb) if test -d "$(PROJ_OBJ_ROOT)/tools/clang/include" ; then \
+	  cd $(PROJ_OBJ_ROOT)/tools/clang/include && \
+	  for hdr in `find . -type f -print | grep -v CVS .tmp` ; do \
+	    $(DataInstall) $$hdr $(PROJ_includedir)/$$hdr ; \
+	  done ; \
+	fi
+endif

Modified: cfe/trunk/lib/AST/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Makefile?rev=83582&r1=83581&r2=83582&view=diff

==============================================================================
--- cfe/trunk/lib/AST/Makefile (original)
+++ cfe/trunk/lib/AST/Makefile Thu Oct  8 17:15:31 2009
@@ -16,9 +16,6 @@
 BUILD_ARCHIVE = 1
 CXXFLAGS = -fno-rtti
 
-# Don't install Clang libraries
-NO_INSTALL = 1
-
 CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
 
 include $(LEVEL)/Makefile.common

Modified: cfe/trunk/lib/Analysis/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/Makefile?rev=83582&r1=83581&r2=83582&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/Makefile (original)
+++ cfe/trunk/lib/Analysis/Makefile Thu Oct  8 17:15:31 2009
@@ -16,9 +16,6 @@
 BUILD_ARCHIVE = 1
 CXXFLAGS = -fno-rtti
 
-# Don't install Clang libraries
-NO_INSTALL = 1
-
 CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
 
 include $(LEVEL)/Makefile.common

Modified: cfe/trunk/lib/Basic/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Makefile?rev=83582&r1=83581&r2=83582&view=diff

==============================================================================
--- cfe/trunk/lib/Basic/Makefile (original)
+++ cfe/trunk/lib/Basic/Makefile Thu Oct  8 17:15:31 2009
@@ -16,9 +16,6 @@
 BUILD_ARCHIVE = 1
 CXXFLAGS = -fno-rtti
 
-# Don't install Clang libraries
-NO_INSTALL = 1
-
 CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
 
 include $(LEVEL)/Makefile.common

Modified: cfe/trunk/lib/CodeGen/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/Makefile?rev=83582&r1=83581&r2=83582&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/Makefile (original)
+++ cfe/trunk/lib/CodeGen/Makefile Thu Oct  8 17:15:31 2009
@@ -17,9 +17,6 @@
 BUILD_ARCHIVE = 1
 CXXFLAGS = -fno-rtti
 
-# Don't install Clang libraries
-NO_INSTALL = 1
-
 CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
 
 include $(LEVEL)/Makefile.common

Modified: cfe/trunk/lib/Driver/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Makefile?rev=83582&r1=83581&r2=83582&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/Makefile (original)
+++ cfe/trunk/lib/Driver/Makefile Thu Oct  8 17:15:31 2009
@@ -12,9 +12,6 @@
 BUILD_ARCHIVE = 1
 CXXFLAGS = -fno-rtti
 
-# Don't install Clang libraries
-NO_INSTALL = 1
-
 CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
 
 include $(LEVEL)/Makefile.common

Modified: cfe/trunk/lib/Frontend/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/Makefile?rev=83582&r1=83581&r2=83582&view=diff

==============================================================================
--- cfe/trunk/lib/Frontend/Makefile (original)
+++ cfe/trunk/lib/Frontend/Makefile Thu Oct  8 17:15:31 2009
@@ -12,9 +12,6 @@
 BUILD_ARCHIVE = 1
 CXXFLAGS = -fno-rtti
 
-# Don't install Clang libraries
-NO_INSTALL = 1
-
 CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
 
 include $(LEVEL)/Makefile.common

Modified: cfe/trunk/lib/Index/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Index/Makefile?rev=83582&r1=83581&r2=83582&view=diff

==============================================================================
--- cfe/trunk/lib/Index/Makefile (original)
+++ cfe/trunk/lib/Index/Makefile Thu Oct  8 17:15:31 2009
@@ -18,9 +18,6 @@
 BUILD_ARCHIVE = 1
 CXXFLAGS = -fno-rtti 
 
-# Don't install Clang libraries
-NO_INSTALL = 1
-
 ifeq ($(ARCH),PowerPC)
 CXXFLAGS += -maltivec
 endif

Modified: cfe/trunk/lib/Lex/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Makefile?rev=83582&r1=83581&r2=83582&view=diff

==============================================================================
--- cfe/trunk/lib/Lex/Makefile (original)
+++ cfe/trunk/lib/Lex/Makefile Thu Oct  8 17:15:31 2009
@@ -18,9 +18,6 @@
 BUILD_ARCHIVE = 1
 CXXFLAGS = -fno-rtti 
 
-# Don't install Clang libraries
-NO_INSTALL = 1
-
 ifeq ($(ARCH),PowerPC)
 CXXFLAGS += -maltivec
 endif

Modified: cfe/trunk/lib/Parse/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/Makefile?rev=83582&r1=83581&r2=83582&view=diff

==============================================================================
--- cfe/trunk/lib/Parse/Makefile (original)
+++ cfe/trunk/lib/Parse/Makefile Thu Oct  8 17:15:31 2009
@@ -16,9 +16,6 @@
 BUILD_ARCHIVE = 1
 CXXFLAGS = -fno-rtti
 
-# Don't install Clang libraries
-NO_INSTALL = 1
-
 CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
 
 include $(LEVEL)/Makefile.common

Modified: cfe/trunk/lib/Rewrite/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/Makefile?rev=83582&r1=83581&r2=83582&view=diff

==============================================================================
--- cfe/trunk/lib/Rewrite/Makefile (original)
+++ cfe/trunk/lib/Rewrite/Makefile Thu Oct  8 17:15:31 2009
@@ -16,9 +16,6 @@
 BUILD_ARCHIVE = 1
 CXXFLAGS = -fno-rtti
 
-# Don't install Clang libraries
-NO_INSTALL = 1
-
 CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
 
 include $(LEVEL)/Makefile.common

Modified: cfe/trunk/lib/Sema/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/Makefile?rev=83582&r1=83581&r2=83582&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/Makefile (original)
+++ cfe/trunk/lib/Sema/Makefile Thu Oct  8 17:15:31 2009
@@ -17,9 +17,6 @@
 BUILD_ARCHIVE = 1
 CXXFLAGS = -fno-rtti
 
-# Don't install Clang libraries
-NO_INSTALL = 1
-
 CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
 
 include $(LEVEL)/Makefile.common





More information about the cfe-commits mailing list