]> git.saurik.com Git - winterboard.git/blob - makefile
291a633f4ba2d34e36870f8b7f763058bfe62f7b
[winterboard.git] / makefile
1 ifndef PKG_TARG
2 target :=
3 else
4 target := $(PKG_TARG)-
5 endif
6
7 all: WinterBoard WinterBoard.dylib
8
9 clean:
10 rm -f WinterBoard WinterBoard.dylib
11
12 WinterBoard.dylib: Library.mm makefile
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
14
15 WinterBoard: Application.mm makefile
16 $(target)g++ -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework Foundation -framework CoreFoundation -lobjc -framework CoreGraphics
17
18 package:
19 rm -rf winterboard
20 mkdir -p winterboard/DEBIAN
21 mkdir -p winterboard/Applications/WinterBoard.app
22 mkdir -p winterboard/Library/Themes/com.saurik.WinterBoard.Nature
23 cp -a control preinst postinst prerm winterboard/DEBIAN
24 cp -a Test.sh WinterBoard.dylib WinterBoard Info.plist ../pledit/pledit winterboard/Applications/WinterBoard.app
25 cp -a Wallpaper.png Dock.png winterboard/Library/Themes/com.saurik.WinterBoard.Nature
26 dpkg-deb -b winterboard winterboard_0.9.2498-1_iphoneos-arm.deb
27
28 .PHONY: all clean package