3dead06dc9b216bf68096e732ab9238253a2e266
[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 #lib_LTLIBRARIES = \
21 #  libgnunetnamestore.la
22 #
23 #libgnunetnamestore_la_SOURCES = \
24 #  namestore_api.c namestore.h 
25 #libgnunetnamestore_la_LIBADD = \
26 #  $(top_builddir)/src/statistics/libgnunetstatistics.la \
27 #  $(top_builddir)/src/util/libgnunetutil.la \
28 #  $(GN_LIBINTL) 
29 #libgnunetnamestore_la_LDFLAGS = \
30 #  $(GN_LIB_LDFLAGS) $(WINFLAGS) \
31 #  -version-info 0:0:0
32 #
33
34 #bin_PROGRAMS = \
35 # gnunet-service-namestore
36 #
37 #gnunet_service_namestore_SOURCES = \
38 # gnunet-service-namestore.c 
39 #gnunet_service_namestore_LDADD = \
40 #  $(top_builddir)/src/statistics/libgnunetstatistics.la \
41 #  $(top_builddir)/src/util/libgnunetutil.la \
42 #  $(GN_LIBINTL)
43
44 if HAVE_SQLITE
45  SQLITE_PLUGIN = libgnunet_plugin_namestore_sqlite.la
46 endif
47
48 plugin_LTLIBRARIES = \
49   $(SQLITE_PLUGIN) 
50
51 libgnunet_plugin_namestore_sqlite_la_SOURCES = \
52   plugin_namestore_sqlite.c
53 libgnunet_plugin_namestore_sqlite_la_LIBADD = \
54   $(top_builddir)/src/statistics/libgnunetstatistics.la \
55   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3
56 libgnunet_plugin_namestore_sqlite_la_LDFLAGS = \
57  $(GN_PLUGIN_LDFLAGS)
58