40072836cdf185401ead90f6d76cfb5f22524565
[oweals/gnunet.git] / src / peerstore / Makefile.am
1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
2
3 plugindir = $(libdir)/gnunet
4
5 pkgcfgdir= $(pkgdatadir)/config.d/
6
7 libexecdir= $(pkglibdir)/libexec/
8
9 dist_pkgcfg_DATA = \
10   peerstore.conf
11
12 if MINGW
13  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
14 endif
15
16 if USE_COVERAGE
17   AM_CFLAGS = -fprofile-arcs -ftest-coverage
18 endif
19
20 bin_PROGRAMS = \
21  gnunet-peerstore 
22
23 libexec_PROGRAMS = \
24  gnunet-service-peerstore
25
26 lib_LTLIBRARIES = \
27  libgnunetpeerstore.la
28
29 gnunet_peerstore_SOURCES = \
30  gnunet-peerstore.c         
31 gnunet_peerstore_LDADD = \
32   $(top_builddir)/src/util/libgnunetutil.la \
33   libgnunetpeerstore.la \
34   $(GN_LIBINTL)
35
36 gnunet_service_peerstore_SOURCES = \
37  gnunet-service-peerstore.c         
38 gnunet_service_peerstore_LDADD = \
39   $(top_builddir)/src/util/libgnunetutil.la \
40   $(GN_LIBINTL)
41
42 libgnunetpeerstore_la_SOURCES = \
43   peerstore_api.c 
44 libgnunetpeerstore_la_LIBADD = \
45   $(top_builddir)/src/util/libgnunetutil.la
46 libgnunetpeerstore_la_LDFLAGS = \
47   $(GNUNET_LDFLAGS)
48
49 plugin_LTLIBRARIES = \
50   libgnunet_plugin_peerstore_sqlite.la
51   
52 libgnunet_plugin_peerstore_sqlite_la_SOURCES = \
53   plugin_peerstore_sqlite.c
54 libgnunet_plugin_peerstore_sqlite_la_LIBADD = \
55   $(top_builddir)/src/peerstore/libgnunetpeerstore.la  \
56   $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \
57   $(LTLIBINTL)
58 libgnunet_plugin_peerstore_sqlite_la_LDFLAGS = \
59  $(GN_PLUGIN_LDFLAGS)
60 libgnunet_plugin_peerstore_sqlite_la_DEPENDENCIES = \
61   $(top_builddir)/src/util/libgnunetutil.la \
62   libgnunetpeerstore.la
63
64 check_PROGRAMS = \
65  test_peerstore_api
66
67 if ENABLE_TEST_RUN
68 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
69 TESTS = $(check_PROGRAMS)
70 endif
71
72 test_peerstore_api_SOURCES = \
73  test_peerstore_api.c
74 test_peerstore_api_LDADD = \
75   $(top_builddir)/src/util/libgnunetutil.la  
76