make fs tests build against new testbed library -- they do not pass yet
[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 pkgcfg_DATA = \
16   vpn.conf
17
18 if LINUX
19 VPNBIN = gnunet-helper-vpn
20 install-exec-hook:
21         $(top_srcdir)/src/vpn/install-vpn-helper.sh $(bindir) $(SUDO_BINARY) || true
22 else
23 install-exec-hook:
24 endif
25
26
27 lib_LTLIBRARIES = \
28   libgnunetvpn.la
29
30
31 bin_PROGRAMS = \
32   $(VPNBIN) gnunet-service-vpn gnunet-vpn
33
34 gnunet_helper_vpn_SOURCES = \
35  gnunet-helper-vpn.c
36
37 gnunet_service_vpn_SOURCES = \
38  gnunet-service-vpn.c 
39 gnunet_service_vpn_LDADD = \
40   $(top_builddir)/src/statistics/libgnunetstatistics.la \
41   $(top_builddir)/src/tun/libgnunettun.la \
42   $(top_builddir)/src/util/libgnunetutil.la \
43   $(top_builddir)/src/mesh/libgnunetmesh.la \
44   $(GN_LIBINTL)
45 gnunet_service_vpn_CFLAGS = \
46   -I$(top_srcdir)/src/exit $(CFLAGS)
47
48 gnunet_vpn_SOURCES = \
49  gnunet-vpn.c
50 gnunet_vpn_LDADD = \
51   $(top_builddir)/src/vpn/libgnunetvpn.la \
52   $(top_builddir)/src/util/libgnunetutil.la \
53   $(GN_LIBINTL)
54 gnunet_vpn_DEPENDENCIES = \
55   libgnunetvpn.la
56
57 libgnunetvpn_la_SOURCES = \
58  vpn_api.c vpn.h
59 libgnunetvpn_la_LIBADD = \
60  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
61 libgnunetvpn_la_LDFLAGS = \
62   $(GN_LIB_LDFLAGS)
63
64