1##===- tools/index-test/Makefile ---------------------------*- Makefile -*-===## 2# 3# The LLVM Compiler Infrastructure 4# 5# This file is distributed under the University of Illinois Open Source 6# License. See LICENSE.TXT for details. 7# 8##===----------------------------------------------------------------------===## 9CLANG_LEVEL := ../.. 10 11TOOLNAME = c-index-test 12 13# If a separate install prefix was specified for internal tools, use it 14# when installing c-index-test. 15INTERNAL_TOOL = 1 16 17# No plugins, optimize startup time. 18TOOL_NO_EXPORTS = 1 19 20# Include this here so we can get the configuration of the targets that have 21# been configured for construction. We have to do this early so we can set up 22# LINK_COMPONENTS before including Makefile.rules 23include $(CLANG_LEVEL)/../../Makefile.config 24 25LINK_COMPONENTS := $(TARGETS_TO_BUILD) \ 26 AsmParser \ 27 BitReader \ 28 BitWriter \ 29 IPO \ 30 MC \ 31 ObjCARCOpts \ 32 Option \ 33 Support 34 35# Note that 'USEDLIBS' must include all of the core clang libraries 36# when -static is given to linker on cygming. 37USEDLIBS = clang.a \ 38 clangCodeGen.a \ 39 clangIndex.a clangFormat.a clangRewrite.a \ 40 clangFrontend.a clangDriver.a \ 41 clangTooling.a \ 42 clangToolingCore.a \ 43 clangSerialization.a clangParse.a clangSema.a \ 44 clangAnalysis.a clangEdit.a clangAST.a clangLex.a \ 45 clangBasic.a 46 47include $(CLANG_LEVEL)/Makefile 48 49LIBS += $(LIBXML2_LIBS) 50 51# Headers in $(LIBXML2_INC) should not be checked with clang's -Wdocumentation. 52# Use -isystem instead of -I then. 53# FIXME: Could autoconf detect clang or availability of -isystem? 54ifneq ($(findstring -Wdocumentation,$(OPTIMIZE_OPTION)),) 55CPPFLAGS += $(subst -I,-isystem ,$(LIBXML2_INC)) 56else 57CPPFLAGS += $(LIBXML2_INC) 58endif 59