28eb86b7dd04f8f67af5151ddfdd7496614a329b
[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 lib_LTLIBRARIES = \
29   libgnunetvpn.la
30
31
32 bin_PROGRAMS = \
33   gnunet-daemon-exit gnunet-daemon-vpn $(VPNBIN) gnunet-service-vpn gnunet-vpn
34
35
36 gnunet_helper_vpn_SOURCES = \
37  gnunet-helper-vpn.c
38
39 gnunet_daemon_vpn_SOURCES = \
40  gnunet-daemon-vpn.c 
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   $(top_builddir)/src/dns/libgnunetdnsparser.la \
47   $(top_builddir)/src/dns/libgnunetdns.la \
48   $(GN_LIBINTL)
49
50 gnunet_service_vpn_SOURCES = \
51  gnunet-service-vpn.c 
52 gnunet_service_vpn_LDADD = \
53   $(top_builddir)/src/statistics/libgnunetstatistics.la \
54   $(top_builddir)/src/util/libgnunetutil.la \
55   $(top_builddir)/src/mesh/libgnunetmesh.la \
56   $(GN_LIBINTL)
57
58 gnunet_daemon_exit_SOURCES = \
59  gnunet-daemon-exit.c 
60 gnunet_daemon_exit_LDADD = \
61   $(top_builddir)/src/core/libgnunetcore.la \
62   $(top_builddir)/src/statistics/libgnunetstatistics.la \
63   $(top_builddir)/src/util/libgnunetutil.la \
64   $(top_builddir)/src/mesh/libgnunetmesh.la \
65   $(GN_LIBINTL)
66
67 gnunet_vpn_SOURCES = \
68  gnunet-vpn.c
69 gnunet_vpn_LDADD = \
70   $(top_builddir)/src/vpn/libgnunetvpn.la \
71   $(top_builddir)/src/util/libgnunetutil.la \
72   $(GN_LIBINTL)
73 gnunet_vpn_DEPENDENCIES = \
74   libgnunetvpn.la
75
76 libgnunetvpn_la_SOURCES = \
77  vpn_api.c vpn.h
78 libgnunetvpn_la_LIBADD = \
79  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
80 libgnunetvpn_la_LDFLAGS = \
81   $(GN_LIB_LDFLAGS)
82
83
84 if ENABLE_TEST_RUN
85 #TESTS = \
86 # test_transport_api_tcp 
87 endif
88
89 #test_transport_api_tcp_SOURCES = \
90 # test_transport_api.c
91 #test_transport_api_tcp_LDADD = \
92 # $(top_builddir)/src/transport/libgnunettransport.la \
93 # $(top_builddir)/src/util/libgnunetutil.la  
94
95 EXTRA_DIST = \
96   gnunet-vpn-packet.h \
97   test-conf.conf