]> git.saurik.com Git - uikittools.git/blame - makefile
Move installd patch to separated "patcyh" package.
[uikittools.git] / makefile
CommitLineData
77214e8e 1uikittools = uiduid uicache uiopen gssc sbdidlaunch sbreload cfversion iomfsetgamma
2a72f832
JF
2
3all: $(uikittools)
4
5clean:
e0d6a30e 6 rm -f $(uikittools) extrainst_
2a72f832
JF
7
8.PHONY: all clean package
a60b86de 9
a830525c
JF
10private := -F/System/Library/PrivateFrameworks
11
54798aa7
JF
12flags := -Os -Werror
13flags += -framework CoreFoundation
14flags += -framework Foundation
15
16gssc := -lobjc
a830525c 17iomfsetgamma := -I. $(private) -framework IOKit -framework IOMobileFramebuffer
54798aa7
JF
18sbdidlaunch := $(private) -framework SpringBoardServices
19uicache := -framework UIKit # XXX: UIKit -> MobileCoreServices
20uiduid := --framework UIKit
21uiopen := --framework UIKit
22uishoot := -framework UIKit
7141b425 23
4ab9b1c7 24uicache: csstore.cpp
ee2ee18b 25extrainst_: csstore.cpp
4ab9b1c7 26
a60b86de 27%: %.mm
54798aa7 28 cycc -i2.0 -o$@ -- $^ $(flags) $($@)
43318ffe 29 ldid -S$(wildcard $@.xml) $@
2a72f832 30
2618b3e9 31%: %.c
54798aa7 32 cycc -i2.0 -o$@ -- -x c $^ $(flags) $($@)
43318ffe 33 ldid -S$(wildcard $@.xml) $@
d9e253f6 34
ee2ee18b 35package: all extrainst_
a830525c 36 sudo rm -rf _
57ebf0d9 37 mkdir -p _/usr/bin
10fd0e0c 38 cp -a $(filter-out %.dylib,$(uikittools)) _/usr/bin
57ebf0d9
JF
39 mkdir -p _/DEBIAN
40 ./control.sh _ >_/DEBIAN/control
ee2ee18b 41 cp -a extrainst_ _/DEBIAN/
57ebf0d9
JF
42 mkdir -p debs
43 ln -sf debs/uikittools_$$(./version.sh)_iphoneos-arm.deb uikittools.deb
a830525c
JF
44 sudo chown -R 0 _
45 sudo chgrp -R 0 _
57ebf0d9
JF
46 dpkg-deb -b _ uikittools.deb
47 readlink uikittools.deb