summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-10-17 12:59:29 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2010-10-17 12:59:29 -0700
commit89b0ea4a3abacc10a0c7167beba9ba116b535350 (patch)
tree21709edeaca8e59382fe73c1a09d72bee8e8599f /makefile
parentffbc8ef2844d34c939c8e538ed60746717ca9862 (diff)
Started the work to port Cydia back to a 2.0-era toolchain.
Diffstat (limited to 'makefile')
-rw-r--r--makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/makefile b/makefile
index 1d189f0..3898b49 100644
--- a/makefile
+++ b/makefile
@@ -1,4 +1,10 @@
+ifeq (o,O)
+ios := 2.0
+gcc := 4.0
+else
ios := 3.2
+gcc := 4.2
+endif
flags :=
link :=
@@ -34,7 +40,7 @@ link += -lpcre
link += -multiply_defined suppress
#cycc = cycc -r4.2 -i$(ios) -o$@
-gxx := /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++
+gxx := /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-$(gcc)
cycc = $(gxx) -arch armv6 -o $@ -mcpu=arm1176jzf-s -miphoneos-version-min=$(ios) -isysroot $(sdk) -idirafter /usr/include -F/Library/Frameworks
all: Cydia