moving block plugins to respective subsystem
[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 HIJACKBIN = gnunet-helper-hijack-dns
21 install-exec-hook:
22         $(SUDO_BINARY) chown root:root $(bindir)/gnunet-helper-vpn || true
23         $(SUDO_BINARY) chmod u+s $(bindir)/gnunet-helper-vpn || true
24         $(SUDO_BINARY) chown root:root $(bindir)/gnunet-helper-hijack-dns || true
25         $(SUDO_BINARY) chmod u+s $(bindir)/gnunet-helper-hijack-dns || true
26 else
27 install-exec-hook:
28 endif
29
30
31 bin_PROGRAMS = \
32   gnunet-daemon-exit gnunet-daemon-vpn gnunet-service-dns $(VPNBIN) $(HIJACKBIN)
33
34
35 gnunet_helper_vpn_SOURCES = \
36  gnunet-helper-vpn.c
37
38 gnunet_helper_hijack_dns_SOURCES = \
39  gnunet-helper-hijack-dns.c
40
41 gnunet_daemon_vpn_SOURCES = \
42  gnunet-daemon-vpn.c gnunet-daemon-vpn.h \
43  gnunet-dns-parser.c gnunet-dns-parser.h \
44  gnunet-daemon-vpn-helper.c gnunet-daemon-vpn-helper.h \
45  gnunet-daemon-vpn-dns.c gnunet-daemon-vpn-dns.h \
46  gnunet-helper-vpn-api.c gnunet-helper-vpn-api.h \
47  gnunet-vpn-checksum.c gnunet-vpn-checksum.h
48 gnunet_daemon_vpn_LDADD = \
49   $(top_builddir)/src/core/libgnunetcore.la \
50   $(top_builddir)/src/statistics/libgnunetstatistics.la \
51   $(top_builddir)/src/util/libgnunetutil.la \
52   $(top_builddir)/src/mesh/libgnunetmesh.la \
53   $(GN_LIBINTL)
54
55 gnunet_service_dns_SOURCES = \
56  gnunet-service-dns.c gnunet-service-dns-p.h \
57  gnunet-dns-parser.c gnunet-dns-parser.h
58 gnunet_service_dns_LDADD = \
59   $(top_builddir)/src/core/libgnunetcore.la \
60   $(top_builddir)/src/statistics/libgnunetstatistics.la \
61   $(top_builddir)/src/util/libgnunetutil.la \
62   $(top_builddir)/src/dht/libgnunetdht.la \
63   $(top_builddir)/src/mesh/libgnunetmesh.la \
64   $(GN_LIBINTL)
65
66 gnunet_daemon_exit_SOURCES = \
67  gnunet-daemon-exit.c \
68  gnunet-helper-vpn-api.c gnunet-helper-vpn-api.h \
69  gnunet-vpn-checksum.c gnunet-vpn-checksum.h
70 gnunet_daemon_exit_LDADD = \
71   $(top_builddir)/src/core/libgnunetcore.la \
72   $(top_builddir)/src/statistics/libgnunetstatistics.la \
73   $(top_builddir)/src/util/libgnunetutil.la \
74   $(top_builddir)/src/mesh/libgnunetmesh.la \
75   $(GN_LIBINTL)
76
77
78 plugin_LTLIBRARIES = \
79   libgnunet_plugin_block_dns.la 
80
81 libgnunet_plugin_block_dns_la_SOURCES = \
82   plugin_block_dns.c
83 libgnunet_plugin_block_dns_la_LIBADD = \
84   $(top_builddir)/src/util/libgnunetutil.la
85 libgnunet_plugin_block_dns_la_LDFLAGS = \
86   $(top_builddir)/src/block/$(GN_PLUGIN_LDFLAGS)
87
88
89 #check_PROGRAMS = \
90 # test_XXX
91
92 if ENABLE_TEST_RUN
93 #TESTS = \
94 # test_transport_api_tcp 
95 endif
96
97 #test_transport_api_tcp_SOURCES = \
98 # test_transport_api.c
99 #test_transport_api_tcp_LDADD = \
100 # $(top_builddir)/src/transport/libgnunettransport.la \
101 # $(top_builddir)/src/util/libgnunetutil.la  
102
103 EXTRA_DIST = \
104   gnunet-vpn-packet.h \
105   test-conf.conf