Makefile.am 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2012 Université de Bordeaux 1
  4. # Copyright (C) 2010, 2011, 2012 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-@STARPU_EFFECTIVE_VERSION@.la @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. bin_PROGRAMS += starpu_calibrate_bus
  28. if STARPU_USE_FXT
  29. bin_PROGRAMS += starpu_fxt_tool starpu_fxt_stats
  30. starpu_fxt_tool_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  31. starpu_fxt_tool_LDADD = $(FXT_LIBS)
  32. starpu_fxt_stats_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) $(FXT_CFLAGS)
  33. starpu_fxt_stats_LDADD = $(FXT_LIBS)
  34. endif
  35. bin_PROGRAMS += \
  36. starpu_perfmodel_display \
  37. starpu_perfmodel_plot \
  38. starpu_machine_display
  39. if STARPU_HAVE_WINDOWS
  40. check_PROGRAMS = $(bin_PROGRAMS)
  41. else
  42. check_PROGRAMS = $(LOADER) $(bin_PROGRAMS)
  43. endif
  44. if !STARPU_HAVE_WINDOWS
  45. ## test loader program
  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. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  51. endif
  52. TESTS = $(bin_PROGRAMS)
  53. noinst_PROGRAMS = cbc2paje lp2paje
  54. dist_bin_SCRIPTS += \
  55. starpu_workers_activity
  56. if STARPU_HAVE_HELP2MAN
  57. starpu_calibrate_bus.1: starpu_calibrate_bus$(EXEEXT)
  58. help2man --no-discard-stderr -N --output=$@ ./starpu_calibrate_bus$(EXEEXT)
  59. starpu_machine_display.1: starpu_machine_display$(EXEEXT)
  60. help2man --no-discard-stderr -N --output=$@ ./starpu_machine_display$(EXEEXT)
  61. starpu_perfmodel_display.1: starpu_perfmodel_display$(EXEEXT)
  62. help2man --no-discard-stderr -N --output=$@ ./starpu_perfmodel_display$(EXEEXT)
  63. starpu_perfmodel_plot.1: starpu_perfmodel_plot$(EXEEXT)
  64. help2man --no-discard-stderr -N --output=$@ ./starpu_perfmodel_plot$(EXEEXT)
  65. starpu_workers_activity.1: starpu_workers_activity$(EXEEXT)
  66. chmod +x starpu_workers_activity$(EXEEXT)
  67. help2man --no-discard-stderr -N --output=$@ ./starpu_workers_activity$(EXEEXT)
  68. clean-local:
  69. $(RM) starpu_calibrate_bus.1 starpu_machine_display.1 starpu_perfmodel_display.1 starpu_perfmodel_plot.1 starpu_workers_activity.1
  70. dist_man1_MANS =\
  71. starpu_calibrate_bus.1 \
  72. starpu_machine_display.1 \
  73. starpu_perfmodel_display.1 \
  74. starpu_perfmodel_plot.1 \
  75. starpu_workers_activity.1
  76. endif
  77. showcheck:
  78. -cat $(TEST_LOGS) /dev/null