]>
Commit | Line | Data |
---|---|---|
d9e253f6 | 1 | uikittools = uiduid uishoot 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 JF |
9 | |
10 | %: %.mm | |
743eb46f | 11 | $${PKG_TARG}-g++ -Wall -Werror -o $@ $< -framework CoreFoundation -framework Foundation -framework UIKit -framework GraphicsServices -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -lobjc -framework SpringBoardServices |
2a72f832 JF |
12 | ldid -S $@ |
13 | ||
2618b3e9 | 14 | %: %.c |
743eb46f | 15 | $${PKG_TARG}-gcc -Wall -Werror -o $@ $< -framework CoreFoundation |
2618b3e9 JF |
16 | ldid -S $@ |
17 | ||
d9e253f6 JF |
18 | iomfsetgamma: iomfsetgamma.c |
19 | $${PKG_TARG}-gcc -Wall -Werror -o $@ $< -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -framework IOKit -framework IOMobileFramebuffer | |
20 | ldid -S $@ | |
21 | ||
2a72f832 | 22 | package: all |
57ebf0d9 JF |
23 | rm -rf _ |
24 | mkdir -p _/usr/bin | |
25 | cp -a $(uikittools) _/usr/bin | |
26 | mkdir -p _/DEBIAN | |
27 | ./control.sh _ >_/DEBIAN/control | |
28 | mkdir -p debs | |
29 | ln -sf debs/uikittools_$$(./version.sh)_iphoneos-arm.deb uikittools.deb | |
30 | dpkg-deb -b _ uikittools.deb | |
31 | readlink uikittools.deb |