summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2016-07-22 15:19:04 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2016-07-22 15:19:04 -0700
commit68d2b30b8a240347caa0937c75cfbf0079b7a3a5 (patch)
tree122c5d5d4879af525e713f0af38c607009fcd8c9 /makefile
parent29800e26a158518a01eda03e9c35f0aba0f764d6 (diff)
Add ldrestart for safe restart from app jailbreak.v1.1.12
Diffstat (limited to 'makefile')
-rw-r--r--makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/makefile b/makefile
index 0f16936..bb00062 100644
--- a/makefile
+++ b/makefile
@@ -1,4 +1,4 @@
-uikittools = uiduid uicache uiopen gssc sbdidlaunch sbreload cfversion iomfsetgamma
+uikittools = uiduid uicache uiopen gssc sbdidlaunch sbreload cfversion iomfsetgamma ldrestart
all: $(uikittools)
@@ -15,6 +15,7 @@ flags += -framework Foundation
flags += -miphoneos-version-min=2.0
flags += -arch armv6
+ldrestart := -std=c++11
gssc := -lobjc
iomfsetgamma := -I. $(private) -framework IOKit -framework IOMobileFramebuffer
sbdidlaunch := $(private) -framework SpringBoardServices
@@ -30,6 +31,10 @@ extrainst_: csstore.cpp
cycc -- -o $@ $^ $(flags) $($@)
ldid -S$(wildcard $@.xml) $@
+%: %.cpp
+ cycc -- -o $@ $^ $(flags) $($@)
+ ldid -S$(wildcard $@.xml) $@
+
%: %.c
cycc -- -o $@ -x c $^ $(flags) $($@)
ldid -S$(wildcard $@.xml) $@