Tweak top-level Makefile to facilitate Apple-style build.
[oota-llvm.git] / Makefile
index f3bf3f2345eb8aba6ba202f36e0573579bc2fce9..ce79465dc8f6ef8beea93dfaf3d229699344d3b6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,7 @@ LEVEL := .
 #
 # When cross-compiling, there are some things (tablegen) that need to
 # be build for the build system first.
+ifndef RC_ARCHS  # Normal build (not "Apple-style").
 ifeq ($(BUILD_DIRS_ONLY),1)
   DIRS := lib/System lib/Support utils
   OPTIONAL_DIRS :=
@@ -211,3 +212,8 @@ happiness: update all check unittests
 
 .NOTPARALLEL:
 
+else # Building "Apple-style."
+# N.B. In an Apple-style build, once configuration is done, lines
+# marked "Apple-style" are removed with sed!  See utils/buildit/build_llvm.
+include utils/buildit/GNUmakefile # Building "Apple-style."
+endif # Building "Apple-style."