document options provided
[oweals/gnunet.git] / src / hello / Makefile.am
1 AM_CPPFLAGS = -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 1:0:1
22
23 noinst_PROGRAMS = \
24  gnunet-hello
25
26 check_PROGRAMS = \
27  test_hello \
28  test_friend_hello
29
30 if ENABLE_TEST_RUN
31 TESTS = $(check_PROGRAMS)
32 endif
33
34 test_hello_SOURCES = \
35  test_hello.c
36 test_hello_LDADD = \
37  $(top_builddir)/src/hello/libgnunethello.la \
38  $(top_builddir)/src/util/libgnunetutil.la  
39
40 test_friend_hello_SOURCES = \
41  test_friend_hello.c
42 test_friend_hello_LDADD = \
43  $(top_builddir)/src/hello/libgnunethello.la \
44  $(top_builddir)/src/util/libgnunetutil.la  
45
46 gnunet_hello_SOURCES = \
47  gnunet-hello.c
48 gnunet_hello_LDADD = \
49  $(top_builddir)/src/hello/libgnunethello.la \
50  $(top_builddir)/src/util/libgnunetutil.la  
51 gnunet_hello_DEPENDENCIES = \
52  libgnunethello.la \
53  $(top_builddir)/src/util/libgnunetutil.la
54