no debug
[oweals/gnunet.git] / src / datastore / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 plugindir = $(libdir)/gnunet
4
5 if MINGW
6   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
7 endif
8
9 if USE_COVERAGE
10   AM_CFLAGS = --coverage -O0
11   XLIBS = -lgcov
12 endif
13
14
15 lib_LTLIBRARIES = \
16   libgnunetdatastore.la
17
18 libgnunetdatastore_la_SOURCES = \
19   datastore_api.c datastore.h plugin_datastore.h
20 libgnunetdatastore_la_LIBADD = \
21   $(top_builddir)/src/util/libgnunetutil.la \
22   $(GN_LIBINTL) 
23 libgnunetdatastore_la_LDFLAGS = \
24   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
25   -version-info 0:0:0
26
27
28 bin_PROGRAMS = \
29  gnunet-service-datastore
30
31 gnunet_service_datastore_SOURCES = \
32  gnunet-service-datastore.c plugin_datastore.h
33 gnunet_service_datastore_LDADD = \
34   $(top_builddir)/src/statistics/libgnunetstatistics.la \
35   $(top_builddir)/src/util/libgnunetutil.la \
36   $(GN_LIBINTL)
37
38
39 plugin_LTLIBRARIES = \
40   libgnunet_plugin_datastore_sqlite.la \
41   libgnunet_plugin_datastore_template.la 
42
43
44 libgnunet_plugin_datastore_sqlite_la_SOURCES = \
45   plugin_datastore_sqlite.c
46 libgnunet_plugin_datastore_sqlite_la_LIBADD = \
47   $(top_builddir)/src/statistics/libgnunetstatistics.la \
48   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3
49 libgnunet_plugin_datastore_sqlite_la_LDFLAGS = \
50  $(GN_PLUGIN_LDFLAGS)
51
52 libgnunet_plugin_datastore_template_la_SOURCES = \
53   plugin_datastore_template.c
54 libgnunet_plugin_datastore_template_la_LIBADD = \
55   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS)
56 libgnunet_plugin_datastore_template_la_LDFLAGS = \
57  $(GN_PLUGIN_LDFLAGS)
58
59
60 check_PROGRAMS = \
61  test_datastore_api \
62  test_datastore_api_management \
63  perf_datastore_api \
64  perf_plugin_datastore
65
66 TESTS = $(check_PROGRAMS)
67
68 test_datastore_api_SOURCES = \
69  test_datastore_api.c
70 test_datastore_api_LDADD = \
71  $(top_builddir)/src/datastore/libgnunetdatastore.la \
72  $(top_builddir)/src/util/libgnunetutil.la  
73
74 test_datastore_api_management_SOURCES = \
75  test_datastore_api_management.c
76 test_datastore_api_management_LDADD = \
77  $(top_builddir)/src/datastore/libgnunetdatastore.la \
78  $(top_builddir)/src/util/libgnunetutil.la  
79
80 perf_datastore_api_SOURCES = \
81  perf_datastore_api.c
82 perf_datastore_api_LDADD = \
83  $(top_builddir)/src/datastore/libgnunetdatastore.la \
84  $(top_builddir)/src/util/libgnunetutil.la  
85
86 perf_plugin_datastore_SOURCES = \
87  perf_plugin_datastore.c
88 perf_plugin_datastore_LDADD = \
89  $(top_builddir)/src/util/libgnunetutil.la  
90
91
92 EXTRA_DIST = \
93  test_datastore_api_data.conf \
94  perf_plugin_datastore_data.conf