]> git.saurik.com Git - uikittools.git/blame - makefile
On iOS 8.3, allow symbolic links as /Applications.
[uikittools.git] / makefile
CommitLineData
10fd0e0c 1uikittools = uiduid uicache uiopen gssc sbdidlaunch sbreload cfversion iomfsetgamma libuicache.dylib
2a72f832
JF
2
3all: $(uikittools)
4
5clean:
e0d6a30e 6 rm -f $(uikittools) extrainst_
2a72f832
JF
7
8.PHONY: all clean package
a60b86de 9
7141b425
JF
10cfversion := -framework CoreFoundation
11gssc := -framework CoreFoundation
12sbdidlaunch := -framework CoreFoundation -framework SpringBoardServices
e67aeed9 13uicache := -framework Foundation -framework UIKit # XXX: UIKit -> MobileCoreServices
7141b425
JF
14uiduid := -framework Foundation -framework UIKit
15uiopen := -framework Foundation -framework UIKit
16uishoot := -framework CoreFoundation -framework Foundation -framework UIKit
ee2ee18b 17extrainst_ := -framework CoreFoundation -framework Foundation
7141b425 18
4ab9b1c7 19uicache: csstore.cpp
ee2ee18b 20extrainst_: csstore.cpp
4ab9b1c7 21
10fd0e0c
JF
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
a60b86de 26%: %.mm
4ab9b1c7 27 $${PKG_TARG}-g++ -Wall -Werror -o $@ $^ $($@) -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -lobjc
43318ffe 28 ldid -S$(wildcard $@.xml) $@
2a72f832 29
2618b3e9 30%: %.c
743eb46f 31 $${PKG_TARG}-gcc -Wall -Werror -o $@ $< -framework CoreFoundation
43318ffe 32 ldid -S$(wildcard $@.xml) $@
2618b3e9 33
d9e253f6
JF
34iomfsetgamma: iomfsetgamma.c
35 $${PKG_TARG}-gcc -Wall -Werror -o $@ $< -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -framework IOKit -framework IOMobileFramebuffer
43318ffe 36 ldid -S$(wildcard $@.xml) $@
d9e253f6 37
ee2ee18b 38package: all extrainst_
57ebf0d9 39 rm -rf _
10fd0e0c
JF
40 mkdir -p _/usr/lib
41 cp -a $(filter %.dylib,$(uikittools)) _/usr/lib
57ebf0d9 42 mkdir -p _/usr/bin
10fd0e0c 43 cp -a $(filter-out %.dylib,$(uikittools)) _/usr/bin
57ebf0d9
JF
44 mkdir -p _/DEBIAN
45 ./control.sh _ >_/DEBIAN/control
ee2ee18b 46 cp -a extrainst_ _/DEBIAN/
57ebf0d9
JF
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