NAMESTORE/JSON: fix parsing exp and flags
[oweals/gnunet.git] / src / sq / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
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_SQLITE
13 lib_LTLIBRARIES = libgnunetsq.la
14 endif
15
16 libgnunetsq_la_SOURCES = \
17   sq.c \
18   sq_exec.c \
19   sq_prepare.c \
20   sq_query_helper.c \
21   sq_result_helper.c
22 libgnunetsq_la_LIBADD = -lsqlite3 \
23  $(top_builddir)/src/util/libgnunetutil.la
24 libgnunetsq_la_LDFLAGS = \
25  $(GN_LIB_LDFLAGS) \
26   -version-info 0:0:0
27
28 if ENABLE_TEST_RUN
29 TESTS = \
30  test_sq
31 endif
32
33 check_PROGRAMS= \
34  test_sq
35
36 test_sq_SOURCES = \
37   test_sq.c
38 test_sq_LDADD = \
39   libgnunetsq.la \
40   $(top_builddir)/src/util/libgnunetutil.la  \
41   -lsqlite3 $(XLIB)