]> git.saurik.com Git - uikittools.git/blob - makefile
gcc -Wall -Werror
[uikittools.git] / makefile
1 uikittools = uiduid uishoot uicache uiopen gssc sbdidlaunch sbreload
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 package: all
19 rm -rf _
20 mkdir -p _/usr/bin
21 cp -a $(uikittools) _/usr/bin
22 mkdir -p _/DEBIAN
23 ./control.sh _ >_/DEBIAN/control
24 mkdir -p debs
25 ln -sf debs/uikittools_$$(./version.sh)_iphoneos-arm.deb uikittools.deb
26 dpkg-deb -b _ uikittools.deb
27 readlink uikittools.deb