Makefile.am 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2011, 2012 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. # `LIBRARIES' would be more appropriate than `LTLIBRARIES' but it
  16. # requires a name prefixed by `lib'.
  17. gccplugin_LTLIBRARIES = starpu.la
  18. starpu_la_SOURCES = \
  19. c-expr.y \
  20. opencl.c \
  21. starpu.c \
  22. tasks.c \
  23. utils.c
  24. if HAVE_PTR_DEREFS_MAY_ALIAS_P
  25. # Only for GCC >= 4.6.
  26. starpu_la_SOURCES += warn-unregistered.c
  27. endif
  28. # Use the Yacc-compatibility mode so that Bison doesn't error out upon
  29. # reduce/reduce conflicts.
  30. AM_YFLAGS = -y
  31. AM_CPPFLAGS = \
  32. -I$(top_builddir)/gcc-plugin/include \
  33. -I$(top_srcdir)/gcc-plugin/include \
  34. -I$(top_srcdir)/include \
  35. -I$(GCC_PLUGIN_INCLUDE_DIR) -Wall -DYYERROR_VERBOSE=1 \
  36. $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS) $(HWLOC_CFLAGS)
  37. AM_LDFLAGS = -module
  38. # Use either `gcc' or `g++', whichever is appropriate to build
  39. # plug-ins for this version of GCC.
  40. AM_LIBTOOLFLAGS = --tag="$(GCC_FOR_PLUGIN_LIBTOOL_TAG)"
  41. CC = $(GCC_FOR_PLUGIN)
  42. showcheck:
  43. -cat $(TEST_LOGS) /dev/null
  44. ! grep -q "ERROR: AddressSanitizer: " $(TEST_LOGS) /dev/null
  45. ! grep -q "WARNING: AddressSanitizer: " $(TEST_LOGS) /dev/null
  46. ! grep -q "ERROR: ThreadSanitizer: " $(TEST_LOGS) /dev/null
  47. ! grep -q "WARNING: ThreadSanitizer: " $(TEST_LOGS) /dev/null