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
45 gnunet_nat_server_SOURCES = \
46 gnunet-nat-server.c nat.h
47 gnunet_nat_server_LDADD = \
49 $(top_builddir)/src/util/libgnunetutil.la
51 gnunet_helper_nat_server_SOURCES = \
54 gnunet_helper_nat_client_SOURCES = \
58 gnunet_nat_SOURCES = \
62 $(top_builddir)/src/util/libgnunetutil.la
66 AM_CFLAGS = -fprofile-arcs -ftest-coverage
73 libgnunetnat_la_SOURCES = \
79 libgnunetnat_la_LIBADD = \
80 $(top_builddir)/src/util/libgnunetutil.la \
81 $(GN_LIBINTL) @EXT_LIBS@
82 libgnunetnat_la_LDFLAGS = \
83 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
86 libgnunetnatnew_la_SOURCES = \
88 nat_api_stun.c nat_stun.h \
91 libgnunetnatnew_la_LIBADD = \
92 $(top_builddir)/src/util/libgnunetutil.la \
93 $(GN_LIBINTL) @EXT_LIBS@
94 libgnunetnatnew_la_LDFLAGS = \
95 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
98 gnunet_service_nat_SOURCES = \
99 gnunet-service-nat.c \
100 gnunet-service-nat_stun.c gnunet-service-nat_stun.h \
101 gnunet-service-nat_helper.c gnunet-service-nat_helper.h
102 gnunet_service_nat_LDADD = \
103 $(top_builddir)/src/util/libgnunetutil.la \
104 $(top_builddir)/src/statistics/libgnunetstatistics.la \
116 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
117 TESTS = $(check_PROGRAMS)
124 $(top_builddir)/src/util/libgnunetutil.la
126 test_nat_mini_SOURCES = \
128 test_nat_mini_LDADD = \
130 $(top_builddir)/src/util/libgnunetutil.la
132 test_nat_test_SOURCES = \
134 test_nat_test_LDADD = \
136 $(top_builddir)/src/util/libgnunetutil.la
138 test_stun_SOURCES = \
142 $(top_builddir)/src/util/libgnunetutil.la
146 test_nat_test_data.conf \