1f4a2713aSLionel Sambuc##===- tools/driver/Makefile -------------------------------*- Makefile -*-===## 2f4a2713aSLionel Sambuc# 3f4a2713aSLionel Sambuc# The LLVM Compiler Infrastructure 4f4a2713aSLionel Sambuc# 5f4a2713aSLionel Sambuc# This file is distributed under the University of Illinois Open Source 6f4a2713aSLionel Sambuc# License. See LICENSE.TXT for details. 7f4a2713aSLionel Sambuc# 8f4a2713aSLionel Sambuc##===----------------------------------------------------------------------===## 9f4a2713aSLionel SambucCLANG_LEVEL := ../.. 10f4a2713aSLionel Sambuc 11f4a2713aSLionel SambucTOOLNAME = clang 12f4a2713aSLionel SambucTOOLALIAS = clang++ 13f4a2713aSLionel Sambuc 14f4a2713aSLionel Sambucifdef CLANG_ORDER_FILE 15f4a2713aSLionel SambucTOOL_ORDER_FILE := $(CLANG_ORDER_FILE) 16f4a2713aSLionel Sambucendif 17f4a2713aSLionel Sambuc 18f4a2713aSLionel Sambuc# Include tool version information on OS X. 19f4a2713aSLionel SambucTOOL_INFO_PLIST := Info.plist 20f4a2713aSLionel Sambuc 21f4a2713aSLionel Sambuc# Include this here so we can get the configuration of the targets that have 22f4a2713aSLionel Sambuc# been configured for construction. We have to do this early so we can set up 23f4a2713aSLionel Sambuc# LINK_COMPONENTS before including Makefile.rules 24f4a2713aSLionel Sambucinclude $(CLANG_LEVEL)/../../Makefile.config 25f4a2713aSLionel Sambuc 26*0a6a1f1dSLionel Sambuc# Have the option of not supporting plugins. This is important for startup 27*0a6a1f1dSLionel Sambuc# performance. 28*0a6a1f1dSLionel Sambucifeq ($(CLANG_PLUGIN_SUPPORT), 1) 29*0a6a1f1dSLionel SambucNO_DEAD_STRIP := 1 30*0a6a1f1dSLionel Sambucelse 31*0a6a1f1dSLionel SambucTOOL_NO_EXPORTS := 1 32*0a6a1f1dSLionel Sambucendif 33*0a6a1f1dSLionel Sambuc 34f4a2713aSLionel SambucLINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader bitwriter codegen \ 35*0a6a1f1dSLionel Sambuc instrumentation ipo irreader linker objcarcopts option \ 36*0a6a1f1dSLionel Sambuc profiledata selectiondag 37f4a2713aSLionel SambucUSEDLIBS = clangFrontendTool.a clangFrontend.a clangDriver.a \ 38*0a6a1f1dSLionel Sambuc clangSerialization.a clangCodeGen.a clangParse.a clangSema.a \ 39*0a6a1f1dSLionel Sambuc clangRewriteFrontend.a clangRewrite.a 40f4a2713aSLionel Sambuc 41f4a2713aSLionel Sambucifeq ($(ENABLE_CLANG_STATIC_ANALYZER),1) 42f4a2713aSLionel SambucUSEDLIBS += clangStaticAnalyzerFrontend.a clangStaticAnalyzerCheckers.a \ 43f4a2713aSLionel Sambuc clangStaticAnalyzerCore.a 44f4a2713aSLionel Sambucendif 45f4a2713aSLionel Sambuc 46f4a2713aSLionel Sambucifeq ($(ENABLE_CLANG_ARCMT),1) 47f4a2713aSLionel SambucUSEDLIBS += clangARCMigrate.a 48f4a2713aSLionel Sambucendif 49f4a2713aSLionel Sambuc 50*0a6a1f1dSLionel SambucUSEDLIBS += clangAnalysis.a clangEdit.a clangAST.a clangLex.a clangBasic.a 51f4a2713aSLionel Sambuc 52f4a2713aSLionel Sambucinclude $(CLANG_LEVEL)/Makefile 53f4a2713aSLionel Sambuc 54f4a2713aSLionel Sambuc# Set the tool version information values. 55f4a2713aSLionel Sambucifeq ($(HOST_OS),Darwin) 56f4a2713aSLionel Sambucifdef CLANG_VENDOR 57f4a2713aSLionel SambucTOOL_INFO_NAME := $(CLANG_VENDOR) clang 58f4a2713aSLionel Sambucelse 59f4a2713aSLionel SambucTOOL_INFO_NAME := clang 60f4a2713aSLionel Sambucendif 61f4a2713aSLionel Sambuc 62f4a2713aSLionel Sambucifdef CLANG_VENDOR_UTI 63f4a2713aSLionel SambucTOOL_INFO_UTI := $(CLANG_VENDOR_UTI) 64f4a2713aSLionel Sambucelse 65f4a2713aSLionel SambucTOOL_INFO_UTI := org.llvm.clang 66f4a2713aSLionel Sambucendif 67f4a2713aSLionel Sambuc 68f4a2713aSLionel SambucTOOL_INFO_VERSION := $(word 3,$(shell grep "CLANG_VERSION " \ 69f4a2713aSLionel Sambuc $(PROJ_OBJ_DIR)/$(CLANG_LEVEL)/include/clang/Basic/Version.inc)) 70f4a2713aSLionel Sambucifdef LLVM_SUBMIT_VERSION 71f4a2713aSLionel SambucTOOL_INFO_BUILD_VERSION := $(LLVM_SUBMIT_VERSION).$(LLVM_SUBMIT_SUBVERSION) 72f4a2713aSLionel Sambucelse 73f4a2713aSLionel SambucTOOL_INFO_BUILD_VERSION := 74f4a2713aSLionel Sambucendif 75f4a2713aSLionel Sambucendif 76