attempting to fix #5006
[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_query_helper.c \
19   sq_result_helper.c
20 libgnunetsq_la_LIBADD = -lsqlite3 \
21  $(top_builddir)/src/util/libgnunetutil.la
22 libgnunetsq_la_LDFLAGS = \
23  $(GN_LIB_LDFLAGS) \
24   -version-info 0:0:0
25
26 if ENABLE_TEST_RUN
27 TESTS = \
28  test_sq
29 endif
30
31 check_PROGRAMS= \
32  test_sq
33
34 test_sq_SOURCES = \
35   test_sq.c
36 test_sq_LDADD = \
37   libgnunetsq.la \
38   $(top_builddir)/src/util/libgnunetutil.la  \
39   -lsqlite3 $(XLIB)