]> git.saurik.com Git - uikittools.git/blob - makefile
d55c38afff874eb709f2bb84e50db4ec6c240274
[uikittools.git] / makefile
1 uikittools = uiduid uishoot uicache uiopen gssc
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
12 ldid -S $@
13
14 package: all
15 rm -rf package
16 mkdir -p package/usr/bin
17 cp -a $(uikittools) package/usr/bin
18 mkdir -p package/DEBIAN
19 cp -a control package/DEBIAN
20 rpl '%S' "$$(du -ks package | cut -d $$'\t' -f 1)" package/DEBIAN/control
21 dpkg-deb -b package uikittools_$(shell grep ^Version: control | cut -d ' ' -f 2)_iphoneos-arm.deb