370528772729ec90b3e23ddfaf539c8d246942b9
[oweals/gnunet.git] / src / vpn / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9 endif
10
11 if LINUX
12 VPNBIN = gnunet-helper-vpn
13 HIJACKBIN = gnunet-helper-hijack-dns
14 install-exec-hook:
15         chown root $(bindir)/gnunet-helper-vpn || true
16         chmod u+s $(bindir)/gnunet-helper-vpn || true
17         chown root $(bindir)/gnunet-helper-hijack-dns || true
18         chmod u+s $(bindir)/gnunet-helper-hijack-dns || true
19 else
20 install-exec-hook:
21 endif
22
23
24 bin_PROGRAMS = \
25   gnunet-daemon-vpn gnunet-service-dns $(VPNBIN) $(HIJACKBIN)
26
27
28 gnunet_helper_vpn_SOURCES = \
29  gnunet-helper-vpn.c \
30  gnunet-vpn-helper-p.h \
31  gnunet-vpn-tun.h gnunet-vpn-tun.c
32
33 gnunet_helper_hijack_dns_SOURCES = \
34  gnunet-helper-hijack-dns.c
35
36 gnunet_daemon_vpn_SOURCES = \
37  gnunet-daemon-vpn.c gnunet-vpn-pretty-print.c
38 gnunet_daemon_vpn_LDADD = \
39   $(top_builddir)/src/core/libgnunetcore.la \
40   $(top_builddir)/src/statistics/libgnunetstatistics.la \
41   $(top_builddir)/src/util/libgnunetutil.la \
42   $(GN_LIBINTL)
43
44 gnunet_service_dns_SOURCES = \
45  gnunet-service-dns.c
46 gnunet_service_dns_LDADD = \
47   $(top_builddir)/src/core/libgnunetcore.la \
48   $(top_builddir)/src/statistics/libgnunetstatistics.la \
49   $(top_builddir)/src/util/libgnunetutil.la \
50   $(GN_LIBINTL)
51
52 #check_PROGRAMS = \
53 # test_XXX
54
55 if !DISABLE_TEST_RUN
56 #TESTS = \
57 # test_transport_api_tcp 
58 endif
59
60 #test_transport_api_tcp_SOURCES = \
61 # test_transport_api.c
62 #test_transport_api_tcp_LDADD = \
63 # $(top_builddir)/src/transport/libgnunettransport.la \
64 # $(top_builddir)/src/util/libgnunetutil.la  
65
66 #EXTRA_DIST = test_transport_api_data.conf