]> git.saurik.com Git - uikittools.git/blob - makefile
Unregister totally obsolete applications.
[uikittools.git] / makefile
1 uikittools = uiduid uicache uiopen gssc sbdidlaunch sbreload cfversion iomfsetgamma
2
3 all: $(uikittools)
4
5 clean:
6 rm -f $(uikittools)
7
8 .PHONY: all clean package
9
10 cfversion := -framework CoreFoundation
11 gssc := -framework CoreFoundation
12 sbdidlaunch := -framework CoreFoundation -framework SpringBoardServices
13 uicache := -framework Foundation -framework UIKit # XXX: UIKit -> MobileCoreServices
14 uiduid := -framework Foundation -framework UIKit
15 uiopen := -framework Foundation -framework UIKit
16 uishoot := -framework CoreFoundation -framework Foundation -framework UIKit
17
18 uicache: csstore.cpp
19
20 %: %.mm
21 $${PKG_TARG}-g++ -Wall -Werror -o $@ $^ $($@) -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -lobjc
22 ldid -S$(wildcard $@.xml) $@
23
24 %: %.c
25 $${PKG_TARG}-gcc -Wall -Werror -o $@ $< -framework CoreFoundation
26 ldid -S$(wildcard $@.xml) $@
27
28 iomfsetgamma: iomfsetgamma.c
29 $${PKG_TARG}-gcc -Wall -Werror -o $@ $< -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -framework IOKit -framework IOMobileFramebuffer
30 ldid -S$(wildcard $@.xml) $@
31
32 package: all
33 rm -rf _
34 mkdir -p _/usr/bin
35 cp -a $(uikittools) _/usr/bin
36 mkdir -p _/DEBIAN
37 ./control.sh _ >_/DEBIAN/control
38 mkdir -p debs
39 ln -sf debs/uikittools_$$(./version.sh)_iphoneos-arm.deb uikittools.deb
40 dpkg-deb -b _ uikittools.deb
41 readlink uikittools.deb