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 |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 3 | CPPFLAGS += -I$(PROJ_SRC_DIR)/../include |
| 4 | CXXFLAGS = -fno-rtti |
| 5 | |
Daniel Dunbar | d69bacc | 2008-10-21 23:49:24 +0000 | [diff] [blame^] | 6 | # Include this here so we can get the configuration of the targets |
| 7 | # that have been configured for construction. We have to do this |
| 8 | # early so we can set up LINK_COMPONENTS before including Makefile.rules |
| 9 | include $(LEVEL)/Makefile.config |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 10 | |
Daniel Dunbar | d69bacc | 2008-10-21 23:49:24 +0000 | [diff] [blame^] | 11 | LINK_COMPONENTS := $(TARGETS_TO_BUILD) |
| 12 | USEDLIBS = clangCodeGen.a clangAnalysis.a clangRewrite.a clangSema.a \ |
| 13 | clangDriver.a clangAST.a clangParse.a clangLex.a \ |
| 14 | clangBasic.a LLVMCore.a LLVMSupport.a LLVMSystem.a \ |
| 15 | LLVMBitWriter.a LLVMBitReader.a LLVMSelectionDAG.a \ |
| 16 | LLVMCodeGen.a LLVMTransformUtils.a LLVMScalarOpts.a \ |
| 17 | LLVMAnalysis.a LLVMTarget.a |
| 18 | |
| 19 | include $(LLVM_SRC_ROOT)/Makefile.rules |