150398199fb10e196a8d92fbf7a062dbe42ed88fdSteve Naroff##===- tools/index-test/Makefile ---------------------------*- Makefile -*-===## 250398199fb10e196a8d92fbf7a062dbe42ed88fdSteve Naroff# 350398199fb10e196a8d92fbf7a062dbe42ed88fdSteve Naroff# The LLVM Compiler Infrastructure 450398199fb10e196a8d92fbf7a062dbe42ed88fdSteve Naroff# 550398199fb10e196a8d92fbf7a062dbe42ed88fdSteve Naroff# This file is distributed under the University of Illinois Open Source 650398199fb10e196a8d92fbf7a062dbe42ed88fdSteve Naroff# License. See LICENSE.TXT for details. 750398199fb10e196a8d92fbf7a062dbe42ed88fdSteve Naroff# 850398199fb10e196a8d92fbf7a062dbe42ed88fdSteve Naroff##===----------------------------------------------------------------------===## 9afed099bd2e759efd4bb63fdc525d3445f94cc13Daniel DunbarCLANG_LEVEL := ../.. 1050398199fb10e196a8d92fbf7a062dbe42ed88fdSteve Naroff 1150398199fb10e196a8d92fbf7a062dbe42ed88fdSteve NaroffTOOLNAME = c-index-test 1250398199fb10e196a8d92fbf7a062dbe42ed88fdSteve Naroff 133e627ae2a918f0268f23c3f7ba62fd7df9ab30e1Bob Wilson# If a separate install prefix was specified for internal tools, use it 143e627ae2a918f0268f23c3f7ba62fd7df9ab30e1Bob Wilson# when installing c-index-test. 153e627ae2a918f0268f23c3f7ba62fd7df9ab30e1Bob WilsonINTERNAL_TOOL = 1 163e627ae2a918f0268f23c3f7ba62fd7df9ab30e1Bob Wilson 1750398199fb10e196a8d92fbf7a062dbe42ed88fdSteve Naroff# No plugins, optimize startup time. 1850398199fb10e196a8d92fbf7a062dbe42ed88fdSteve NaroffTOOL_NO_EXPORTS = 1 1950398199fb10e196a8d92fbf7a062dbe42ed88fdSteve Naroff 20a59114bc19068d95a8184dda9538ff5eb880e68aNAKAMURA Takumi# Include this here so we can get the configuration of the targets that have 21a59114bc19068d95a8184dda9538ff5eb880e68aNAKAMURA Takumi# been configured for construction. We have to do this early so we can set up 22a59114bc19068d95a8184dda9538ff5eb880e68aNAKAMURA Takumi# LINK_COMPONENTS before including Makefile.rules 23a59114bc19068d95a8184dda9538ff5eb880e68aNAKAMURA Takumiinclude $(CLANG_LEVEL)/../../Makefile.config 24a59114bc19068d95a8184dda9538ff5eb880e68aNAKAMURA Takumi 25b1e25a1bc03292dc538d336573e0be1490223171Reid KlecknerLINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader support mc option 266f7eeb9a977ca2ed31a2c749fa421d6c850d38d5NAKAMURA Takumi 276f7eeb9a977ca2ed31a2c749fa421d6c850d38d5NAKAMURA Takumi# Note that 'USEDLIBS' must include all of the core clang libraries 286f7eeb9a977ca2ed31a2c749fa421d6c850d38d5NAKAMURA Takumi# when -static is given to linker on cygming. 2902db365820a5ee4b9a6d41c3793d0e4e8366fea7NAKAMURA TakumiUSEDLIBS = clang.a \ 30166fa98c467491deee78b160e320087f75611dacNAKAMURA Takumi clangIndex.a clangFormat.a clangRewriteCore.a \ 3102db365820a5ee4b9a6d41c3793d0e4e8366fea7NAKAMURA Takumi clangFrontend.a clangDriver.a \ 32e7e9332a0cd468c477e387a74a53114f1f1c10e6NAKAMURA Takumi clangTooling.a \ 33119bf6b42e2231b0d32dce74a0816f942471be44John McCall clangSerialization.a clangParse.a clangSema.a \ 34f95d4125c01fa7b98722ae8cfbceac4a87d037b4Chandler Carruth clangAnalysis.a clangEdit.a clangAST.a clangLex.a \ 35aa0cd85838f2a024e589ea4e8c2094130065af21Dmitri Gribenko clangBasic.a 3650398199fb10e196a8d92fbf7a062dbe42ed88fdSteve Naroff 37afed099bd2e759efd4bb63fdc525d3445f94cc13Daniel Dunbarinclude $(CLANG_LEVEL)/Makefile 38f303d4cb10648ac9c2080ae7c9dd507ba615e3a7Dmitri Gribenko 3967bf7dd9fa3aaa65c7105f77f265f05f35f235fdDmitri GribenkoLIBS += $(LIBXML2_LIBS) 408b8f6211956f55c9aa95a2f8145da79c46c5374bNAKAMURA Takumi 418b8f6211956f55c9aa95a2f8145da79c46c5374bNAKAMURA Takumi# Headers in $(LIBXML2_INC) should not be checked with clang's -Wdocumentation. 428b8f6211956f55c9aa95a2f8145da79c46c5374bNAKAMURA Takumi# Use -isystem instead of -I then. 438b8f6211956f55c9aa95a2f8145da79c46c5374bNAKAMURA Takumi# FIXME: Could autoconf detect clang or availability of -isystem? 448b8f6211956f55c9aa95a2f8145da79c46c5374bNAKAMURA Takumiifneq ($(findstring -Wdocumentation,$(OPTIMIZE_OPTION)),) 458b8f6211956f55c9aa95a2f8145da79c46c5374bNAKAMURA TakumiCPPFLAGS += $(subst -I,-isystem ,$(LIBXML2_INC)) 468b8f6211956f55c9aa95a2f8145da79c46c5374bNAKAMURA Takumielse 4767bf7dd9fa3aaa65c7105f77f265f05f35f235fdDmitri GribenkoCPPFLAGS += $(LIBXML2_INC) 488b8f6211956f55c9aa95a2f8145da79c46c5374bNAKAMURA Takumiendif 49