]> git.saurik.com Git - cydia.git/blobdiff - makefile
Separate out CyteKit/CyteWebView.*.
[cydia.git] / makefile
index fbd040c4a5ea151490626b662ad33c0236872740..ee64dc9020879ecaf490ab4b00f8a8dfd207ab01 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,6 +1,7 @@
 sdks := /Developer/Platforms/iPhoneOS.platform/Developer/SDKs
+ioss := $(sort $(patsubst $(sdks)/iPhoneOS%.sdk,%,$(wildcard $(sdks)/iPhoneOS*.sdk)))
 
-ios := 4.0
+ios := $(word $(words $(ioss)),$(ioss))
 gcc := 4.2
 
 flags := 
@@ -69,7 +70,7 @@ sysroot:
        @echo 1>&2
        @exit 1
 
-MobileCydia: sysroot MobileCydia.mm UICaboodle/*.h UICaboodle/*.mm SDURLCache/SDURLCache.h SDURLCache/SDURLCache.m iPhonePrivate.h lookup3.o Cytore.hpp
+MobileCydia: sysroot MobileCydia.mm CyteKit/*.h CyteKit/*.mm SDURLCache/SDURLCache.h SDURLCache/SDURLCache.m iPhonePrivate.h lookup3.o Cytore.hpp
        $(cycc) $(filter %.mm,$^) $(filter %.o,$^) $(foreach m,$(filter %.m,$^),-x objective-c++ $(m)) $(flags) $(link) $(uikit) -DCYDIA_VERSION='"$(version)"'
        ldid -Slaunch.xml $@ || { rm -f $@ && false; }