xref: /minix3/external/bsd/llvm/dist/clang/tools/c-index-test/Makefile (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc##===- tools/index-test/Makefile ---------------------------*- Makefile -*-===##
2f4a2713aSLionel Sambuc#
3f4a2713aSLionel Sambuc#                     The LLVM Compiler Infrastructure
4f4a2713aSLionel Sambuc#
5f4a2713aSLionel Sambuc# This file is distributed under the University of Illinois Open Source
6f4a2713aSLionel Sambuc# License. See LICENSE.TXT for details.
7f4a2713aSLionel Sambuc#
8f4a2713aSLionel Sambuc##===----------------------------------------------------------------------===##
9f4a2713aSLionel SambucCLANG_LEVEL := ../..
10f4a2713aSLionel Sambuc
11f4a2713aSLionel SambucTOOLNAME = c-index-test
12f4a2713aSLionel Sambuc
13f4a2713aSLionel Sambuc# If a separate install prefix was specified for internal tools, use it
14f4a2713aSLionel Sambuc# when installing c-index-test.
15f4a2713aSLionel SambucINTERNAL_TOOL = 1
16f4a2713aSLionel Sambuc
17f4a2713aSLionel Sambuc# No plugins, optimize startup time.
18f4a2713aSLionel SambucTOOL_NO_EXPORTS = 1
19f4a2713aSLionel Sambuc
20f4a2713aSLionel Sambuc# Include this here so we can get the configuration of the targets that have
21f4a2713aSLionel Sambuc# been configured for construction. We have to do this early so we can set up
22f4a2713aSLionel Sambuc# LINK_COMPONENTS before including Makefile.rules
23f4a2713aSLionel Sambucinclude $(CLANG_LEVEL)/../../Makefile.config
24f4a2713aSLionel Sambuc
25f4a2713aSLionel SambucLINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader support mc option
26f4a2713aSLionel Sambuc
27f4a2713aSLionel Sambuc# Note that 'USEDLIBS' must include all of the core clang libraries
28f4a2713aSLionel Sambuc# when -static is given to linker on cygming.
29f4a2713aSLionel SambucUSEDLIBS = clang.a \
30*0a6a1f1dSLionel Sambuc	   clangIndex.a clangFormat.a clangRewrite.a \
31f4a2713aSLionel Sambuc	   clangFrontend.a clangDriver.a \
32f4a2713aSLionel Sambuc	   clangTooling.a \
33*0a6a1f1dSLionel Sambuc	   clangToolingCore.a \
34f4a2713aSLionel Sambuc	   clangSerialization.a clangParse.a clangSema.a \
35f4a2713aSLionel Sambuc	   clangAnalysis.a clangEdit.a clangAST.a clangLex.a \
36f4a2713aSLionel Sambuc	   clangBasic.a
37f4a2713aSLionel Sambuc
38f4a2713aSLionel Sambucinclude $(CLANG_LEVEL)/Makefile
39f4a2713aSLionel Sambuc
40f4a2713aSLionel SambucLIBS += $(LIBXML2_LIBS)
41f4a2713aSLionel Sambuc
42f4a2713aSLionel Sambuc# Headers in $(LIBXML2_INC) should not be checked with clang's -Wdocumentation.
43f4a2713aSLionel Sambuc# Use -isystem instead of -I then.
44f4a2713aSLionel Sambuc# FIXME: Could autoconf detect clang or availability of -isystem?
45f4a2713aSLionel Sambucifneq ($(findstring -Wdocumentation,$(OPTIMIZE_OPTION)),)
46f4a2713aSLionel SambucCPPFLAGS += $(subst -I,-isystem ,$(LIBXML2_INC))
47f4a2713aSLionel Sambucelse
48f4a2713aSLionel SambucCPPFLAGS += $(LIBXML2_INC)
49f4a2713aSLionel Sambucendif
50