Add support for doas.
[oweals/gnunet.git] / src / exit / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/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 dist_pkgcfg_DATA = \
15   exit.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 EXITBIN = gnunet-helper-exit
27 install-exec-hook:
28         $(top_srcdir)/src/exit/install-exit-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_OR_DOAS_BINARY) || true
29 else
30 install-exec-hook:
31 endif
32
33
34 libexec_PROGRAMS = \
35   gnunet-daemon-exit \
36   $(EXITBIN)
37
38
39 gnunet_helper_exit_SOURCES = \
40   gnunet-helper-exit.c
41
42 gnunet_daemon_exit_SOURCES = \
43  gnunet-daemon-exit.c exit.h
44 gnunet_daemon_exit_LDADD = \
45   $(top_builddir)/src/dht/libgnunetdht.la \
46   $(top_builddir)/src/statistics/libgnunetstatistics.la \
47   $(top_builddir)/src/util/libgnunetutil.la \
48   $(top_builddir)/src/cadet/libgnunetcadet.la \
49   $(top_builddir)/src/regex/libgnunetregex.la \
50   $(GN_LIBINTL)