build-deps.sh 462 B

1234567891011121314151617181920212223
  1. #! /bin/sh
  2. #
  3. # Copyright (c), Recep Aslantas.
  4. #
  5. # MIT License (MIT), http://opensource.org/licenses/MIT
  6. # Full license can be found in the LICENSE file
  7. #
  8. # check if deps are pulled
  9. git submodule update --init --recursive
  10. cd $(dirname "$0")
  11. # general deps: gcc make autoconf automake libtool cmake
  12. # test - cmocka
  13. cd ./test/lib/cmocka
  14. rm -rf build
  15. mkdir -p build
  16. cd build
  17. cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ..
  18. make -j8
  19. cd ../../../../