You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 line
1.2KB

  1. SHELL:=/bin/bash
  2. caf:
  3. git clone https://github.com/rayburgemeestre/FastPFor
  4. pushd FastPFor && git checkout master
  5. bash ../ubuntu1804.sh make impl
  6. make package
  7. impl:
  8. update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-7 40
  9. update-alternatives --install /usr/bin/cc cc /usr/bin/clang-7 40
  10. update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-7 40
  11. update-alternatives --install /usr/bin/clang clang /usr/bin/clang-7 40
  12. update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-7 40
  13. pushd FastPFor && \
  14. CXX=$$(which c++) cmake . && \
  15. make -j $$(nproc)
  16. package:
  17. rm -rf out
  18. mkdir -p out/opt/cppse/build/fastpfor/lib
  19. mkdir -p out/opt/cppse/build/fastpfor/include
  20. cp -prv ./FastPFor/libFastPFor.a out/opt/cppse/build/fastpfor/lib/
  21. cp -prv ./FastPFor/headers out/opt/cppse/build/fastpfor/include/
  22. rm -rf fastpfor_1.0_amd64.deb
  23. docker run -v "$$(pwd):/src/" rayburgemeestre/fpm-ubuntu:18.04 fpm -s dir -t deb -n fastpfor --license MPL2 --maintainer "Ray Burgemeestre <ray@cppse.nl>" --description "fastpfor - build dependency" --url "https://github.com/rayburgemeestre/FastPFor" --deb-generate-changes -C /src/out
  24. clean:
  25. rm -rf FastPFor
  26. rm -rf out
  27. shell:
  28. FLAGS="-i --privileged" bash ../ubuntu1804.sh /bin/bash