capstone/suite/cstest/build_cstest.sh

10 lines
261 B
Bash
Executable File

#!/bin/sh
cd cmocka && mkdir build && cd build
if [ "$(uname)" = Darwin ]; then
cmake -DCMAKE_INSTALL_PREFIX=/usr/local .. && make -j2 && sudo make install
else # Linux
cmake -DCMAKE_INSTALL_PREFIX=/usr .. && make -j2 && sudo make install
fi
cd ../.. && make