1 uikittools = uiduid uicache uiopen gssc sbdidlaunch sbreload cfversion iomfsetgamma libuicache.dylib
6 rm -f $(uikittools) extrainst_
8 .PHONY: all clean package
10 private := -F/System/Library/PrivateFrameworks
12 cfversion := -framework CoreFoundation
13 gssc := -lobjc -framework CoreFoundation
14 iomfsetgamma := -I. $(private) -framework IOKit -framework IOMobileFramebuffer
15 sbdidlaunch := $(private) -framework CoreFoundation -framework SpringBoardServices
16 sbreload := -framework CoreFoundation
17 uicache := -framework Foundation -framework UIKit # XXX: UIKit -> MobileCoreServices
18 uiduid := -framework Foundation -framework UIKit
19 uiopen := -framework Foundation -framework UIKit
20 uishoot := -framework CoreFoundation -framework Foundation -framework UIKit
21 extrainst_ := -framework CoreFoundation -framework Foundation
24 extrainst_: csstore.cpp
27 cycc -i2.0 -o$@ -- -dynamiclib -Werror $^ $($@) -lobjc
31 cycc -i2.0 -o$@ -- -Werror $^ $($@)
32 ldid -S$(wildcard $@.xml) $@
35 cycc -i2.0 -o$@ -- -Werror -x c $^ $($@)
36 ldid -S$(wildcard $@.xml) $@
38 package: all extrainst_
41 cp -a $(filter %.dylib,$(uikittools)) _/usr/lib
43 cp -a $(filter-out %.dylib,$(uikittools)) _/usr/bin
45 ./control.sh _ >_/DEBIAN/control
46 cp -a extrainst_ _/DEBIAN/
48 ln -sf debs/uikittools_$$(./version.sh)_iphoneos-arm.deb uikittools.deb
51 dpkg-deb -b _ uikittools.deb
52 readlink uikittools.deb