-fixing #2546
[oweals/gnunet.git] / src / hello / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9   XLIB = -lgcov
10 endif
11
12 lib_LTLIBRARIES = libgnunethello.la
13
14 libgnunethello_la_SOURCES = \
15   hello.c address.c
16 libgnunethello_la_LIBADD = \
17  $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
18  $(LTLIBINTL)
19 libgnunethello_la_LDFLAGS = \
20   $(GN_LIB_LDFLAGS) \
21   -version-info 0:0:0
22
23 noinst_PROGRAMS = \
24  gnunet-hello
25
26 check_PROGRAMS = \
27  test_hello
28
29 if ENABLE_TEST_RUN
30 TESTS = $(check_PROGRAMS)
31 endif
32
33 test_hello_SOURCES = \
34  test_hello.c
35 test_hello_LDADD = \
36  $(top_builddir)/src/hello/libgnunethello.la \
37  $(top_builddir)/src/util/libgnunetutil.la  
38
39
40 gnunet_hello_SOURCES = \
41  gnunet-hello.c
42 gnunet_hello_LDADD = \
43  $(top_builddir)/src/hello/libgnunethello.la \
44  $(top_builddir)/src/util/libgnunetutil.la  
45 gnunet_hello_DEPENDENCIES = \
46  libgnunethello.la \
47  $(top_builddir)/src/util/libgnunetutil.la
48