-large cleanup and bugfixes
[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 libgnunethello_la_LDFLAGS = \
19   $(GN_LIB_LDFLAGS) \
20   -version-info 0:0:0
21
22 noinst_PROGRAMS = \
23  gnunet-hello
24
25 check_PROGRAMS = \
26  test_hello
27
28 if ENABLE_TEST_RUN
29 TESTS = $(check_PROGRAMS)
30 endif
31
32 test_hello_SOURCES = \
33  test_hello.c
34 test_hello_LDADD = \
35  $(top_builddir)/src/hello/libgnunethello.la \
36  $(top_builddir)/src/util/libgnunetutil.la  
37
38
39 gnunet_hello_SOURCES = \
40  gnunet-hello.c
41 gnunet_hello_LDADD = \
42  $(top_builddir)/src/hello/libgnunethello.la \
43  $(top_builddir)/src/util/libgnunetutil.la  
44