]> git.saurik.com Git - cycript.git/blame_incremental - Darwin.mk
Implemented initial support for Ruby Blocks.
[cycript.git] / Darwin.mk
... / ...
CommitLineData
1dll := dylib
2link += -lobjc -framework CoreFoundation
3console += -framework Foundation
4library += -install_name /usr/lib/libcycript.$(dll)
5library += -framework Foundation
6console += -framework JavaScriptCore
7# XXX: do I just need WebCore?
8console += -framework WebKit
9library += -undefined dynamic_lookup
10library += -liconv
11flags += -I/usr/include/ffi
12apr_config := /usr/bin/apr-1-config
13flags += -arch i386 -arch x86_64 #-arch armv6
14
15flags += -DCY_ATTACH -DCY_LIBRARY='"/usr/lib/libcycript.dylib"'
16code += Handler.o
17inject += Mach/Inject.o
18Mach/Inject.o: Trampoline.t.hpp Baton.hpp
19
20%.t.hpp: %.t.cpp trampoline.sh Baton.hpp Trampoline.hpp Darwin.mk
21 ./trampoline.sh $@ $*.t.dylib $* sed $(target){otool,lipo,nm,gcc} $(flags) -dynamiclib -g0 -fno-stack-protector -fno-exceptions -Iinclude $< -o $*.t.dylib
22
23clean::
24 rm -f Trampoline.t.hpp
25
26include Execute.mk
27include ObjectiveC.mk