Makefile.am 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2013 Université de Bordeaux 1
  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_ctx.h \
  68. include/starpu_sched_ctx_hypervisor.h \
  69. include/starpu_top.h \
  70. include/starpu_deprecated_api.h \
  71. include/starpu_hash.h \
  72. include/starpu_rand.h \
  73. include/starpu_disk.h \
  74. include/starpu_cublas.h \
  75. include/starpu_driver.h \
  76. include/starpu_stdlib.h \
  77. include/starpu_thread.h \
  78. include/starpu_thread_util.h \
  79. include/starpu_tree.h
  80. nodist_versinclude_HEADERS = \
  81. include/starpu_config.h
  82. noinst_HEADERS = \
  83. include/pthread_win32/pthread.h \
  84. include/pthread_win32/semaphore.h
  85. if BUILD_STARPU_TOP
  86. starpu-top/starpu_top$(EXEEXT): all-local
  87. all-local:
  88. cd starpu-top ; $(QMAKE) ; $(MAKE)
  89. clean-local:
  90. cd starpu-top ; $(QMAKE) ; $(MAKE) clean ; $(RM) Makefile
  91. $(RM) starpu-top/starpu_top.1 starpu-top/starpu_top$(EXEEXT)
  92. # TODO: resources
  93. install-exec-local:
  94. $(MKDIR_P) $(DESTDIR)$(bindir)
  95. -$(INSTALL_STRIP_PROGRAM) starpu-top/starpu_top$(EXEEXT) $(DESTDIR)$(bindir)
  96. uninstall-local:
  97. $(RM) $(DESTDIR)$(bindir)/starpu_top$(EXEEXT)
  98. $(RM) starpu-top/starpu_top$(EXEEXT)
  99. $(RM) starpu-top/Makefile
  100. if STARPU_HAVE_HELP2MAN
  101. starpu-top/starpu_top.1: starpu-top/starpu_top$(EXEEXT)
  102. help2man --no-discard-stderr -N --output=$@ starpu-top/starpu_top$(EXEEXT)
  103. dist_man1_MANS =\
  104. starpu-top/starpu_top.1
  105. endif
  106. endif
  107. if STARPU_HAVE_WINDOWS
  108. txtdir = ${prefix}
  109. else
  110. txtdir = ${docdir}
  111. endif
  112. txt_DATA = AUTHORS COPYING.LGPL README STARPU-REVISION
  113. EXTRA_DIST = AUTHORS COPYING.LGPL README STARPU-VERSION STARPU-REVISION build-aux/svn2cl.xsl mic-configure
  114. DISTCLEANFILES = STARPU-REVISION
  115. include starpu-top/extradist
  116. showcheck:
  117. for i in $(SUBDIRS) ; do \
  118. make -C $$i showcheck ; \
  119. done
  120. ctags-local:
  121. $(CTAGS) -R -I LIST_TYPE
  122. # Cyclomatic complexity reports.
  123. # The pmccabe tool, see <http://www.parisc-linux.org/~bame/pmccabe/>.
  124. PMCCABE = pmccabe
  125. VC_URL = "https://gforge.inria.fr/scm/viewvc.php/trunk/%FILENAME%?view=markup&root=starpu"
  126. # Generate a cyclomatic complexity report. Note that examples and tests are
  127. # excluded because they're not particularly relevant, and more importantly
  128. # they all have a function called `main', which clobbers the report.
  129. cyclomatic-complexity.html:
  130. $(PMCCABE) \
  131. `find \( -name examples -o -name tests -o -path ./tools/dev/experimental \) -prune -o -name \*.c` \
  132. | sort -nr \
  133. | $(AWK) -f ${top_srcdir}/build-aux/pmccabe2html \
  134. -v lang=html -v name="$(PACKAGE_NAME)" \
  135. -v vcurl=$(VC_URL) \
  136. -v url="$(PACKAGE_URL)" \
  137. -v css=${top_srcdir}/build-aux/pmccabe.css \
  138. -v cut_dir=${top_srcdir}/ \
  139. > $@-tmp
  140. mv $@-tmp $@