Makefile.am 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # This Makefile.am is in the public domain
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/include
  3. if USE_COVERAGE
  4. AM_CFLAGS = --coverage -O0
  5. XLIB = -lgcov
  6. endif
  7. lib_LTLIBRARIES = libgnunethello.la
  8. libgnunethello_la_SOURCES = \
  9. hello.c \
  10. address.c \
  11. hello-ng.c
  12. libgnunethello_la_LIBADD = \
  13. $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
  14. $(LTLIBINTL)
  15. libgnunethello_la_LDFLAGS = \
  16. $(GN_LIB_LDFLAGS) \
  17. -version-info 1:0:1
  18. noinst_PROGRAMS = \
  19. gnunet-hello
  20. check_PROGRAMS = \
  21. test_hello \
  22. test_friend_hello
  23. if ENABLE_TEST_RUN
  24. AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
  25. TESTS = $(check_PROGRAMS)
  26. endif
  27. test_hello_SOURCES = \
  28. test_hello.c
  29. test_hello_LDADD = \
  30. libgnunethello.la \
  31. $(top_builddir)/src/util/libgnunetutil.la
  32. test_friend_hello_SOURCES = \
  33. test_friend_hello.c
  34. test_friend_hello_LDADD = \
  35. libgnunethello.la \
  36. $(top_builddir)/src/util/libgnunetutil.la
  37. gnunet_hello_SOURCES = \
  38. gnunet-hello.c
  39. gnunet_hello_LDADD = \
  40. libgnunethello.la \
  41. $(top_builddir)/src/util/libgnunetutil.la
  42. gnunet_hello_LDFLAGS = \
  43. $(GN_LIBINTL)