installing all service, daemon and helper binaries to lib/gnunet/libexec/; updating...
[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 libexecdir= $(pkglibdir)/libexec/
14
15 plugindir = $(libdir)/gnunet
16
17 pkgcfg_DATA = \
18   vpn.conf
19
20 if LINUX
21 VPNBIN = gnunet-helper-vpn
22 install-exec-hook:
23         $(top_srcdir)/src/vpn/install-vpn-helper.sh $(libexecdir) $(SUDO_BINARY) || true
24 else
25 install-exec-hook:
26 endif
27
28
29 lib_LTLIBRARIES = \
30   libgnunetvpn.la
31
32
33 libexec_PROGRAMS = \
34   $(VPNBIN) \
35   gnunet-service-vpn
36
37 bin_PROGRAMS = \
38   gnunet-vpn
39
40 gnunet_helper_vpn_SOURCES = \
41  gnunet-helper-vpn.c
42
43 gnunet_service_vpn_SOURCES = \
44  gnunet-service-vpn.c 
45 gnunet_service_vpn_LDADD = \
46   $(top_builddir)/src/statistics/libgnunetstatistics.la \
47   $(top_builddir)/src/tun/libgnunettun.la \
48   $(top_builddir)/src/util/libgnunetutil.la \
49   $(top_builddir)/src/mesh/libgnunetmesh.la \
50   $(GN_LIBINTL)
51 gnunet_service_vpn_CFLAGS = \
52   -I$(top_srcdir)/src/exit $(CFLAGS)
53
54 gnunet_vpn_SOURCES = \
55  gnunet-vpn.c
56 gnunet_vpn_LDADD = \
57   $(top_builddir)/src/vpn/libgnunetvpn.la \
58   $(top_builddir)/src/util/libgnunetutil.la \
59   $(GN_LIBINTL)
60 gnunet_vpn_DEPENDENCIES = \
61   libgnunetvpn.la
62
63 libgnunetvpn_la_SOURCES = \
64  vpn_api.c vpn.h
65 libgnunetvpn_la_LIBADD = \
66  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
67 libgnunetvpn_la_LDFLAGS = \
68   $(GN_LIB_LDFLAGS)
69
70