towards compiling tests
[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
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/util/libgnunetutil.la \
35   $(GN_LIBINTL)
36
37
38 plugin_LTLIBRARIES = \
39   libgnunet_plugin_datastore_sqlite.la \
40   libgnunet_plugin_datastore_template.la 
41
42
43 libgnunet_plugin_datastore_sqlite_la_SOURCES = \
44   plugin_datastore_sqlite.c
45 libgnunet_plugin_datastore_sqlite_la_LIBADD = \
46   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3
47 libgnunet_plugin_datastore_sqlite_la_LDFLAGS = \
48  $(GN_PLUGIN_LDFLAGS)
49
50 libgnunet_plugin_datastore_template_la_SOURCES = \
51   plugin_datastore_template.c
52 libgnunet_plugin_datastore_template_la_LIBADD = \
53   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS)
54 libgnunet_plugin_datastore_template_la_LDFLAGS = \
55  $(GN_PLUGIN_LDFLAGS)
56
57
58 check_PROGRAMS = \
59  test_datastore_api \
60  perf_datastore_api \
61  perf_datastore_api_iterators
62
63 TESTS = $(check_PROGRAMS)
64
65 test_datastore_api_SOURCES = \
66  test_datastore_api.c
67 test_datastore_api_LDADD = \
68  $(top_builddir)/src/datastore/libgnunetdatastore.la \
69  $(top_builddir)/src/util/libgnunetutil.la  
70
71 perf_datastore_api_SOURCES = \
72  perf_datastore_api.c
73 perf_datastore_api_LDADD = \
74  $(top_builddir)/src/datastore/libgnunetdatastore.la \
75  $(top_builddir)/src/util/libgnunetutil.la  
76
77 perf_datastore_api_iterators_SOURCES = \
78  perf_datastore_api_iterators.c
79 perf_datastore_api_iterators_LDADD = \
80  $(top_builddir)/src/datastore/libgnunetdatastore.la \
81  $(top_builddir)/src/util/libgnunetutil.la  
82
83
84 EXTRA_DIST = test_datastore_api_data.conf