6dcc85f67606a88b7d0bdf9222c967de3b6d3eeb
[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
74 libgnunetvpn_la_SOURCES = \
75  vpn_api.c vpn.h
76 libgnunetvpn_la_LIBADD = \
77  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
78 libgnunetvpn_la_LDFLAGS = \
79   $(GN_LIB_LDFLAGS)
80
81
82 if ENABLE_TEST_RUN
83 #TESTS = \
84 # test_transport_api_tcp 
85 endif
86
87 #test_transport_api_tcp_SOURCES = \
88 # test_transport_api.c
89 #test_transport_api_tcp_LDADD = \
90 # $(top_builddir)/src/transport/libgnunettransport.la \
91 # $(top_builddir)/src/util/libgnunetutil.la  
92
93 EXTRA_DIST = \
94   gnunet-vpn-packet.h \
95   test-conf.conf