Makefile.am 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. check-recursive:
  26. RET=0 ; \
  27. NJOBS=`printf %s "$(MAKEFLAGS)" | sed -ne 's/.*-j \?\([0-9]\+\).*/\1/p'` ; \
  28. JOBS="" ; \
  29. if [ -n "$$NJOBS" ] ; then \
  30. if [ "$$NJOBS" -ge 4 ] ; then \
  31. JOBS="-j$$(($$NJOBS / 4))" ; \
  32. else \
  33. JOBS="-j1" ; \
  34. fi ; \
  35. fi ; \
  36. for i in $(SUBDIRS) ; do \
  37. $(MAKE) check -C $$i MAKEFLAGS="$(MAKEFLAGS) $$JOBS" || RET=1; \
  38. done ; \
  39. exit $$RET