blob: 42bfbb05839c255a50578b09be6111c053664946 [file] [log] [blame]
Steve Naroffa1c72842009-08-28 15:28:48 +00001##===- 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##===----------------------------------------------------------------------===##
Daniel Dunbare6c1daa2010-06-08 20:34:18 +00009CLANG_LEVEL := ../..
Steve Naroffa1c72842009-08-28 15:28:48 +000010
11TOOLNAME = c-index-test
Steve Naroffa1c72842009-08-28 15:28:48 +000012
Bob Wilsonbd0fbe82011-11-28 08:03:54 +000013# If a separate install prefix was specified for internal tools, use it
14# when installing c-index-test.
15INTERNAL_TOOL = 1
16
Steve Naroffa1c72842009-08-28 15:28:48 +000017# No plugins, optimize startup time.
18TOOL_NO_EXPORTS = 1
19
NAKAMURA Takumi5c108102012-08-10 06:10:58 +000020# 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
Reid Kleckner898229a2013-06-14 17:17:23 +000025LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader support mc option
NAKAMURA Takumi873a63c2013-01-22 04:11:33 +000026
27# Note that 'USEDLIBS' must include all of the core clang libraries
28# when -static is given to linker on cygming.
NAKAMURA Takumi393bf4c2012-12-20 13:30:05 +000029USEDLIBS = clang.a \
Alp Toker0621cb22014-07-16 16:48:33 +000030 clangIndex.a clangFormat.a clangRewrite.a \
NAKAMURA Takumi393bf4c2012-12-20 13:30:05 +000031 clangFrontend.a clangDriver.a \
NAKAMURA Takumi98346f92012-07-01 00:40:17 +000032 clangTooling.a \
John McCall32e02a42011-06-16 05:29:03 +000033 clangSerialization.a clangParse.a clangSema.a \
Chandler Carruth39a3e752012-06-20 09:53:52 +000034 clangAnalysis.a clangEdit.a clangAST.a clangLex.a \
Dmitri Gribenkoaab83832012-06-20 00:34:58 +000035 clangBasic.a
Steve Naroffa1c72842009-08-28 15:28:48 +000036
Daniel Dunbare6c1daa2010-06-08 20:34:18 +000037include $(CLANG_LEVEL)/Makefile
Dmitri Gribenko740c0fb2012-08-07 17:54:38 +000038
Dmitri Gribenko815f72b2012-08-07 18:36:33 +000039LIBS += $(LIBXML2_LIBS)
NAKAMURA Takumib538ac62013-07-09 11:14:24 +000040
41# Headers in $(LIBXML2_INC) should not be checked with clang's -Wdocumentation.
42# Use -isystem instead of -I then.
43# FIXME: Could autoconf detect clang or availability of -isystem?
44ifneq ($(findstring -Wdocumentation,$(OPTIMIZE_OPTION)),)
45CPPFLAGS += $(subst -I,-isystem ,$(LIBXML2_INC))
46else
Dmitri Gribenko815f72b2012-08-07 18:36:33 +000047CPPFLAGS += $(LIBXML2_INC)
NAKAMURA Takumib538ac62013-07-09 11:14:24 +000048endif