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 \
30 libgnunetpeerinfo_la_LDFLAGS = \
31 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
36 gnunet-service-peerinfo
38 gnunet_service_peerinfo_SOURCES = \
39 gnunet-service-peerinfo.c
40 gnunet_service_peerinfo_LDADD = \
41 $(top_builddir)/src/hello/libgnunethello.la \
42 $(top_builddir)/src/statistics/libgnunetstatistics.la \
43 $(top_builddir)/src/util/libgnunetutil.la
46 PEERINFO_BENCHMARKS = \
52 test_peerinfo_shipped_hellos \
54 test_peerinfo_api_friend_only \
55 test_peerinfo_api_notify_friend_only \
56 $(PEERINFO_BENCHMARKS)
61 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
62 TESTS = $(check_PROGRAMS)
65 test_peerinfo_shipped_hellos_SOURCES = \
66 test_peerinfo_shipped_hellos.c
67 test_peerinfo_shipped_hellos_LDADD = \
68 $(top_builddir)/src/hello/libgnunethello.la \
69 libgnunetpeerinfo.la \
70 $(top_builddir)/src/testing/libgnunettesting.la \
71 $(top_builddir)/src/util/libgnunetutil.la
73 test_peerinfo_api_SOURCES = \
75 test_peerinfo_api_LDADD = \
76 $(top_builddir)/src/hello/libgnunethello.la \
77 libgnunetpeerinfo.la \
78 $(top_builddir)/src/testing/libgnunettesting.la \
79 $(top_builddir)/src/util/libgnunetutil.la
81 test_peerinfo_api_friend_only_SOURCES = \
82 test_peerinfo_api_friend_only.c
83 test_peerinfo_api_friend_only_LDADD = \
84 $(top_builddir)/src/hello/libgnunethello.la \
85 libgnunetpeerinfo.la \
86 $(top_builddir)/src/testing/libgnunettesting.la \
87 $(top_builddir)/src/util/libgnunetutil.la
89 test_peerinfo_api_notify_friend_only_SOURCES = \
90 test_peerinfo_api_notify_friend_only.c
91 test_peerinfo_api_notify_friend_only_LDADD = \
92 $(top_builddir)/src/hello/libgnunethello.la \
93 libgnunetpeerinfo.la \
94 $(top_builddir)/src/testing/libgnunettesting.la \
95 $(top_builddir)/src/util/libgnunetutil.la
97 perf_peerinfo_api_SOURCES = \
99 perf_peerinfo_api_LDADD = \
100 $(top_builddir)/src/hello/libgnunethello.la \
101 libgnunetpeerinfo.la \
102 $(top_builddir)/src/testing/libgnunettesting.la \
103 $(top_builddir)/src/util/libgnunetutil.la
106 test_peerinfo_api_data.conf