Makefile.am 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 tools
  18. if STARPU_BUILD_EXAMPLES
  19. SUBDIRS += examples
  20. endif
  21. if STARPU_BUILD_TESTS
  22. SUBDIRS += tests
  23. endif
  24. pkgconfigdir = $(libdir)/pkgconfig
  25. pkgconfig_DATA = libstarpumpi.pc starpumpi-1.0.pc starpumpi-1.1.pc starpumpi-1.2.pc starpumpi-1.3.pc
  26. versincludedir = $(includedir)/starpu/$(STARPU_EFFECTIVE_VERSION)
  27. versinclude_HEADERS = \
  28. include/starpu_mpi.h \
  29. include/starpu_mpi_lb.h \
  30. include/fstarpu_mpi_mod.f90
  31. if !STARPU_SIMGRID
  32. check-recursive:
  33. RET=0 ; \
  34. NJOBS=`printf %s "$(MAKEFLAGS)" | sed -ne 's/.*-j \?\([0-9]\+\).*/\1/p'` ; \
  35. JOBS="" ; \
  36. if [ -n "$$NJOBS" ] ; then \
  37. if [ "$$NJOBS" -ge 4 ] ; then \
  38. JOBS="-j$$(($$NJOBS / 4))" ; \
  39. else \
  40. JOBS="-j1" ; \
  41. fi ; \
  42. fi ; \
  43. for i in $(SUBDIRS) ; do \
  44. $(MAKE) check -C $$i MAKEFLAGS="$(MAKEFLAGS) $$JOBS" || RET=1; \
  45. done ; \
  46. exit $$RET
  47. endif