-fix compile
[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         $(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   $(VPNBIN) gnunet-service-vpn gnunet-vpn
34
35 gnunet_helper_vpn_SOURCES = \
36  gnunet-helper-vpn.c
37
38 gnunet_service_vpn_SOURCES = \
39  gnunet-service-vpn.c 
40 gnunet_service_vpn_LDADD = \
41   $(top_builddir)/src/statistics/libgnunetstatistics.la \
42   $(top_builddir)/src/tun/libgnunettun.la \
43   $(top_builddir)/src/util/libgnunetutil.la \
44   $(top_builddir)/src/mesh/libgnunetmesh.la \
45   $(GN_LIBINTL)
46 gnunet_service_vpn_CFLAGS = \
47   -I$(top_srcdir)/src/exit $(CFLAGS)
48
49 gnunet_vpn_SOURCES = \
50  gnunet-vpn.c
51 gnunet_vpn_LDADD = \
52   $(top_builddir)/src/vpn/libgnunetvpn.la \
53   $(top_builddir)/src/util/libgnunetutil.la \
54   $(GN_LIBINTL)
55 gnunet_vpn_DEPENDENCIES = \
56   libgnunetvpn.la
57
58 libgnunetvpn_la_SOURCES = \
59  vpn_api.c vpn.h
60 libgnunetvpn_la_LIBADD = \
61  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
62 libgnunetvpn_la_LDFLAGS = \
63   $(GN_LIB_LDFLAGS)
64
65