aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStuart Hastings <stuart@apple.com>2009-10-22 17:22:37 +0000
committerStuart Hastings <stuart@apple.com>2009-10-22 17:22:37 +0000
commit4a53e1ef9d137af590425f77f02a4e974f370656 (patch)
tree60b48917591529397e6efd156bf016915cb0f2ab /Makefile
parentbac6ed4ba4b5b912470e3c48f86c3e74a2f36d7b (diff)
Trying again to tweak the top-level Makefile to facilitate an Apple-style build.
Now with Clang-compatibility. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f3bf3f2345..d2000b4838 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,12 @@ LEVEL := .
#
# When cross-compiling, there are some things (tablegen) that need to
# be build for the build system first.
+
+# If "RC_ProjectName" exists in the environment, and its value is
+# "llvmCore", then this is an "Apple-style" build; search for
+# "Apple-style" in the comments for more info. Anything else is a
+# normal build.
+ifneq ($(RC_ProjectName),llvmCore) # Normal build (not "Apple-style").
ifeq ($(BUILD_DIRS_ONLY),1)
DIRS := lib/System lib/Support utils
OPTIONAL_DIRS :=
@@ -211,3 +217,9 @@ happiness: update all check unittests
.NOTPARALLEL:
+else # Building "Apple-style."
+# In an Apple-style build, once configuration is done, lines marked
+# "Apple-style" are removed with sed! Please don't remove these!
+# Look for the string "Apple-style" in utils/buildit/build_llvm.
+include $(shell find . -name GNUmakefile) # Building "Apple-style."
+endif # Building "Apple-style."