]>
Commit | Line | Data |
---|---|---|
cf8bb1d4 JF |
1 | ifndef PKG_TARG |
2 | target := | |
3 | else | |
4 | target := $(PKG_TARG)- | |
5 | endif | |
6 | ||
265e19b2 | 7 | all: WinterBoard WinterBoard.dylib UIImages WinterBoardSettings Optimize |
cf8bb1d4 JF |
8 | |
9 | clean: | |
ca13798d | 10 | rm -f WinterBoard WinterBoard.dylib UIImages |
cf8bb1d4 | 11 | |
224d48e3 JF |
12 | WinterBoardSettings: Settings.mm makefile |
13 | $(target)g++ -dynamiclib -g0 -O2 -Wall -o $@ $(filter %.mm,$^) -framework UIKit -framework CoreFoundation -framework Foundation -lobjc -framework CoreGraphics -framework Preferences -F$(PKG_ROOT)/System/Library/PrivateFrameworks | |
14 | ldid -S $@ | |
15 | ||
2acbe5b8 | 16 | WinterBoard.dylib: Library.mm makefile ../mobilesubstrate/substrate.h |
69550bfb | 17 | $(target)g++ -dynamiclib -g0 -O2 -Wall -o $@ $(filter %.mm,$^) -framework CoreFoundation -framework Foundation -lobjc -init _WBInitialize -I/apl/inc/iPhoneOS-2.0 -framework CoreGraphics -framework GraphicsServices -framework Celestial -I../mobilesubstrate -L../mobilesubstrate -lsubstrate -framework UIKit -F$(PKG_ROOT)/System/Library/PrivateFrameworks |
224d48e3 | 18 | ldid -S $@ |
cf8bb1d4 | 19 | |
ca13798d | 20 | UIImages: UIImages.mm makefile |
69550bfb | 21 | $(target)g++ -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework Foundation -framework CoreFoundation -lobjc -I/apl/inc/iPhoneOS-2.0 |
224d48e3 | 22 | ldid -S $@ |
ca13798d | 23 | |
62b2dbad | 24 | WinterBoard: Application.mm makefile |
224d48e3 JF |
25 | $(target)g++ -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework Foundation -framework CoreFoundation -lobjc -framework CoreGraphics -I/apl/sdk -framework Preferences -F$(PKG_ROOT)/System/Library/PrivateFrameworks |
26 | ldid -S $@ | |
62b2dbad | 27 | |
265e19b2 JF |
28 | Optimize: Optimize.cpp makefile |
29 | $(target)g++ -g0 -O2 -Wall -Werror -o $@ $(filter %.cpp,$^) | |
30 | ldid -S $@ | |
31 | ||
32 | package: all | |
62b2dbad JF |
33 | rm -rf winterboard |
34 | mkdir -p winterboard/DEBIAN | |
35 | mkdir -p winterboard/Applications/WinterBoard.app | |
26c43b47 | 36 | mkdir -p winterboard/Library/Themes |
d5fb6e01 | 37 | mkdir -p winterboard/Library/MobileSubstrate/DynamicLibraries |
224d48e3 JF |
38 | mkdir -p winterboard/Library/PreferenceLoader/Preferences |
39 | mkdir -p winterboard/System/Library/PreferenceBundles | |
265e19b2 JF |
40 | mkdir -p winterboard/usr/libexec/winterboard |
41 | cp -a Optimize winterboard/usr/libexec/winterboard | |
42 | chmod 6755 winterboard/usr/libexec/winterboard/Optimize | |
224d48e3 JF |
43 | cp -a WinterBoardSettings.plist winterboard/Library/PreferenceLoader/Preferences |
44 | cp -a WinterBoardSettings.bundle winterboard/System/Library/PreferenceBundles | |
45 | cp -a Icon-Small.png winterboard/System/Library/PreferenceBundles/WinterBoardSettings.bundle/icon.png | |
46 | cp -a SearchResultsCheckmarkClear.png WinterBoardSettings winterboard/System/Library/PreferenceBundles/WinterBoardSettings.bundle | |
d5fb6e01 | 47 | ln -s /Applications/WinterBoard.app/WinterBoard.dylib winterboard/Library/MobileSubstrate/DynamicLibraries |
2acbe5b8 | 48 | cp -a WinterBoard.plist winterboard/Library/MobileSubstrate/DynamicLibraries |
d5fb6e01 | 49 | cp -a *.theme winterboard/Library/Themes |
224d48e3 | 50 | find winterboard -name .svn | while read -r line; do rm -rf "$${line}"; done |
37351a17 | 51 | cp -a control preinst prerm winterboard/DEBIAN |
9c64bab2 | 52 | cp -a Test.sh Icon-Small.png icon.png WinterBoard.dylib WinterBoard UIImages Info.plist winterboard/Applications/WinterBoard.app |
502d350e | 53 | dpkg-deb -b winterboard winterboard_$(shell grep ^Version: control | cut -d ' ' -f 2)_iphoneos-arm.deb |
62b2dbad JF |
54 | |
55 | .PHONY: all clean package |