Makefile.am 4.8 KB

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