summaryrefslogtreecommitdiff
path: root/tools/driver/Makefile
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-06-08 20:34:18 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-06-08 20:34:18 +0000
commitafed099bd2e759efd4bb63fdc525d3445f94cc13 (patch)
tree614ee41fe363b5cd45cec8876dd7d68db101ba4c /tools/driver/Makefile
parent7a4026211750cf4f387251956a8ade2a19b28998 (diff)
downloadclang-afed099bd2e759efd4bb63fdc525d3445f94cc13.tar.gz
clang-afed099bd2e759efd4bb63fdc525d3445f94cc13.tar.bz2
clang-afed099bd2e759efd4bb63fdc525d3445f94cc13.tar.xz
Makefile: Switch Clang Makefiles to always include the top-level Clang Makefile.
- This eliminates most dependencies on how Clang is installed relative to LLVM. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105637 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/driver/Makefile')
-rw-r--r--tools/driver/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/driver/Makefile b/tools/driver/Makefile
index ac98730328..5125892efb 100644
--- a/tools/driver/Makefile
+++ b/tools/driver/Makefile
@@ -6,7 +6,7 @@
# License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
-LEVEL = ../../../..
+CLANG_LEVEL := ../..
TOOLNAME = clang
ifndef CLANG_IS_PRODUCTION
@@ -24,7 +24,7 @@ TOOL_NO_EXPORTS = 1
# Include this here so we can get the configuration of the targets that have
# been configured for construction. We have to do this early so we can set up
# LINK_COMPONENTS before including Makefile.rules
-include $(LEVEL)/Makefile.config
+include $(CLANG_LEVEL)/../../Makefile.config
LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader bitwriter codegen \
ipo selectiondag
@@ -32,7 +32,7 @@ USEDLIBS = clangFrontend.a clangDriver.a clangCodeGen.a clangSema.a \
clangChecker.a clangAnalysis.a clangRewrite.a clangAST.a \
clangParse.a clangLex.a clangBasic.a
-include $(LLVM_SRC_ROOT)/Makefile.rules
+include $(CLANG_LEVEL)/Makefile
# Translate make variable to define when building a "production" clang.
ifdef CLANG_IS_PRODUCTION