]> git.saurik.com Git - cycript.git/blobdiff - Darwin.mk
Forgot the new .mk files in previous commit.
[cycript.git] / Darwin.mk
index e98526d444904d48440c999f0ba25460ce34ea82..c37e7700b3439e240b187b4521e101b1ff6392bf 100644 (file)
--- a/Darwin.mk
+++ b/Darwin.mk
@@ -1,11 +1,12 @@
-dll := dylib
-
 # XXX: objective-c exists on non-Darwin
 
-header += Struct.hpp ObjectiveC.hpp
-code += ObjectiveC.o Library.o
-filters += ObjC
+dll := dylib
 flags += -DCY_ATTACH -DCY_EXECUTE
+link += -lobjc -framework CoreFoundation
+console += -framework Foundation
+library += -install_name /usr/lib/libcycript.$(dll)
+library += -framework Foundation -framework CFNetwork
+library += -framework JavaScriptCore -framework WebCore
+library += -lsubstrate
 
-Struct.hpp:
-       $$($(target)gcc -print-prog-name=cc1obj) -print-objc-runtime-info </dev/null >$@
+include ObjectiveC.mk