]>
Commit | Line | Data |
---|---|---|
68d2b30b | 1 | uikittools = uiduid uicache uiopen gssc sbdidlaunch sbreload cfversion iomfsetgamma ldrestart |
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 | |
61bc7627 JF |
15 | flags += -miphoneos-version-min=2.0 |
16 | flags += -arch armv6 | |
54798aa7 | 17 | |
68d2b30b | 18 | ldrestart := -std=c++11 |
54798aa7 | 19 | gssc := -lobjc |
a830525c | 20 | iomfsetgamma := -I. $(private) -framework IOKit -framework IOMobileFramebuffer |
54798aa7 JF |
21 | sbdidlaunch := $(private) -framework SpringBoardServices |
22 | uicache := -framework UIKit # XXX: UIKit -> MobileCoreServices | |
85a77f07 JF |
23 | uiduid := -framework UIKit |
24 | uiopen := -framework UIKit | |
54798aa7 | 25 | uishoot := -framework UIKit |
7141b425 | 26 | |
4ab9b1c7 | 27 | uicache: csstore.cpp |
ee2ee18b | 28 | extrainst_: csstore.cpp |
4ab9b1c7 | 29 | |
a60b86de | 30 | %: %.mm |
61bc7627 | 31 | cycc -- -o $@ $^ $(flags) $($@) |
43318ffe | 32 | ldid -S$(wildcard $@.xml) $@ |
2a72f832 | 33 | |
68d2b30b JF |
34 | %: %.cpp |
35 | cycc -- -o $@ $^ $(flags) $($@) | |
36 | ldid -S$(wildcard $@.xml) $@ | |
37 | ||
2618b3e9 | 38 | %: %.c |
61bc7627 | 39 | cycc -- -o $@ -x c $^ $(flags) $($@) |
43318ffe | 40 | ldid -S$(wildcard $@.xml) $@ |
d9e253f6 | 41 | |
ee2ee18b | 42 | package: all extrainst_ |
a830525c | 43 | sudo rm -rf _ |
57ebf0d9 | 44 | mkdir -p _/usr/bin |
10fd0e0c | 45 | cp -a $(filter-out %.dylib,$(uikittools)) _/usr/bin |
57ebf0d9 JF |
46 | mkdir -p _/DEBIAN |
47 | ./control.sh _ >_/DEBIAN/control | |
ee2ee18b | 48 | cp -a extrainst_ _/DEBIAN/ |
57ebf0d9 JF |
49 | mkdir -p debs |
50 | ln -sf debs/uikittools_$$(./version.sh)_iphoneos-arm.deb uikittools.deb | |
a830525c JF |
51 | sudo chown -R 0 _ |
52 | sudo chgrp -R 0 _ | |
57ebf0d9 JF |
53 | dpkg-deb -b _ uikittools.deb |
54 | readlink uikittools.deb |