You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

73 lines
1.5 KiB

  1. # This Makefile.am is in the public domain
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/include \
  3. $(GNUNET_CPPFLAGS)
  4. pkgcfgdir= $(pkgdatadir)/config.d/
  5. libexecdir= $(pkglibdir)/libexec/
  6. pkgcfg_DATA = \
  7. psyc.conf
  8. if MINGW
  9. WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
  10. endif
  11. if USE_COVERAGE
  12. AM_CFLAGS = --coverage -O0
  13. XLIB = -lgcov
  14. endif
  15. lib_LTLIBRARIES = libgnunetpsyc.la
  16. libgnunetpsyc_la_SOURCES = \
  17. psyc_api.c psyc.h
  18. libgnunetpsyc_la_LIBADD = \
  19. -lgnunetutil \
  20. $(top_builddir)/src/psycutil/libgnunetpsycutil.la \
  21. $(GN_LIBINTL) $(XLIB)
  22. libgnunetpsyc_la_LDFLAGS = \
  23. $(GN_LIB_LDFLAGS) $(WINFLAGS) \
  24. -version-info 0:0:0
  25. bin_PROGRAMS =
  26. libexec_PROGRAMS = \
  27. gnunet-service-psyc
  28. gnunet_service_psyc_SOURCES = \
  29. gnunet-service-psyc.c
  30. gnunet_service_psyc_LDADD = \
  31. -lgnunetutil \
  32. -lgnunetstatistics \
  33. $(top_builddir)/src/multicast/libgnunetmulticast.la \
  34. $(top_builddir)/src/psycstore/libgnunetpsycstore.la \
  35. $(top_builddir)/src/psycutil/libgnunetpsycutil.la \
  36. $(GN_LIBINTL)
  37. gnunet_service_psyc_CFLAGS = $(AM_CFLAGS)
  38. if HAVE_TESTING
  39. check_PROGRAMS = \
  40. test_psyc
  41. # test_psyc2
  42. endif
  43. if ENABLE_TEST_RUN
  44. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
  45. TESTS = $(check_PROGRAMS)
  46. endif
  47. test_psyc_SOURCES = \
  48. test_psyc.c
  49. test_psyc_LDADD = \
  50. libgnunetpsyc.la \
  51. $(top_builddir)/src/psycutil/libgnunetpsycutil.la \
  52. -lgnunettesting \
  53. -lgnunetutil
  54. EXTRA_DIST = \
  55. test_psyc.conf