dll := dylib
link += -lobjc -framework CoreFoundation
console += -framework Foundation
-library += -install_name /usr/lib/libcycript.$(dll)
+library += -install_name $(prefix)/lib/libcycript.$(dll)
library += -framework Foundation
console += -framework JavaScriptCore
# XXX: do I just need WebCore?
apr_config := /usr/bin/apr-1-config
flags += -arch i386 -arch x86_64 #-arch armv6
-flags += -DCY_ATTACH
+prefix := /sw
+
+flags += -mmacosx-version-min=10.5
+
+flags += -DCY_ATTACH -DCY_LIBRARY='"$(prefix)/lib/libcycript.dylib"'
code += Handler.o
inject += Mach/Inject.o
Mach/Inject.o: Trampoline.t.hpp Baton.hpp