X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/d1ba8fd35b8ff678f11f783e0329495f991714e5..8a2c6d14978ee52cfb6b90973a8b05b0338a098d:/makefile diff --git a/makefile b/makefile index d437f41b..57b04869 100644 --- 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 := @@ -58,7 +52,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=2.0 -isysroot $(sdk) -idirafter /usr/include -F/Library/Frameworks +cycc = $(gxx) -mthumb -arch armv6 -o $@ -mcpu=arm1176jzf-s -miphoneos-version-min=2.0 -isysroot $(sdk) -idirafter /usr/include -F/Library/Frameworks all: MobileCydia @@ -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; } @@ -100,6 +102,8 @@ package: MobileCydia mkdir -p _/DEBIAN ./control.sh _ >_/DEBIAN/control + find _ -name '*.png' -exec ./pngcrush.sh '{}' ';' + sudo chown -R 0 _ sudo chgrp -R 0 _ sudo chmod 6755 _/Applications/Cydia.app/MobileCydia @@ -107,6 +111,6 @@ package: MobileCydia mkdir -p debs ln -sf debs/cydia_$$(./version.sh)_iphoneos-arm.deb Cydia.deb $(dpkg) -b _ Cydia.deb - readlink Cydia.deb + @echo "$$(stat -L -f "%z" Cydia.deb) $$(stat -f "%Y" Cydia.deb)" .PHONY: all clean sign