forked from 10p-freddo/fruitstrap
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
25 lines (18 loc) · 764 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
SDK_PATH=$(shell xcode-select -print-path)
IOS_CC = $(SDK_PATH)/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc
all: demo.app fruitstrap
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 $(SDK_PATH)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -framework CoreFoundation -o demo demo.c
fruitstrap: fruitstrap.c
gcc -o fruitstrap -g -framework CoreFoundation -framework MobileDevice -F/System/Library/PrivateFrameworks fruitstrap.c
install: all
./fruitstrap install --bundle=demo.app
debug: all
./fruitstrap -d demo.app
clean:
rm -rf *.app demo fruitstrap