1 uikittools = uiduid uicache uiopen gssc sbdidlaunch sbreload cfversion iomfsetgamma
6 rm -f $(uikittools) extrainst_
8 .PHONY: all clean package
10 private := -F/System/Library/PrivateFrameworks
13 flags += -framework CoreFoundation
14 flags += -framework Foundation
15 flags += -miphoneos-version-min=2.0
19 iomfsetgamma := -I. $(private) -framework IOKit -framework IOMobileFramebuffer
20 sbdidlaunch := $(private) -framework SpringBoardServices
21 uicache := -framework UIKit # XXX: UIKit -> MobileCoreServices
22 uiduid := -framework UIKit
23 uiopen := -framework UIKit
24 uishoot := -framework UIKit
27 extrainst_: csstore.cpp
30 cycc -- -o $@ $^ $(flags) $($@)
31 ldid -S$(wildcard $@.xml) $@
34 cycc -- -o $@ -x c $^ $(flags) $($@)
35 ldid -S$(wildcard $@.xml) $@
37 package: all extrainst_
40 cp -a $(filter-out %.dylib,$(uikittools)) _/usr/bin
42 ./control.sh _ >_/DEBIAN/control
43 cp -a extrainst_ _/DEBIAN/
45 ln -sf debs/uikittools_$$(./version.sh)_iphoneos-arm.deb uikittools.deb
48 dpkg-deb -b _ uikittools.deb
49 readlink uikittools.deb