Makefile.am 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2016 Université de Bordeaux
  4. # Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016 CNRS
  5. # Copyright (C) 2014 INRIA
  6. # Copyright (C) 2016 Inria
  7. #
  8. # StarPU is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU Lesser General Public License as published by
  10. # the Free Software Foundation; either version 2.1 of the License, or (at
  11. # your option) any later version.
  12. #
  13. # StarPU is distributed in the hope that it will be useful, but
  14. # WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  18. ACLOCAL_AMFLAGS=-I m4
  19. CLEANFILES = *.gcno *.gcda *.linkinfo
  20. SUBDIRS =
  21. if STARPU_USE_MIN_DGELS
  22. SUBDIRS += min-dgels
  23. endif
  24. SUBDIRS += src
  25. SUBDIRS += tools
  26. if BUILD_TESTS
  27. SUBDIRS += tests
  28. endif
  29. SUBDIRS += doc
  30. if USE_MPI
  31. SUBDIRS += mpi
  32. endif
  33. if BUILD_EXAMPLES
  34. SUBDIRS += examples
  35. endif
  36. if BUILD_SOCL
  37. SUBDIRS += socl
  38. endif
  39. if BUILD_GCC_PLUGIN
  40. SUBDIRS += gcc-plugin
  41. endif
  42. if BUILD_STARPUFFT
  43. SUBDIRS += starpufft
  44. endif
  45. if STARPU_BUILD_SC_HYPERVISOR
  46. SUBDIRS += sc_hypervisor
  47. endif
  48. pkgconfigdir = $(libdir)/pkgconfig
  49. pkgconfig_DATA = libstarpu.pc starpu-1.0.pc starpu-1.1.pc starpu-1.2.pc starpu-1.3.pc
  50. versincludedir = $(includedir)/starpu/$(STARPU_EFFECTIVE_VERSION)
  51. versinclude_HEADERS = \
  52. include/starpu.h \
  53. include/starpu_bitmap.h \
  54. include/starpu_data_filters.h \
  55. include/starpu_data_interfaces.h \
  56. include/starpu_worker.h \
  57. include/starpu_task.h \
  58. include/starpu_task_bundle.h \
  59. include/starpu_task_list.h \
  60. include/starpu_task_util.h \
  61. include/starpu_data.h \
  62. include/starpu_perfmodel.h \
  63. include/starpu_util.h \
  64. include/starpu_fxt.h \
  65. include/starpu_cuda.h \
  66. include/starpu_opencl.h \
  67. include/starpu_openmp.h \
  68. include/starpu_sink.h \
  69. include/starpu_mic.h \
  70. include/starpu_mpi_ms.h \
  71. include/starpu_scc.h \
  72. include/starpu_expert.h \
  73. include/starpu_profiling.h \
  74. include/starpu_bound.h \
  75. include/starpu_scheduler.h \
  76. include/schedulers/starpu_heteroprio.h \
  77. include/starpu_sched_component.h \
  78. include/starpu_sched_ctx.h \
  79. include/starpu_sched_ctx_hypervisor.h \
  80. include/starpu_top.h \
  81. include/starpu_deprecated_api.h \
  82. include/starpu_hash.h \
  83. include/starpu_rand.h \
  84. include/starpu_disk.h \
  85. include/starpu_cublas.h \
  86. include/starpu_cublas_v2.h \
  87. include/starpu_driver.h \
  88. include/starpu_stdlib.h \
  89. include/starpu_thread.h \
  90. include/starpu_thread_util.h \
  91. include/starpu_tree.h \
  92. include/starpu_simgrid_wrap.h \
  93. include/starpu_mod.f90 \
  94. include/fstarpu_mod.f90 \
  95. include/starpu_clusters_util.h
  96. nodist_versinclude_HEADERS = \
  97. include/starpu_config.h
  98. noinst_HEADERS = \
  99. include/pthread_win32/pthread.h \
  100. include/pthread_win32/semaphore.h
  101. if BUILD_STARPU_TOP
  102. all-local: starpu-top/starpu_top$(EXEEXT)
  103. else
  104. all-local:
  105. endif
  106. if STARPU_DEVEL
  107. @if grep -r sys/time.h $$( find $(srcdir)/examples $(srcdir)/tests $(srcdir)/src $(srcdir)/mpi/src $(srcdir)/include -name \*.[ch] -a \! -name starpu_util.h -a \! -name timer.h -a \! -name loader.c ) ; \
  108. then \
  109. echo "Please do not include sys/time, it is not available on Windows, include starpu_util.h and use starpu_timing_now() instead" ; \
  110. false ; \
  111. fi
  112. @if grep -re '\<ssize_t' $$( find $(srcdir)/examples $(srcdir)/tests $(srcdir)/src $(srcdir)/mpi/src $(srcdir)/include -name \*.[ch] -a \! -name starpu_config.h ) ; \
  113. then \
  114. echo "Please do not use ssize_t, it is not available on Windows, use starpu_ssize_t instead"; \
  115. false ; \
  116. fi
  117. @if grep -re '\<getenv\>' $$( find $(srcdir)/src $(srcdir)/mpi/src $(srcdir)/include -name \*.[ch] -a \! -name starpu_util.h -a \! -name utils.c -a \! -name simgrid.h) ; \
  118. then \
  119. echo "Please do not use getenv, use starpu_getenv instead, which catches unsafe uses"; \
  120. false ; \
  121. fi
  122. endif
  123. if BUILD_STARPU_TOP
  124. starpu-top/starpu_top$(EXEEXT):
  125. cd starpu-top ; $(QMAKE) ; $(MAKE)
  126. clean-local:
  127. cd starpu-top ; $(QMAKE) ; $(MAKE) clean ; $(RM) Makefile
  128. $(RM) starpu-top/starpu_top.1 starpu-top/starpu_top$(EXEEXT)
  129. # TODO: resources
  130. install-exec-local:
  131. $(MKDIR_P) $(DESTDIR)$(bindir)
  132. -$(INSTALL_STRIP_PROGRAM) starpu-top/starpu_top$(EXEEXT) $(DESTDIR)$(bindir)
  133. uninstall-local:
  134. $(RM) $(DESTDIR)$(bindir)/starpu_top$(EXEEXT)
  135. $(RM) starpu-top/starpu_top$(EXEEXT)
  136. $(RM) starpu-top/Makefile
  137. if STARPU_HAVE_HELP2MAN
  138. starpu-top/starpu_top.1: starpu-top/starpu_top$(EXEEXT)
  139. help2man --no-discard-stderr -N --output=$@ starpu-top/starpu_top$(EXEEXT)
  140. dist_man1_MANS =\
  141. starpu-top/starpu_top.1
  142. endif
  143. endif
  144. if STARPU_HAVE_WINDOWS
  145. txtdir = ${prefix}
  146. else
  147. txtdir = ${docdir}
  148. endif
  149. txt_DATA = AUTHORS COPYING.LGPL README README.dev STARPU-REVISION
  150. EXTRA_DIST = autogen.sh AUTHORS COPYING.LGPL README README.dev STARPU-VERSION STARPU-REVISION build-aux/svn2cl.xsl mic-configure
  151. DISTCLEANFILES = STARPU-REVISION
  152. include starpu-top/extradist
  153. showcheck:
  154. RET=0 ; \
  155. for i in $(SUBDIRS) ; do \
  156. make -C $$i showcheck || RET=1 ; \
  157. done ; \
  158. exit $$RET
  159. ctags-local:
  160. cd $(top_srcdir) ; $(CTAGS) -R -I LIST_TYPE
  161. sed -i $(top_srcdir)/tags -e '/^[^ ]* [^ ]* /d' -e '/^[^ ]*$$/d'
  162. # Cyclomatic complexity reports.
  163. # The pmccabe tool, see <http://www.parisc-linux.org/~bame/pmccabe/>.
  164. PMCCABE = pmccabe
  165. VC_URL = "https://gforge.inria.fr/scm/viewvc.php/trunk/%FILENAME%?view=markup&root=starpu"
  166. # Generate a cyclomatic complexity report. Note that examples and tests are
  167. # excluded because they're not particularly relevant, and more importantly
  168. # they all have a function called `main', which clobbers the report.
  169. cyclomatic-complexity.html:
  170. $(PMCCABE) \
  171. `find \( -name examples -o -name tests -o -path ./tools/dev/experimental \) -prune -o -name \*.c` \
  172. | sort -nr \
  173. | $(AWK) -f ${top_srcdir}/build-aux/pmccabe2html \
  174. -v lang=html -v name="$(PACKAGE_NAME)" \
  175. -v vcurl=$(VC_URL) \
  176. -v url="$(PACKAGE_URL)" \
  177. -v css=${top_srcdir}/build-aux/pmccabe.css \
  178. -v cut_dir=${top_srcdir}/ \
  179. > $@-tmp
  180. mv $@-tmp $@