Updated Makefile (renaming of binary, iOS 6.1 SDK, using clang instead of gcc)
This commit is contained in:
parent
a13cc14bef
commit
5cfa9161e0
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,3 @@
|
||||
demo
|
||||
demo.app
|
||||
fruitstrap
|
||||
ios-deploy
|
||||
|
17
Makefile
17
Makefile
@ -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
|
Loading…
Reference in New Issue
Block a user