summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2015-06-25 23:07:13 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2015-06-25 23:07:13 -0700
commit54798aa742d1e5183b8cbff6d78d763e0bcb35f0 (patch)
treed48e59dee68d29664ebc280d34571008b0e2e647
parenta830525c19d764ecf22b8e4dde996928268bf6e9 (diff)
Simplify the build environment (for shared flags).
-rw-r--r--makefile25
1 files changed, 13 insertions, 12 deletions
diff --git a/makefile b/makefile
index 36ed0db..e17bd50 100644
--- a/makefile
+++ b/makefile
@@ -9,30 +9,31 @@ clean:
private := -F/System/Library/PrivateFrameworks
-cfversion := -framework CoreFoundation
-gssc := -lobjc -framework CoreFoundation
+flags := -Os -Werror
+flags += -framework CoreFoundation
+flags += -framework Foundation
+
+gssc := -lobjc
iomfsetgamma := -I. $(private) -framework IOKit -framework IOMobileFramebuffer
-sbdidlaunch := $(private) -framework CoreFoundation -framework SpringBoardServices
-sbreload := -framework CoreFoundation
-uicache := -framework Foundation -framework UIKit # XXX: UIKit -> MobileCoreServices
-uiduid := -framework Foundation -framework UIKit
-uiopen := -framework Foundation -framework UIKit
-uishoot := -framework CoreFoundation -framework Foundation -framework UIKit
-extrainst_ := -framework CoreFoundation -framework Foundation
+sbdidlaunch := $(private) -framework SpringBoardServices
+uicache := -framework UIKit # XXX: UIKit -> MobileCoreServices
+uiduid := --framework UIKit
+uiopen := --framework UIKit
+uishoot := -framework UIKit
uicache: csstore.cpp
extrainst_: csstore.cpp
%.dylib: %.mm
- cycc -i2.0 -o$@ -- -dynamiclib -Werror $^ $($@) -lobjc
+ cycc -i2.0 -o$@ -- -dynamiclib $(flags) $^ $($@) -lobjc
ldid -S $@
%: %.mm
- cycc -i2.0 -o$@ -- -Werror $^ $($@)
+ cycc -i2.0 -o$@ -- $^ $(flags) $($@)
ldid -S$(wildcard $@.xml) $@
%: %.c
- cycc -i2.0 -o$@ -- -Werror -x c $^ $($@)
+ cycc -i2.0 -o$@ -- -x c $^ $(flags) $($@)
ldid -S$(wildcard $@.xml) $@
package: all extrainst_