remove never working setuid helper code from the build-system.
[oweals/gnunet.git] / src / nat / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 libexecdir= $(pkglibdir)/libexec/
5
6 pkgcfgdir= $(pkgdatadir)/config.d/
7
8 pkgcfg_DATA = \
9   nat.conf
10
11 if LINUX
12   NATBIN = gnunet-helper-nat-server gnunet-helper-nat-client
13   NATSERVER = gnunet-helper-nat-server.c
14   NATCLIENT = gnunet-helper-nat-client.c
15 else
16 if XFREEBSD
17   NATBIN = gnunet-helper-nat-server gnunet-helper-nat-client
18   NATSERVER = gnunet-helper-nat-server.c
19   NATCLIENT = gnunet-helper-nat-client.c
20 endif
21 else
22 install-exec-hook:
23 endif
24
25 bin_PROGRAMS = \
26  gnunet-nat
27
28 libexec_PROGRAMS = \
29  $(NATBIN) \
30  gnunet-service-nat
31
32
33 gnunet_helper_nat_server_SOURCES = \
34  $(NATSERVER)
35
36 gnunet_helper_nat_client_SOURCES = \
37  $(NATCLIENT)
38
39
40 gnunet_nat_SOURCES = \
41   gnunet-nat.c nat.h
42 gnunet_nat_LDADD = \
43   libgnunetnatnew.la \
44   $(top_builddir)/src/util/libgnunetutil.la
45
46
47 if USE_COVERAGE
48   AM_CFLAGS = -fprofile-arcs -ftest-coverage
49 endif
50
51 lib_LTLIBRARIES = \
52   libgnunetnatnew.la
53
54 libgnunetnatnew_la_SOURCES = \
55   nat_api.c \
56   nat_api_stun.c nat_stun.h \
57   nat.h
58 libgnunetnatnew_la_LIBADD = \
59   $(top_builddir)/src/util/libgnunetutil.la \
60   $(GN_LIBINTL) @EXT_LIBS@
61 libgnunetnatnew_la_LDFLAGS = \
62   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
63   -version-info 2:0:0
64
65 gnunet_service_nat_SOURCES = \
66  gnunet-service-nat.c gnunet-service-nat.h \
67  gnunet-service-nat_externalip.c gnunet-service-nat_externalip.h \
68  gnunet-service-nat_stun.c gnunet-service-nat_stun.h \
69  gnunet-service-nat_mini.c gnunet-service-nat_mini.h \
70  gnunet-service-nat_helper.c gnunet-service-nat_helper.h
71 gnunet_service_nat_LDADD = \
72   $(top_builddir)/src/util/libgnunetutil.la \
73   $(top_builddir)/src/statistics/libgnunetstatistics.la \
74   $(LIBGCRYPT_LIBS) \
75   -lgcrypt \
76   $(GN_LIBINTL)
77
78 #check_PROGRAMS = \
79 #  test_nat \
80 #  test_nat_mini \
81 #  test_nat_test \
82 #  test_stun
83
84 if ENABLE_TEST_RUN
85  AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
86  TESTS = $(check_PROGRAMS)
87 endif
88
89 #test_nat_SOURCES = \
90 #  test_nat.c
91 #test_nat_LDADD = \
92 # libgnunetnat.la \
93 # $(top_builddir)/src/util/libgnunetutil.la
94
95 #test_nat_mini_SOURCES = \
96 #  test_nat_mini.c
97 #test_nat_mini_LDADD = \
98 # libgnunetnat.la \
99 # $(top_builddir)/src/util/libgnunetutil.la
100
101 #test_nat_test_SOURCES = \
102 #  test_nat_test.c
103 #test_nat_test_LDADD = \
104 # libgnunetnat.la \
105 # $(top_builddir)/src/util/libgnunetutil.la
106
107 #test_stun_SOURCES = \
108 #  test_stun.c
109 #test_stun_LDADD = \
110 # libgnunetnat.la \
111 # $(top_builddir)/src/util/libgnunetutil.la
112
113 EXTRA_DIST = \
114  test_nat_data.conf \
115  test_nat_test_data.conf \
116  test_stun.conf