aboutsummaryrefslogtreecommitdiffstats
path: root/capstone/suite/cstest/build_cstest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'capstone/suite/cstest/build_cstest.sh')
-rw-r--r--capstone/suite/cstest/build_cstest.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/capstone/suite/cstest/build_cstest.sh b/capstone/suite/cstest/build_cstest.sh
new file mode 100644
index 000000000..5b4ba4c2b
--- /dev/null
+++ b/capstone/suite/cstest/build_cstest.sh
@@ -0,0 +1,9 @@
+#!/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