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
6 NATBIN = gnunet-helper-nat-server gnunet-helper-nat-client
7 NATSERVER = gnunet-helper-nat-server-windows.c
8 NATCLIENT = gnunet-helper-nat-client-windows.c
11 libexecdir= $(pkglibdir)/libexec/
13 pkgcfgdir= $(pkgdatadir)/config.d/
19 NATBIN = gnunet-helper-nat-server gnunet-helper-nat-client
20 NATSERVER = gnunet-helper-nat-server.c
21 NATCLIENT = gnunet-helper-nat-client.c
23 $(top_srcdir)/src/nat/install-nat-helper.sh $(libexecdir) $(SUDO_BINARY) || true
26 NATBIN = gnunet-helper-nat-server gnunet-helper-nat-client
27 NATSERVER = gnunet-helper-nat-server.c
28 NATCLIENT = gnunet-helper-nat-client.c
30 $(top_srcdir)/src/nat/install-nat-helper.sh $(libexecdir) $(SUDO_BINARY) || true
42 gnunet_nat_server_SOURCES = \
43 gnunet-nat-server.c nat.h
44 gnunet_nat_server_LDADD = \
46 $(top_builddir)/src/util/libgnunetutil.la
48 gnunet_helper_nat_server_SOURCES = \
51 gnunet_helper_nat_client_SOURCES = \
57 AM_CFLAGS = -fprofile-arcs -ftest-coverage
60 lib_LTLIBRARIES = libgnunetnat.la
62 libgnunetnat_la_SOURCES = \
69 libgnunetnat_la_LIBADD = \
70 $(top_builddir)/src/util/libgnunetutil.la \
71 $(GN_LIBINTL) @EXT_LIBS@
73 libgnunetnat_la_LDFLAGS = \
74 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
84 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
85 TESTS = $(check_PROGRAMS)
92 $(top_builddir)/src/util/libgnunetutil.la
94 test_nat_mini_SOURCES = \
96 test_nat_mini_LDADD = \
98 $(top_builddir)/src/util/libgnunetutil.la
101 test_nat_test_SOURCES = \
103 test_nat_test_LDADD = \
105 $(top_builddir)/src/util/libgnunetutil.la
107 test_stun_SOURCES = \
111 $(top_builddir)/src/util/libgnunetutil.la
115 test_nat_test_data.conf \