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
44 gnunet_helper_nat_server_SOURCES = \
47 gnunet_helper_nat_client_SOURCES = \
51 gnunet_nat_SOURCES = \
55 $(top_builddir)/src/util/libgnunetutil.la
59 AM_CFLAGS = -fprofile-arcs -ftest-coverage
66 libgnunetnat_la_SOURCES = \
72 libgnunetnat_la_LIBADD = \
73 $(top_builddir)/src/util/libgnunetutil.la \
74 $(GN_LIBINTL) @EXT_LIBS@
75 libgnunetnat_la_LDFLAGS = \
76 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
79 libgnunetnatnew_la_SOURCES = \
81 nat_api_stun.c nat_stun.h \
83 libgnunetnatnew_la_LIBADD = \
84 $(top_builddir)/src/util/libgnunetutil.la \
85 $(GN_LIBINTL) @EXT_LIBS@
86 libgnunetnatnew_la_LDFLAGS = \
87 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
90 gnunet_service_nat_SOURCES = \
91 gnunet-service-nat.c gnunet-service-nat.h \
92 gnunet-service-nat_externalip.c gnunet-service-nat_externalip.h \
93 gnunet-service-nat_stun.c gnunet-service-nat_stun.h \
94 gnunet-service-nat_mini.c gnunet-service-nat_mini.h \
95 gnunet-service-nat_helper.c gnunet-service-nat_helper.h
96 gnunet_service_nat_LDADD = \
97 $(top_builddir)/src/util/libgnunetutil.la \
98 $(top_builddir)/src/statistics/libgnunetstatistics.la \
110 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
111 TESTS = $(check_PROGRAMS)
118 $(top_builddir)/src/util/libgnunetutil.la
120 test_nat_mini_SOURCES = \
122 test_nat_mini_LDADD = \
124 $(top_builddir)/src/util/libgnunetutil.la
126 test_nat_test_SOURCES = \
128 test_nat_test_LDADD = \
130 $(top_builddir)/src/util/libgnunetutil.la
132 test_stun_SOURCES = \
136 $(top_builddir)/src/util/libgnunetutil.la
140 test_nat_test_data.conf \