Makefile.am 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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)
  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. bin_PROGRAMS =
  21. dist_bin_SCRIPTS =
  22. dist_pkgdata_DATA = gdbinit
  23. EXTRA_DIST = \
  24. dev/rename.sed \
  25. dev/rename.sh
  26. CLEANFILES = *.gcno *.gcda *.linkinfo
  27. #####################################
  28. # What to install and what to check #
  29. #####################################
  30. STARPU_TOOLS =
  31. TESTS = $(STARPU_TOOLS)
  32. if STARPU_HAVE_WINDOWS
  33. check_PROGRAMS = $(STARPU_TOOLS)
  34. else
  35. check_PROGRAMS = $(LOADER) $(STARPU_TOOLS)
  36. endif
  37. if !STARPU_HAVE_WINDOWS
  38. ## test loader program
  39. LOADER = loader
  40. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  41. LOADER_BIN = $(abs_top_builddir)/tools/$(LOADER)
  42. loader_SOURCES = ../tests/loader.c
  43. if STARPU_HAVE_AM111
  44. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  45. LOG_COMPILER = $(LOADER_BIN)
  46. else
  47. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  48. endif
  49. endif
  50. if STARPU_USE_FXT
  51. bin_PROGRAMS += \
  52. starpu_fxt_tool \
  53. starpu_fxt_stats
  54. STARPU_TOOLS += \
  55. starpu_fxt_tool \
  56. starpu_fxt_stats
  57. starpu_fxt_tool_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  58. starpu_fxt_tool_LDADD = $(FXT_LIBS)
  59. starpu_fxt_tool_LDFLAGS = $(FXT_LDFLAGS)
  60. starpu_fxt_stats_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  61. starpu_fxt_stats_LDADD = $(FXT_LIBS)
  62. starpu_fxt_stats_LDFLAGS = $(FXT_LDFLAGS)
  63. endif
  64. bin_PROGRAMS += \
  65. starpu_perfmodel_display \
  66. starpu_perfmodel_plot \
  67. starpu_calibrate_bus \
  68. starpu_machine_display
  69. if STARPU_LONG_CHECK
  70. STARPU_TOOLS += \
  71. starpu_calibrate_bus
  72. endif
  73. STARPU_TOOLS += \
  74. starpu_perfmodel_display \
  75. starpu_perfmodel_plot \
  76. starpu_machine_display
  77. noinst_PROGRAMS = cbc2paje lp2paje
  78. dist_bin_SCRIPTS += \
  79. starpu_workers_activity \
  80. starpu_codelet_histo_profile \
  81. starpu_codelet_profile
  82. if STARPU_HAVE_HELP2MAN
  83. starpu_calibrate_bus.1: starpu_calibrate_bus$(EXEEXT)
  84. help2man --no-discard-stderr -N --output=$@ ./$<
  85. starpu_machine_display.1: starpu_machine_display$(EXEEXT)
  86. help2man --no-discard-stderr -N --output=$@ ./$<
  87. starpu_perfmodel_display.1: starpu_perfmodel_display$(EXEEXT)
  88. help2man --no-discard-stderr -N --output=$@ ./$<
  89. starpu_perfmodel_plot.1: starpu_perfmodel_plot$(EXEEXT)
  90. help2man --no-discard-stderr -N --output=$@ ./$<
  91. starpu_workers_activity.1: starpu_workers_activity$(EXEEXT)
  92. chmod +x $<
  93. help2man --no-discard-stderr -N --output=$@ ./$<
  94. starpu_codelet_profile.1: starpu_codelet_profile$(EXEEXT)
  95. chmod +x $<
  96. help2man --no-discard-stderr -N --output=$@ $<
  97. starpu_codelet_histo_profile.1: starpu_codelet_histo_profile$(EXEEXT)
  98. chmod +x $<
  99. help2man --no-discard-stderr -N --output=$@ $<
  100. if STARPU_USE_FXT
  101. starpu_fxt_tool.1: starpu_fxt_tool$(EXEEXT)
  102. chmod +x starpu_fxt_tool$(EXEEXT)
  103. help2man --no-discard-stderr -N --output=$@ ./$<
  104. endif
  105. dist_man1_MANS =\
  106. starpu_calibrate_bus.1 \
  107. starpu_machine_display.1 \
  108. starpu_perfmodel_display.1 \
  109. starpu_perfmodel_plot.1 \
  110. starpu_workers_activity.1 \
  111. starpu_codelet_profile.1 \
  112. starpu_codelet_histo_profile.1
  113. if STARPU_USE_FXT
  114. dist_man1_MANS +=\
  115. starpu_fxt_tool.1
  116. endif
  117. clean-local:
  118. $(RM) $(dist_man1_MANS)
  119. endif
  120. showcheck:
  121. -cat $(TEST_LOGS) /dev/null