- lookup test
[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 if HAVE_SQLITE
20 SQLITE_TESTS = \
21  test_plugin_namestore_sqlite 
22 endif
23
24
25 check_PROGRAMS = \
26  $(SQLITE_TESTS) \
27  test_namestore_api \
28  test_namestore_api_put \
29  test_namestore_api_lookup \
30  test_namestore_api_zone_iteration \
31  test_namestore_record_serialization
32
33 lib_LTLIBRARIES = \
34   libgnunetnamestore.la
35
36 libgnunetnamestore_la_SOURCES = \
37   namestore_api.c namestore_common.c namestore.h
38 libgnunetnamestore_la_LIBADD = \
39   $(top_builddir)/src/statistics/libgnunetstatistics.la \
40   $(top_builddir)/src/util/libgnunetutil.la \
41   $(GN_LIBINTL) 
42 libgnunetnamestore_la_LDFLAGS = \
43   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
44   -version-info 0:0:0
45
46 bin_PROGRAMS = \
47  gnunet-service-namestore
48
49 gnunet_service_namestore_SOURCES = \
50  gnunet-service-namestore.c
51
52 gnunet_service_namestore_LDADD = \
53   $(top_builddir)/src/namestore/libgnunetnamestore.la  \
54   $(top_builddir)/src/statistics/libgnunetstatistics.la \
55   $(top_builddir)/src/util/libgnunetutil.la \
56   libgnunetnamestore.la \
57   $(GN_LIBINTL)
58
59 if HAVE_SQLITE
60  SQLITE_PLUGIN = libgnunet_plugin_namestore_sqlite.la
61 endif
62
63 plugin_LTLIBRARIES = \
64   $(SQLITE_PLUGIN) 
65
66 libgnunet_plugin_namestore_sqlite_la_SOURCES = \
67   plugin_namestore_sqlite.c
68 libgnunet_plugin_namestore_sqlite_la_LIBADD = \
69   $(top_builddir)/src/statistics/libgnunetstatistics.la \
70   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3
71 libgnunet_plugin_namestore_sqlite_la_LDFLAGS = \
72  $(GN_PLUGIN_LDFLAGS)
73
74 test_namestore_api_SOURCES = \
75  test_namestore_api.c
76 test_namestore_api_LDADD = \
77   $(top_builddir)/src/util/libgnunetutil.la \
78   $(top_builddir)/src/namestore/libgnunetnamestore.la
79
80 test_namestore_api_put_SOURCES = \
81  test_namestore_api_put.c
82 test_namestore_api_put_LDADD = \
83   $(top_builddir)/src/util/libgnunetutil.la \
84   $(top_builddir)/src/namestore/libgnunetnamestore.la
85
86 test_namestore_api_lookup_SOURCES = \
87  test_namestore_api_lookup.c
88 test_namestore_api_lookup_LDADD = \
89   $(top_builddir)/src/util/libgnunetutil.la \
90   $(top_builddir)/src/namestore/libgnunetnamestore.la
91
92 test_namestore_api_zone_iteration_SOURCES = \
93  test_namestore_api_zone_iteration.c
94 test_namestore_api_zone_iteration_LDADD = \
95   $(top_builddir)/src/util/libgnunetutil.la \
96   $(top_builddir)/src/namestore/libgnunetnamestore.la  
97
98 test_namestore_record_serialization_SOURCES = \
99  test_namestore_record_serialization.c
100 test_namestore_record_serialization_LDADD = \
101   $(top_builddir)/src/util/libgnunetutil.la \
102   $(top_builddir)/src/namestore/libgnunetnamestore.la  
103
104 EXTRA_DIST = \
105   test_namestore_api.conf \
106   test_plugin_namestore_sqlite.conf\
107   hostkey
108
109
110 test_plugin_namestore_sqlite_SOURCES = \
111  test_plugin_namestore.c
112 test_plugin_namestore_sqlite_LDADD = \
113  $(top_builddir)/src/util/libgnunetutil.la