Include the top-level Makefile.config from the LLVM tree for projects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8035 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Makefile.common b/Makefile.common
index 7effb4c..47c5f7b 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -50,7 +50,11 @@
#
# Configuration file to set paths specific to local installation of LLVM
#
+ifdef LLVM_SRC_ROOT
+include $(LLVM_SRC_ROOT)/Makefile.config
+else
include $(LEVEL)/Makefile.config
+endif
###########################################################################
# Directory Configuration
diff --git a/Makefile.rules b/Makefile.rules
index 7effb4c..47c5f7b 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -50,7 +50,11 @@
#
# Configuration file to set paths specific to local installation of LLVM
#
+ifdef LLVM_SRC_ROOT
+include $(LLVM_SRC_ROOT)/Makefile.config
+else
include $(LEVEL)/Makefile.config
+endif
###########################################################################
# Directory Configuration