]> git.saurik.com Git - uikittools.git/blame_incremental - makefile
On iOS 8.3, allow symbolic links as /Applications.
[uikittools.git] / makefile
... / ...
CommitLineData
1uikittools = uiduid uicache uiopen gssc sbdidlaunch sbreload cfversion iomfsetgamma libuicache.dylib
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%.dylib: %.mm
23 $${PKG_TARG}-g++ -Wall -Werror -dynamiclib -o $@ $^ $($@) -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -lobjc -framework CoreFoundation -framework Foundation
24 ldid -S $@
25
26%: %.mm
27 $${PKG_TARG}-g++ -Wall -Werror -o $@ $^ $($@) -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -lobjc
28 ldid -S$(wildcard $@.xml) $@
29
30%: %.c
31 $${PKG_TARG}-gcc -Wall -Werror -o $@ $< -framework CoreFoundation
32 ldid -S$(wildcard $@.xml) $@
33
34iomfsetgamma: iomfsetgamma.c
35 $${PKG_TARG}-gcc -Wall -Werror -o $@ $< -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -framework IOKit -framework IOMobileFramebuffer
36 ldid -S$(wildcard $@.xml) $@
37
38package: all extrainst_
39 rm -rf _
40 mkdir -p _/usr/lib
41 cp -a $(filter %.dylib,$(uikittools)) _/usr/lib
42 mkdir -p _/usr/bin
43 cp -a $(filter-out %.dylib,$(uikittools)) _/usr/bin
44 mkdir -p _/DEBIAN
45 ./control.sh _ >_/DEBIAN/control
46 cp -a extrainst_ _/DEBIAN/
47 mkdir -p debs
48 ln -sf debs/uikittools_$$(./version.sh)_iphoneos-arm.deb uikittools.deb
49 dpkg-deb -b _ uikittools.deb
50 readlink uikittools.deb