-fixing installation scripts for suid binaries
[oweals/gnunet.git] / src / exit / 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 dist_pkgcfg_DATA = \
16   exit.conf
17
18 if LINUX
19 EXITBIN = gnunet-helper-exit
20 install-exec-hook:
21         $(top_srcdir)/src/exit/install-exit-helper.sh $(bindir) $(SUDO_BINARY) || true
22 else
23 install-exec-hook:
24 endif
25
26
27 bin_PROGRAMS = \
28   gnunet-daemon-exit $(EXITBIN) 
29
30
31 gnunet_helper_exit_SOURCES = \
32  gnunet-helper-exit.c
33
34 gnunet_daemon_exit_SOURCES = \
35  gnunet-daemon-exit.c exit.h 
36 gnunet_daemon_exit_LDADD = \
37   $(top_builddir)/src/core/libgnunetcore.la \
38   $(top_builddir)/src/statistics/libgnunetstatistics.la \
39   $(top_builddir)/src/tun/libgnunettun.la \
40   $(top_builddir)/src/util/libgnunetutil.la \
41   $(top_builddir)/src/mesh/libgnunetmesh.la \
42   $(GN_LIBINTL)