]> git.saurik.com Git - uikittools.git/blame_incremental - makefile
Do not attempt to fix the iOS 6 bug on iOS 7 or 8.
[uikittools.git] / makefile
... / ...
CommitLineData
1uikittools = uiduid uicache uiopen gssc sbdidlaunch sbreload cfversion iomfsetgamma
2
3all: $(uikittools)
4
5clean:
6 rm -f $(uikittools) extrainst_
7
8.PHONY: all clean package
9
10cfversion := -framework CoreFoundation
11gssc := -framework CoreFoundation
12sbdidlaunch := -framework CoreFoundation -framework SpringBoardServices
13uicache := -framework Foundation -framework UIKit # XXX: UIKit -> MobileCoreServices
14uiduid := -framework Foundation -framework UIKit
15uiopen := -framework Foundation -framework UIKit
16uishoot := -framework CoreFoundation -framework Foundation -framework UIKit
17extrainst_ := -framework CoreFoundation -framework Foundation
18
19uicache: csstore.cpp
20extrainst_: csstore.cpp
21
22%: %.mm
23 $${PKG_TARG}-g++ -Wall -Werror -o $@ $^ $($@) -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -lobjc
24 ldid -S$(wildcard $@.xml) $@
25
26%: %.c
27 $${PKG_TARG}-gcc -Wall -Werror -o $@ $< -framework CoreFoundation
28 ldid -S$(wildcard $@.xml) $@
29
30iomfsetgamma: iomfsetgamma.c
31 $${PKG_TARG}-gcc -Wall -Werror -o $@ $< -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -framework IOKit -framework IOMobileFramebuffer
32 ldid -S$(wildcard $@.xml) $@
33
34package: all extrainst_
35 rm -rf _
36 mkdir -p _/usr/bin
37 cp -a $(uikittools) _/usr/bin
38 mkdir -p _/DEBIAN
39 ./control.sh _ >_/DEBIAN/control
40 cp -a extrainst_ _/DEBIAN/
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