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