Makefile.am 5.0 KB

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