blob: a60b4b5f3daa2c5b653624c6e51c731184d65af8 (
plain) (
blame)
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
|
INCLUDES = -I$(top_srcdir)/src/include
if MINGW
WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
NATBIN = gnunet-nat-server gnunet-nat-client
NATSERVER = gnunet-nat-server-windows.c
NATCLIENT = gnunet-nat-client-windows.c
else
NATSERVER = gnunet-nat-server.c
NATCLIENT = gnunet-nat-client.c
endif
if LINUX
NATBIN = gnunet-nat-server gnunet-nat-client
install-exec-hook:
chown root:root $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-transport-wlan-helper || true
chmod u+s $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-transport-wlan-helper || true
else
install-exec-hook:
endif
bin_PROGRAMS = \
$(NATBIN)
gnunet_nat_server_SOURCES = \
$(NATSERVER)
gnunet_nat_client_SOURCES = \
$(NATCLIENT)
if MINGW
WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
endif
if USE_COVERAGE
AM_CFLAGS = -fprofile-arcs -ftest-coverage
endif
lib_LTLIBRARIES = libgnunetnat.la
libgnunetnat_la_SOURCES = \
nat.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
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 \
@LIBCURL@
EXTRA_DIST = \
test_nat_data.conf
|