- added vpn helper stub for win32 builds
[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   VPNBIN = gnunet-helper-vpn
6 endif
7
8 if USE_COVERAGE
9   AM_CFLAGS = --coverage -O0
10 endif
11
12 pkgcfgdir= $(pkgdatadir)/config.d/
13
14 libexecdir= $(pkglibdir)/libexec/
15
16 plugindir = $(libdir)/gnunet
17
18 pkgcfg_DATA = \
19   vpn.conf
20
21 if LINUX
22 VPNBIN = gnunet-helper-vpn
23 install-exec-hook:
24         $(top_srcdir)/src/vpn/install-vpn-helper.sh $(libexecdir) $(SUDO_BINARY) || true
25 else
26 install-exec-hook:
27 endif
28
29
30 lib_LTLIBRARIES = \
31   libgnunetvpn.la
32
33
34 libexec_PROGRAMS = \
35   $(VPNBIN) \
36   gnunet-service-vpn
37
38 bin_PROGRAMS = \
39   gnunet-vpn
40
41 if MINGW
42     gnunet_helper_vpn_SOURCES = \
43         gnunet-helper-vpn-windows.c
44 else
45     gnunet_helper_vpn_SOURCES = \
46         gnunet-helper-vpn.c
47 endif
48 gnunet_service_vpn_SOURCES = \
49  gnunet-service-vpn.c 
50 gnunet_service_vpn_LDADD = \
51   $(top_builddir)/src/statistics/libgnunetstatistics.la \
52   $(top_builddir)/src/tun/libgnunettun.la \
53   $(top_builddir)/src/util/libgnunetutil.la \
54   $(top_builddir)/src/mesh/libgnunetmesh.la \
55   $(top_builddir)/src/regex/libgnunetregex.la \
56   $(GN_LIBINTL)
57 gnunet_service_vpn_CFLAGS = \
58   -I$(top_srcdir)/src/exit $(CFLAGS)
59
60 gnunet_vpn_SOURCES = \
61  gnunet-vpn.c
62 gnunet_vpn_LDADD = \
63   $(top_builddir)/src/vpn/libgnunetvpn.la \
64   $(top_builddir)/src/util/libgnunetutil.la \
65   $(GN_LIBINTL)
66 gnunet_vpn_DEPENDENCIES = \
67   libgnunetvpn.la
68
69 libgnunetvpn_la_SOURCES = \
70  vpn_api.c vpn.h
71 libgnunetvpn_la_LIBADD = \
72  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
73 libgnunetvpn_la_LDFLAGS = \
74   $(GN_LIB_LDFLAGS)
75
76