Testing changes required to work with new core api. Revert GNUNET_CORE_iterate_peers...
[oweals/gnunet.git] / src / core / 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 = \
14   libgnunetcore.la
15
16 libgnunetcore_la_SOURCES = \
17   core_api.c core.h \
18   core_api_iterate_peers.c
19 libgnunetcore_la_LIBADD = \
20   $(top_builddir)/src/util/libgnunetutil.la \
21   $(GN_LIBINTL) $(XLIB)
22 libgnunetcore_la_LDFLAGS = \
23   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
24   -version-info 0:0:0
25
26
27 bin_PROGRAMS = \
28  gnunet-service-core
29
30 gnunet_service_core_SOURCES = \
31  gnunet-service-core.c 
32 gnunet_service_core_LDADD = \
33   $(top_builddir)/src/hello/libgnunethello.la \
34   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
35   $(top_builddir)/src/statistics/libgnunetstatistics.la \
36   $(top_builddir)/src/transport/libgnunettransport.la \
37   $(top_builddir)/src/util/libgnunetutil.la \
38   $(GN_LIBINTL)
39
40
41 check_PROGRAMS = \
42  test_core_api_start_only \
43  test_core_api \
44  test_core_api_reliability
45
46 if !DISABLE_TEST_RUN
47 TESTS = $(check_PROGRAMS)
48 endif
49
50 test_core_api_SOURCES = \
51  test_core_api.c
52 test_core_api_LDADD = \
53  $(top_builddir)/src/core/libgnunetcore.la \
54  $(top_builddir)/src/transport/libgnunettransport.la \
55  $(top_builddir)/src/util/libgnunetutil.la  
56
57 test_core_api_reliability_SOURCES = \
58  test_core_api_reliability.c
59 test_core_api_reliability_LDADD = \
60  $(top_builddir)/src/core/libgnunetcore.la \
61  $(top_builddir)/src/transport/libgnunettransport.la \
62  $(top_builddir)/src/util/libgnunetutil.la
63
64 test_core_api_start_only_SOURCES = \
65  test_core_api_start_only.c
66 test_core_api_start_only_LDADD = \
67  $(top_builddir)/src/core/libgnunetcore.la \
68  $(top_builddir)/src/util/libgnunetutil.la  
69
70
71 EXTRA_DIST = \
72   test_core_api_data.conf \
73   test_core_api_peer1.conf \
74   test_core_api_peer2.conf 
75