]>
Commit | Line | Data |
---|---|---|
4533869d | 1 | uikittools = uiduid uicache uiopen gssc sbdidlaunch sbreload cfversion iomfsetgamma |
2a72f832 JF |
2 | |
3 | all: $(uikittools) | |
4 | ||
5 | clean: | |
6 | rm -f $(uikittools) | |
7 | ||
8 | .PHONY: all clean package | |
a60b86de | 9 | |
7141b425 JF |
10 | cfversion := -framework CoreFoundation |
11 | gssc := -framework CoreFoundation | |
12 | sbdidlaunch := -framework CoreFoundation -framework SpringBoardServices | |
e67aeed9 | 13 | uicache := -framework Foundation -framework UIKit # XXX: UIKit -> MobileCoreServices |
7141b425 JF |
14 | uiduid := -framework Foundation -framework UIKit |
15 | uiopen := -framework Foundation -framework UIKit | |
16 | uishoot := -framework CoreFoundation -framework Foundation -framework UIKit | |
ee2ee18b | 17 | extrainst_ := -framework CoreFoundation -framework Foundation |
7141b425 | 18 | |
4ab9b1c7 | 19 | uicache: csstore.cpp |
ee2ee18b | 20 | extrainst_: csstore.cpp |
4ab9b1c7 | 21 | |
a60b86de | 22 | %: %.mm |
4ab9b1c7 | 23 | $${PKG_TARG}-g++ -Wall -Werror -o $@ $^ $($@) -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -lobjc |
43318ffe | 24 | ldid -S$(wildcard $@.xml) $@ |
2a72f832 | 25 | |
2618b3e9 | 26 | %: %.c |
743eb46f | 27 | $${PKG_TARG}-gcc -Wall -Werror -o $@ $< -framework CoreFoundation |
43318ffe | 28 | ldid -S$(wildcard $@.xml) $@ |
2618b3e9 | 29 | |
d9e253f6 JF |
30 | iomfsetgamma: iomfsetgamma.c |
31 | $${PKG_TARG}-gcc -Wall -Werror -o $@ $< -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -framework IOKit -framework IOMobileFramebuffer | |
43318ffe | 32 | ldid -S$(wildcard $@.xml) $@ |
d9e253f6 | 33 | |
ee2ee18b | 34 | package: all extrainst_ |
57ebf0d9 JF |
35 | rm -rf _ |
36 | mkdir -p _/usr/bin | |
37 | cp -a $(uikittools) _/usr/bin | |
38 | mkdir -p _/DEBIAN | |
39 | ./control.sh _ >_/DEBIAN/control | |
ee2ee18b | 40 | cp -a extrainst_ _/DEBIAN/ |
57ebf0d9 JF |
41 | mkdir -p debs |
42 | ln -sf debs/uikittools_$$(./version.sh)_iphoneos-arm.deb uikittools.deb | |
43 | dpkg-deb -b _ uikittools.deb | |
44 | readlink uikittools.deb |