]> git.saurik.com Git - uikittools.git/blame - makefile
Attempt to block uicache until lsd is available.
[uikittools.git] / makefile
CommitLineData
4533869d 1uikittools = uiduid uicache uiopen gssc sbdidlaunch sbreload cfversion iomfsetgamma
2a72f832
JF
2
3all: $(uikittools)
4
5clean:
6 rm -f $(uikittools)
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
17
a60b86de 18%: %.mm
7141b425 19 $${PKG_TARG}-g++ -Wall -Werror -o $@ $< $($@) -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -lobjc
43318ffe 20 ldid -S$(wildcard $@.xml) $@
2a72f832 21
2618b3e9 22%: %.c
743eb46f 23 $${PKG_TARG}-gcc -Wall -Werror -o $@ $< -framework CoreFoundation
43318ffe 24 ldid -S$(wildcard $@.xml) $@
2618b3e9 25
d9e253f6
JF
26iomfsetgamma: iomfsetgamma.c
27 $${PKG_TARG}-gcc -Wall -Werror -o $@ $< -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -framework IOKit -framework IOMobileFramebuffer
43318ffe 28 ldid -S$(wildcard $@.xml) $@
d9e253f6 29
2a72f832 30package: all
57ebf0d9
JF
31 rm -rf _
32 mkdir -p _/usr/bin
33 cp -a $(uikittools) _/usr/bin
34 mkdir -p _/DEBIAN
35 ./control.sh _ >_/DEBIAN/control
36 mkdir -p debs
37 ln -sf debs/uikittools_$$(./version.sh)_iphoneos-arm.deb uikittools.deb
38 dpkg-deb -b _ uikittools.deb
39 readlink uikittools.deb