Makefile.am 804 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # This Makefile.am is in the public domain
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/include $(POSTGRESQL_CPPFLAGS)
  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_POSTGRESQL
  10. lib_LTLIBRARIES = libgnunetpq.la
  11. endif
  12. libgnunetpq_la_SOURCES = \
  13. pq.c \
  14. pq_connect.c \
  15. pq_eval.c \
  16. pq_exec.c \
  17. pq_prepare.c \
  18. pq_query_helper.c \
  19. pq_result_helper.c
  20. libgnunetpq_la_LIBADD = -lpq \
  21. $(top_builddir)/src/util/libgnunetutil.la
  22. libgnunetpq_la_LDFLAGS = \
  23. $(POSTGRESQL_LDFLAGS) \
  24. $(GN_LIB_LDFLAGS) \
  25. -version-info 0:0:0
  26. if ENABLE_TEST_RUN
  27. TESTS = \
  28. test_pq
  29. endif
  30. check_PROGRAMS= \
  31. test_pq
  32. test_pq_SOURCES = \
  33. test_pq.c
  34. test_pq_LDADD = \
  35. libgnunetpq.la \
  36. $(top_builddir)/src/util/libgnunetutil.la \
  37. -lpq $(XLIB)