]> git.saurik.com Git - winterboard.git/blame - makefile
Fixed a number of 2.x reported issues.
[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
2acbe5b8 12WinterBoard.dylib: Library.mm makefile ../mobilesubstrate/substrate.h
69550bfb 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 -framework GraphicsServices -framework Celestial -I../mobilesubstrate -L../mobilesubstrate -lsubstrate -framework UIKit -F$(PKG_ROOT)/System/Library/PrivateFrameworks
cf8bb1d4 14
ca13798d 15UIImages: UIImages.mm makefile
69550bfb 16 $(target)g++ -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework Foundation -framework CoreFoundation -lobjc -I/apl/inc/iPhoneOS-2.0
ca13798d 17
62b2dbad 18WinterBoard: Application.mm makefile
69550bfb 19 $(target)g++ -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework Foundation -framework CoreFoundation -lobjc -framework CoreGraphics -I/apl/sdk
62b2dbad
JF
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
d5fb6e01
JF
26 mkdir -p winterboard/Library/MobileSubstrate/DynamicLibraries
27 ln -s /Applications/WinterBoard.app/WinterBoard.dylib winterboard/Library/MobileSubstrate/DynamicLibraries
2acbe5b8 28 cp -a WinterBoard.plist winterboard/Library/MobileSubstrate/DynamicLibraries
d5fb6e01
JF
29 cp -a *.theme winterboard/Library/Themes
30 find winterboard/Library/Themes -name .svn | while read -r line; do rm -rf "$${line}"; done
37351a17 31 cp -a control preinst prerm winterboard/DEBIAN
d5fb6e01 32 cp -a Test.sh icon.png WinterBoard.dylib WinterBoard UIImages Info.plist winterboard/Applications/WinterBoard.app
502d350e 33 dpkg-deb -b winterboard winterboard_$(shell grep ^Version: control | cut -d ' ' -f 2)_iphoneos-arm.deb
62b2dbad
JF
34
35.PHONY: all clean package