Makefile.am 5.1 KB

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