mirror of
https://github.com/geohot/qira
synced 2025-02-11 03:54:17 +03:00
27 lines
810 B
Bash
Executable File
27 lines
810 B
Bash
Executable File
#!/bin/bash -e
|
|
cd pin
|
|
|
|
unamestr=$(uname)
|
|
if [[ "$unamestr" == 'Linux' ]]; then
|
|
if [ ! -d pin-latest ]; then
|
|
wget -O- http://software.intel.com/sites/landingpage/pintool/downloads/pin-2.14-67254-gcc.4.4.7-linux.tar.gz | gunzip | tar x
|
|
ln -s pin-2.14-67254-gcc.4.4.7-linux pin-latest
|
|
fi
|
|
|
|
# pin build deps, good?
|
|
sudo apt-get install gcc-multilib g++-multilib
|
|
elif [[ "$unamestr" == 'Darwin' ]]; then
|
|
if [ ! -d pin-latest ]; then
|
|
wget -O- http://software.intel.com/sites/landingpage/pintool/downloads/pin-2.14-67254-clang.5.1-mac.tar.gz | gunzip | tar x
|
|
ln -s pin-2.14-67254-clang.5.1-mac pin-latest
|
|
fi
|
|
|
|
# install capstone from dmg @ http://www.capstone-engine.org/download.html
|
|
fi
|
|
|
|
|
|
mkdir -p obj-ia32 obj-intel64
|
|
PIN_ROOT=./pin-latest make
|
|
PIN_ROOT=./pin-latest TARGET=ia32 make
|
|
|