]>
Commit | Line | Data |
---|---|---|
9185d5ef | 1 | dll := dylib |
dfa452c2 JF |
2 | link += -lobjc -framework CoreFoundation |
3 | console += -framework Foundation | |
f74bdcf6 | 4 | library += -install_name $(prefix)/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 | |
f74bdcf6 JF |
15 | prefix := /sw |
16 | ||
8ddfe223 JF |
17 | flags += -mmacosx-version-min=10.5 |
18 | ||
f74bdcf6 | 19 | flags += -DCY_ATTACH -DCY_LIBRARY='"$(prefix)/lib/libcycript.dylib"' |
c4b2057d JF |
20 | code += Handler.o |
21 | inject += Mach/Inject.o | |
22 | Mach/Inject.o: Trampoline.t.hpp Baton.hpp | |
23 | ||
eed4f174 JF |
24 | %.t.hpp: %.t.cpp trampoline.sh Baton.hpp Trampoline.hpp Darwin.mk |
25 | ./trampoline.sh $@ $*.t.dylib $* sed $(target){otool,lipo,nm,gcc} $(flags) -dynamiclib -g0 -fno-stack-protector -fno-exceptions -Iinclude $< -o $*.t.dylib | |
64058139 JF |
26 | |
27 | clean:: | |
28 | rm -f Trampoline.t.hpp | |
c4b2057d | 29 | |
9cad30fa | 30 | include Execute.mk |
cbaa5f0f | 31 | include ObjectiveC.mk |