sqlite.am 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # vim:ft=automake
  2. # Gearman server and library
  3. # Copyright (C) 2011 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. CLEANFILES+= tests/gearman.sql tests/gearman.sql-journal tests/gearmand.log*
  13. if HAVE_LIBSQLITE3
  14. t_sqlite_CFLAGS=
  15. t_sqlite_CXXFLAGS=
  16. t_sqlite_LDADD=
  17. t_sqlite_SOURCES=
  18. t_sqlite_CFLAGS+= @SQLITE3_CFLAGS@
  19. t_sqlite_CXXFLAGS+= @SQLITE3_CFLAGS@
  20. t_sqlite_LDADD+= @SQLITE3_LDFLAGS@
  21. t_sqlite_SOURCES+= tests/basic.cc
  22. t_sqlite_SOURCES+= tests/sqlite_test.cc
  23. t_sqlite_LDADD+= $(CLIENT_LDADD)
  24. check_PROGRAMS+= t/sqlite
  25. noinst_PROGRAMS+= t/sqlite
  26. test-sqlite: t/sqlite gearmand/gearmand
  27. @t/sqlite
  28. gdb-sqlite: t/sqlite gearmand/gearmand
  29. @$(GDB_COMMAND) t/sqlite
  30. helgrind-sqlite: t/sqlite gearmand/gearmand
  31. @$(HELGRIND_COMMAND) t/sqlite
  32. valgrind-sqlite: t/sqlite gearmand/gearmand
  33. @$(VALGRIND_COMMAND) t/sqlite
  34. endif