ios-deploy/Makefile
Shazron Abdullah 7cdecd6f12 Changed default compiler to gcc (since on Snow Leopard 10.6 gcc is the default)
On a clean Snow Leopard system, and installing Xcode 4.2 (the last Xcode for SL), the default compiler is gcc (i686-apple-darwin10-llvm-gcc-4.2)
2013-05-28 15:40:03 -07:00

26 lines
748 B
Makefile

IOS_CC = gcc
IOS_SDK = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
all: clean ios-deploy
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
$(IOS_CC) -arch armv7 -isysroot $(IOS_SDK) -framework CoreFoundation -o demo demo.c
ios-deploy: ios-deploy.c
$(IOS_CC) -o ios-deploy -framework CoreFoundation -framework MobileDevice -F/System/Library/PrivateFrameworks ios-deploy.c
install: ios-deploy
mkdir -p $(prefix)/bin
cp ios-deploy $(prefix)/bin
debug: all
./ios-deploy --debug --bundle demo.app
clean:
rm -rf *.app demo ios-deploy