13928dba3c0ac50fe4cdcfec267670eeb0379092
[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 plugindir = $(libdir)/gnunet
14
15 dist_pkgcfg_DATA = \
16   vpn.conf
17
18 if LINUX
19 VPNBIN = gnunet-helper-vpn
20 install-exec-hook:
21         $(SUDO_BINARY) chown root:root $(bindir)/gnunet-helper-vpn || true
22         $(SUDO_BINARY) chmod u+s $(bindir)/gnunet-helper-vpn || true
23 else
24 install-exec-hook:
25 endif
26
27
28 bin_PROGRAMS = \
29   gnunet-daemon-exit gnunet-daemon-vpn $(VPNBIN) $(HIJACKBIN)
30
31
32 gnunet_helper_vpn_SOURCES = \
33  gnunet-helper-vpn.c
34
35 gnunet_daemon_vpn_SOURCES = \
36  gnunet-daemon-vpn.c gnunet-daemon-vpn.h \
37  gnunet-daemon-vpn-helper.c gnunet-daemon-vpn-helper.h \
38  gnunet-helper-vpn-api.c gnunet-helper-vpn-api.h \
39  gnunet-vpn-checksum.c gnunet-vpn-checksum.h
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   $(top_builddir)/src/mesh/libgnunetmesh.la \
45   $(top_builddir)/src/dns/libgnunetdnsparser.la \
46   $(top_builddir)/src/dns/libgnunetdns.la \
47   $(GN_LIBINTL)
48
49 gnunet_daemon_exit_SOURCES = \
50  gnunet-daemon-exit.c \
51  gnunet-helper-vpn-api.c gnunet-helper-vpn-api.h \
52  gnunet-vpn-checksum.c gnunet-vpn-checksum.h
53 gnunet_daemon_exit_LDADD = \
54   $(top_builddir)/src/core/libgnunetcore.la \
55   $(top_builddir)/src/statistics/libgnunetstatistics.la \
56   $(top_builddir)/src/util/libgnunetutil.la \
57   $(top_builddir)/src/mesh/libgnunetmesh.la \
58   $(GN_LIBINTL)
59
60
61 plugin_LTLIBRARIES = \
62   libgnunet_plugin_block_dns.la 
63
64 libgnunet_plugin_block_dns_la_SOURCES = \
65   plugin_block_dns.c
66 libgnunet_plugin_block_dns_la_LIBADD = \
67   $(top_builddir)/src/util/libgnunetutil.la
68 libgnunet_plugin_block_dns_la_LDFLAGS = \
69   $(top_builddir)/src/block/$(GN_PLUGIN_LDFLAGS)
70
71
72 #check_PROGRAMS = \
73 # test_XXX
74
75 if ENABLE_TEST_RUN
76 #TESTS = \
77 # test_transport_api_tcp 
78 endif
79
80 #test_transport_api_tcp_SOURCES = \
81 # test_transport_api.c
82 #test_transport_api_tcp_LDADD = \
83 # $(top_builddir)/src/transport/libgnunettransport.la \
84 # $(top_builddir)/src/util/libgnunetutil.la  
85
86 EXTRA_DIST = \
87   gnunet-vpn-packet.h \
88   test-conf.conf