fixing #1820
[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         $(SUDO_BINARY) chown root:root $(bindir)/gnunet-helper-vpn || true
16         $(SUDO_BINARY) chmod u+s $(bindir)/gnunet-helper-vpn || true
17         $(SUDO_BINARY) chown root:root $(bindir)/gnunet-helper-hijack-dns || true
18         $(SUDO_BINARY) 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-exit gnunet-daemon-vpn gnunet-service-dns $(VPNBIN) $(HIJACKBIN)
26
27
28 gnunet_helper_vpn_SOURCES = \
29  gnunet-helper-vpn.c
30
31 gnunet_helper_hijack_dns_SOURCES = \
32  gnunet-helper-hijack-dns.c
33
34 gnunet_daemon_vpn_SOURCES = \
35  gnunet-daemon-vpn.c gnunet-daemon-vpn.h \
36  gnunet-dns-parser.c gnunet-dns-parser.h \
37  gnunet-daemon-vpn-helper.c gnunet-daemon-vpn-helper.h \
38  gnunet-daemon-vpn-dns.c gnunet-daemon-vpn-dns.h \
39  gnunet-helper-vpn-api.c gnunet-helper-vpn-api.h \
40  gnunet-vpn-checksum.c gnunet-vpn-checksum.h
41 gnunet_daemon_vpn_LDADD = \
42   $(top_builddir)/src/core/libgnunetcore.la \
43   $(top_builddir)/src/statistics/libgnunetstatistics.la \
44   $(top_builddir)/src/util/libgnunetutil.la \
45   $(top_builddir)/src/mesh/libgnunetmesh.la \
46   $(GN_LIBINTL)
47
48 gnunet_service_dns_SOURCES = \
49  gnunet-service-dns.c gnunet-service-dns-p.h \
50  gnunet-dns-parser.c gnunet-dns-parser.h
51 gnunet_service_dns_LDADD = \
52   $(top_builddir)/src/core/libgnunetcore.la \
53   $(top_builddir)/src/statistics/libgnunetstatistics.la \
54   $(top_builddir)/src/util/libgnunetutil.la \
55   $(top_builddir)/src/dht/libgnunetdht.la \
56   $(top_builddir)/src/mesh/libgnunetmesh.la \
57   $(GN_LIBINTL)
58
59 gnunet_daemon_exit_SOURCES = \
60  gnunet-daemon-exit.c \
61  gnunet-helper-vpn-api.c gnunet-helper-vpn-api.h \
62  gnunet-vpn-checksum.c gnunet-vpn-checksum.h
63 gnunet_daemon_exit_LDADD = \
64   $(top_builddir)/src/core/libgnunetcore.la \
65   $(top_builddir)/src/statistics/libgnunetstatistics.la \
66   $(top_builddir)/src/util/libgnunetutil.la \
67   $(top_builddir)/src/mesh/libgnunetmesh.la \
68   $(GN_LIBINTL)
69
70 #check_PROGRAMS = \
71 # test_XXX
72
73 if ENABLE_TEST_RUN
74 #TESTS = \
75 # test_transport_api_tcp 
76 endif
77
78 #test_transport_api_tcp_SOURCES = \
79 # test_transport_api.c
80 #test_transport_api_tcp_LDADD = \
81 # $(top_builddir)/src/transport/libgnunettransport.la \
82 # $(top_builddir)/src/util/libgnunetutil.la  
83
84 EXTRA_DIST = \
85   gnunet-vpn-packet.h \
86   test-conf.conf