]> git.saurik.com Git - winterboard.git/blame_incremental - makefile
On iOS 9 sometimes they do not bother using names.
[winterboard.git] / makefile
... / ...
CommitLineData
1cycc = cycc -i2.0 -o$@ -- $(filter %.mm,$^) -g0 -O2 -Werror -Iiphone-api -F/System/Library/PrivateFrameworks -Xarch_armv6 -marm
2
3substrate := -I../substrate -L../substrate -lsubstrate
4
5all: WinterBoard.dylib WinterBoardSettings Optimize
6
7clean:
8 rm -f WinterBoard.dylib WinterBoardSettings Optimize
9
10WinterBoardSettings: Settings.mm makefile
11 $(cycc) -std=c++11 -dynamiclib \
12 -framework UIKit \
13 -framework CoreFoundation \
14 -framework Foundation \
15 -framework CoreGraphics \
16 -framework Preferences \
17 -lobjc
18
19WinterBoard.dylib: Library.mm WBMarkup.mm WBMarkup.h makefile ../substrate/substrate.h
20 $(cycc) -std=c++11 -dynamiclib \
21 -framework CoreFoundation \
22 -framework Foundation \
23 -framework CoreGraphics \
24 -framework GraphicsServices \
25 -framework Celestial \
26 -framework UIKit \
27 -framework WebCore \
28 -framework WebKit \
29 -lobjc $(substrate)
30
31Optimize: Optimize.cpp makefile
32 $(cycc) $(filter %.cpp,$^)
33
34package: all
35 sudo ./package.sh
36
37.PHONY: all clean package