]> git.saurik.com Git - uikittools.git/blob - makefile
Move to git-oriented build environment.
[uikittools.git] / makefile
1 uikittools = uiduid uishoot uicache uiopen gssc sbdidlaunch
2
3 all: $(uikittools)
4
5 clean:
6 rm -f $(uikittools)
7
8 .PHONY: all clean package
9
10 %: %.mm
11 $${PKG_TARG}-g++ -o $@ $< -framework CoreFoundation -framework Foundation -framework UIKit -framework GraphicsServices -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks -lobjc -framework SpringBoardServices
12 ldid -S $@
13
14 package: all
15 rm -rf _
16 mkdir -p _/usr/bin
17 cp -a $(uikittools) _/usr/bin
18 mkdir -p _/DEBIAN
19 ./control.sh _ >_/DEBIAN/control
20 mkdir -p debs
21 ln -sf debs/uikittools_$$(./version.sh)_iphoneos-arm.deb uikittools.deb
22 dpkg-deb -b _ uikittools.deb
23 readlink uikittools.deb