Updated Makefile (renaming of binary, iOS 6.1 SDK, using clang instead of gcc)

This commit is contained in:
Shazron Abdullah 2013-04-30 12:01:03 -07:00
parent a13cc14bef
commit 5cfa9161e0
4 changed files with 10 additions and 9 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
demo
demo.app
fruitstrap
ios-deploy

View File

@ -1,6 +1,7 @@
IOS_CC = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc
IOS_CC = clang
IOS_SDK = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
all: demo.app fruitstrap
all: demo.app ios-deploy
demo.app: demo Info.plist
mkdir -p demo.app
@ -9,16 +10,16 @@ demo.app: demo Info.plist
codesign -f -s "iPhone Developer" --entitlements Entitlements.plist demo.app
demo: demo.c
$(IOS_CC) -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -framework CoreFoundation -o demo demo.c
$(IOS_CC) -arch armv7 -isysroot $(IOS_SDK) -framework CoreFoundation -o demo demo.c
fruitstrap: fruitstrap.c
gcc -o fruitstrap -framework CoreFoundation -framework MobileDevice -F/System/Library/PrivateFrameworks fruitstrap.c
ios-deploy: ios-deploy.c
gcc -o ios-deploy -framework CoreFoundation -framework MobileDevice -F/System/Library/PrivateFrameworks ios-deploy.c
install: all
./fruitstrap demo.app
./ios-deploy demo.app
debug: all
./fruitstrap -d demo.app
./ios-deploy -d demo.app
clean:
rm -rf *.app demo fruitstrap
rm -rf *.app demo ios-deploy