Makefile.am 731 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # This Makefile.am is in the public domain
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/include
  3. if MINGW
  4. WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
  5. endif
  6. if USE_COVERAGE
  7. AM_CFLAGS = --coverage
  8. endif
  9. if HAVE_SQLITE
  10. lib_LTLIBRARIES = libgnunetsq.la
  11. endif
  12. libgnunetsq_la_SOURCES = \
  13. sq.c \
  14. sq_exec.c \
  15. sq_prepare.c \
  16. sq_query_helper.c \
  17. sq_result_helper.c
  18. libgnunetsq_la_LIBADD = -lsqlite3 \
  19. $(top_builddir)/src/util/libgnunetutil.la
  20. libgnunetsq_la_LDFLAGS = \
  21. $(GN_LIB_LDFLAGS) \
  22. -version-info 0:0:0
  23. if ENABLE_TEST_RUN
  24. TESTS = \
  25. test_sq
  26. endif
  27. check_PROGRAMS= \
  28. test_sq
  29. test_sq_SOURCES = \
  30. test_sq.c
  31. test_sq_LDADD = \
  32. libgnunetsq.la \
  33. $(top_builddir)/src/util/libgnunetutil.la \
  34. -lsqlite3 $(XLIB)