use v2
[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/arm/libgnunetarm.la \
22   $(top_builddir)/src/util/libgnunetutil.la \
23   $(GN_LIBINTL) 
24 libgnunetdatastore_la_LDFLAGS = \
25   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
26   -version-info 0:0:0
27
28
29 bin_PROGRAMS = \
30  gnunet-service-datastore
31
32 gnunet_service_datastore_SOURCES = \
33  gnunet-service-datastore.c plugin_datastore.h
34 gnunet_service_datastore_LDADD = \
35   $(top_builddir)/src/statistics/libgnunetstatistics.la \
36   $(top_builddir)/src/util/libgnunetutil.la \
37   $(GN_LIBINTL)
38
39
40 plugin_LTLIBRARIES = \
41   libgnunet_plugin_datastore_sqlite.la \
42   libgnunet_plugin_datastore_template.la 
43
44
45 libgnunet_plugin_datastore_sqlite_la_SOURCES = \
46   plugin_datastore_sqlite.c
47 libgnunet_plugin_datastore_sqlite_la_LIBADD = \
48   $(top_builddir)/src/statistics/libgnunetstatistics.la \
49   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3
50 libgnunet_plugin_datastore_sqlite_la_LDFLAGS = \
51  $(GN_PLUGIN_LDFLAGS)
52
53 libgnunet_plugin_datastore_template_la_SOURCES = \
54   plugin_datastore_template.c
55 libgnunet_plugin_datastore_template_la_LIBADD = \
56   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS)
57 libgnunet_plugin_datastore_template_la_LDFLAGS = \
58  $(GN_PLUGIN_LDFLAGS)
59
60
61 check_PROGRAMS = \
62  test_datastore_api \
63  test_datastore_api_management \
64  perf_datastore_api \
65  perf_plugin_datastore
66
67 TESTS = $(check_PROGRAMS)
68
69 test_datastore_api_SOURCES = \
70  test_datastore_api.c
71 test_datastore_api_LDADD = \
72  $(top_builddir)/src/datastore/libgnunetdatastore.la \
73  $(top_builddir)/src/util/libgnunetutil.la  
74
75 test_datastore_api_management_SOURCES = \
76  test_datastore_api_management.c
77 test_datastore_api_management_LDADD = \
78  $(top_builddir)/src/datastore/libgnunetdatastore.la \
79  $(top_builddir)/src/util/libgnunetutil.la  
80
81 perf_datastore_api_SOURCES = \
82  perf_datastore_api.c
83 perf_datastore_api_LDADD = \
84  $(top_builddir)/src/datastore/libgnunetdatastore.la \
85  $(top_builddir)/src/util/libgnunetutil.la  
86
87 perf_plugin_datastore_SOURCES = \
88  perf_plugin_datastore.c
89 perf_plugin_datastore_LDADD = \
90  $(top_builddir)/src/util/libgnunetutil.la  
91
92
93 EXTRA_DIST = \
94  test_datastore_api_data.conf \
95  perf_plugin_datastore_data.conf