]> git.saurik.com Git - cycript.git/blobdiff - Darwin.mk
Ported things mentioned in DOUG comments.
[cycript.git] / Darwin.mk
index 02e2d2ab46a7b3fd5206b9ed2d520ad640426670..20cff9b6c6e1176b9806ba6748eedc8c3a4a86ca 100644 (file)
--- a/Darwin.mk
+++ b/Darwin.mk
@@ -3,15 +3,16 @@ link += -lobjc -framework CoreFoundation
 console += -framework Foundation
 library += -install_name /usr/lib/libcycript.$(dll)
 library += -framework Foundation
-library += -framework JavaScriptCore
+console += -framework JavaScriptCore
 # XXX: do I just need WebCore?
-library += -framework WebKit
+console += -framework WebKit
+library += -undefined dynamic_lookup
 library += -liconv
 flags += -I/usr/include/ffi
 apr_config := /usr/bin/apr-1-config
 flags += -arch i386 -arch x86_64 #-arch armv6
 
-flags += -DCY_ATTACH
+flags += -DCY_ATTACH -DCY_LIBRARY='"/usr/lib/libcycript.dylib"'
 code += Handler.o
 inject += Mach/Inject.o
 Mach/Inject.o: Trampoline.t.hpp Baton.hpp