65883d5377005ae044f4ea780c68212013391168
[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  gnunet-core-list-connections
30
31 gnunet_service_core_SOURCES = \
32  gnunet-service-core.c 
33 gnunet_service_core_LDADD = \
34   $(top_builddir)/src/hello/libgnunethello.la \
35   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
36   $(top_builddir)/src/statistics/libgnunetstatistics.la \
37   $(top_builddir)/src/transport/libgnunettransport.la \
38   $(top_builddir)/src/util/libgnunetutil.la \
39   $(GN_LIBINTL) -lz
40
41 gnunet_service_core_new_SOURCES = \
42  gnunet-service-core-new.c gnunet-service-core.h \
43  gnunet-service-core_clients.c gnunet-service-core_clients.h \
44  gnunet-service-core_neighbours.c gnunet-service-core_neighbours.h \
45  gnunet-service-core_kx.c gnunet-service-core_kx.h \
46  gnunet-service-core_sessions.c gnunet-service-core_sessions.h \
47  gnunet-service-core_typemap.c gnunet-service-core_typemap.h
48 gnunet_service_core_new_LDADD = \
49   $(top_builddir)/src/hello/libgnunethello.la \
50   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
51   $(top_builddir)/src/statistics/libgnunetstatistics.la \
52   $(top_builddir)/src/transport/libgnunettransport.la \
53   $(top_builddir)/src/util/libgnunetutil.la \
54   $(GN_LIBINTL) -lz
55
56
57 gnunet_core_list_connections_SOURCES = \
58  gnunet-core-list-connections.c         
59 gnunet_core_list_connections_LDADD = \
60   $(top_builddir)/src/core/libgnunetcore.la \
61   $(top_builddir)/src/transport/libgnunettransport.la \
62   $(top_builddir)/src/hello/libgnunethello.la \
63   $(top_builddir)/src/util/libgnunetutil.la
64 gnunet_core_list_connections_DEPENDENCIES = \
65   libgnunetcore.la
66
67 check_PROGRAMS = \
68  test_core_api_start_only \
69  test_core_api \
70  test_core_api_preferences \
71  test_core_api_reliability \
72  test_core_quota_compliance_symmetric \
73  test_core_quota_compliance_asymmetric_send_limited \
74  test_core_quota_compliance_asymmetric_recv_limited \
75  test_core_api_send_to_self
76
77 if ENABLE_TEST_RUN
78 TESTS = $(check_PROGRAMS)
79 endif
80
81 test_core_api_SOURCES = \
82  test_core_api.c
83 test_core_api_LDADD = \
84  $(top_builddir)/src/core/libgnunetcore.la \
85  $(top_builddir)/src/transport/libgnunettransport.la \
86  $(top_builddir)/src/util/libgnunetutil.la  
87
88 test_core_api_reliability_SOURCES = \
89  test_core_api_reliability.c
90 test_core_api_reliability_LDADD = \
91  $(top_builddir)/src/core/libgnunetcore.la \
92  $(top_builddir)/src/transport/libgnunettransport.la \
93  $(top_builddir)/src/util/libgnunetutil.la
94
95 test_core_api_preferences_SOURCES = \
96  test_core_api_preferences.c
97 test_core_api_preferences_LDADD = \
98  $(top_builddir)/src/core/libgnunetcore.la \
99  $(top_builddir)/src/transport/libgnunettransport.la \
100  $(top_builddir)/src/util/libgnunetutil.la
101
102 test_core_api_send_to_self_SOURCES = \
103  test_core_api_send_to_self.c
104 test_core_api_send_to_self_LDADD = \
105  $(top_builddir)/src/core/libgnunetcore.la \
106  $(top_builddir)/src/transport/libgnunettransport.la \
107  $(top_builddir)/src/util/libgnunetutil.la
108
109 test_core_api_start_only_SOURCES = \
110  test_core_api_start_only.c
111 test_core_api_start_only_LDADD = \
112  $(top_builddir)/src/core/libgnunetcore.la \
113  $(top_builddir)/src/util/libgnunetutil.la
114
115 test_core_quota_compliance_symmetric_SOURCES = \
116  test_core_quota_compliance.c
117 test_core_quota_compliance_symmetric_LDADD = \
118  $(top_builddir)/src/core/libgnunetcore.la \
119  $(top_builddir)/src/transport/libgnunettransport.la \
120  $(top_builddir)/src/util/libgnunetutil.la \
121  $(top_builddir)/src/statistics/libgnunetstatistics.la
122
123 test_core_quota_compliance_asymmetric_send_limited_SOURCES = \
124  test_core_quota_compliance.c
125 test_core_quota_compliance_asymmetric_send_limited_LDADD = \
126  $(top_builddir)/src/core/libgnunetcore.la \
127  $(top_builddir)/src/transport/libgnunettransport.la \
128  $(top_builddir)/src/util/libgnunetutil.la \
129  $(top_builddir)/src/statistics/libgnunetstatistics.la
130
131 test_core_quota_compliance_asymmetric_recv_limited_SOURCES = \
132  test_core_quota_compliance.c
133 test_core_quota_compliance_asymmetric_recv_limited_LDADD = \
134  $(top_builddir)/src/core/libgnunetcore.la \
135  $(top_builddir)/src/transport/libgnunettransport.la \
136  $(top_builddir)/src/util/libgnunetutil.la \
137  $(top_builddir)/src/statistics/libgnunetstatistics.la
138
139 EXTRA_DIST = \
140   test_core_defaults.conf \
141   test_core_api_data.conf \
142   test_core_api_peer1.conf \
143   test_core_api_peer2.conf \
144   test_core_api_send_to_self.conf \
145   test_core_quota_asymmetric_recv_limited_peer1.conf \
146   test_core_quota_asymmetric_recv_limited_peer2.conf \
147   test_core_quota_asymmetric_send_limited_peer1.conf \
148   test_core_quota_asymmetric_send_limited_peer2.conf \
149   test_core_quota_asymmetric_send_limit_peer1.conf \
150   test_core_quota_asymmetric_send_limit_peer2.conf \
151   test_core_quota_peer1.conf \
152   test_core_quota_peer2.conf