зеркало из https://github.com/microsoft/clang-1.git
Installation of Clang libraries and headers, from Axel Naumann!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83582 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
e36803167e
Коммит
14ea569641
25
Makefile
25
Makefile
|
@ -30,3 +30,28 @@ cscope.files:
|
||||||
-or -name '*.h' > cscope.files
|
-or -name '*.h' > cscope.files
|
||||||
|
|
||||||
.PHONY: test report clean 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
|
||||||
|
|
|
@ -16,9 +16,6 @@ LIBRARYNAME := clangAST
|
||||||
BUILD_ARCHIVE = 1
|
BUILD_ARCHIVE = 1
|
||||||
CXXFLAGS = -fno-rtti
|
CXXFLAGS = -fno-rtti
|
||||||
|
|
||||||
# Don't install Clang libraries
|
|
||||||
NO_INSTALL = 1
|
|
||||||
|
|
||||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -16,9 +16,6 @@ LIBRARYNAME := clangAnalysis
|
||||||
BUILD_ARCHIVE = 1
|
BUILD_ARCHIVE = 1
|
||||||
CXXFLAGS = -fno-rtti
|
CXXFLAGS = -fno-rtti
|
||||||
|
|
||||||
# Don't install Clang libraries
|
|
||||||
NO_INSTALL = 1
|
|
||||||
|
|
||||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -16,9 +16,6 @@ LIBRARYNAME := clangBasic
|
||||||
BUILD_ARCHIVE = 1
|
BUILD_ARCHIVE = 1
|
||||||
CXXFLAGS = -fno-rtti
|
CXXFLAGS = -fno-rtti
|
||||||
|
|
||||||
# Don't install Clang libraries
|
|
||||||
NO_INSTALL = 1
|
|
||||||
|
|
||||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -17,9 +17,6 @@ LIBRARYNAME := clangCodeGen
|
||||||
BUILD_ARCHIVE = 1
|
BUILD_ARCHIVE = 1
|
||||||
CXXFLAGS = -fno-rtti
|
CXXFLAGS = -fno-rtti
|
||||||
|
|
||||||
# Don't install Clang libraries
|
|
||||||
NO_INSTALL = 1
|
|
||||||
|
|
||||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -12,9 +12,6 @@ LIBRARYNAME := clangDriver
|
||||||
BUILD_ARCHIVE = 1
|
BUILD_ARCHIVE = 1
|
||||||
CXXFLAGS = -fno-rtti
|
CXXFLAGS = -fno-rtti
|
||||||
|
|
||||||
# Don't install Clang libraries
|
|
||||||
NO_INSTALL = 1
|
|
||||||
|
|
||||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -12,9 +12,6 @@ LIBRARYNAME := clangFrontend
|
||||||
BUILD_ARCHIVE = 1
|
BUILD_ARCHIVE = 1
|
||||||
CXXFLAGS = -fno-rtti
|
CXXFLAGS = -fno-rtti
|
||||||
|
|
||||||
# Don't install Clang libraries
|
|
||||||
NO_INSTALL = 1
|
|
||||||
|
|
||||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -18,9 +18,6 @@ LIBRARYNAME := clangIndex
|
||||||
BUILD_ARCHIVE = 1
|
BUILD_ARCHIVE = 1
|
||||||
CXXFLAGS = -fno-rtti
|
CXXFLAGS = -fno-rtti
|
||||||
|
|
||||||
# Don't install Clang libraries
|
|
||||||
NO_INSTALL = 1
|
|
||||||
|
|
||||||
ifeq ($(ARCH),PowerPC)
|
ifeq ($(ARCH),PowerPC)
|
||||||
CXXFLAGS += -maltivec
|
CXXFLAGS += -maltivec
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -18,9 +18,6 @@ LIBRARYNAME := clangLex
|
||||||
BUILD_ARCHIVE = 1
|
BUILD_ARCHIVE = 1
|
||||||
CXXFLAGS = -fno-rtti
|
CXXFLAGS = -fno-rtti
|
||||||
|
|
||||||
# Don't install Clang libraries
|
|
||||||
NO_INSTALL = 1
|
|
||||||
|
|
||||||
ifeq ($(ARCH),PowerPC)
|
ifeq ($(ARCH),PowerPC)
|
||||||
CXXFLAGS += -maltivec
|
CXXFLAGS += -maltivec
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -16,9 +16,6 @@ LIBRARYNAME := clangParse
|
||||||
BUILD_ARCHIVE = 1
|
BUILD_ARCHIVE = 1
|
||||||
CXXFLAGS = -fno-rtti
|
CXXFLAGS = -fno-rtti
|
||||||
|
|
||||||
# Don't install Clang libraries
|
|
||||||
NO_INSTALL = 1
|
|
||||||
|
|
||||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -16,9 +16,6 @@ LIBRARYNAME := clangRewrite
|
||||||
BUILD_ARCHIVE = 1
|
BUILD_ARCHIVE = 1
|
||||||
CXXFLAGS = -fno-rtti
|
CXXFLAGS = -fno-rtti
|
||||||
|
|
||||||
# Don't install Clang libraries
|
|
||||||
NO_INSTALL = 1
|
|
||||||
|
|
||||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
|
@ -17,9 +17,6 @@ LIBRARYNAME := clangSema
|
||||||
BUILD_ARCHIVE = 1
|
BUILD_ARCHIVE = 1
|
||||||
CXXFLAGS = -fno-rtti
|
CXXFLAGS = -fno-rtti
|
||||||
|
|
||||||
# Don't install Clang libraries
|
|
||||||
NO_INSTALL = 1
|
|
||||||
|
|
||||||
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
include $(LEVEL)/Makefile.common
|
||||||
|
|
Загрузка…
Ссылка в новой задаче