blob: f8f2803e76ba38ef603431ba2a2573105f675331 (
plain)
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
26
27
28
29
|
CC=clang
CC_ARM=xcrun -sdk iphoneos clang -arch armv7
CFLAGS_DYLIB=-dynamiclib
CFLAGS=
CFLAGS_OBJC=-fobjc-arc -fmodules -framework Foundation
all: clean dylib bin/envbypass
dylib:
${CC} ${CFLAGS_DYLIB} ${CFLAGS_OBJC} -o bin/game_over.dylib src/game_over.m
${CC_ARM} ${CFLAGS_DYLIB} ${CFLAGS_OBJC} -o bin/game_over_armv7.dylib src/game_over.m
old: clean
${CC} ${CFLAGS} ${CFLAGS_DYLIB} -o bin/game_over_old.dylib src/game_over.c
${CC_ARM} ${CFLAGS} ${CFLAGS_DYLIB} -o bin/game_over_old_armv7.dylib src/game_over.c
bin/envbypass:
${CC_ARM} ${CFLAGS} -o bin/envbypass src/envbypass.c
ldid -Sent.xml bin/envbypass
#${CC} ${CFLAGS} -o test test.c
clean:
sh -c "rm -rf bin; echo"
mkdir bin
install:
# cat bin/game_over_objc_armv7.dylib | ssh root@localhost -p 2222 "cat > /untether/game_over_objc_armv7.dylib2; mv /untether/game_over_objc_armv7.dylib2 /untether/game_over_objc_armv7.dylib1"
cat bin/game_over_armv7.dylib | ssh root@localhost -p 2222 "cat > /untether/game_over_armv7.dylib2; mv /untether/game_over_armv7.dylib2 /untether/game_over_armv7.dylib1"
cat bin/envbypass | ssh root@localhost -p 2222 "cat > envbypass"
|