X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/725075ae36f66970d1f8d20053f4a0c439aea931..9cad30fab188a57c3db8df0912a1691099468e64:/Darwin.mk?ds=inline diff --git a/Darwin.mk b/Darwin.mk index af4bdc1..86c7c8a 100644 --- a/Darwin.mk +++ b/Darwin.mk @@ -19,4 +19,5 @@ Mach/Inject.o: Trampoline.t.hpp Baton.hpp %.t.hpp: %.t.cpp $(target)gcc -c -fno-exceptions -Iinclude -o $*.t.o $< && { file=($$($(target)otool -l $*.t.o | sed -e 'x; /^1/ { x; /^ *filesize / { s/^.* //; p; }; /^ *fileoff / { s/^.* //; p; }; x; }; x; /^ *cmd LC_SEGMENT$$/ { s/.*/1/; x; }; d;')); od -t x1 -j $${file[0]} -N $${file[1]} $*.t.o | sed -e 's/^[^ ]*//' | tr $$'\n' ' ' | sed -e 's/ */ /g;s/^ *//;s/ $$//;s/ /,/g;s/\([^,][^,]\)/0x\1/g' | sed -e 's/^/static const char $*_[] = {/;s/$$/};/' && echo && echo "/*" && $(target)otool -vVt $*.t.o && echo "*/"; } >$@ && rm -f $*.t.o +include Execute.mk include ObjectiveC.mk