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