Merge remote-tracking branch 'origin/master' into identity_abe
[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 MINGW
5   WINFLAGS = -Wl,--no-undefined,--export-all-symbols
6   EXITBIN = gnunet-helper-exit
7 endif
8
9 if USE_COVERAGE
10   AM_CFLAGS = --coverage -O0
11 endif
12
13 pkgcfgdir= $(pkgdatadir)/config.d/
14
15 libexecdir= $(pkglibdir)/libexec/
16
17 plugindir = $(libdir)/gnunet
18
19 dist_pkgcfg_DATA = \
20   exit.conf
21
22 if LINUX
23 EXITBIN = gnunet-helper-exit
24 install-exec-hook:
25         $(top_srcdir)/src/exit/install-exit-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_BINARY) || true
26 else
27 install-exec-hook:
28 endif
29
30
31 libexec_PROGRAMS = \
32   gnunet-daemon-exit \
33   $(EXITBIN)
34
35 if MINGW
36   gnunet_helper_exit_LDFLAGS = \
37     -no-undefined -Wl,--export-all-symbols
38
39   gnunet_helper_exit_LDADD = \
40     -lsetupapi -lnewdev -lshell32 -liconv -lstdc++ \
41     -lcomdlg32 -lgdi32 -liphlpapi
42
43   gnunet_helper_exit_SOURCES = \
44     gnunet-helper-exit-windows.c
45 else
46   gnunet_helper_exit_SOURCES = \
47    gnunet-helper-exit.c
48 endif
49 gnunet_daemon_exit_SOURCES = \
50  gnunet-daemon-exit.c exit.h
51 gnunet_daemon_exit_LDADD = \
52   $(top_builddir)/src/dns/libgnunetdnsstub.la \
53   $(top_builddir)/src/dht/libgnunetdht.la \
54   $(top_builddir)/src/statistics/libgnunetstatistics.la \
55   $(top_builddir)/src/tun/libgnunettun.la \
56   $(top_builddir)/src/util/libgnunetutil.la \
57   $(top_builddir)/src/cadet/libgnunetcadet.la \
58   $(top_builddir)/src/regex/libgnunetregex.la \
59   $(GN_LIBINTL)