first test commit to make sudo + sh scripts obsolete.
[oweals/gnunet.git] / src / vpn / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
3
4 if USE_COVERAGE
5   AM_CFLAGS = --coverage -O0
6 endif
7
8 pkgcfgdir= $(pkgdatadir)/config.d/
9
10 libexecdir= $(pkglibdir)/libexec/
11
12 plugindir = $(libdir)/gnunet
13
14 pkgcfg_DATA = \
15   vpn.conf
16
17 if HAVE_SUDO
18 SUDO_OR_DOAS_BINARY= $(SUDO_BINARY)
19 else
20 if HAVE_DOAS_BINARY
21 SUDO_OR_DOAS_BINARY= $(DOAS_BINARY)
22 endif
23 endif
24
25 if LINUX
26 VPNBIN = gnunet-helper-vpn
27 install-exec-hook:
28         chown root:root $(DESTDIR)$(libexecdir)/gnunet-helper-vpn
29         chmod u+s $(DESTDIR)$(libexecdir)/gnunet-helper-vpn
30 else
31 install-exec-hook:
32 endif
33
34
35 lib_LTLIBRARIES = \
36   libgnunetvpn.la
37
38
39 libexec_PROGRAMS = \
40   $(VPNBIN) \
41   gnunet-service-vpn
42
43 bin_PROGRAMS = \
44   gnunet-vpn
45
46 gnunet_helper_vpn_SOURCES = \
47 gnunet-helper-vpn.c
48
49 gnunet_service_vpn_SOURCES = \
50  gnunet-service-vpn.c
51 gnunet_service_vpn_LDADD = \
52   $(top_builddir)/src/statistics/libgnunetstatistics.la \
53   $(top_builddir)/src/util/libgnunetutil.la \
54   $(top_builddir)/src/cadet/libgnunetcadet.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   libgnunetvpn.la \
64   $(top_builddir)/src/util/libgnunetutil.la \
65   $(GN_LIBINTL)
66
67 libgnunetvpn_la_SOURCES = \
68  vpn_api.c vpn.h
69 libgnunetvpn_la_LIBADD = \
70  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
71 libgnunetvpn_la_LDFLAGS = \
72   $(GN_LIB_LDFLAGS)