Steve Naroff | 5039819 | 2009-08-28 15:28:48 +0000 | [diff] [blame] | 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 | ##===----------------------------------------------------------------------===## |
Daniel Dunbar | afed099 | 2010-06-08 20:34:18 +0000 | [diff] [blame] | 9 | CLANG_LEVEL := ../.. |
Steve Naroff | 5039819 | 2009-08-28 15:28:48 +0000 | [diff] [blame] | 10 | |
| 11 | TOOLNAME = c-index-test |
Steve Naroff | 5039819 | 2009-08-28 15:28:48 +0000 | [diff] [blame] | 12 | |
Bob Wilson | 3e627ae | 2011-11-28 08:03:54 +0000 | [diff] [blame] | 13 | # If a separate install prefix was specified for internal tools, use it |
| 14 | # when installing c-index-test. |
| 15 | INTERNAL_TOOL = 1 |
| 16 | |
Steve Naroff | 5039819 | 2009-08-28 15:28:48 +0000 | [diff] [blame] | 17 | # No plugins, optimize startup time. |
| 18 | TOOL_NO_EXPORTS = 1 |
| 19 | |
NAKAMURA Takumi | a59114b | 2012-08-10 06:10:58 +0000 | [diff] [blame] | 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 |
| 24 | |
| 25 | LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser support mc |
NAKAMURA Takumi | 02db365 | 2012-12-20 13:30:05 +0000 | [diff] [blame] | 26 | USEDLIBS = clang.a \ |
NAKAMURA Takumi | aee388b | 2012-12-20 13:30:10 +0000 | [diff] [blame] | 27 | clangFormat.a clangRewriteCore.a \ |
NAKAMURA Takumi | 02db365 | 2012-12-20 13:30:05 +0000 | [diff] [blame] | 28 | clangFrontend.a clangDriver.a \ |
NAKAMURA Takumi | e7e9332 | 2012-07-01 00:40:17 +0000 | [diff] [blame] | 29 | clangTooling.a \ |
John McCall | 119bf6b | 2011-06-16 05:29:03 +0000 | [diff] [blame] | 30 | clangSerialization.a clangParse.a clangSema.a \ |
Chandler Carruth | f95d412 | 2012-06-20 09:53:52 +0000 | [diff] [blame] | 31 | clangAnalysis.a clangEdit.a clangAST.a clangLex.a \ |
Dmitri Gribenko | aa0cd85 | 2012-06-20 00:34:58 +0000 | [diff] [blame] | 32 | clangBasic.a |
Steve Naroff | 5039819 | 2009-08-28 15:28:48 +0000 | [diff] [blame] | 33 | |
Daniel Dunbar | afed099 | 2010-06-08 20:34:18 +0000 | [diff] [blame] | 34 | include $(CLANG_LEVEL)/Makefile |
Dmitri Gribenko | f303d4c | 2012-08-07 17:54:38 +0000 | [diff] [blame] | 35 | |
Dmitri Gribenko | 67bf7dd | 2012-08-07 18:36:33 +0000 | [diff] [blame] | 36 | LIBS += $(LIBXML2_LIBS) |
| 37 | CPPFLAGS += $(LIBXML2_INC) |