Smallers steps to keep plugin running
[oweals/gnunet.git] / src / hello / Makefile.am
index cffb7201c1a1bb66e3f8200bd1a0920a1dbb30df..703776c6556aea24837b910871258fedd1bce8f7 100644 (file)
@@ -5,7 +5,8 @@ if MINGW
 endif
 
 if USE_COVERAGE
-  AM_CFLAGS = --coverage
+  AM_CFLAGS = --coverage -O0
+  XLIB = -lgcov
 endif
 
 lib_LTLIBRARIES = libgnunethello.la
@@ -13,12 +14,14 @@ lib_LTLIBRARIES = libgnunethello.la
 libgnunethello_la_SOURCES = \
   hello.c 
 libgnunethello_la_LIBADD = \
- $(top_builddir)/src/util/libgnunetutil.la  
+ $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
 
 check_PROGRAMS = \
  test_hello
 
+if !DISABLE_TEST_RUN
 TESTS = $(check_PROGRAMS)
+endif
 
 test_hello_SOURCES = \
  test_hello.c