hostile.am 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # vim:ft=automake
  2. # Gearman server and library
  3. # Copyright (C) 2012 Data Differential, http://datadifferential.com/
  4. # All rights reserved.
  5. #
  6. # Use and distribution licensed under the BSD license. See
  7. # the COPYING file in the parent directory for full text.
  8. #
  9. # Included from Top Level Makefile.am
  10. # All paths should be given relative to the root
  11. #
  12. t_hostile_gearmand_CFLAGS=
  13. t_hostile_gearmand_CXXFLAGS=
  14. t_hostile_gearmand_LDADD=
  15. t_hostile_gearmand_SOURCES=
  16. t_hostile_gearmand_CXXFLAGS+= -DHAVE_LIBHOSTILE=1
  17. t_hostile_gearmand_CFLAGS+= -DHAVE_LIBHOSTILE=1
  18. t_hostile_gearmand_LDADD+= libhostile/libhostile.la
  19. if HOST_LINUX
  20. t_hostile_gearmand_LDADD+= @lt_cv_dlopen_libs@
  21. t_hostile_gearmand_LDADD+= @RT_LIB@
  22. endif
  23. t_hostile_gearmand_SOURCES+= tests/hostile.cc
  24. t_hostile_gearmand_LDADD+= libgearman/libgearman.la
  25. t_hostile_gearmand_LDADD+= libtest/libtest.la
  26. t_hostile_gearmand_LDADD+= tests/libstartworker.la
  27. check_PROGRAMS+=t/hostile_gearmand
  28. noinst_PROGRAMS+=t/hostile_gearmand
  29. test-hostile-gearmand: t/hostile_gearmand gearmand/gearmand gearmand/hostile_gearmand
  30. @t/hostile_gearmand
  31. valgrind-hostile-gearmand: t/hostile_gearmand gearmand/gearmand gearmand/hostile_gearmand
  32. @$(VALGRIND_COMMAND) t/hostile_gearmand
  33. gdb-hostile-gearmand: t/hostile_gearmand gearmand/gearmand gearmand/hostile_gearmand
  34. @$(GDB_COMMAND) t/hostile_gearmand
  35. t_hostile_libgearman_CFLAGS=
  36. t_hostile_libgearman_CXXFLAGS=
  37. t_hostile_libgearman_LDADD=
  38. t_hostile_libgearman_SOURCES=
  39. t_hostile_libgearman_CXXFLAGS+= -DHAVE_LIBHOSTILE=1
  40. t_hostile_libgearman_CFLAGS+= -DHAVE_LIBHOSTILE=1
  41. t_hostile_libgearman_CXXFLAGS+= -DSERVER_TARGET="\"gearmand\""
  42. t_hostile_libgearman_CFLAGS+= -DSERVER_TARGET="\"gearmand\""
  43. t_hostile_libgearman_LDADD+= libhostile/libhostile.la
  44. if HOST_LINUX
  45. t_hostile_libgearman_LDADD+= @lt_cv_dlopen_libs@
  46. t_hostile_libgearman_LDADD+= @RT_LIB@
  47. endif
  48. t_hostile_libgearman_SOURCES+= tests/hostile.cc
  49. t_hostile_libgearman_LDADD+= libgearman/libgearman-hostile.la
  50. t_hostile_libgearman_LDADD+= libtest/libtest.la
  51. t_hostile_libgearman_LDADD+= tests/libstartworker.la
  52. # check_PROGRAMS+=tests/hostile_libgearman
  53. noinst_PROGRAMS+=t/hostile_libgearman
  54. test-hostile_libgearman: t/hostile_libgearman gearmand/gearmand
  55. @t/hostile_libgearman
  56. valgrind-hostile_libgearman: t/hostile_libgearman gearmand/gearmand
  57. @$(VALGRIND_COMMAND) t/hostile_libgearman
  58. gdb-hostile_libgearman: t/hostile_libgearman gearmand/gearmand
  59. @$(GDB_COMMAND) t/hostile_libgearman
  60. .PHONY: hostile
  61. hostile: test-hostile-gearmand test-hostile_libgearman
  62. gdb-hostile: gdb-hostile-gearmand gdb-hostile_libgearman