-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