]> git.saurik.com Git - cydia.git/blobdiff - makefile
The Preferences.mm file is a hopelessly out-of-date fragment.
[cydia.git] / makefile
index dcd482a93c06f44e8aa5ddcbf9cf5810382adc86..1d189f0adb5d61a6d1353d805373fb7fd55980e5 100644 (file)
--- a/makefile
+++ b/makefile
@@ -6,7 +6,9 @@ link :=
 #dpkg := /Library/Cydia/bin/dpkg-deb -Zlzma
 dpkg := dpkg-deb
 
-flags += -F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS$(ios).sdk/System/Library/PrivateFrameworks
+sdk := /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS$(ios).sdk
+
+flags += -F$(sdk)/System/Library/PrivateFrameworks
 flags += -I. -isystem sysroot/usr/include -Lsysroot/usr/lib
 flags += -Wall -Werror -Wno-deprecated-declarations
 flags += -fmessage-length=0
@@ -31,13 +33,18 @@ link += -lpcre
 
 link += -multiply_defined suppress
 
+#cycc = cycc -r4.2 -i$(ios) -o$@
+gxx := /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++
+cycc = $(gxx) -arch armv6 -o $@ -mcpu=arm1176jzf-s -miphoneos-version-min=$(ios) -isysroot $(sdk) -idirafter /usr/include -F/Library/Frameworks
+
 all: Cydia
 
 clean:
        rm -f Cydia
 
-Cydia: Cydia.mm Reachability.mm UICaboodle/*.mm
-       cycc -r4.2 -i$(ios) -o$@ -- $(filter %.mm,$^) $(flags) $(link)
+Cydia: Cydia.mm UICaboodle/*.mm iPhonePrivate.h
+       $(cycc) $(filter %.mm,$^) $(flags) $(link)
+       ldid -Slaunch.xml $@
 
 package: Cydia
        sudo rm -rf _