-verbose is independent of logging
[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 pkgcfgdir= $(pkgdatadir)/config.d/
13
14 pkgcfg_DATA = \
15   nse.conf
16
17
18 lib_LTLIBRARIES = libgnunetnse.la
19
20 libgnunetnse_la_SOURCES = \
21   nse_api.c nse.h
22 libgnunetnse_la_LIBADD = \
23   $(top_builddir)/src/util/libgnunetutil.la \
24   $(GN_LIBINTL) $(XLIB)
25 libgnunetnse_la_LDFLAGS = \
26   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
27   -version-info 0:0:0
28
29
30 bin_PROGRAMS = \
31  gnunet-service-nse 
32
33 noinst_PROGRAMS = \
34  gnunet-nse-profiler
35
36 gnunet_nse_profiler_SOURCES = \
37  gnunet-nse-profiler.c         
38 gnunet_nse_profiler_LDADD = -lm \
39   $(top_builddir)/src/nse/libgnunetnse.la \
40   $(top_builddir)/src/util/libgnunetutil.la \
41   $(top_builddir)/src/statistics/libgnunetstatistics.la \
42   $(top_builddir)/src/testing/libgnunettesting.la \
43   $(GN_LIBINTL)
44 gnunet_nse_profiler_DEPENDENCIES = \
45   libgnunetnse.la                                
46
47 gnunet_service_nse_SOURCES = \
48  gnunet-service-nse.c         
49 gnunet_service_nse_LDADD = \
50   $(top_builddir)/src/nse/libgnunetnse.la \
51   $(top_builddir)/src/util/libgnunetutil.la \
52   $(top_builddir)/src/core/libgnunetcore.la \
53   $(top_builddir)/src/statistics/libgnunetstatistics.la \
54   -lm \
55   $(GN_LIBINTL)
56 gnunet_service_nse_DEPENDENCIES = \
57   libgnunetnse.la                                
58
59 if HAVE_BENCHMARKS
60   MULTIPEER_TEST = test_nse_multipeer
61 endif
62
63 check_PROGRAMS = \
64  test_nse_api \
65  $(MULTIPEER_TEST)
66
67
68 if ENABLE_TEST_RUN
69 TESTS = $(check_PROGRAMS) 
70 endif
71
72 test_nse_api_SOURCES = \
73  test_nse_api.c
74 test_nse_api_LDADD = \
75   $(top_builddir)/src/nse/libgnunetnse.la \
76   $(top_builddir)/src/util/libgnunetutil.la 
77
78 test_nse_multipeer_SOURCES = \
79  test_nse_multipeer.c
80 test_nse_multipeer_LDADD = \
81   $(top_builddir)/src/nse/libgnunetnse.la \
82   $(top_builddir)/src/util/libgnunetutil.la \
83   $(top_builddir)/src/testing/libgnunettesting.la \
84   -lm
85
86 EXTRA_DIST = \
87   test_nse.conf \
88   nse_profiler_test.conf
89
90