Makefile.am 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2020 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  4. #
  5. # StarPU is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU Lesser General Public License as published by
  7. # the Free Software Foundation; either version 2.1 of the License, or (at
  8. # your option) any later version.
  9. #
  10. # StarPU is distributed in the hope that it will be useful, but
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. #
  14. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  15. #
  16. include $(top_srcdir)/starpu-subdirtests.mk
  17. SUBDIRS=src tests examples tools
  18. pkgconfigdir = $(libdir)/pkgconfig
  19. pkgconfig_DATA = libstarpumpi.pc starpumpi-1.0.pc starpumpi-1.1.pc starpumpi-1.2.pc starpumpi-1.3.pc
  20. versincludedir = $(includedir)/starpu/$(STARPU_EFFECTIVE_VERSION)
  21. versinclude_HEADERS = \
  22. include/starpu_mpi.h \
  23. include/starpu_mpi_lb.h \
  24. include/fstarpu_mpi_mod.f90
  25. if !STARPU_SIMGRID
  26. check-recursive:
  27. RET=0 ; \
  28. NJOBS=`printf %s "$(MAKEFLAGS)" | sed -ne 's/.*-j \?\([0-9]\+\).*/\1/p'` ; \
  29. JOBS="" ; \
  30. if [ -n "$$NJOBS" ] ; then \
  31. if [ "$$NJOBS" -ge 4 ] ; then \
  32. JOBS="-j$$(($$NJOBS / 4))" ; \
  33. else \
  34. JOBS="-j1" ; \
  35. fi ; \
  36. fi ; \
  37. for i in $(SUBDIRS) ; do \
  38. $(MAKE) check -C $$i MAKEFLAGS="$(MAKEFLAGS) $$JOBS" || RET=1; \
  39. done ; \
  40. exit $$RET
  41. endif