Makefile.am 4.1 KB

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