Makefile.am 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009-2020 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  4. #
  5. # StarPU is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU Lesser General Public License as published by
  7. # the Free Software Foundation; either version 2.1 of the License, or (at
  8. # your option) any later version.
  9. #
  10. # StarPU is distributed in the hope that it will be useful, but
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. #
  14. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  15. #
  16. include $(top_srcdir)/starpu.mk
  17. AM_CFLAGS += $(MAGMA_CFLAGS)
  18. AM_CPPFLAGS = $(STARPU_H_CPPFLAGS)
  19. AM_LDFLAGS = @STARPU_EXPORT_DYNAMIC@
  20. LIBS += $(top_builddir)/socl/src/libsocl-@STARPU_EFFECTIVE_VERSION@.la $(top_builddir)/src/@LIBSTARPU_LINK@ $(STARPU_EXPORTED_LIBS)
  21. LIBS += $(STARPU_OPENCL_LDFLAGS)
  22. SOCL_EXAMPLES =
  23. if !STARPU_SIMGRID
  24. TESTS = $(SOCL_EXAMPLES)
  25. endif
  26. noinst_PROGRAMS =
  27. check_PROGRAMS = $(SOCL_EXAMPLES)
  28. if !STARPU_HAVE_WINDOWS
  29. ## test loader program
  30. LOADER = loader
  31. loader_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_builddir)/src/
  32. LOADER_BIN = $(abs_top_builddir)/socl/examples/$(LOADER)
  33. loader_SOURCES = ../../tests/loader.c
  34. noinst_PROGRAMS += loader
  35. if STARPU_HAVE_AM111
  36. TESTS_ENVIRONMENT = LD_LIBRARY_PATH="@SOCL_OCL_LIB_OPENCL_DIR@:$(LD_LIBRARY_PATH)" OCL_ICD_VENDORS="$(abs_top_builddir)/socl/vendors/" top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  37. LOG_COMPILER = $(LOADER_BIN)
  38. else
  39. TESTS_ENVIRONMENT = LD_LIBRARY_PATH="@SOCL_OCL_LIB_OPENCL_DIR@:$(LD_LIBRARY_PATH)" OCL_ICD_VENDORS="$(abs_top_builddir)/socl/vendors/" top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  40. endif
  41. endif
  42. CLEANFILES = *.gcno *.gcda starpu_idle_microsec.log
  43. examplebindir = $(libdir)/starpu/examples/socl/
  44. examplebin_PROGRAMS =
  45. examplebin_PROGRAMS += \
  46. basic/basic \
  47. testmap/testmap \
  48. clinfo/clinfo \
  49. matmul/matmul \
  50. mansched/mansched
  51. SOCL_EXAMPLES += \
  52. basic/basic \
  53. testmap/testmap \
  54. clinfo/clinfo \
  55. matmul/matmul \
  56. mansched/mansched
  57. basic_basic_SOURCES = basic/basic.c
  58. testmap_testmap_SOURCES = testmap/testmap.c
  59. clinfo_clinfo_SOURCES = clinfo/clinfo.c
  60. matmul_matmul_SOURCES = matmul/matmul.c
  61. matmul_matmul_LDADD = -lm
  62. mansched_mansched_SOURCES = mansched/mansched.c
  63. #mandelbrot_mandelbrot_CPPFLAGS = $(AM_CPPFLAGS)
  64. #if STARPU_HAVE_X11
  65. #mandelbrot_mandelbrot_CPPFLAGS += $(X_CFLAGS)
  66. #mandelbrot_mandelbrot_LDADD = $(X_PRE_LIBS) $(X_LIBS) -lX11 $(X_EXTRA_LIBS)
  67. #endif