]> git.saurik.com Git - cydia.git/commitdiff
Remove cycc requirement.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 4 Oct 2010 11:28:46 +0000 (04:28 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 4 Oct 2010 11:28:46 +0000 (04:28 -0700)
compiling.txt
makefile

index 411d0b168ce31e03e1f6ffd9d09ce0a2f6255dbd..72d30403b3816b6967cceeb1eb768a3ffa91602d 100644 (file)
@@ -1,5 +1,18 @@
 0) use a Mac (I'm sorry, I really am)
-1) install Cydia Substrate (in beta)
-2) install Fink (the only sane choice)
-3) activate Fink (. /sw/bin/init.sh)
-4) fink install bash ldid wget
+1) install the official Apple iOS SDK
+
+2) build a sysroot/ of Telesphoreo by:
+
+    a) downloading and extracting this tarball:
+    http://test.saurik.com/cydia/sysroot-2.tgz
+
+       -or-
+
+    b) doing the following crazy stunts:
+        i) install Cydia Substrate (in beta)
+        ii) install Fink (the only sane choice)
+        iii) activate Fink (. /sw/bin/init.sh)
+        iv) fink install bash ldid tar wget
+        v) run ./sysroot.sh and wait a bit
+
+3) type "make" to compile the executable
index 9236ff6f14e1ebae1d745c4996e61238c30728cf..71b35876a5f4251a2a5c530b1a965a6450b515d1 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,17 @@ 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 iPhonePrivate.h
-       cycc -r4.2 -i$(ios) -o$@ -- $(filter %.mm,$^) $(flags) $(link)
+       $(cycc) $(filter %.mm,$^) $(flags) $(link)
 
 package: Cydia
        sudo rm -rf _