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