summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.common4
-rw-r--r--Makefile.rules4
2 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common
index 7effb4cd20..47c5f7b5de 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 7effb4cd20..47c5f7b5de 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