Makefile.am 5.3 KB

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