1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
5 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
9 AM_CFLAGS = --coverage -O0
13 pkgcfgdir= $(pkgdatadir)/config.d/
15 libexecdir= $(pkglibdir)/libexec/
20 bin_PROGRAMS = gnunet-nse
22 gnunet_nse_SOURCES = gnunet-nse.c
25 $(top_builddir)/src/util/libgnunetutil.la \
28 lib_LTLIBRARIES = libgnunetnse.la
30 libgnunetnse_la_SOURCES = \
32 libgnunetnse_la_LIBADD = \
33 $(top_builddir)/src/util/libgnunetutil.la \
35 libgnunetnse_la_LDFLAGS = \
36 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
48 gnunet_nse_profiler_SOURCES = \
50 gnunet_nse_profiler_LDADD = -lm \
52 $(top_builddir)/src/util/libgnunetutil.la \
53 $(top_builddir)/src/statistics/libgnunetstatistics.la \
54 $(top_builddir)/src/testbed/libgnunettestbed.la \
57 gnunet_service_nse_SOURCES = \
59 gnunet_service_nse_LDADD = \
61 $(top_builddir)/src/util/libgnunetutil.la \
62 $(top_builddir)/src/core/libgnunetcore.la \
63 $(top_builddir)/src/statistics/libgnunetstatistics.la \
67 if ENABLE_NSE_HISTOGRAM
68 gnunet_service_nse_LDADD += \
69 $(top_builddir)/src/testbed/libgnunettestbedlogger.la
74 MULTIPEER_TEST = test_nse_multipeer
85 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
86 TESTS = $(check_PROGRAMS)
89 test_nse_api_SOURCES = \
91 test_nse_api_LDADD = \
93 $(top_builddir)/src/testing/libgnunettesting.la \
94 $(top_builddir)/src/util/libgnunetutil.la
96 test_nse_multipeer_SOURCES = \
98 test_nse_multipeer_LDADD = \
100 $(top_builddir)/src/util/libgnunetutil.la \
101 $(top_builddir)/src/testbed/libgnunettestbed.la \
107 $(top_builddir)/src/util/libgnunetutil.la \
113 nse_profiler_test.conf