Makefile.am 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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, 2014 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. SUBDIRS =
  17. AM_CFLAGS = $(HWLOC_CFLAGS) $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(STARPU_COI_CPPFLAGS) $(GLOBAL_AM_CFLAGS)
  18. LIBS = $(top_builddir)/src/@LIBSTARPU_LINK@ @LIBS@
  19. AM_CPPFLAGS = -I$(top_srcdir)/include/ -I$(top_srcdir)/tools/ -I$(top_srcdir)/mpi/ -I$(top_builddir)/src -I$(top_srcdir)/src
  20. AM_LDFLAGS = $(STARPU_COI_LDFLAGS) $(STARPU_SCIF_LDFLAGS)
  21. bin_PROGRAMS =
  22. dist_bin_SCRIPTS =
  23. dist_pkgdata_DATA = gdbinit
  24. EXTRA_DIST = \
  25. dev/rename.sed \
  26. dev/rename.sh \
  27. valgrind/hwloc.suppr \
  28. valgrind/libnuma.suppr \
  29. valgrind/openmpi.suppr \
  30. valgrind/pthread.suppr \
  31. valgrind/starpu.suppr \
  32. msvc/starpu_clean.bat \
  33. msvc/starpu_open.bat \
  34. msvc/starpu_exec.bat \
  35. msvc/starpu_var.bat \
  36. msvc/starpu.sln \
  37. msvc/starpu/starpu.vcxproj
  38. CLEANFILES = *.gcno *.gcda *.linkinfo starpu_idle_microsec.log
  39. #####################################
  40. # What to install and what to check #
  41. #####################################
  42. STARPU_TOOLS =
  43. TESTS = $(STARPU_TOOLS)
  44. if STARPU_HAVE_WINDOWS
  45. check_PROGRAMS = $(STARPU_TOOLS)
  46. else
  47. check_PROGRAMS = $(LOADER) $(STARPU_TOOLS)
  48. endif
  49. if !STARPU_HAVE_WINDOWS
  50. ## test loader program
  51. if !STARPU_CROSS_COMPILING
  52. LOADER = loader
  53. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  54. LOADER_BIN = $(abs_top_builddir)/tools/$(LOADER)
  55. loader_SOURCES = ../tests/loader.c
  56. else
  57. LOADER =
  58. LOADER_BIN = $(top_builddir)/tests/loader-cross.sh
  59. endif
  60. if STARPU_HAVE_AM111
  61. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  62. LOG_COMPILER = $(LOADER_BIN)
  63. else
  64. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  65. endif
  66. endif
  67. if STARPU_USE_FXT
  68. bin_PROGRAMS += \
  69. starpu_fxt_tool \
  70. starpu_fxt_stats \
  71. starpu_fxt_data_trace
  72. STARPU_TOOLS += \
  73. starpu_fxt_tool \
  74. starpu_fxt_stats \
  75. starpu_fxt_data_trace
  76. starpu_fxt_tool_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  77. starpu_fxt_tool_LDADD = $(FXT_LIBS)
  78. starpu_fxt_tool_LDFLAGS = $(FXT_LDFLAGS)
  79. starpu_fxt_stats_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  80. starpu_fxt_stats_LDADD = $(FXT_LIBS)
  81. starpu_fxt_stats_LDFLAGS = $(FXT_LDFLAGS)
  82. starpu_fxt_data_trace_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  83. starpu_fxt_data_trace_LDADD = $(FXT_LIBS)
  84. starpu_fxt_data_trace_LDFLAGS = $(FXT_LDFLAGS)
  85. endif
  86. bin_PROGRAMS += \
  87. starpu_perfmodel_display \
  88. starpu_perfmodel_plot \
  89. starpu_calibrate_bus \
  90. starpu_machine_display \
  91. starpu_lp2paje
  92. starpu_perfmodel_plot_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  93. if STARPU_LONG_CHECK
  94. STARPU_TOOLS += \
  95. starpu_calibrate_bus
  96. endif
  97. STARPU_TOOLS += \
  98. starpu_machine_display
  99. if !STARPU_HAVE_WINDOWS
  100. STARPU_TOOLS += \
  101. starpu_perfmodel_display \
  102. starpu_perfmodel_plot
  103. endif
  104. dist_bin_SCRIPTS += \
  105. starpu_workers_activity \
  106. starpu_codelet_histo_profile \
  107. starpu_codelet_profile \
  108. starpu_paje_draw_histogram \
  109. starpu_paje_state_stats
  110. if STARPU_HAVE_WINDOWS
  111. STARPU_MSVC_dir = $(bindir)
  112. nobase_STARPU_MSVC__DATA = \
  113. msvc/starpu_clean.bat \
  114. msvc/starpu_open.bat \
  115. msvc/starpu_exec.bat \
  116. msvc/starpu_var.bat \
  117. msvc/starpu.sln \
  118. msvc/starpu/starpu.vcxproj
  119. endif
  120. if STARPU_HAVE_HELP2MAN
  121. starpu_calibrate_bus.1: starpu_calibrate_bus$(EXEEXT)
  122. help2man --no-discard-stderr -N --output=$@ ./$<
  123. starpu_machine_display.1: starpu_machine_display$(EXEEXT)
  124. help2man --no-discard-stderr -N --output=$@ ./$<
  125. starpu_perfmodel_display.1: starpu_perfmodel_display$(EXEEXT)
  126. help2man --no-discard-stderr -N --output=$@ ./$<
  127. starpu_perfmodel_plot.1: starpu_perfmodel_plot$(EXEEXT)
  128. help2man --no-discard-stderr -N --output=$@ ./$<
  129. starpu_lp2paje.1: starpu_lp2paje$(EXEEXT)
  130. help2man --no-discard-stderr -N --output=$@ ./$<
  131. starpu_workers_activity.1: starpu_workers_activity
  132. chmod +x $<
  133. help2man --no-discard-stderr -N --output=$@ ./$<
  134. starpu_codelet_profile.1: starpu_codelet_profile
  135. chmod +x $<
  136. help2man --no-discard-stderr -N --output=$@ ./$<
  137. starpu_codelet_histo_profile.1: starpu_codelet_histo_profile
  138. chmod +x $<
  139. help2man --no-discard-stderr -N --output=$@ ./$<
  140. starpu_paje_draw_histogram.1: starpu_paje_draw_histogram
  141. chmod +x $<
  142. help2man --no-discard-stderr -N --output=$@ ./$<
  143. starpu_paje_state_stats.1: starpu_paje_state_stats
  144. chmod +x $<
  145. help2man --no-discard-stderr -N --output=$@ ./$<
  146. if STARPU_USE_FXT
  147. starpu_fxt_tool.1: starpu_fxt_tool$(EXEEXT)
  148. help2man --no-discard-stderr -N --output=$@ ./$<
  149. starpu_fxt_stats.1: starpu_fxt_stats$(EXEEXT)
  150. help2man --no-discard-stderr -N --output=$@ ./$<
  151. starpu_fxt_data_trace.1: starpu_fxt_data_trace$(EXEEXT)
  152. help2man --no-discard-stderr -N --output=$@ ./$<
  153. endif
  154. dist_man1_MANS =\
  155. starpu_calibrate_bus.1 \
  156. starpu_machine_display.1 \
  157. starpu_perfmodel_display.1 \
  158. starpu_perfmodel_plot.1 \
  159. starpu_lp2paje.1 \
  160. starpu_workers_activity.1 \
  161. starpu_codelet_profile.1 \
  162. starpu_codelet_histo_profile.1 \
  163. starpu_paje_draw_histogram.1 \
  164. starpu_paje_state_stats.1
  165. if STARPU_USE_FXT
  166. dist_man1_MANS +=\
  167. starpu_fxt_tool.1 \
  168. starpu_fxt_stats.1 \
  169. starpu_fxt_data_trace.1
  170. endif
  171. clean-local:
  172. $(RM) $(dist_man1_MANS)
  173. endif
  174. showcheck:
  175. -cat $(TEST_LOGS) /dev/null