creating libgnunetpq library
[oweals/gnunet.git] / src / pq / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include $(POSTGRESQL_CPPFLAGS)
3
4 if MINGW
5   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
6 endif
7
8 if USE_COVERAGE
9   AM_CFLAGS = --coverage
10 endif
11
12 if HAVE_POSTGRESQL
13 lib_LTLIBRARIES = libgnunetpq.la
14 endif
15
16 libgnunetpq_la_SOURCES = \
17   pq.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
27
28 TESTS = \
29  test_pq
30
31 check_PROGRAMS= \
32  test_pq
33
34 test_pq_SOURCES = \
35   test_pq.c
36 test_pq_LDADD = \
37   libgnunetpq.la \
38   $(top_builddir)/src/util/libgnunetutil.la  \
39   -lpq $(XLIB)