Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 1 | LEVEL = ../../.. |
Daniel Dunbar | d69bacc | 2008-10-21 23:49:24 +0000 | [diff] [blame] | 2 | TOOLNAME = clang |
Douglas Gregor | a393e9e | 2009-03-16 23:06:59 +0000 | [diff] [blame^] | 3 | CPPFLAGS += -I$(PROJ_SRC_DIR)/../include -I$(PROJ_OBJ_DIR)/../include |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 4 | CXXFLAGS = -fno-rtti |
| 5 | |
Chris Lattner | b06b012 | 2009-02-26 17:48:04 +0000 | [diff] [blame] | 6 | # Clang has no plugins, optimize startup time. |
| 7 | TOOL_NO_EXPORTS = 1 |
| 8 | |
Daniel Dunbar | d69bacc | 2008-10-21 23:49:24 +0000 | [diff] [blame] | 9 | # Include this here so we can get the configuration of the targets |
| 10 | # that have been configured for construction. We have to do this |
| 11 | # early so we can set up LINK_COMPONENTS before including Makefile.rules |
| 12 | include $(LEVEL)/Makefile.config |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 13 | |
Daniel Dunbar | 6c308cc | 2008-10-24 06:24:13 +0000 | [diff] [blame] | 14 | LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitreader bitwriter codegen ipo selectiondag |
Daniel Dunbar | d69bacc | 2008-10-21 23:49:24 +0000 | [diff] [blame] | 15 | USEDLIBS = clangCodeGen.a clangAnalysis.a clangRewrite.a clangSema.a \ |
Daniel Dunbar | e1bd4e6 | 2009-03-02 06:16:29 +0000 | [diff] [blame] | 16 | clangFrontend.a clangAST.a clangParse.a clangLex.a \ |
Daniel Dunbar | 6c308cc | 2008-10-24 06:24:13 +0000 | [diff] [blame] | 17 | clangBasic.a |
Daniel Dunbar | d69bacc | 2008-10-21 23:49:24 +0000 | [diff] [blame] | 18 | |
| 19 | include $(LLVM_SRC_ROOT)/Makefile.rules |