Makefile.am 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # This Makefile.am is in the public domain
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/include
  3. pkgcfgdir= $(pkgdatadir)/config.d/
  4. libexecdir= $(pkglibdir)/libexec/
  5. dist_pkgcfg_DATA = \
  6. template.conf
  7. if MINGW
  8. WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
  9. endif
  10. if USE_COVERAGE
  11. AM_CFLAGS = -fprofile-arcs -ftest-coverage
  12. endif
  13. # Note: In a real installation,
  14. # bin_PROGRAMS should be used for gnunet-template
  15. # libexec_PROGRAMS should be used for gnunet-service-template
  16. noinst_PROGRAMS = \
  17. gnunet-template \
  18. gnunet-service-template
  19. gnunet_template_SOURCES = \
  20. gnunet-template.c
  21. gnunet_template_LDADD = \
  22. $(top_builddir)/src/util/libgnunetutil.la \
  23. $(GN_LIBINTL)
  24. gnunet_service_template_SOURCES = \
  25. gnunet-service-template.c
  26. gnunet_service_template_LDADD = \
  27. $(top_builddir)/src/util/libgnunetutil.la \
  28. $(GN_LIBINTL)
  29. check_PROGRAMS = \
  30. test_template_api
  31. if ENABLE_TEST_RUN
  32. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
  33. TESTS = $(check_PROGRAMS)
  34. endif
  35. test_template_api_SOURCES = \
  36. test_template_api.c
  37. test_template_api_LDADD = \
  38. $(top_builddir)/src/util/libgnunetutil.la