error handling
[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 USE_COVERAGE
5   AM_CFLAGS = --coverage
6 endif
7
8 if HAVE_POSTGRESQL
9 lib_LTLIBRARIES = libgnunetpq.la
10 endif
11
12 libgnunetpq_la_SOURCES = \
13   pq.c \
14   pq.h \
15   pq_connect.c \
16   pq_eval.c \
17   pq_exec.c \
18   pq_prepare.c \
19   pq_query_helper.c \
20   pq_result_helper.c
21 libgnunetpq_la_LIBADD = -lpq \
22  $(top_builddir)/src/util/libgnunetutil.la
23 libgnunetpq_la_LDFLAGS = \
24  $(POSTGRESQL_LDFLAGS) \
25  $(GN_LIB_LDFLAGS) \
26   -version-info 1:0:0
27
28 if ENABLE_TEST_RUN
29 TESTS = \
30  test_pq
31 endif
32
33 check_PROGRAMS= \
34  test_pq
35
36 test_pq_SOURCES = \
37   test_pq.c
38 test_pq_LDADD = \
39   libgnunetpq.la \
40   $(top_builddir)/src/util/libgnunetutil.la  \
41   -lpq $(XLIB)