Makefile.am 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. TESTS_ENVIRONMENT = top_builddir="$(abs_top_builddir)" top_srcdir="$(abs_top_srcdir)" $(LOADER_BIN)
  34. endif
  35. examplebindir = $(libdir)/starpu/examples/socl/
  36. examplebin_PROGRAMS =
  37. examplebin_PROGRAMS += \
  38. basic/basic \
  39. clinfo/clinfo
  40. # mandelbrot/mandelbrot
  41. SOCL_EXAMPLES += \
  42. basic/basic \
  43. clinfo/clinfo
  44. # mandelbrot/mandelbrot
  45. basic_basic_SOURCES = basic/basic.c
  46. clinfo_clinfo_SOURCES = clinfo/clinfo.c
  47. #mandelbrot_mandelbrot_SOURCES = mandelbrot/mandelbrot.c
  48. #mandelbrot_mandelbrot_CPPFLAGS = $(AM_CPPFLAGS) $(AM_CFLAGS)
  49. #if HAVE_X11
  50. #mandelbrot_mandelbrot_CPPFLAGS += $(X_CFLAGS)
  51. #mandelbrot_mandelbrot_LDADD = $(X_PRE_LIBS) -lX11 $(X_LIBS) $(X_EXTRA_LIBS)
  52. #endif
  53. showcheck:
  54. -cat $(TEST_LOGS) /dev/null