]> git.saurik.com Git - winterboard.git/blob - makefile
The old test.sh was for Telesphoreo: I hate OS X.
[winterboard.git] / makefile
1 cycc = cycc -i2.0 -o$@ -- $(filter %.mm,$^) -g0 -O2 -Werror -Iiphone-api -F/System/Library/PrivateFrameworks -Xarch_armv6 -marm
2
3 substrate := -I../substrate -L../substrate -lsubstrate
4
5 all: WinterBoard WinterBoard.dylib WinterBoardSettings Optimize
6
7 clean:
8 rm -f WinterBoard WinterBoard.dylib
9
10 WinterBoardSettings: Settings.mm makefile
11 $(cycc) -dynamiclib \
12 -framework UIKit \
13 -framework CoreFoundation \
14 -framework Foundation \
15 -framework CoreGraphics \
16 -framework Preferences \
17 -lobjc
18
19 WinterBoard.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
31 WinterBoard: Application.mm makefile
32 $(cycc) \
33 -framework UIKit \
34 -framework Foundation \
35 -framework CoreFoundation \
36 -framework CoreGraphics \
37 -framework Preferences \
38 -lobjc
39
40 Optimize: Optimize.cpp makefile
41 $(cycc) $(filter %.cpp,$^)
42
43 package: all
44 sudo ./package.sh
45
46 .PHONY: all clean package