Makefile.am 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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)
  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_TOOLS += \
  65. starpu_fxt_tool \
  66. starpu_fxt_stats
  67. starpu_fxt_tool_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  68. starpu_fxt_tool_LDADD = $(FXT_LIBS)
  69. starpu_fxt_tool_LDFLAGS = $(FXT_LDFLAGS)
  70. starpu_fxt_stats_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  71. starpu_fxt_stats_LDADD = $(FXT_LIBS)
  72. starpu_fxt_stats_LDFLAGS = $(FXT_LDFLAGS)
  73. endif
  74. bin_PROGRAMS += \
  75. starpu_perfmodel_display \
  76. starpu_perfmodel_plot \
  77. starpu_calibrate_bus \
  78. starpu_machine_display \
  79. starpu_lp2paje
  80. starpu_perfmodel_plot_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  81. if STARPU_LONG_CHECK
  82. STARPU_TOOLS += \
  83. starpu_calibrate_bus
  84. endif
  85. STARPU_TOOLS += \
  86. starpu_machine_display
  87. if !STARPU_HAVE_WINDOWS
  88. STARPU_TOOLS += \
  89. starpu_perfmodel_display \
  90. starpu_perfmodel_plot
  91. endif
  92. dist_bin_SCRIPTS += \
  93. starpu_workers_activity \
  94. starpu_codelet_histo_profile \
  95. starpu_codelet_profile
  96. if STARPU_HAVE_WINDOWS
  97. STARPU_MSVC_dir = $(bindir)
  98. nobase_STARPU_MSVC__DATA = \
  99. msvc/starpu_clean.bat \
  100. msvc/starpu_exec.bat \
  101. msvc/starpu.sln \
  102. msvc/starpu/starpu.vcxproj
  103. endif
  104. if STARPU_HAVE_HELP2MAN
  105. starpu_calibrate_bus.1: starpu_calibrate_bus$(EXEEXT)
  106. help2man --no-discard-stderr -N --output=$@ ./$<
  107. starpu_machine_display.1: starpu_machine_display$(EXEEXT)
  108. help2man --no-discard-stderr -N --output=$@ ./$<
  109. starpu_perfmodel_display.1: starpu_perfmodel_display$(EXEEXT)
  110. help2man --no-discard-stderr -N --output=$@ ./$<
  111. starpu_perfmodel_plot.1: starpu_perfmodel_plot$(EXEEXT)
  112. help2man --no-discard-stderr -N --output=$@ ./$<
  113. starpu_lp2paje.1: starpu_lp2paje$(EXEEXT)
  114. help2man --no-discard-stderr -N --output=$@ ./$<
  115. starpu_workers_activity.1: starpu_workers_activity$(EXEEXT)
  116. chmod +x $<
  117. help2man --no-discard-stderr -N --output=$@ ./$<
  118. starpu_codelet_profile.1: starpu_codelet_profile$(EXEEXT)
  119. chmod +x $<
  120. help2man --no-discard-stderr -N --output=$@ ./$<
  121. starpu_codelet_histo_profile.1: starpu_codelet_histo_profile$(EXEEXT)
  122. chmod +x $<
  123. help2man --no-discard-stderr -N --output=$@ ./$<
  124. if STARPU_USE_FXT
  125. starpu_fxt_tool.1: starpu_fxt_tool$(EXEEXT)
  126. chmod +x $<
  127. help2man --no-discard-stderr -N --output=$@ ./$<
  128. starpu_fxt_stats.1: starpu_fxt_stats$(EXEEXT)
  129. chmod +x $<
  130. help2man --no-discard-stderr -N --output=$@ ./$<
  131. endif
  132. dist_man1_MANS =\
  133. starpu_calibrate_bus.1 \
  134. starpu_machine_display.1 \
  135. starpu_perfmodel_display.1 \
  136. starpu_perfmodel_plot.1 \
  137. starpu_lp2paje.1 \
  138. starpu_workers_activity.1 \
  139. starpu_codelet_profile.1 \
  140. starpu_codelet_histo_profile.1
  141. if STARPU_USE_FXT
  142. dist_man1_MANS +=\
  143. starpu_fxt_tool.1 \
  144. starpu_fxt_stats.1
  145. endif
  146. clean-local:
  147. $(RM) $(dist_man1_MANS)
  148. endif
  149. showcheck:
  150. -cat $(TEST_LOGS) /dev/null