Makefile.am 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. INCLUDES = -I$(top_srcdir)/src/include
  2. if MINGW
  3. WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
  4. endif
  5. if USE_COVERAGE
  6. AM_CFLAGS = --coverage -O0
  7. endif
  8. if LINUX
  9. VPNBIN = gnunet-helper-vpn
  10. HIJACKBIN = gnunet-helper-hijack-dns
  11. install-exec-hook:
  12. chown root:root $(bindir)/gnunet-helper-vpn || true
  13. chmod u+s $(bindir)/gnunet-helper-vpn || true
  14. chown root:root $(bindir)/gnunet-helper-hijack-dns || true
  15. chmod u+s $(bindir)/gnunet-helper-hijack-dns || true
  16. else
  17. install-exec-hook:
  18. endif
  19. bin_PROGRAMS = \
  20. gnunet-daemon-exit gnunet-daemon-vpn gnunet-service-dns $(VPNBIN) $(HIJACKBIN)
  21. gnunet_helper_vpn_SOURCES = \
  22. gnunet-helper-vpn.c
  23. gnunet_helper_hijack_dns_SOURCES = \
  24. gnunet-helper-hijack-dns.c
  25. gnunet_daemon_vpn_SOURCES = \
  26. gnunet-daemon-vpn.c gnunet-daemon-vpn.h \
  27. gnunet-dns-parser.c gnunet-dns-parser.h \
  28. gnunet-daemon-vpn-helper.c gnunet-daemon-vpn-helper.h \
  29. gnunet-daemon-vpn-dns.c gnunet-daemon-vpn-dns.h \
  30. gnunet-helper-vpn-api.c gnunet-helper-vpn-api.h \
  31. gnunet-vpn-checksum.c gnunet-vpn-checksum.h
  32. gnunet_daemon_vpn_LDADD = \
  33. $(top_builddir)/src/core/libgnunetcore.la \
  34. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  35. $(top_builddir)/src/util/libgnunetutil.la \
  36. $(top_builddir)/src/mesh/libgnunetmesh.la \
  37. $(GN_LIBINTL)
  38. gnunet_service_dns_SOURCES = \
  39. gnunet-service-dns.c gnunet-service-dns-p.h \
  40. gnunet-dns-parser.c gnunet-dns-parser.h
  41. gnunet_service_dns_LDADD = \
  42. $(top_builddir)/src/core/libgnunetcore.la \
  43. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  44. $(top_builddir)/src/util/libgnunetutil.la \
  45. $(top_builddir)/src/dht/libgnunetdht.la \
  46. $(top_builddir)/src/mesh/libgnunetmesh.la \
  47. $(GN_LIBINTL)
  48. gnunet_daemon_exit_SOURCES = \
  49. gnunet-daemon-exit.c \
  50. gnunet-helper-vpn-api.c gnunet-helper-vpn-api.h \
  51. gnunet-vpn-checksum.c gnunet-vpn-checksum.h
  52. gnunet_daemon_exit_LDADD = \
  53. $(top_builddir)/src/core/libgnunetcore.la \
  54. $(top_builddir)/src/statistics/libgnunetstatistics.la \
  55. $(top_builddir)/src/util/libgnunetutil.la \
  56. $(top_builddir)/src/mesh/libgnunetmesh.la \
  57. $(GN_LIBINTL)
  58. #check_PROGRAMS = \
  59. # test_XXX
  60. if ENABLE_TEST_RUN
  61. #TESTS = \
  62. # test_transport_api_tcp
  63. endif
  64. #test_transport_api_tcp_SOURCES = \
  65. # test_transport_api.c
  66. #test_transport_api_tcp_LDADD = \
  67. # $(top_builddir)/src/transport/libgnunettransport.la \
  68. # $(top_builddir)/src/util/libgnunetutil.la
  69. EXTRA_DIST = \
  70. gnunet-vpn-packet.h \
  71. test-conf.conf