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