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 $(DESTDIR)$(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 $(DESTDIR)$(libexecdir) $(SUDO_BINARY) || true
43 gnunet_nat_server_SOURCES = \
44 gnunet-nat-server.c nat.h
45 gnunet_nat_server_LDADD = \
47 $(top_builddir)/src/util/libgnunetutil.la
49 gnunet_helper_nat_server_SOURCES = \
52 gnunet_helper_nat_client_SOURCES = \
56 gnunet_nat_SOURCES = \
60 $(top_builddir)/src/util/libgnunetutil.la
64 AM_CFLAGS = -fprofile-arcs -ftest-coverage
71 libgnunetnat_la_SOURCES = \
77 libgnunetnat_la_LIBADD = \
78 $(top_builddir)/src/util/libgnunetutil.la \
79 $(GN_LIBINTL) @EXT_LIBS@
80 libgnunetnat_la_LDFLAGS = \
81 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
84 libgnunetnatnew_la_SOURCES = \
86 libgnunetnatnew_la_LIBADD = \
87 $(top_builddir)/src/util/libgnunetutil.la \
88 $(GN_LIBINTL) @EXT_LIBS@
89 libgnunetnatnew_la_LDFLAGS = \
90 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
100 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
101 TESTS = $(check_PROGRAMS)
108 $(top_builddir)/src/util/libgnunetutil.la
110 test_nat_mini_SOURCES = \
112 test_nat_mini_LDADD = \
114 $(top_builddir)/src/util/libgnunetutil.la
117 test_nat_test_SOURCES = \
119 test_nat_test_LDADD = \
121 $(top_builddir)/src/util/libgnunetutil.la
123 test_stun_SOURCES = \
127 $(top_builddir)/src/util/libgnunetutil.la
131 test_nat_test_data.conf \