]> git.saurik.com Git - cycript.git/blame - Darwin.mk
Implemented initial support for Ruby Blocks.
[cycript.git] / Darwin.mk
CommitLineData
9185d5ef 1dll := dylib
dfa452c2
JF
2link += -lobjc -framework CoreFoundation
3console += -framework Foundation
9185d5ef 4library += -install_name /usr/lib/libcycript.$(dll)
7c6c5b0a 5library += -framework Foundation
95a2c7e5 6console += -framework JavaScriptCore
7c6c5b0a 7# XXX: do I just need WebCore?
95a2c7e5
JF
8console += -framework WebKit
9library += -undefined dynamic_lookup
7c6c5b0a 10library += -liconv
0ddd648c 11flags += -I/usr/include/ffi
71f832e5 12apr_config := /usr/bin/apr-1-config
eed4f174 13flags += -arch i386 -arch x86_64 #-arch armv6
53b59114 14
794e88e7 15flags += -DCY_ATTACH -DCY_LIBRARY='"/usr/lib/libcycript.dylib"'
c4b2057d
JF
16code += Handler.o
17inject += Mach/Inject.o
18Mach/Inject.o: Trampoline.t.hpp Baton.hpp
19
eed4f174
JF
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
64058139
JF
22
23clean::
24 rm -f Trampoline.t.hpp
c4b2057d 25
9cad30fa 26include Execute.mk
cbaa5f0f 27include ObjectiveC.mk