563bcafb2c4c605e186de499b2a0be3ab3bbb217
[oweals/gnunet.git] / src / hello / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 if MINGW
5   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
6 endif
7
8 if USE_COVERAGE
9   AM_CFLAGS = --coverage -O0
10   XLIB = -lgcov
11 endif
12
13 lib_LTLIBRARIES = libgnunethello.la
14
15 libgnunethello_la_SOURCES = \
16   hello.c address.c
17 libgnunethello_la_LIBADD = \
18  $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
19  $(LTLIBINTL)
20 libgnunethello_la_LDFLAGS = \
21   $(GN_LIB_LDFLAGS) \
22   -version-info 1:0:1
23
24 noinst_PROGRAMS = \
25  gnunet-hello
26
27 check_PROGRAMS = \
28  test_hello \
29  test_friend_hello
30
31 if ENABLE_TEST_RUN
32 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
33 TESTS = $(check_PROGRAMS)
34 endif
35
36 test_hello_SOURCES = \
37  test_hello.c
38 test_hello_LDADD = \
39  libgnunethello.la \
40  $(top_builddir)/src/util/libgnunetutil.la  
41
42 test_friend_hello_SOURCES = \
43  test_friend_hello.c
44 test_friend_hello_LDADD = \
45  libgnunethello.la \
46  $(top_builddir)/src/util/libgnunetutil.la  
47
48 gnunet_hello_SOURCES = \
49  gnunet-hello.c
50 gnunet_hello_LDADD = \
51  libgnunethello.la \
52  $(top_builddir)/src/util/libgnunetutil.la  
53