1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
4 pkgcfgdir= $(pkgdatadir)/config.d/
6 libexecdir= $(pkglibdir)/libexec/
8 plugindir = $(libdir)/gnunet
14 AM_CFLAGS = --coverage -O0
18 lib_LTLIBRARIES = libgnunetpeerinfo.la
21 libgnunetpeerinfo_la_SOURCES = \
22 peerinfo_api.c peerinfo.h \
24 libgnunetpeerinfo_la_LIBADD = \
25 $(top_builddir)/src/hello/libgnunethello.la \
26 $(top_builddir)/src/util/libgnunetutil.la \
29 libgnunetpeerinfo_la_LDFLAGS = \
35 gnunet-service-peerinfo
37 gnunet_service_peerinfo_SOURCES = \
38 gnunet-service-peerinfo.c
39 gnunet_service_peerinfo_LDADD = \
40 $(top_builddir)/src/hello/libgnunethello.la \
41 $(top_builddir)/src/statistics/libgnunetstatistics.la \
42 $(top_builddir)/src/util/libgnunetutil.la
43 gnunet_service_peerinfo_LDFLAGS = \
47 PEERINFO_BENCHMARKS = \
53 test_peerinfo_shipped_hellos \
55 test_peerinfo_api_friend_only \
56 test_peerinfo_api_notify_friend_only \
57 $(PEERINFO_BENCHMARKS)
62 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
63 TESTS = $(check_PROGRAMS)
66 test_peerinfo_shipped_hellos_SOURCES = \
67 test_peerinfo_shipped_hellos.c
68 test_peerinfo_shipped_hellos_LDADD = \
69 $(top_builddir)/src/hello/libgnunethello.la \
70 libgnunetpeerinfo.la \
71 $(top_builddir)/src/testing/libgnunettesting.la \
72 $(top_builddir)/src/util/libgnunetutil.la
74 test_peerinfo_api_SOURCES = \
76 test_peerinfo_api_LDADD = \
77 $(top_builddir)/src/hello/libgnunethello.la \
78 libgnunetpeerinfo.la \
79 $(top_builddir)/src/testing/libgnunettesting.la \
80 $(top_builddir)/src/util/libgnunetutil.la
82 test_peerinfo_api_friend_only_SOURCES = \
83 test_peerinfo_api_friend_only.c
84 test_peerinfo_api_friend_only_LDADD = \
85 $(top_builddir)/src/hello/libgnunethello.la \
86 libgnunetpeerinfo.la \
87 $(top_builddir)/src/testing/libgnunettesting.la \
88 $(top_builddir)/src/util/libgnunetutil.la
90 test_peerinfo_api_notify_friend_only_SOURCES = \
91 test_peerinfo_api_notify_friend_only.c
92 test_peerinfo_api_notify_friend_only_LDADD = \
93 $(top_builddir)/src/hello/libgnunethello.la \
94 libgnunetpeerinfo.la \
95 $(top_builddir)/src/testing/libgnunettesting.la \
96 $(top_builddir)/src/util/libgnunetutil.la
98 perf_peerinfo_api_SOURCES = \
100 perf_peerinfo_api_LDADD = \
101 $(top_builddir)/src/hello/libgnunethello.la \
102 libgnunetpeerinfo.la \
103 $(top_builddir)/src/testing/libgnunettesting.la \
104 $(top_builddir)/src/util/libgnunetutil.la
107 test_peerinfo_api_data.conf