]> git.saurik.com Git - winterboard.git/blob - makefile
d42711caffc57b7a8d92cce0bd852f2db033cebc
[winterboard.git] / makefile
1 ifndef PKG_TARG
2 target :=
3 else
4 target := $(PKG_TARG)-
5 endif
6
7 all: WinterBoard WinterBoard.dylib UIImages
8
9 clean:
10 rm -f WinterBoard WinterBoard.dylib UIImages
11
12 WinterBoard.dylib: Library.mm makefile
13 $(target)g++ -dynamiclib -g0 -O2 -Wall -o $@ $(filter %.mm,$^) -framework CoreFoundation -framework Foundation -lobjc -init _WBInitialize -I/apl/inc/iPhoneOS-2.0 -framework CoreGraphics
14
15 UIImages: UIImages.mm makefile
16 $(target)g++ -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework Foundation -framework CoreFoundation -lobjc -I/apl/inc/iPhoneOS-2.0
17
18 WinterBoard: Application.mm makefile
19 $(target)g++ -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework Foundation -framework CoreFoundation -lobjc -framework CoreGraphics
20
21 package:
22 rm -rf winterboard
23 mkdir -p winterboard/DEBIAN
24 mkdir -p winterboard/Applications/WinterBoard.app
25 mkdir -p winterboard/Library/Themes
26 mkdir -p winterboard/Library/MobileSubstrate/DynamicLibraries
27 ln -s /Applications/WinterBoard.app/WinterBoard.dylib winterboard/Library/MobileSubstrate/DynamicLibraries
28 cp -a *.theme winterboard/Library/Themes
29 find winterboard/Library/Themes -name .svn | while read -r line; do rm -rf "$${line}"; done
30 cp -a control preinst prerm winterboard/DEBIAN
31 cp -a Test.sh icon.png WinterBoard.dylib WinterBoard UIImages Info.plist winterboard/Applications/WinterBoard.app
32 dpkg-deb -b winterboard winterboard_0.9.2526-1_iphoneos-arm.deb
33
34 .PHONY: all clean package