summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-06-09 08:42:46 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-06-09 08:42:46 -0700
commit543e172ac58fea0cdaa244dadfa9538c975cccc6 (patch)
tree6e7cbd2384a88b1b6b05a476460efb0ce14f19af /makefile
parent4cc9e99a32a73858f3b9739c0cf8ec82bb35e93e (diff)
Fix postinst compile post-clang.
Diffstat (limited to 'makefile')
-rw-r--r--makefile40
1 files changed, 20 insertions, 20 deletions
diff --git a/makefile b/makefile
index 931ec83..f98a902 100644
--- a/makefile
+++ b/makefile
@@ -14,6 +14,7 @@ endif
flags :=
link :=
+libs :=
ifeq (o,O) # gzip is actually better
dpkg := /Library/Cydia/bin/dpkg-deb
@@ -51,25 +52,24 @@ xflags += -fobjc-call-cxx-cdtors
xflags += -fvisibility-inlines-hidden
link += -Lsysroot/usr/lib
-
-link += -framework CoreFoundation
-link += -framework CoreGraphics
-link += -framework Foundation
-link += -framework GraphicsServices
-link += -framework IOKit
-link += -framework JavaScriptCore
-link += -framework QuartzCore
-link += -framework SpringBoardServices
-link += -framework SystemConfiguration
-link += -framework WebCore
-link += -framework WebKit
-
-link += -lapr-1
-link += -lapt-pkg
-link += -lpcre
-
link += -multiply_defined suppress
+libs += -framework CoreFoundation
+libs += -framework CoreGraphics
+libs += -framework Foundation
+libs += -framework GraphicsServices
+libs += -framework IOKit
+libs += -framework JavaScriptCore
+libs += -framework QuartzCore
+libs += -framework SpringBoardServices
+libs += -framework SystemConfiguration
+libs += -framework WebCore
+libs += -framework WebKit
+
+libs += -lapr-1
+libs += -lapt-pkg
+libs += -lpcre
+
uikit :=
uikit += -framework UIKit
@@ -138,7 +138,7 @@ sysroot: sysroot.sh
MobileCydia: sysroot $(object) entitlements.xml
@echo "[link] $(object:Objects/%=%)"
- @$(cycc) $(filter %.o,$^) $(flags) $(link) $(uikit)
+ @$(cycc) $(filter %.o,$^) $(flags) $(link) $(libs) $(uikit)
@mkdir -p bins
@cp -a $@ bins/$@-$(version)
@echo "[strp] $@"
@@ -147,14 +147,14 @@ MobileCydia: sysroot $(object) entitlements.xml
@ldid -T0 -Sentitlements.xml $@ || { rm -f $@ && false; }
CydiaAppliance: CydiaAppliance.mm
- $(cycc) $(filter %.mm,$^) $(flags) -bundle $(link) $(backrow)
+ $(cycc) $(filter %.mm,$^) $(flags) $(link) -bundle $(libs) $(backrow)
cfversion: cfversion.mm
$(cycc) $(filter %.mm,$^) $(flags) -framework CoreFoundation
@ldid -T0 -S $@
postinst: postinst.mm Sources.mm Sources.h CyteKit/stringWithUTF8Bytes.mm CyteKit/stringWithUTF8Bytes.h CyteKit/UCPlatform.h
- $(cycc) $(filter %.mm,$^) $(flags) -framework CoreFoundation -framework Foundation -framework UIKit -lpcre
+ $(cycc) $(filter %.mm,$^) $(flags) $(link) -framework CoreFoundation -framework Foundation -framework UIKit -lpcre
@ldid -T0 -S $@
debs/cydia_$(version)_iphoneos-arm.deb: MobileCydia preinst postinst cfversion $(images) $(shell find MobileCydia.app) cydia.control Library/firmware.sh