blob: 5b4ba4c2b550d39bfc812322a1a51316e162a3db (
plain)
1
2
3
4
5
6
7
8
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
|