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