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