]>
Commit | Line | Data |
---|---|---|
1 | dll := dylib | |
2 | link += -lobjc -framework CoreFoundation | |
3 | console += -framework Foundation | |
4 | library += -install_name /usr/lib/libcycript.$(dll) | |
5 | library += -framework Foundation | |
6 | console += -framework JavaScriptCore | |
7 | # XXX: do I just need WebCore? | |
8 | console += -framework WebKit | |
9 | library += -undefined dynamic_lookup | |
10 | library += -liconv | |
11 | flags += -I/usr/include/ffi | |
12 | apr_config := /usr/bin/apr-1-config | |
13 | flags += -arch i386 -arch x86_64 #-arch armv6 | |
14 | ||
15 | flags += -DCY_ATTACH -DCY_LIBRARY='"/usr/lib/libcycript.dylib"' | |
16 | code += Handler.o | |
17 | inject += Mach/Inject.o | |
18 | Mach/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 | ||
23 | clean:: | |
24 | rm -f Trampoline.t.hpp | |
25 | ||
26 | include Execute.mk | |
27 | include ObjectiveC.mk |