blob: 7dab2ac92378b5c6bb3e6db4272e4d443bf9277c [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 Dunbarf4961da2009-11-19 00:21:33 +000012TOOLALIAS = clang++
Douglas Gregora393e9e2009-03-16 23:06:59 +000013CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
Daniel Dunbar3ede8d02009-03-02 19:59:07 +000014CXXFLAGS = -fno-rtti
15
Daniel Dunbar21085772009-12-11 22:20:12 +000016# Clang tool has no plugins, optimize startup time.
Daniel Dunbar073777f2009-03-24 03:00:12 +000017TOOL_NO_EXPORTS = 1
18
Daniel Dunbar21085772009-12-11 22:20:12 +000019# Include this here so we can get the configuration of the targets that have
20# been configured for construction. We have to do this early so we can set up
21# LINK_COMPONENTS before including Makefile.rules
22include $(LEVEL)/Makefile.config
Daniel Dunbar3ede8d02009-03-02 19:59:07 +000023
Daniel Dunbar21085772009-12-11 22:20:12 +000024LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitreader bitwriter codegen ipo selectiondag
25USEDLIBS = clangFrontend.a clangDriver.a clangCodeGen.a clangAnalysis.a \
26 clangRewrite.a clangSema.a clangAST.a clangParse.a \
27 clangLex.a clangBasic.a
28
29include $(LLVM_SRC_ROOT)/Makefile.rules
Daniel Dunbarf44c5852009-09-22 22:31:13 +000030
31# Translate make variable to define when building a "production" clang.
32ifdef CLANG_IS_PRODUCTION
33CPP.Defines += -DCLANG_IS_PRODUCTION
34endif
35