summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/makefile b/makefile
index 60cb272..8386a18 100644
--- a/makefile
+++ b/makefile
@@ -1,4 +1,21 @@
-all: uiduid uishoot uicache
+uikittools = uiduid uishoot uicache uiopen
+
+all: $(uikittools)
+
+clean:
+ rm -f $(uikittools)
+
+.PHONY: all clean package
%: %.mm
$${PKG_TARG}-g++ -o $@ $< -framework CoreFoundation -framework Foundation -framework UIKit -lobjc
+ ldid -S $@
+
+package: all
+ rm -rf package
+ mkdir -p package/usr/bin
+ cp -a $(uikittools) package/usr/bin
+ mkdir -p package/DEBIAN
+ cp -a control package/DEBIAN
+ rpl '%S' "$$(du -ks package | cut -d $$'\t' -f 1)" package/DEBIAN/control
+ dpkg-deb -b package uikittools_$(shell grep ^Version: control | cut -d ' ' -f 2)_iphoneos-arm.deb