etc/services - sync with NetBSD-8
[minix.git] / external / bsd / llvm / dist / clang / tools / c-index-test / Makefile
blob62bc9348dbf58c5f5bb01a6b7fdf93a9d94089e3
1 ##===- tools/index-test/Makefile ---------------------------*- Makefile -*-===##
2 #
3 # The LLVM Compiler Infrastructure
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
7 #
8 ##===----------------------------------------------------------------------===##
9 CLANG_LEVEL := ../..
11 TOOLNAME = c-index-test
13 # If a separate install prefix was specified for internal tools, use it
14 # when installing c-index-test.
15 INTERNAL_TOOL = 1
17 # No plugins, optimize startup time.
18 TOOL_NO_EXPORTS = 1
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
23 include $(CLANG_LEVEL)/../../Makefile.config
25 LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader support mc option
27 # Note that 'USEDLIBS' must include all of the core clang libraries
28 # when -static is given to linker on cygming.
29 USEDLIBS = clang.a \
30 clangIndex.a clangFormat.a clangRewrite.a \
31 clangFrontend.a clangDriver.a \
32 clangTooling.a \
33 clangToolingCore.a \
34 clangSerialization.a clangParse.a clangSema.a \
35 clangAnalysis.a clangEdit.a clangAST.a clangLex.a \
36 clangBasic.a
38 include $(CLANG_LEVEL)/Makefile
40 LIBS += $(LIBXML2_LIBS)
42 # Headers in $(LIBXML2_INC) should not be checked with clang's -Wdocumentation.
43 # Use -isystem instead of -I then.
44 # FIXME: Could autoconf detect clang or availability of -isystem?
45 ifneq ($(findstring -Wdocumentation,$(OPTIMIZE_OPTION)),)
46 CPPFLAGS += $(subst -I,-isystem ,$(LIBXML2_INC))
47 else
48 CPPFLAGS += $(LIBXML2_INC)
49 endif