blob: 62bc9348dbf58c5f5bb01a6b7fdf93a9d94089e3 [file] [log] [blame]
Steve Naroff50398192009-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 Dunbarafed0992010-06-08 20:34:18 +00009CLANG_LEVEL := ../..
Steve Naroff50398192009-08-28 15:28:48 +000010
11TOOLNAME = c-index-test
Steve Naroff50398192009-08-28 15:28:48 +000012
Bob Wilson3e627ae2011-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 Naroff50398192009-08-28 15:28:48 +000017# No plugins, optimize startup time.
18TOOL_NO_EXPORTS = 1
19
NAKAMURA Takumia59114b2012-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 Klecknerb1e25a12013-06-14 17:17:23 +000025LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader support mc option
NAKAMURA Takumi6f7eeb92013-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 Takumi02db3652012-12-20 13:30:05 +000029USEDLIBS = clang.a \
Stephen Hines176edba2014-12-01 14:53:08 -080030 clangIndex.a clangFormat.a clangRewrite.a \
NAKAMURA Takumi02db3652012-12-20 13:30:05 +000031 clangFrontend.a clangDriver.a \
NAKAMURA Takumie7e93322012-07-01 00:40:17 +000032 clangTooling.a \
Stephen Hines176edba2014-12-01 14:53:08 -080033 clangToolingCore.a \
John McCall119bf6b2011-06-16 05:29:03 +000034 clangSerialization.a clangParse.a clangSema.a \
Chandler Carruthf95d4122012-06-20 09:53:52 +000035 clangAnalysis.a clangEdit.a clangAST.a clangLex.a \
Dmitri Gribenkoaa0cd852012-06-20 00:34:58 +000036 clangBasic.a
Steve Naroff50398192009-08-28 15:28:48 +000037
Daniel Dunbarafed0992010-06-08 20:34:18 +000038include $(CLANG_LEVEL)/Makefile
Dmitri Gribenkof303d4c2012-08-07 17:54:38 +000039
Dmitri Gribenko67bf7dd2012-08-07 18:36:33 +000040LIBS += $(LIBXML2_LIBS)
NAKAMURA Takumi8b8f6212013-07-09 11:14:24 +000041
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?
45ifneq ($(findstring -Wdocumentation,$(OPTIMIZE_OPTION)),)
46CPPFLAGS += $(subst -I,-isystem ,$(LIBXML2_INC))
47else
Dmitri Gribenko67bf7dd2012-08-07 18:36:33 +000048CPPFLAGS += $(LIBXML2_INC)
NAKAMURA Takumi8b8f6212013-07-09 11:14:24 +000049endif