diff options
Diffstat (limited to 'src/lib/sq/Makefile.am')
-rw-r--r-- | src/lib/sq/Makefile.am | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/lib/sq/Makefile.am b/src/lib/sq/Makefile.am new file mode 100644 index 000000000..a77a380af --- /dev/null +++ b/src/lib/sq/Makefile.am | |||
@@ -0,0 +1,38 @@ | |||
1 | # This Makefile.am is in the public domain | ||
2 | AM_CPPFLAGS = -I$(top_srcdir)/src/include | ||
3 | |||
4 | if USE_COVERAGE | ||
5 | AM_CFLAGS = --coverage | ||
6 | endif | ||
7 | |||
8 | if HAVE_SQLITE | ||
9 | lib_LTLIBRARIES = libgnunetsq.la | ||
10 | endif | ||
11 | |||
12 | libgnunetsq_la_SOURCES = \ | ||
13 | sq.c \ | ||
14 | sq_exec.c \ | ||
15 | sq_prepare.c \ | ||
16 | sq_query_helper.c \ | ||
17 | sq_result_helper.c | ||
18 | libgnunetsq_la_LIBADD = -lsqlite3 \ | ||
19 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
20 | libgnunetsq_la_LDFLAGS = \ | ||
21 | $(GN_LIBINTL) \ | ||
22 | $(GN_LIB_LDFLAGS) \ | ||
23 | -version-info 0:0:0 | ||
24 | |||
25 | if ENABLE_TEST_RUN | ||
26 | TESTS = \ | ||
27 | test_sq | ||
28 | endif | ||
29 | |||
30 | check_PROGRAMS= \ | ||
31 | test_sq | ||
32 | |||
33 | test_sq_SOURCES = \ | ||
34 | test_sq.c | ||
35 | test_sq_LDADD = \ | ||
36 | libgnunetsq.la \ | ||
37 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
38 | -lsqlite3 $(XLIB) | ||