lm
[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
28 noinst_PROGRAMS = \
29  nse-profiler
30
31 nse_profiler_SOURCES = \
32  nse-profiler.c         
33 nse_profiler_LDADD = -lm \
34   $(top_builddir)/src/nse/libgnunetnse.la \
35   $(top_builddir)/src/util/libgnunetutil.la \
36   $(top_builddir)/src/testing/libgnunettesting.la \
37   $(GN_LIBINTL)
38 nse_profiler_DEPENDENCIES = \
39   libgnunetnse.la                                
40
41 gnunet_service_nse_SOURCES = \
42  gnunet-service-nse.c         
43 gnunet_service_nse_LDADD = \
44   $(top_builddir)/src/nse/libgnunetnse.la \
45   $(top_builddir)/src/util/libgnunetutil.la \
46   $(top_builddir)/src/core/libgnunetcore.la \
47   $(top_builddir)/src/statistics/libgnunetstatistics.la \
48   -lm \
49   $(GN_LIBINTL)
50 gnunet_service_nse_DEPENDENCIES = \
51   libgnunetnse.la                                
52
53 if HAVE_BENCHMARKS
54   MULTIPEER_TEST = test_nse_multipeer
55 endif
56
57 check_PROGRAMS = \
58  test_nse_api \
59  $(MULTIPEER_TEST)
60
61
62 if ENABLE_TEST_RUN
63 TESTS = $(check_PROGRAMS) 
64 endif
65
66 test_nse_api_SOURCES = \
67  test_nse_api.c
68 test_nse_api_LDADD = \
69   $(top_builddir)/src/nse/libgnunetnse.la \
70   $(top_builddir)/src/util/libgnunetutil.la 
71
72 test_nse_multipeer_SOURCES = \
73  test_nse_multipeer.c
74 test_nse_multipeer_LDADD = \
75   $(top_builddir)/src/nse/libgnunetnse.la \
76   $(top_builddir)/src/util/libgnunetutil.la \
77   $(top_builddir)/src/testing/libgnunettesting.la
78
79 EXTRA_DIST = \
80   test_nse.conf 
81
82