Makefile.am 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2009, 2010-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. AM_CFLAGS = $(MAGMA_CFLAGS) $(HWLOC_CFLAGS) -Wall $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS)
  17. LIBS = $(top_builddir)/socl/src/libsocl-@STARPU_EFFECTIVE_VERSION@.la
  18. AM_CPPFLAGS = -I$(top_srcdir)/socl/include/
  19. AM_LDFLAGS = $(STARPU_CUDA_LDFLAGS) $(STARPU_OPENCL_LDFLAGS)
  20. SOCL_EXAMPLES =
  21. TESTS = $(SOCL_EXAMPLES)
  22. if STARPU_HAVE_WINDOWS
  23. check_PROGRAMS = $(SOCL_EXAMPLES)
  24. else
  25. check_PROGRAMS = $(LOADER) $(SOCL_EXAMPLES)
  26. endif
  27. if !STARPU_HAVE_WINDOWS
  28. ## test loader program
  29. LOADER = loader
  30. loader_CPPFLAGS = $(AM_CFLAGS) $(AM_CPPFLAGS) -I$(top_builddir)/src/
  31. LOADER_BIN = $(abs_top_builddir)/socl/examples/$(LOADER)
  32. loader_SOURCES = ../../tests/loader.c
  33. if STARPU_HAVE_AM111
  34. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)"
  35. LOG_COMPILER = $(LOADER_BIN)
  36. else
  37. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  38. endif
  39. endif
  40. examplebindir = $(libdir)/starpu/examples/socl/
  41. examplebin_PROGRAMS =
  42. examplebin_PROGRAMS += \
  43. basic/basic \
  44. clinfo/clinfo \
  45. matmul/matmul
  46. # mandelbrot/mandelbrot
  47. SOCL_EXAMPLES += \
  48. basic/basic \
  49. clinfo/clinfo\
  50. matmul/matmul
  51. # mandelbrot/mandelbrot
  52. basic_basic_SOURCES = basic/basic.c
  53. clinfo_clinfo_SOURCES = clinfo/clinfo.c
  54. matmul_matmul_SOURCES = matmul/matmul.c
  55. #mandelbrot_mandelbrot_SOURCES = mandelbrot/mandelbrot.c
  56. #mandelbrot_mandelbrot_CPPFLAGS = $(AM_CPPFLAGS) $(AM_CFLAGS)
  57. #if HAVE_X11
  58. #mandelbrot_mandelbrot_CPPFLAGS += $(X_CFLAGS)
  59. #mandelbrot_mandelbrot_LDADD = $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
  60. #endif
  61. showcheck:
  62. -cat $(TEST_LOGS) /dev/null