-do not send previous round messages if we are just going online and did not setup...
[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 dist_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/testing/libgnunettesting.la \
42   $(GN_LIBINTL)
43 gnunet_nse_profiler_DEPENDENCIES = \
44   libgnunetnse.la                                
45
46 gnunet_service_nse_SOURCES = \
47  gnunet-service-nse.c         
48 gnunet_service_nse_LDADD = \
49   $(top_builddir)/src/nse/libgnunetnse.la \
50   $(top_builddir)/src/util/libgnunetutil.la \
51   $(top_builddir)/src/core/libgnunetcore.la \
52   $(top_builddir)/src/statistics/libgnunetstatistics.la \
53   -lm \
54   $(GN_LIBINTL)
55 gnunet_service_nse_DEPENDENCIES = \
56   libgnunetnse.la                                
57
58 if HAVE_BENCHMARKS
59   MULTIPEER_TEST = test_nse_multipeer
60 endif
61
62 check_PROGRAMS = \
63  test_nse_api \
64  $(MULTIPEER_TEST)
65
66
67 if ENABLE_TEST_RUN
68 TESTS = $(check_PROGRAMS) 
69 endif
70
71 test_nse_api_SOURCES = \
72  test_nse_api.c
73 test_nse_api_LDADD = \
74   $(top_builddir)/src/nse/libgnunetnse.la \
75   $(top_builddir)/src/util/libgnunetutil.la 
76
77 test_nse_multipeer_SOURCES = \
78  test_nse_multipeer.c
79 test_nse_multipeer_LDADD = \
80   $(top_builddir)/src/nse/libgnunetnse.la \
81   $(top_builddir)/src/util/libgnunetutil.la \
82   $(top_builddir)/src/testing/libgnunettesting.la \
83   -lm
84
85 EXTRA_DIST = \
86   test_nse.conf \
87   nse_profiler_test.conf
88
89