last XDG change: use GNUNET_RUNTIME_DIR instead of /tmp for UNIXPATHs by default
[oweals/gnunet.git] / src / vpn / Makefile.am
1 AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
2
3 if MINGW
4   WINFLAGS = -Wl,--no-undefined,--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_LDFLAGS = \
43     -no-undefined -Wl,--export-all-symbols 
44
45   gnunet_helper_vpn_LDADD = \
46     -lsetupapi -lnewdev -lshell32 -liconv -lstdc++ \
47     -lcomdlg32 -lgdi32 -liphlpapi
48
49   gnunet_helper_vpn_SOURCES = \
50     gnunet-helper-vpn-windows.c
51 else
52     gnunet_helper_vpn_SOURCES = \
53         gnunet-helper-vpn.c
54 endif
55 gnunet_service_vpn_SOURCES = \
56  gnunet-service-vpn.c 
57 gnunet_service_vpn_LDADD = \
58   $(top_builddir)/src/statistics/libgnunetstatistics.la \
59   $(top_builddir)/src/tun/libgnunettun.la \
60   $(top_builddir)/src/util/libgnunetutil.la \
61   $(top_builddir)/src/mesh/libgnunetmesh.la \
62   $(top_builddir)/src/regex/libgnunetregex.la \
63   $(GN_LIBINTL)
64 gnunet_service_vpn_CFLAGS = \
65   -I$(top_srcdir)/src/exit $(CFLAGS)
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 gnunet_vpn_DEPENDENCIES = \
74   libgnunetvpn.la
75
76 libgnunetvpn_la_SOURCES = \
77  vpn_api.c vpn.h
78 libgnunetvpn_la_LIBADD = \
79  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
80 libgnunetvpn_la_LDFLAGS = \
81   $(GN_LIB_LDFLAGS)
82
83