fe86040dcae1aed692f2919cdd4ff39e0862d6d2
[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 check_PROGRAMS = \
41  test_core_api_start_only \
42  test_core_api \
43  test_core_api_preferences \
44  test_core_api_reliability \
45  test_core_quota_compliance_symmetric \
46  test_core_quota_compliance_asymmetric_send_limited \
47  test_core_quota_compliance_asymmetric_recv_limited \
48  test_core_api_send_to_self
49
50 if !DISABLE_TEST_RUN
51 TESTS = $(check_PROGRAMS)
52 endif
53
54 test_core_api_SOURCES = \
55  test_core_api.c
56 test_core_api_LDADD = \
57  $(top_builddir)/src/core/libgnunetcore.la \
58  $(top_builddir)/src/transport/libgnunettransport.la \
59  $(top_builddir)/src/util/libgnunetutil.la  
60
61 test_core_api_reliability_SOURCES = \
62  test_core_api_reliability.c
63 test_core_api_reliability_LDADD = \
64  $(top_builddir)/src/core/libgnunetcore.la \
65  $(top_builddir)/src/transport/libgnunettransport.la \
66  $(top_builddir)/src/util/libgnunetutil.la
67
68 test_core_api_preferences_SOURCES = \
69  test_core_api_preferences.c
70 test_core_api_preferences_LDADD = \
71  $(top_builddir)/src/core/libgnunetcore.la \
72  $(top_builddir)/src/transport/libgnunettransport.la \
73  $(top_builddir)/src/util/libgnunetutil.la
74
75 test_core_api_send_to_self_SOURCES = \
76  test_core_api_send_to_self.c
77 test_core_api_send_to_self_LDADD = \
78  $(top_builddir)/src/core/libgnunetcore.la \
79  $(top_builddir)/src/transport/libgnunettransport.la \
80  $(top_builddir)/src/util/libgnunetutil.la
81
82 test_core_api_start_only_SOURCES = \
83  test_core_api_start_only.c
84 test_core_api_start_only_LDADD = \
85  $(top_builddir)/src/core/libgnunetcore.la \
86  $(top_builddir)/src/util/libgnunetutil.la
87
88 test_core_quota_compliance_symmetric_SOURCES = \
89  test_core_quota_compliance.c
90 test_core_quota_compliance_symmetric_LDADD = \
91  $(top_builddir)/src/core/libgnunetcore.la \
92  $(top_builddir)/src/transport/libgnunettransport.la \
93  $(top_builddir)/src/util/libgnunetutil.la \
94  $(top_builddir)/src/statistics/libgnunetstatistics.la
95
96 test_core_quota_compliance_asymmetric_send_limited_SOURCES = \
97  test_core_quota_compliance.c
98 test_core_quota_compliance_asymmetric_send_limited_LDADD = \
99  $(top_builddir)/src/core/libgnunetcore.la \
100  $(top_builddir)/src/transport/libgnunettransport.la \
101  $(top_builddir)/src/util/libgnunetutil.la \
102  $(top_builddir)/src/statistics/libgnunetstatistics.la
103
104 test_core_quota_compliance_asymmetric_recv_limited_SOURCES = \
105  test_core_quota_compliance.c
106 test_core_quota_compliance_asymmetric_recv_limited_LDADD = \
107  $(top_builddir)/src/core/libgnunetcore.la \
108  $(top_builddir)/src/transport/libgnunettransport.la \
109  $(top_builddir)/src/util/libgnunetutil.la \
110  $(top_builddir)/src/statistics/libgnunetstatistics.la
111
112 EXTRA_DIST = \
113   test_core_api_data.conf \
114   test_core_api_peer1.conf \
115   test_core_api_peer2.conf 
116