ios-deploy/Makefile

30 lines
958 B
Makefile
Raw Normal View History

IOS_CC = gcc
IOS_SDK = $(shell xcode-select --print-path)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
DEVICE_SUPPORT = $(shell xcode-select --print-path)/Platforms/iPhoneOS.platform/DeviceSupport
2011-09-16 16:06:56 +02:00
all: clean ios-deploy
2011-09-16 16:06:56 +02: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
$(IOS_CC) -arch armv7 -isysroot $(IOS_SDK) -framework CoreFoundation -o demo demo.c
2011-09-16 16:06:56 +02:00
ios-deploy: ios-deploy.c
$(IOS_CC) -o ios-deploy -framework CoreFoundation -framework MobileDevice -F/System/Library/PrivateFrameworks ios-deploy.c
2011-09-16 16:06:56 +02:00
symlink:
cd $(DEVICE_SUPPORT); ln -sfn "`find . -type d -maxdepth 1 -exec basename {} \; | tail -1`" Latest
install: symlink ios-deploy
2013-05-11 02:34:19 +02:00
mkdir -p $(prefix)/bin
cp ios-deploy $(prefix)/bin
2011-09-16 16:06:56 +02:00
debug: all
./ios-deploy --debug --bundle demo.app
2011-09-16 16:06:56 +02:00
clean:
rm -rf *.app demo ios-deploy