X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fhello%2FMakefile.am;h=79003301b8be023c86ba8240653bf04c74ff872f;hb=7a5a724a6f96baf80d2226326124aa01c58ad3fe;hp=cffb7201c1a1bb66e3f8200bd1a0920a1dbb30df;hpb=0a217a8df1657b4334b55b0e4a6c7837a8dbcfd9;p=oweals%2Fgnunet.git diff --git a/src/hello/Makefile.am b/src/hello/Makefile.am index cffb7201c..79003301b 100644 --- a/src/hello/Makefile.am +++ b/src/hello/Makefile.am @@ -1,28 +1,53 @@ -INCLUDES = -I$(top_srcdir)/src/include +# This Makefile.am is in the public domain +AM_CPPFLAGS = -I$(top_srcdir)/src/include if MINGW WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols endif if USE_COVERAGE - AM_CFLAGS = --coverage + AM_CFLAGS = --coverage -O0 + XLIB = -lgcov endif lib_LTLIBRARIES = libgnunethello.la libgnunethello_la_SOURCES = \ - hello.c + hello.c address.c libgnunethello_la_LIBADD = \ - $(top_builddir)/src/util/libgnunetutil.la + $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \ + $(LTLIBINTL) +libgnunethello_la_LDFLAGS = \ + $(GN_LIB_LDFLAGS) \ + -version-info 1:0:1 + +noinst_PROGRAMS = \ + gnunet-hello check_PROGRAMS = \ - test_hello + test_hello \ + test_friend_hello +if ENABLE_TEST_RUN +AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; TESTS = $(check_PROGRAMS) +endif test_hello_SOURCES = \ test_hello.c test_hello_LDADD = \ - $(top_builddir)/src/hello/libgnunethello.la \ + libgnunethello.la \ + $(top_builddir)/src/util/libgnunetutil.la + +test_friend_hello_SOURCES = \ + test_friend_hello.c +test_friend_hello_LDADD = \ + libgnunethello.la \ + $(top_builddir)/src/util/libgnunetutil.la + +gnunet_hello_SOURCES = \ + gnunet-hello.c +gnunet_hello_LDADD = \ + libgnunethello.la \ $(top_builddir)/src/util/libgnunetutil.la