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