Makefile.am 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2012 Université de Bordeaux 1
  4. # Copyright (C) 2010, 2011, 2012 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. pkgconfigdir = $(libdir)/pkgconfig
  39. pkgconfig_DATA = libstarpu.pc starpu-1.0.pc
  40. versincludedir = $(includedir)/starpu/$(STARPU_EFFECTIVE_VERSION)
  41. versinclude_HEADERS = \
  42. include/starpu.h \
  43. include/starpu_data_filters.h \
  44. include/starpu_data_interfaces.h \
  45. include/starpu_task.h \
  46. include/starpu_task_bundle.h \
  47. include/starpu_task_list.h \
  48. include/starpu_task_util.h \
  49. include/starpu_data.h \
  50. include/starpu_perfmodel.h \
  51. include/starpu_util.h \
  52. include/starpu_fxt.h \
  53. include/starpu_cuda.h \
  54. include/starpu_opencl.h \
  55. include/starpu_expert.h \
  56. include/starpu_profiling.h \
  57. include/starpu_bound.h \
  58. include/starpu_scheduler.h \
  59. include/starpu_top.h \
  60. include/starpu_deprecated_api.h \
  61. include/starpu_hash.h \
  62. include/starpu_rand.h \
  63. include/starpu_cublas.h
  64. nodist_versinclude_HEADERS = \
  65. include/starpu_config.h
  66. noinst_HEADERS = \
  67. include/pthread_win32/pthread.h \
  68. include/pthread_win32/semaphore.h
  69. if BUILD_STARPU_TOP
  70. starpu-top/starpu_top$(EXEEXT): all-local
  71. all-local:
  72. cd starpu-top ; $(QMAKE) ; $(MAKE)
  73. clean-local:
  74. cd starpu-top ; $(QMAKE) ; $(MAKE) clean ; $(RM) Makefile
  75. $(RM) starpu_top.1 starpu-top/starpu_top
  76. # TODO: resources
  77. install-exec-local:
  78. $(MKDIR_P) $(DESTDIR)$(bindir)
  79. $(INSTALL_STRIP_PROGRAM) starpu-top/starpu_top $(DESTDIR)$(bindir)
  80. uninstall-local:
  81. $(RM) $(DESTDIR)$(bindir)/starpu_top
  82. $(RM) starpu-top/starpu_top
  83. $(RM) starpu-top/Makefile
  84. if STARPU_HAVE_HELP2MAN
  85. starpu_top.1: starpu-top/starpu_top$(EXEEXT)
  86. help2man --no-discard-stderr -N --output=$@ starpu-top/starpu_top$(EXEEXT)
  87. dist_man1_MANS =\
  88. starpu_top.1
  89. endif
  90. endif
  91. if STARPU_HAVE_WINDOWS
  92. txtdir = ${prefix}
  93. else
  94. txtdir = ${docdir}
  95. endif
  96. txt_DATA = AUTHORS COPYING.LGPL README
  97. EXTRA_DIST = AUTHORS COPYING.LGPL README STARPU-VERSION build-aux/svn2cl.xsl
  98. include starpu-top/extradist
  99. showcheck:
  100. for i in $(SUBDIRS) ; do \
  101. make -C $$i showcheck ; \
  102. done
  103. ctags-local:
  104. $(CTAGS) -R -I LIST_TYPE
  105. # Cyclomatic complexity reports.
  106. # The pmccabe tool, see <http://www.parisc-linux.org/~bame/pmccabe/>.
  107. PMCCABE = pmccabe
  108. VC_URL = "https://gforge.inria.fr/scm/viewvc.php/trunk/%FILENAME%?view=markup&root=starpu"
  109. # Generate a cyclomatic complexity report. Note that examples and tests are
  110. # excluded because they're not particularly relevant, and more importantly
  111. # they all have a function called `main', which clobbers the report.
  112. cyclomatic-complexity.html:
  113. $(PMCCABE) \
  114. `find \( -name examples -o -name tests \) -prune -o -name \*.c` \
  115. | sort -nr \
  116. | $(AWK) -f ${top_srcdir}/build-aux/pmccabe2html \
  117. -v lang=html -v name="$(PACKAGE_NAME)" \
  118. -v vcurl=$(VC_URL) \
  119. -v url="$(PACKAGE_URL)" \
  120. -v css=${top_srcdir}/build-aux/pmccabe.css \
  121. -v cut_dir=${top_srcdir}/ \
  122. > $@-tmp
  123. mv $@-tmp $@