]> git.saurik.com Git - uikittools.git/blob - makefile
Use b flag to fopen() files for binary.
[uikittools.git] / makefile
1 uikittools = uiduid uishoot 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 %: %.mm
11 $${PKG_TARG}-g++ -Wall -Werror -o $@ $< -framework CoreFoundation -framework Foundation -framework UIKit -framework GraphicsServices -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -lobjc -framework SpringBoardServices
12 ldid -S $@
13
14 %: %.c
15 $${PKG_TARG}-gcc -Wall -Werror -o $@ $< -framework CoreFoundation
16 ldid -S $@
17
18 iomfsetgamma: iomfsetgamma.c
19 $${PKG_TARG}-gcc -Wall -Werror -o $@ $< -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -framework IOKit -framework IOMobileFramebuffer
20 ldid -S $@
21
22 package: all
23 rm -rf _
24 mkdir -p _/usr/bin
25 cp -a $(uikittools) _/usr/bin
26 mkdir -p _/DEBIAN
27 ./control.sh _ >_/DEBIAN/control
28 mkdir -p debs
29 ln -sf debs/uikittools_$$(./version.sh)_iphoneos-arm.deb uikittools.deb
30 dpkg-deb -b _ uikittools.deb
31 readlink uikittools.deb