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