blob: 5adab1ae587b9bb32d5990dce47f42d94821b79d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
INCLUDES = -I$(top_srcdir)/src/include
if MINGW
WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
NATBIN = gnunet-helper-nat-server gnunet-helper-nat-client
NATSERVER = gnunet-helper-nat-server-windows.c
NATCLIENT = gnunet-helper-nat-client-windows.c
endif
if ENABLE_TEST_RUN
nattest = $(bindir)/gnunet-nat-server
endif
if LINUX
NATBIN = gnunet-helper-nat-server gnunet-helper-nat-client
NATSERVER = gnunet-helper-nat-server.c
NATCLIENT = gnunet-helper-nat-client.c
install-exec-hook:
$(SUDO_BINARY) chown root:root $(bindir)/gnunet-helper-nat-server $(bindir)/gnunet-helper-nat-client $(nattest) || true
$(SUDO_BINARY) chmod u+s $(bindir)/gnunet-helper-nat-server $(bindir)/gnunet-helper-nat-client $(nattest) || true
else
install-exec-hook:
endif
bin_PROGRAMS = \
gnunet-nat-server \
$(NATBIN)
gnunet_nat_server_SOURCES = \
gnunet-nat-server.c nat.h
gnunet_nat_server_LDADD = \
$(top_builddir)/src/nat/libgnunetnat.la \
$(top_builddir)/src/util/libgnunetutil.la
gnunet_nat_server_DEPENDENCIES = \
libgnunetnat.la
gnunet_helper_nat_server_SOURCES = \
$(NATSERVER)
gnunet_helper_nat_client_SOURCES = \
$(NATCLIENT)
if USE_COVERAGE
AM_CFLAGS = -fprofile-arcs -ftest-coverage
endif
lib_LTLIBRARIES = libgnunetnat.la
libgnunetnat_la_SOURCES = \
nat.c nat.h \
nat_test.c \
nat_mini.c
libgnunetnat_la_LIBADD = \
$(top_builddir)/src/util/libgnunetutil.la \
$(GN_LIBINTL) @EXT_LIBS@
libgnunetnat_la_LDFLAGS = \
$(GN_LIB_LDFLAGS) $(WINFLAGS) \
-version-info 0:0:0
check_PROGRAMS = \
test_nat \
test_nat_mini \
test_nat_test
if ENABLE_TEST_RUN
TESTS = $(check_PROGRAMS)
endif
test_nat_SOURCES = \
test_nat.c
test_nat_LDADD = \
$(top_builddir)/src/nat/libgnunetnat.la \
$(top_builddir)/src/util/libgnunetutil.la
test_nat_mini_SOURCES = \
test_nat_mini.c
test_nat_mini_LDADD = \
$(top_builddir)/src/nat/libgnunetnat.la \
$(top_builddir)/src/util/libgnunetutil.la
test_nat_test_SOURCES = \
test_nat_test.c
test_nat_test_LDADD = \
$(top_builddir)/src/nat/libgnunetnat.la \
$(top_builddir)/src/util/libgnunetutil.la
EXTRA_DIST = \
test_nat_data.conf \
test_nat_test_data.conf
|