aboutsummaryrefslogtreecommitdiff
path: root/src/sq/Makefile.am
blob: 7197e7ab44d77270df8319b3b63817a368cecf6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include $(POSTGRESQL_CPPFLAGS)

if MINGW
  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
endif

if USE_COVERAGE
  AM_CFLAGS = --coverage
endif

if HAVE_POSTGRESQL
lib_LTLIBRARIES = libgnunetsq.la
endif

libgnunetsq_la_SOURCES = \
  sq.c \
  sq_query_helper.c \
  sq_result_helper.c
libgnunetsq_la_LIBADD = -lsq \
 $(top_builddir)/src/util/libgnunetutil.la
libgnunetsq_la_LDFLAGS = \
 $(POSTGRESQL_LDFLAGS) \
 $(GN_LIB_LDFLAGS) \
  -version-info 0:0:0

if ENABLE_TEST_RUN
TESTS = \
 test_sq
endif

check_PROGRAMS= \
 test_sq

test_sq_SOURCES = \
  test_sq.c
test_sq_LDADD = \
  libgnunetsq.la \
  $(top_builddir)/src/util/libgnunetutil.la  \
  -lsqlite3 $(XLIB)