Daniel Dunbar | 3ede8d0 | 2009-03-02 19:59:07 +0000 | [diff] [blame] | 1 | ##===- tools/driver/Makefile -------------------------------*- Makefile -*-===## |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 2 | # |
Daniel Dunbar | 3ede8d0 | 2009-03-02 19:59:07 +0000 | [diff] [blame] | 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. |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 7 | # |
Daniel Dunbar | 3ede8d0 | 2009-03-02 19:59:07 +0000 | [diff] [blame] | 8 | ##===----------------------------------------------------------------------===## |
| 9 | LEVEL = ../../../.. |
| 10 | |
Daniel Dunbar | 7ec3daf | 2009-03-24 03:07:05 +0000 | [diff] [blame] | 11 | TOOLNAME = clang |
Daniel Dunbar | 3f693d2 | 2010-01-18 17:52:48 +0000 | [diff] [blame^] | 12 | ifndef CLANG_IS_PRODUCTION |
Daniel Dunbar | f4961da | 2009-11-19 00:21:33 +0000 | [diff] [blame] | 13 | TOOLALIAS = clang++ |
Daniel Dunbar | 3f693d2 | 2010-01-18 17:52:48 +0000 | [diff] [blame^] | 14 | endif |
Douglas Gregor | a393e9e | 2009-03-16 23:06:59 +0000 | [diff] [blame] | 15 | CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include |
Daniel Dunbar | 3ede8d0 | 2009-03-02 19:59:07 +0000 | [diff] [blame] | 16 | CXXFLAGS = -fno-rtti |
| 17 | |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 18 | # Clang tool has no plugins, optimize startup time. |
Daniel Dunbar | 073777f | 2009-03-24 03:00:12 +0000 | [diff] [blame] | 19 | TOOL_NO_EXPORTS = 1 |
| 20 | |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 21 | # 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 |
| 24 | include $(LEVEL)/Makefile.config |
Daniel Dunbar | 3ede8d0 | 2009-03-02 19:59:07 +0000 | [diff] [blame] | 25 | |
Daniel Dunbar | 2108577 | 2009-12-11 22:20:12 +0000 | [diff] [blame] | 26 | LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitreader bitwriter codegen ipo selectiondag |
| 27 | USEDLIBS = clangFrontend.a clangDriver.a clangCodeGen.a clangAnalysis.a \ |
| 28 | clangRewrite.a clangSema.a clangAST.a clangParse.a \ |
| 29 | clangLex.a clangBasic.a |
| 30 | |
| 31 | include $(LLVM_SRC_ROOT)/Makefile.rules |
Daniel Dunbar | f44c585 | 2009-09-22 22:31:13 +0000 | [diff] [blame] | 32 | |
| 33 | # Translate make variable to define when building a "production" clang. |
| 34 | ifdef CLANG_IS_PRODUCTION |
| 35 | CPP.Defines += -DCLANG_IS_PRODUCTION |
| 36 | endif |
| 37 | |