fix build issues
[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 if ENABLE_TEST_RUN
28 TESTS = \
29  test_pq
30 endif
31
32 check_PROGRAMS= \
33  test_pq
34
35 test_pq_SOURCES = \
36   test_pq.c
37 test_pq_LDADD = \
38   libgnunetpq.la \
39   $(top_builddir)/src/util/libgnunetutil.la  \
40   -lpq $(XLIB)