2013-04-30 12:01:03 -07:00
|
|
|
IOS_CC = clang
|
|
|
|
IOS_SDK = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
|
2011-09-16 15:06:56 +01:00
|
|
|
|
2013-04-30 12:01:03 -07:00
|
|
|
all: demo.app ios-deploy
|
2011-09-16 15:06:56 +01:00
|
|
|
|
|
|
|
demo.app: demo Info.plist
|
|
|
|
mkdir -p demo.app
|
|
|
|
cp demo demo.app/
|
|
|
|
cp Info.plist ResourceRules.plist demo.app/
|
|
|
|
codesign -f -s "iPhone Developer" --entitlements Entitlements.plist demo.app
|
|
|
|
|
|
|
|
demo: demo.c
|
2013-04-30 12:01:03 -07:00
|
|
|
$(IOS_CC) -arch armv7 -isysroot $(IOS_SDK) -framework CoreFoundation -o demo demo.c
|
2011-09-16 15:06:56 +01:00
|
|
|
|
2013-04-30 12:01:03 -07:00
|
|
|
ios-deploy: ios-deploy.c
|
|
|
|
gcc -o ios-deploy -framework CoreFoundation -framework MobileDevice -F/System/Library/PrivateFrameworks ios-deploy.c
|
2011-09-16 15:06:56 +01:00
|
|
|
|
|
|
|
install: all
|
2013-04-30 12:07:52 -07:00
|
|
|
./ios-deploy --bundle demo.app
|
2011-09-16 15:06:56 +01:00
|
|
|
|
|
|
|
debug: all
|
2013-04-30 12:07:52 -07:00
|
|
|
./ios-deploy --debug --bundle demo.app
|
2011-09-16 15:06:56 +01:00
|
|
|
|
|
|
|
clean:
|
2013-04-30 12:01:03 -07:00
|
|
|
rm -rf *.app demo ios-deploy
|