Makefile.am 5.3 KB

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