38d64ab90af10331b51ab4f2beeacda18126865e
[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 = -lm \
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 if HAVE_BENCHMARKS
52   MULTIPEER_TEST = test_nse_multipeer
53 endif
54
55 check_PROGRAMS = \
56  test_nse_api \
57  $(MULTIPEER_TEST)
58
59
60 if ENABLE_TEST_RUN
61 TESTS = $(check_PROGRAMS) 
62 endif
63
64 test_nse_api_SOURCES = \
65  test_nse_api.c
66 test_nse_api_LDADD = \
67   $(top_builddir)/src/nse/libgnunetnse.la \
68   $(top_builddir)/src/util/libgnunetutil.la 
69
70 test_nse_multipeer_SOURCES = \
71  test_nse_multipeer.c
72 test_nse_multipeer_LDADD = \
73   $(top_builddir)/src/nse/libgnunetnse.la \
74   $(top_builddir)/src/util/libgnunetutil.la \
75   $(top_builddir)/src/testing/libgnunettesting.la
76
77 EXTRA_DIST = \
78   test_nse.conf 
79
80