]> granicus.if.org Git - clang/commitdiff
Installation of Clang libraries and headers, from Axel Naumann!
authorDouglas Gregor <dgregor@apple.com>
Thu, 8 Oct 2009 22:15:31 +0000 (22:15 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 8 Oct 2009 22:15:31 +0000 (22:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83582 91177308-0d34-0410-b5e6-96231b3b80d8

12 files changed:
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

index 8f4fd66f2dfda90784e5befb58f69ec95087ce29..44217128d5248eb8cb2adf8960b488bc10c65779 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,3 +30,28 @@ cscope.files:
                            -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
index 7ec829ad2183a8cf89b7749c3df57c4c02ab869f..f7d4e9f62d5f2aff8ac9048aa5f889afa6d8165c 100644 (file)
@@ -16,9 +16,6 @@ LIBRARYNAME := clangAST
 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
index e4d44699fd5fd7cdc9dc1f5f75fc1451433e15b3..c597254fd2d73aa12831a8ccfc0f38e3465a830e 100644 (file)
@@ -16,9 +16,6 @@ LIBRARYNAME := clangAnalysis
 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
index 46c725998c918c2eff7d68e79b2345995af4e4e5..5bd4314f45cdc05b9df246a92e2c088b48702a40 100644 (file)
@@ -16,9 +16,6 @@ LIBRARYNAME := clangBasic
 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
index cc3b5041a72d7ffa9d9377b05b27d67ee9f2459d..e716fe78bc60962e6ac53f52c2f467286e98fae1 100644 (file)
@@ -17,9 +17,6 @@ LIBRARYNAME := clangCodeGen
 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
index 6a31e5fb886fea45a5b8bacec7d54be96fd897d4..dbacf8be0141a29f93a220374f9ef25b477ac2c3 100644 (file)
@@ -12,9 +12,6 @@ LIBRARYNAME := clangDriver
 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
index a514c86137cebaa6381df1a49dbdd352fca6b0ea..8d708475783f576182167e9fe6ead6ef15934eeb 100644 (file)
@@ -12,9 +12,6 @@ LIBRARYNAME := clangFrontend
 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
index 6e35df7702319bcdd5ca84cc9ef9d54ef125669e..7dee87f3b6bb0702a87b01b42691dd924b68f587 100644 (file)
@@ -18,9 +18,6 @@ LIBRARYNAME := clangIndex
 BUILD_ARCHIVE = 1
 CXXFLAGS = -fno-rtti 
 
-# Don't install Clang libraries
-NO_INSTALL = 1
-
 ifeq ($(ARCH),PowerPC)
 CXXFLAGS += -maltivec
 endif
index 848c04bb3b028a1164d8d8c867d27281c932efa3..a2437da812bdbefec1008c04ecfec0390bbd21ec 100644 (file)
@@ -18,9 +18,6 @@ LIBRARYNAME := clangLex
 BUILD_ARCHIVE = 1
 CXXFLAGS = -fno-rtti 
 
-# Don't install Clang libraries
-NO_INSTALL = 1
-
 ifeq ($(ARCH),PowerPC)
 CXXFLAGS += -maltivec
 endif
index 6dc1808009f4bdbbe303bffde469e35e0d821a9e..5d69029edc1afd15da2cbb8408d9966e042c5984 100644 (file)
@@ -16,9 +16,6 @@ LIBRARYNAME := clangParse
 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
index f70d928ff8f1f200415c8d418a46d73ee878f7a6..61fdf4006f86b2a6d7eb000924899b701b385813 100644 (file)
@@ -16,9 +16,6 @@ LIBRARYNAME := clangRewrite
 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
index d425bcbb2a5f75974f145df5ca354857397e13e0..0f4c7965dca260f7b762f91859fd8816e238a9e4 100644 (file)
@@ -17,9 +17,6 @@ LIBRARYNAME := clangSema
 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