5e7f1cbfd13a4a058e1d0de0285eda3c231d4d20
[oweals/gnunet.git] / src / namestore / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 plugindir = $(libdir)/gnunet
4
5 pkgcfgdir= $(pkgnamedir)/config.d/
6
7 pkgcfg_NAME = \
8   namestore.conf
9
10 if MINGW
11   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
12 endif
13
14 if USE_COVERAGE
15   AM_CFLAGS = --coverage -O0
16   XLIBS = -lgcov
17 endif
18
19
20 check_PROGRAMS = \
21  test_namestore_api
22
23 lib_LTLIBRARIES = \
24   libgnunetnamestore.la
25
26 libgnunetnamestore_la_SOURCES = \
27   namestore_api.c namestore.h 
28 libgnunetnamestore_la_LIBADD = \
29   $(top_builddir)/src/statistics/libgnunetstatistics.la \
30   $(top_builddir)/src/util/libgnunetutil.la \
31   $(GN_LIBINTL) 
32 libgnunetnamestore_la_LDFLAGS = \
33   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
34   -version-info 0:0:0
35
36 bin_PROGRAMS = \
37  gnunet-service-namestore
38
39 gnunet_service_namestore_SOURCES = \
40  gnunet-service-namestore.c 
41 gnunet_service_namestore_LDADD = \
42   $(top_builddir)/src/statistics/libgnunetstatistics.la \
43   $(top_builddir)/src/util/libgnunetutil.la \
44   $(GN_LIBINTL)
45
46 if HAVE_SQLITE
47  SQLITE_PLUGIN = libgnunet_plugin_namestore_sqlite.la
48 endif
49
50 plugin_LTLIBRARIES = \
51   $(SQLITE_PLUGIN) 
52
53 libgnunet_plugin_namestore_sqlite_la_SOURCES = \
54   plugin_namestore_sqlite.c
55 libgnunet_plugin_namestore_sqlite_la_LIBADD = \
56   $(top_builddir)/src/statistics/libgnunetstatistics.la \
57   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3
58 libgnunet_plugin_namestore_sqlite_la_LDFLAGS = \
59  $(GN_PLUGIN_LDFLAGS)
60
61
62 test_namestore_api_SOURCES = \
63  test_namestore_api.c
64 test_namestore_api_LDADD = \
65   $(top_builddir)/src/util/libgnunetutil.la \
66   $(top_builddir)/src/namestore/libgnunetnamestore.la
67
68 EXTRADIST = \
69   test_namestore_api.conf
70
71