0718a9d51cb127939bc8a18d31432db4ef86bcef
[oweals/gnunet.git] / src / nse / 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
13 lib_LTLIBRARIES = libgnunetnse.la
14
15 libgnunetnse_la_SOURCES = \
16   nse_api.c nse.h
17 libgnunetnse_la_LIBADD = \
18   $(top_builddir)/src/util/libgnunetutil.la \
19   $(GN_LIBINTL) $(XLIB)
20 libgnunetnse_la_LDFLAGS = \
21   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
22   -version-info 0:0:0
23
24
25 bin_PROGRAMS = \
26  gnunet-service-nse \
27  nse-profiler
28
29 nse_profiler_SOURCES = \
30  nse-profiler.c         
31 nse_profiler_LDADD = \
32   $(top_builddir)/src/nse/libgnunetnse.la \
33   $(top_builddir)/src/util/libgnunetutil.la \
34   $(top_builddir)/src/testing/libgnunettesting.la
35   $(GN_LIBINTL)
36 nse_profiler_DEPENDENCIES = \
37   libgnunetnse.la                                
38
39 gnunet_service_nse_SOURCES = \
40  gnunet-service-nse.c         
41 gnunet_service_nse_LDADD = \
42   $(top_builddir)/src/nse/libgnunetnse.la \
43   $(top_builddir)/src/util/libgnunetutil.la \
44   $(top_builddir)/src/core/libgnunetcore.la \
45   $(top_builddir)/src/statistics/libgnunetstatistics.la \
46   -lm \
47   $(GN_LIBINTL)
48 gnunet_service_nse_DEPENDENCIES = \
49   libgnunetnse.la                                
50
51 check_PROGRAMS = \
52  test_nse_api \
53  test_nse_multipeer
54
55 if ENABLE_TEST_RUN
56 TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
57 endif
58
59 test_nse_api_SOURCES = \
60  test_nse_api.c
61 test_nse_api_LDADD = \
62   $(top_builddir)/src/nse/libgnunetnse.la \
63   $(top_builddir)/src/util/libgnunetutil.la 
64
65 test_nse_multipeer_SOURCES = \
66  test_nse_multipeer.c
67 test_nse_multipeer_LDADD = \
68   $(top_builddir)/src/nse/libgnunetnse.la \
69   $(top_builddir)/src/util/libgnunetutil.la \
70   $(top_builddir)/src/testing/libgnunettesting.la
71
72 EXTRA_DIST = \
73   test_nse.conf \
74   $(check_SCRIPTS) 
75
76