Makefile.am 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. #
  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. if BUILD_DOC
  21. SUBDIRS += doc
  22. endif
  23. if USE_MPI
  24. SUBDIRS += mpi
  25. endif
  26. if BUILD_EXAMPLES
  27. SUBDIRS += examples
  28. endif
  29. if BUILD_SOCL
  30. SUBDIRS += socl
  31. endif
  32. if BUILD_GCC_PLUGIN
  33. SUBDIRS += gcc-plugin
  34. endif
  35. if BUILD_STARPUFFT
  36. SUBDIRS += starpufft
  37. endif
  38. if STARPU_BUILD_SC_HYPERVISOR
  39. SUBDIRS += sc_hypervisor
  40. endif
  41. pkgconfigdir = $(libdir)/pkgconfig
  42. pkgconfig_DATA = libstarpu.pc starpu-1.0.pc starpu-1.1.pc
  43. versincludedir = $(includedir)/starpu/$(STARPU_EFFECTIVE_VERSION)
  44. versinclude_HEADERS = \
  45. include/starpu.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_expert.h \
  60. include/starpu_profiling.h \
  61. include/starpu_bound.h \
  62. include/starpu_scheduler.h \
  63. include/starpu_sched_ctx.h \
  64. include/starpu_top.h \
  65. include/starpu_deprecated_api.h \
  66. include/starpu_hash.h \
  67. include/starpu_rand.h \
  68. include/starpu_cublas.h \
  69. include/starpu_driver.h \
  70. include/starpu_stdlib.h \
  71. include/starpu_thread.h
  72. nodist_versinclude_HEADERS = \
  73. include/starpu_config.h
  74. noinst_HEADERS = \
  75. include/pthread_win32/pthread.h \
  76. include/pthread_win32/semaphore.h
  77. if BUILD_STARPU_TOP
  78. starpu-top/starpu_top$(EXEEXT): all-local
  79. all-local:
  80. cd starpu-top ; $(QMAKE) ; $(MAKE)
  81. clean-local:
  82. cd starpu-top ; $(QMAKE) ; $(MAKE) clean ; $(RM) Makefile
  83. $(RM) starpu-top/starpu_top.1 starpu-top/starpu_top
  84. # TODO: resources
  85. install-exec-local:
  86. $(MKDIR_P) $(DESTDIR)$(bindir)
  87. $(INSTALL_STRIP_PROGRAM) starpu-top/starpu_top $(DESTDIR)$(bindir)
  88. uninstall-local:
  89. $(RM) $(DESTDIR)$(bindir)/starpu_top
  90. $(RM) starpu-top/starpu_top
  91. $(RM) starpu-top/Makefile
  92. if STARPU_HAVE_HELP2MAN
  93. starpu-top/starpu_top.1: starpu-top/starpu_top$(EXEEXT)
  94. help2man --no-discard-stderr -N --output=$@ starpu-top/starpu_top$(EXEEXT)
  95. dist_man1_MANS =\
  96. starpu-top/starpu_top.1
  97. endif
  98. endif
  99. if STARPU_HAVE_WINDOWS
  100. txtdir = ${prefix}
  101. else
  102. txtdir = ${docdir}
  103. endif
  104. txt_DATA = AUTHORS COPYING.LGPL README STARPU-REVISION
  105. EXTRA_DIST = AUTHORS COPYING.LGPL README STARPU-VERSION STARPU-REVISION build-aux/svn2cl.xsl
  106. DISTCLEANFILES = STARPU-REVISION
  107. include starpu-top/extradist
  108. showcheck:
  109. for i in $(SUBDIRS) ; do \
  110. make -C $$i showcheck ; \
  111. done
  112. ctags-local:
  113. $(CTAGS) -R -I LIST_TYPE
  114. # Cyclomatic complexity reports.
  115. # The pmccabe tool, see <http://www.parisc-linux.org/~bame/pmccabe/>.
  116. PMCCABE = pmccabe
  117. VC_URL = "https://gforge.inria.fr/scm/viewvc.php/trunk/%FILENAME%?view=markup&root=starpu"
  118. # Generate a cyclomatic complexity report. Note that examples and tests are
  119. # excluded because they're not particularly relevant, and more importantly
  120. # they all have a function called `main', which clobbers the report.
  121. cyclomatic-complexity.html:
  122. $(PMCCABE) \
  123. `find \( -name examples -o -name tests -o -path ./tools/dev/experimental \) -prune -o -name \*.c` \
  124. | sort -nr \
  125. | $(AWK) -f ${top_srcdir}/build-aux/pmccabe2html \
  126. -v lang=html -v name="$(PACKAGE_NAME)" \
  127. -v vcurl=$(VC_URL) \
  128. -v url="$(PACKAGE_URL)" \
  129. -v css=${top_srcdir}/build-aux/pmccabe.css \
  130. -v cut_dir=${top_srcdir}/ \
  131. > $@-tmp
  132. mv $@-tmp $@