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