Add a new "Embedded" makefile target for Apple-style builds.
authorBob Wilson <bob.wilson@apple.com>
Fri, 25 Feb 2011 23:42:03 +0000 (23:42 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 25 Feb 2011 23:42:03 +0000 (23:42 +0000)
This one just installs the default build into a different destination directory.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126533 91177308-0d34-0410-b5e6-96231b3b80d8

utils/buildit/GNUmakefile

index 54577e2ef53842a1e9dba32c75016ec948fa3e22..5140e1508a57ea5d9eef20280dae17cd80c7c5db 100644 (file)
@@ -80,6 +80,10 @@ EmbeddedSim:
        export MACOSX_DEPLOYMENT_TARGET=`sw_vers -productVersion`; \
        $(MAKE) IOS_SIM_BUILD=yes PREFIX=$(SDKROOT)/usr/local install
 
+Embedded:
+       ARM_PLATFORM=`xcodebuild -version -sdk iphoneos PlatformPath` && \
+       $(MAKE) DSTROOT=$(DSTROOT)$$ARM_PLATFORM install
+
 # installhdrs does nothing, because the headers aren't useful until
 # the compiler is installed.
 installhdrs:
@@ -128,4 +132,4 @@ clean:
 $(OBJROOT) $(SYMROOT) $(DSTROOT):
        mkdir -p $@
 
-.PHONY: install installsrc clean EmbeddedHosted EmbeddedSim
+.PHONY: install installsrc clean EmbeddedHosted EmbeddedSim Embedded