1 uikittools = uiduid uicache uiopen gssc sbdidlaunch sbreload cfversion iomfsetgamma ldrestart
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
18 ldrestart := -std=c++11
20 iomfsetgamma := -I. $(private) -framework IOKit -framework IOMobileFramebuffer
21 sbdidlaunch := $(private) -framework SpringBoardServices
22 uicache := -framework UIKit # XXX: UIKit -> MobileCoreServices
23 uiduid := -framework UIKit
24 uiopen := -framework UIKit
25 uishoot := -framework UIKit
28 extrainst_: csstore.cpp
31 cycc -- -o $@ $^ $(flags) $($@)
32 ldid -S$(wildcard $@.xml) $@
35 cycc -- -o $@ $^ $(flags) $($@)
36 ldid -S$(wildcard $@.xml) $@
39 cycc -- -o $@ -x c $^ $(flags) $($@)
40 ldid -S$(wildcard $@.xml) $@
42 package: all extrainst_
45 cp -a $(filter-out %.dylib,$(uikittools)) _/usr/bin
47 ./control.sh _ >_/DEBIAN/control
48 cp -a extrainst_ _/DEBIAN/
50 ln -sf debs/uikittools_$$(./version.sh)_iphoneos-arm.deb uikittools.deb
53 dpkg-deb -b _ uikittools.deb
54 readlink uikittools.deb