]> git.saurik.com Git - cycript.git/blame - Darwin.mk
Support Mac OS 10.5.
[cycript.git] / Darwin.mk
CommitLineData
9185d5ef 1dll := dylib
dfa452c2
JF
2link += -lobjc -framework CoreFoundation
3console += -framework Foundation
f74bdcf6 4library += -install_name $(prefix)/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
f74bdcf6
JF
15prefix := /sw
16
8ddfe223
JF
17flags += -mmacosx-version-min=10.5
18
f74bdcf6 19flags += -DCY_ATTACH -DCY_LIBRARY='"$(prefix)/lib/libcycript.dylib"'
c4b2057d
JF
20code += Handler.o
21inject += Mach/Inject.o
22Mach/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
27clean::
28 rm -f Trampoline.t.hpp
c4b2057d 29
9cad30fa 30include Execute.mk
cbaa5f0f 31include ObjectiveC.mk