Makefile.am 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. AM_CPPFLAGS = -I$(top_srcdir)/src/include
  2. if MINGW
  3. WINFLAGS = -Wl,--no-undefined,--export-all-symbols
  4. EXITBIN = gnunet-helper-exit
  5. endif
  6. if USE_COVERAGE
  7. AM_CFLAGS = --coverage -O0
  8. endif
  9. pkgcfgdir= $(pkgdatadir)/config.d/
  10. libexecdir= $(pkglibdir)/libexec/
  11. plugindir = $(libdir)/gnunet
  12. dist_pkgcfg_DATA = \
  13. exit.conf
  14. if LINUX
  15. EXITBIN = gnunet-helper-exit
  16. install-exec-hook:
  17. $(top_srcdir)/src/exit/install-exit-helper.sh $(libexecdir) $(SUDO_BINARY) || true
  18. else
  19. install-exec-hook:
  20. endif
  21. libexec_PROGRAMS = \
  22. gnunet-daemon-exit \
  23. $(EXITBIN)
  24. if MINGW
  25. gnunet_helper_exit_LDFLAGS = \
  26. -no-undefined -Wl,--export-all-symbols
  27. gnunet_helper_exit_LDADD = \
  28. -lsetupapi -lnewdev -lshell32 -liconv -lstdc++ \
  29. -lcomdlg32 -lgdi32 -liphlpapi
  30. gnunet_helper_exit_SOURCES = \
  31. gnunet-helper-exit-windows.c
  32. else
  33. gnunet_helper_exit_SOURCES = \
  34. gnunet-helper-exit.c
  35. endif
  36. gnunet_daemon_exit_SOURCES = \
  37. gnunet-daemon-exit.c exit.h
  38. gnunet_daemon_exit_LDADD = \
  39. $(top_builddir)/src/dns/libgnunetdnsstub.la \
  40. $(top_builddir)/src/dht/libgnunetdht.la \
  41. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  42. $(top_builddir)/src/tun/libgnunettun.la \
  43. $(top_builddir)/src/util/libgnunetutil.la \
  44. $(top_builddir)/src/cadet/libgnunetcadet.la \
  45. $(top_builddir)/src/regex/libgnunetregex.la \
  46. $(GN_LIBINTL)