]> git.saurik.com Git - cydia.git/blobdiff - makefile
Add some execution failsafes for sysroot.sh.
[cydia.git] / makefile
index 9a1145dcf42b5ccd2466cf6f8457c7af8af4ba9f..57b0486998569d0fecc6f5c3fbb9d71badfa9c78 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,13 +1,7 @@
 sdks := /Developer/Platforms/iPhoneOS.platform/Developer/SDKs
 
-ios := 3.2
-#ios := 2.0
-
-ifeq ($(patsubst 2%,2,$(ios)),2)
-gcc := 4.0
-else
+ios := 4.0
 gcc := 4.2
-endif
 
 flags := 
 link := 
@@ -68,7 +62,15 @@ clean:
 %.o: %.c
        $(cycc) -c -o $@ -x c $<
 
-MobileCydia: MobileCydia.mm UICaboodle/*.h UICaboodle/*.mm SDURLCache/SDURLCache.h SDURLCache/SDURLCache.m iPhonePrivate.h lookup3.o Cytore.hpp
+Version.h:
+       ./Version.h.sh
+
+sysroot:
+       @echo "Please read compiling.txt: you do not have a ./sysroot/ folder with the on-device requirements." 1>&2
+       @echo 1>&2
+       @exit 1
+
+MobileCydia: sysroot Version.h MobileCydia.mm UICaboodle/*.h UICaboodle/*.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)
        ldid -Slaunch.xml $@ || { rm -f $@ && false; }