Daniel Dunbar | 073777f | 2009-03-24 03:00:12 +0000 | [diff] [blame] | 1 | ##===- tools/clang-cc/Makefile -----------------------------*- Makefile -*-===## |
| 2 | # |
| 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. |
| 7 | # |
| 8 | ##===----------------------------------------------------------------------===## |
| 9 | LEVEL = ../../../.. |
| 10 | |
| 11 | TOOLNAME = clang-cc |
| 12 | CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include |
| 13 | CXXFLAGS = -fno-rtti |
| 14 | |
| 15 | # Clang has no plugins, optimize startup time. |
| 16 | TOOL_NO_EXPORTS = 1 |
| 17 | |
| 18 | # Include this here so we can get the configuration of the targets |
| 19 | # that have been configured for construction. We have to do this |
| 20 | # early so we can set up LINK_COMPONENTS before including Makefile.rules |
| 21 | include $(LEVEL)/Makefile.config |
| 22 | |
| 23 | LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitreader bitwriter codegen ipo selectiondag |
Eli Friedman | 8ceb0d9 | 2009-05-18 23:02:01 +0000 | [diff] [blame] | 24 | USEDLIBS = clangFrontend.a clangCodeGen.a clangAnalysis.a \ |
| 25 | clangRewrite.a clangSema.a clangAST.a clangParse.a \ |
| 26 | clangLex.a clangBasic.a |
Daniel Dunbar | 073777f | 2009-03-24 03:00:12 +0000 | [diff] [blame] | 27 | |
Daniel Dunbar | 82fa7c5 | 2009-03-24 04:07:10 +0000 | [diff] [blame] | 28 | # clang-cc lives in a special location; we can get away with this |
| 29 | # because nothing else gets installed from here. |
| 30 | PROJ_bindir := $(DESTDIR)$(PROJ_prefix)/libexec |
| 31 | |
Daniel Dunbar | 073777f | 2009-03-24 03:00:12 +0000 | [diff] [blame] | 32 | include $(LLVM_SRC_ROOT)/Makefile.rules |