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/
12 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols -lole32 -lshell32 -liconv -lstdc++ -lcomdlg32 -lgdi32
16 AM_CFLAGS = --coverage -O0
20 lib_LTLIBRARIES = libgnunetpeerinfo.la
22 libgnunetpeerinfo_la_SOURCES = \
23 peerinfo_api.c peerinfo.h \
25 libgnunetpeerinfo_la_LIBADD = \
26 $(top_builddir)/src/hello/libgnunethello.la \
27 $(top_builddir)/src/util/libgnunetutil.la \
28 $(top_builddir)/src/json/libgnunetjson.la \
31 libgnunetpeerinfo_la_LDFLAGS = \
32 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
37 gnunet-service-peerinfo
39 gnunet_service_peerinfo_SOURCES = \
40 gnunet-service-peerinfo.c
41 gnunet_service_peerinfo_LDADD = \
42 $(top_builddir)/src/hello/libgnunethello.la \
43 $(top_builddir)/src/statistics/libgnunetstatistics.la \
44 $(top_builddir)/src/util/libgnunetutil.la
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