blob: 6ec82918c075a218516d6d3bede5552415768602 [file] [log] [blame]
Daniel Dunbar3ede8d02009-03-02 19:59:07 +00001##===- tools/driver/Makefile -------------------------------*- Makefile -*-===##
Daniel Dunbar21085772009-12-11 22:20:12 +00002#
Daniel Dunbar3ede8d02009-03-02 19:59:07 +00003# The LLVM Compiler Infrastructure
4#
5# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
Daniel Dunbar21085772009-12-11 22:20:12 +00007#
Daniel Dunbar3ede8d02009-03-02 19:59:07 +00008##===----------------------------------------------------------------------===##
9LEVEL = ../../../..
10
Daniel Dunbar7ec3daf2009-03-24 03:07:05 +000011TOOLNAME = clang
Daniel Dunbar3f693d22010-01-18 17:52:48 +000012ifndef CLANG_IS_PRODUCTION
Daniel Dunbarf4961da2009-11-19 00:21:33 +000013TOOLALIAS = clang++
Daniel Dunbar3f693d22010-01-18 17:52:48 +000014endif
Douglas Gregora393e9e2009-03-16 23:06:59 +000015CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
Daniel Dunbar3ede8d02009-03-02 19:59:07 +000016CXXFLAGS = -fno-rtti
17
Daniel Dunbar21085772009-12-11 22:20:12 +000018# Clang tool has no plugins, optimize startup time.
Daniel Dunbar073777f2009-03-24 03:00:12 +000019TOOL_NO_EXPORTS = 1
20
Daniel Dunbar21085772009-12-11 22:20:12 +000021# Include this here so we can get the configuration of the targets that have
22# been configured for construction. We have to do this early so we can set up
23# LINK_COMPONENTS before including Makefile.rules
24include $(LEVEL)/Makefile.config
Daniel Dunbar3ede8d02009-03-02 19:59:07 +000025
Daniel Dunbar21085772009-12-11 22:20:12 +000026LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitreader bitwriter codegen ipo selectiondag
27USEDLIBS = clangFrontend.a clangDriver.a clangCodeGen.a clangAnalysis.a \
28 clangRewrite.a clangSema.a clangAST.a clangParse.a \
29 clangLex.a clangBasic.a
30
31include $(LLVM_SRC_ROOT)/Makefile.rules
Daniel Dunbarf44c5852009-09-22 22:31:13 +000032
33# Translate make variable to define when building a "production" clang.
34ifdef CLANG_IS_PRODUCTION
35CPP.Defines += -DCLANG_IS_PRODUCTION
36endif
37