[llvm-branch-commits] [llvm-branch] r84876 - /llvm/branches/Apple/Leela/Makefile
stuart at apple.com
Thu Oct 22 10:31:46 PDT 2009
Date: Thu Oct 22 12:31:46 2009
New Revision: 84876
Trying again to tweak the top-level Makefile to facilitate an Apple-style build.
Now with Clang-compatibility.
--- llvm/branches/Apple/Leela/Makefile (original)
+++ llvm/branches/Apple/Leela/Makefile Thu Oct 22 12:31:46 2009
@@ -19,7 +19,12 @@
# 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").
+# 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").
DIRS := lib/System lib/Support utils
@@ -213,7 +218,8 @@
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."
+# 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."
More information about the llvm-branch-commits