diff options
Diffstat (limited to 'interpose/Makefile')
| -rwxr-xr-x | interpose/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/interpose/Makefile b/interpose/Makefile new file mode 100755 index 0000000..f8f2803 --- /dev/null +++ b/interpose/Makefile @@ -0,0 +1,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"
\ No newline at end of file |
