7 all: WinterBoard WinterBoard.dylib UIImages WinterBoardSettings
10 rm -f WinterBoard WinterBoard.dylib UIImages
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
16 WinterBoard.dylib: Library.mm makefile ../mobilesubstrate/substrate.h
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
20 UIImages: UIImages.mm makefile
21 $(target)g++ -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework Foundation -framework CoreFoundation -lobjc -I/apl/inc/iPhoneOS-2.0
24 WinterBoard: Application.mm makefile
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
30 mkdir -p winterboard/DEBIAN
31 mkdir -p winterboard/Applications/WinterBoard.app
32 mkdir -p winterboard/Library/Themes
33 mkdir -p winterboard/Library/MobileSubstrate/DynamicLibraries
34 mkdir -p winterboard/Library/PreferenceLoader/Preferences
35 mkdir -p winterboard/System/Library/PreferenceBundles
36 cp -a WinterBoardSettings.plist winterboard/Library/PreferenceLoader/Preferences
37 cp -a WinterBoardSettings.bundle winterboard/System/Library/PreferenceBundles
38 cp -a Icon-Small.png winterboard/System/Library/PreferenceBundles/WinterBoardSettings.bundle/icon.png
39 cp -a SearchResultsCheckmarkClear.png WinterBoardSettings winterboard/System/Library/PreferenceBundles/WinterBoardSettings.bundle
40 ln -s /Applications/WinterBoard.app/WinterBoard.dylib winterboard/Library/MobileSubstrate/DynamicLibraries
41 cp -a WinterBoard.plist winterboard/Library/MobileSubstrate/DynamicLibraries
42 cp -a *.theme winterboard/Library/Themes
43 find winterboard -name .svn | while read -r line; do rm -rf "$${line}"; done
44 cp -a control preinst prerm winterboard/DEBIAN
45 cp -a Test.sh Icon-Small.png icon.png WinterBoard.dylib WinterBoard UIImages Info.plist winterboard/Applications/WinterBoard.app
46 dpkg-deb -b winterboard winterboard_$(shell grep ^Version: control | cut -d ' ' -f 2)_iphoneos-arm.deb
48 .PHONY: all clean package