RPS: Forgot to add header
[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_connect.c \
19   pq_eval.c \
20   pq_exec.c \
21   pq_prepare.c \
22   pq_query_helper.c \
23   pq_result_helper.c
24 libgnunetpq_la_LIBADD = -lpq \
25  $(top_builddir)/src/util/libgnunetutil.la
26 libgnunetpq_la_LDFLAGS = \
27  $(POSTGRESQL_LDFLAGS) \
28  $(GN_LIB_LDFLAGS) \
29   -version-info 0:0:0
30
31 if ENABLE_TEST_RUN
32 TESTS = \
33  test_pq
34 endif
35
36 check_PROGRAMS= \
37  test_pq
38
39 test_pq_SOURCES = \
40   test_pq.c
41 test_pq_LDADD = \
42   libgnunetpq.la \
43   $(top_builddir)/src/util/libgnunetutil.la  \
44   -lpq $(XLIB)