]> git.saurik.com Git - winterboard.git/commitdiff
Organize command line arguments more better smart.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 8 Jan 2014 10:55:16 +0000 (02:55 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 8 Jan 2014 10:55:16 +0000 (02:55 -0800)
makefile

index ec2753e13e74de58a37bad7a44580d85b7ae9a61..0629bab0ab35f54b43420a55c80d89cc3f353396 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,4 +1,4 @@
-cycc = cycc -i2.0 -o$@ -- -Iiphone-api
+cycc = cycc -i2.0 -o$@ -- $(filter %.mm,$^) -g0 -O2 -Werror -Iiphone-api -F/System/Library/PrivateFrameworks
 
 substrate := -I../substrate -L../substrate -lsubstrate
 
@@ -8,16 +8,38 @@ clean:
        rm -f WinterBoard WinterBoard.dylib
 
 WinterBoardSettings: Settings.mm makefile
-       $(cycc) -dynamiclib -g0 -O2 $(filter %.mm,$^) -framework UIKit -framework CoreFoundation -framework Foundation -lobjc -framework CoreGraphics -framework Preferences -F$(PKG_ROOT)/System/Library/PrivateFrameworks
+       $(cycc) -dynamiclib \
+           -framework UIKit \
+           -framework CoreFoundation \
+           -framework Foundation \
+           -framework CoreGraphics \
+           -framework Preferences \
+           -lobjc
 
 WinterBoard.dylib: Library.mm WBMarkup.mm WBMarkup.h makefile ../substrate/substrate.h
-       $(cycc) -dynamiclib -g0 -O2 $(filter %.mm,$^) -framework CoreFoundation -framework Foundation -lobjc -I/apl/inc/iPhoneOS-2.0 -framework CoreGraphics -framework ImageIO -framework GraphicsServices -framework Celestial $(substrate) -framework UIKit -framework WebCore -framework WebKit -F$(PKG_ROOT)/System/Library/PrivateFrameworks
+       $(cycc) -dynamiclib \
+           -framework CoreFoundation \
+           -framework Foundation \
+           -framework CoreGraphics \
+           -framework ImageIO \
+           -framework GraphicsServices \
+           -framework Celestial \
+           -framework UIKit \
+           -framework WebCore \
+           -framework WebKit \
+           -lobjc $(substrate)
 
 WinterBoard: Application.mm makefile
-       $(cycc) -g0 -O2 -Werror $(filter %.mm,$^) -framework UIKit -framework Foundation -framework CoreFoundation -lobjc -framework CoreGraphics -I/apl/sdk -framework Preferences -F$(PKG_ROOT)/System/Library/PrivateFrameworks $(substrate)
+       $(cycc) \
+           -framework UIKit \
+           -framework Foundation \
+           -framework CoreFoundation \
+           -framework CoreGraphics \
+           -framework Preferences \
+           -lobjc
 
 Optimize: Optimize.cpp makefile
-       $(cycc) -g0 -O2 -Werror $(filter %.cpp,$^)
+       $(cycc) $(filter %.cpp,$^)
 
 package: all
        sudo ./package.sh