blob: 874a42fc191383736b21db9021413aaf9015ca14 [file] [log] [blame]
Daniel Dunbar073777f2009-03-24 03:00:12 +00001##===- 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##===----------------------------------------------------------------------===##
9LEVEL = ../../../..
10
11TOOLNAME = clang-cc
12CPPFLAGS += -I$(PROJ_SRC_DIR)/../../include -I$(PROJ_OBJ_DIR)/../../include
13CXXFLAGS = -fno-rtti
14
15# Clang has no plugins, optimize startup time.
16TOOL_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
21include $(LEVEL)/Makefile.config
22
23LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitreader bitwriter codegen ipo selectiondag
Eli Friedman8ceb0d92009-05-18 23:02:01 +000024USEDLIBS = clangFrontend.a clangCodeGen.a clangAnalysis.a \
25 clangRewrite.a clangSema.a clangAST.a clangParse.a \
26 clangLex.a clangBasic.a
Daniel Dunbar073777f2009-03-24 03:00:12 +000027
Daniel Dunbar82fa7c52009-03-24 04:07:10 +000028# clang-cc lives in a special location; we can get away with this
29# because nothing else gets installed from here.
30PROJ_bindir := $(DESTDIR)$(PROJ_prefix)/libexec
31
Daniel Dunbar073777f2009-03-24 03:00:12 +000032include $(LLVM_SRC_ROOT)/Makefile.rules