Add a new "Embedded" target to the makefile for Apple-style builds.
This changes the destination directory to the "platform" directory and
disables the installation of symbolic links in /usr/bin and /usr/lib.

llvm-svn: 102990
diff --git a/llvm-gcc-4.2/GNUmakefile b/llvm-gcc-4.2/GNUmakefile
index 955dfd5..341f804 100644
--- a/llvm-gcc-4.2/GNUmakefile
+++ b/llvm-gcc-4.2/GNUmakefile
@@ -111,6 +111,14 @@
 	    $(ENABLE_ASSERTIONS) $(LLVMCORE_PATH) \
 	    $(RC_ProjectSourceVersion) $(RC_ProjectSourceSubversion) 
 
+Embedded:
+	@if [ -z "$(ARM_SDK)" ]; then \
+	  echo "ARM_SDK must be set to build the Embedded target"; \
+	  exit 1; \
+	fi
+	ARM_PLATFORM=`xcodebuild -version -sdk $(ARM_SDK) PlatformPath` && \
+	$(MAKE) DSTROOT=$(DSTROOT)$$ARM_PLATFORM DISABLE_USR_LINKS=1 install
+
 # LLVM LOCAL end
 
 # installhdrs does nothing, because the headers aren't useful until
@@ -163,4 +171,4 @@
 $(OBJROOT) $(SYMROOT) $(DSTROOT):
 	mkdir -p $@
 
-.PHONY: install installsrc clean llvmCore llvmgcc42
+.PHONY: install installsrc clean llvmCore llvmgcc42 Embedded