Makefile.am 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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. LOADER = loader
  45. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  46. LOADER_BIN = $(abs_top_builddir)/tools/$(LOADER)
  47. loader_SOURCES = ../tests/loader.c
  48. if STARPU_HAVE_AM111
  49. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  50. LOG_COMPILER = $(LOADER_BIN)
  51. else
  52. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  53. endif
  54. endif
  55. if STARPU_USE_FXT
  56. bin_PROGRAMS += \
  57. starpu_fxt_tool \
  58. starpu_fxt_stats
  59. STARPU_TOOLS += \
  60. starpu_fxt_tool \
  61. starpu_fxt_stats
  62. starpu_fxt_tool_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  63. starpu_fxt_tool_LDADD = $(FXT_LIBS)
  64. starpu_fxt_tool_LDFLAGS = $(FXT_LDFLAGS)
  65. starpu_fxt_stats_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  66. starpu_fxt_stats_LDADD = $(FXT_LIBS)
  67. starpu_fxt_stats_LDFLAGS = $(FXT_LDFLAGS)
  68. endif
  69. bin_PROGRAMS += \
  70. starpu_perfmodel_display \
  71. starpu_perfmodel_plot \
  72. starpu_calibrate_bus \
  73. starpu_machine_display \
  74. starpu_lp2paje
  75. starpu_perfmodel_plot_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  76. if STARPU_LONG_CHECK
  77. STARPU_TOOLS += \
  78. starpu_calibrate_bus
  79. endif
  80. STARPU_TOOLS += \
  81. starpu_machine_display
  82. if !STARPU_HAVE_WINDOWS
  83. STARPU_TOOLS += \
  84. starpu_perfmodel_display \
  85. starpu_perfmodel_plot
  86. endif
  87. dist_bin_SCRIPTS += \
  88. starpu_workers_activity \
  89. starpu_codelet_histo_profile \
  90. starpu_codelet_profile
  91. if STARPU_HAVE_WINDOWS
  92. STARPU_MSVC_dir = $(bindir)
  93. nobase_STARPU_MSVC__DATA = \
  94. msvc/starpu_clean.bat \
  95. msvc/starpu_exec.bat \
  96. msvc/starpu.sln \
  97. msvc/starpu/starpu.vcxproj
  98. endif
  99. if STARPU_HAVE_HELP2MAN
  100. starpu_calibrate_bus.1: starpu_calibrate_bus$(EXEEXT)
  101. help2man --no-discard-stderr -N --output=$@ ./$<
  102. starpu_machine_display.1: starpu_machine_display$(EXEEXT)
  103. help2man --no-discard-stderr -N --output=$@ ./$<
  104. starpu_perfmodel_display.1: starpu_perfmodel_display$(EXEEXT)
  105. help2man --no-discard-stderr -N --output=$@ ./$<
  106. starpu_perfmodel_plot.1: starpu_perfmodel_plot$(EXEEXT)
  107. help2man --no-discard-stderr -N --output=$@ ./$<
  108. starpu_lp2paje.1: starpu_lp2paje$(EXEEXT)
  109. help2man --no-discard-stderr -N --output=$@ ./$<
  110. starpu_workers_activity.1: starpu_workers_activity$(EXEEXT)
  111. chmod +x $<
  112. help2man --no-discard-stderr -N --output=$@ ./$<
  113. starpu_codelet_profile.1: starpu_codelet_profile$(EXEEXT)
  114. chmod +x $<
  115. help2man --no-discard-stderr -N --output=$@ ./$<
  116. starpu_codelet_histo_profile.1: starpu_codelet_histo_profile$(EXEEXT)
  117. chmod +x $<
  118. help2man --no-discard-stderr -N --output=$@ ./$<
  119. if STARPU_USE_FXT
  120. starpu_fxt_tool.1: starpu_fxt_tool$(EXEEXT)
  121. chmod +x $<
  122. help2man --no-discard-stderr -N --output=$@ ./$<
  123. starpu_fxt_stats.1: starpu_fxt_stats$(EXEEXT)
  124. chmod +x $<
  125. help2man --no-discard-stderr -N --output=$@ ./$<
  126. endif
  127. dist_man1_MANS =\
  128. starpu_calibrate_bus.1 \
  129. starpu_machine_display.1 \
  130. starpu_perfmodel_display.1 \
  131. starpu_perfmodel_plot.1 \
  132. starpu_lp2paje.1 \
  133. starpu_workers_activity.1 \
  134. starpu_codelet_profile.1 \
  135. starpu_codelet_histo_profile.1
  136. if STARPU_USE_FXT
  137. dist_man1_MANS +=\
  138. starpu_fxt_tool.1 \
  139. starpu_fxt_stats.1
  140. endif
  141. clean-local:
  142. $(RM) $(dist_man1_MANS)
  143. endif
  144. showcheck:
  145. -cat $(TEST_LOGS) /dev/null