summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-12-03 01:36:27 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2010-12-03 01:36:27 -0800
commit670fdb01e05ad4ebde4d5f71f2756526dddc2f11 (patch)
treeb3426456cac54b4d9c03ff48a587af23893cb6af /makefile
parentbb0fe3c941d750de3587298bee36d07ff92debda (diff)
Compile for 2.0 using 3.2 SDK (for now).
Diffstat (limited to 'makefile')
-rw-r--r--makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/makefile b/makefile
index 70c5432..095831e 100644
--- a/makefile
+++ b/makefile
@@ -1,11 +1,12 @@
sdks := /Developer/Platforms/iPhoneOS.platform/Developer/SDKs
-ifeq ($(findstring iPhoneOS2.0.sdk,$(wildcard $(sdks)/iPhoneOS*.sdk)),)
ios := 3.2
-gcc := 4.2
-else
-ios := 2.0
+#ios := 2.0
+
+ifeq ($(patsubst 2%,2,$(ios)),2)
gcc := 4.0
+else
+gcc := 4.2
endif
flags :=
@@ -49,7 +50,7 @@ backrow += -FAppleTV -framework BackRow -framework AppleTV
#cycc = cycc -r4.2 -i$(ios) -o$@
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
+cycc = $(gxx) -arch armv6 -o $@ -mcpu=arm1176jzf-s -miphoneos-version-min=2.0 -isysroot $(sdk) -idirafter /usr/include -F/Library/Frameworks
all: MobileCydia