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 | |
Reid Kleckner | b1e25a1 | 2013-06-14 17:17:23 +0000 | [diff] [blame] | 25 | LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader support mc option |
NAKAMURA Takumi | 6f7eeb9 | 2013-01-22 04:11:33 +0000 | [diff] [blame] | 26 | |
| 27 | # Note that 'USEDLIBS' must include all of the core clang libraries |
| 28 | # when -static is given to linker on cygming. |
NAKAMURA Takumi | 02db365 | 2012-12-20 13:30:05 +0000 | [diff] [blame] | 29 | USEDLIBS = clang.a \ |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 30 | clangIndex.a clangFormat.a clangRewrite.a \ |
NAKAMURA Takumi | 02db365 | 2012-12-20 13:30:05 +0000 | [diff] [blame] | 31 | clangFrontend.a clangDriver.a \ |
NAKAMURA Takumi | e7e9332 | 2012-07-01 00:40:17 +0000 | [diff] [blame] | 32 | clangTooling.a \ |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 33 | clangToolingCore.a \ |
John McCall | 119bf6b | 2011-06-16 05:29:03 +0000 | [diff] [blame] | 34 | clangSerialization.a clangParse.a clangSema.a \ |
Chandler Carruth | f95d412 | 2012-06-20 09:53:52 +0000 | [diff] [blame] | 35 | clangAnalysis.a clangEdit.a clangAST.a clangLex.a \ |
Dmitri Gribenko | aa0cd85 | 2012-06-20 00:34:58 +0000 | [diff] [blame] | 36 | clangBasic.a |
Steve Naroff | 5039819 | 2009-08-28 15:28:48 +0000 | [diff] [blame] | 37 | |
Daniel Dunbar | afed099 | 2010-06-08 20:34:18 +0000 | [diff] [blame] | 38 | include $(CLANG_LEVEL)/Makefile |
Dmitri Gribenko | f303d4c | 2012-08-07 17:54:38 +0000 | [diff] [blame] | 39 | |
Dmitri Gribenko | 67bf7dd | 2012-08-07 18:36:33 +0000 | [diff] [blame] | 40 | LIBS += $(LIBXML2_LIBS) |
NAKAMURA Takumi | 8b8f621 | 2013-07-09 11:14:24 +0000 | [diff] [blame] | 41 | |
| 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 |
Dmitri Gribenko | 67bf7dd | 2012-08-07 18:36:33 +0000 | [diff] [blame] | 48 | CPPFLAGS += $(LIBXML2_INC) |
NAKAMURA Takumi | 8b8f621 | 2013-07-09 11:14:24 +0000 | [diff] [blame] | 49 | endif |