summaryrefslogtreecommitdiff
path: root/src/messenger/Makefile.am
blob: 2bb9ad922e87b30d52878f5061076e55894aa639 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include

if USE_COVERAGE
  AM_CFLAGS = --coverage -O0
  XLIB = -lgcov
endif

pkgcfgdir= $(pkgdatadir)/config.d/

libexecdir= $(pkglibdir)/libexec/

pkgcfg_DATA = \
  messenger.conf

plugindir = $(libdir)/gnunet

AM_CLFAGS = -g

libexec_PROGRAMS = \
 gnunet-service-messenger \
 $(EXP_LIBEXEC)

bin_PROGRAMS = \
 gnunet-messenger

lib_LTLIBRARIES = \
  libgnunetmessenger.la \
  $(EXP_LIB)

libgnunetmessenger_la_SOURCES = \
  messenger_api.c \
  messenger_api_ego.h \
  messenger_api_contact.c messenger_api_contact.h \
  messenger_api_contact_store.c messenger_api_contact_store.h \
  messenger_api_message.c messenger_api_message.h \
  messenger_api_list_tunnels.c messenger_api_list_tunnels.h \
  messenger_api_util.c messenger_api_util.h \
  messenger_api_handle.c messenger_api_handle.h \
  messenger_api_room.c messenger_api_room.h
libgnunetmessenger_la_LIBADD = \
  $(top_builddir)/src/util/libgnunetutil.la \
  $(top_builddir)/src/cadet/libgnunetcadet.la \
  $(top_builddir)/src/identity/libgnunetidentity.la \
  $(XLIB) \
  $(LTLIBINTL)
libgnunetmessenger_la_LDFLAGS = \
  $(GN_LIB_LDFLAGS)  \
  -version-info 0:0:0

gnunet_messenger_SOURCES = \
 gnunet-messenger.c
gnunet_messenger_LDADD = \
 libgnunetmessenger.la \
 $(top_builddir)/src/util/libgnunetutil.la
gnunet_messenger_LDFLAGS = \
  $(GN_LIBINTL)

gnunet_service_messenger_SOURCES = \
  gnunet-service-messenger.c gnunet-service-messenger.h \
  gnunet-service-messenger_service.c gnunet-service-messenger_service.h \
  gnunet-service-messenger_list_handles.c gnunet-service-messenger_list_handles.h \
  gnunet-service-messenger_list_messages.c gnunet-service-messenger_list_messages.h \
  gnunet-service-messenger_member_session.c gnunet-service-messenger_member_session.h \
  gnunet-service-messenger_member.c gnunet-service-messenger_member.h \
  gnunet-service-messenger_member_store.c gnunet-service-messenger_member_store.h \
  gnunet-service-messenger_message_handle.c gnunet-service-messenger_message_handle.h \
  gnunet-service-messenger_message_kind.c gnunet-service-messenger_message_kind.h \
  gnunet-service-messenger_message_recv.c gnunet-service-messenger_message_recv.h \
  gnunet-service-messenger_message_send.c gnunet-service-messenger_message_send.h \
  gnunet-service-messenger_message_store.c gnunet-service-messenger_message_store.h \
  gnunet-service-messenger_operation_store.c gnunet-service-messenger_operation_store.h \
  gnunet-service-messenger_operation.c gnunet-service-messenger_operation.h \
  gnunet-service-messenger_basement.c gnunet-service-messenger_basement.h \
  gnunet-service-messenger_ego_store.c gnunet-service-messenger_ego_store.h \
  gnunet-service-messenger_handle.c gnunet-service-messenger_handle.h \
  gnunet-service-messenger_room.c gnunet-service-messenger_room.h \
  gnunet-service-messenger_tunnel.c gnunet-service-messenger_tunnel.h
gnunet_service_messenger_LDADD = \
  libgnunetmessenger.la \
  $(top_builddir)/src/util/libgnunetutil.la \
  $(top_builddir)/src/cadet/libgnunetcadet.la \
  $(top_builddir)/src/identity/libgnunetidentity.la \
  $(GN_LIBINTL)

check_PROGRAMS = \
  test_messenger_api \
  test_messenger_anonymous \
  test_messenger_sync_client \
  test_messenger_async_client \
  test_messenger_worst_client \
  test_messenger_sync_p2p \
  test_messenger_async_p2p \
  test_messenger_worst_p2p \
  test_messenger_server \
  test_messenger_growth \
  test_messenger_ring \
  test_messenger_adapt

if ENABLE_TEST_RUN
AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
TESTS = \
 $(check_PROGRAMS)
endif

test_messenger_api_SOURCES = \
  test_messenger.c
test_messenger_api_LDADD = \
  libgnunetmessenger.la \
  $(top_builddir)/src/testing/libgnunettesting.la \
  $(top_builddir)/src/util/libgnunetutil.la

test_messenger_anonymous_SOURCES = \
  test_messenger_anonymous.c
test_messenger_anonymous_LDADD = \
  libgnunetmessenger.la \
  $(top_builddir)/src/testing/libgnunettesting.la \
  $(top_builddir)/src/util/libgnunetutil.la

test_messenger_sync_client_SOURCES = \
  test_messenger_sync_client.c \
  testing_messenger_barrier.c testing_messenger_barrier.h \
  testing_messenger_setup.c testing_messenger_setup.h
test_messenger_sync_client_LDADD = \
  libgnunetmessenger.la \
  $(top_builddir)/src/testbed/libgnunettestbed.la \
  $(top_builddir)/src/testing/libgnunettesting.la \
  $(top_builddir)/src/util/libgnunetutil.la
  
test_messenger_async_client_SOURCES = \
  test_messenger_async_client.c \
  testing_messenger_barrier.c testing_messenger_barrier.h \
  testing_messenger_setup.c testing_messenger_setup.h
test_messenger_async_client_LDADD = \
  libgnunetmessenger.la \
  $(top_builddir)/src/testbed/libgnunettestbed.la \
  $(top_builddir)/src/testing/libgnunettesting.la \
  $(top_builddir)/src/util/libgnunetutil.la
  
test_messenger_worst_client_SOURCES = \
  test_messenger_worst_client.c \
  testing_messenger_barrier.c testing_messenger_barrier.h \
  testing_messenger_setup.c testing_messenger_setup.h
test_messenger_worst_client_LDADD = \
  libgnunetmessenger.la \
  $(top_builddir)/src/testbed/libgnunettestbed.la \
  $(top_builddir)/src/testing/libgnunettesting.la \
  $(top_builddir)/src/util/libgnunetutil.la

test_messenger_sync_p2p_SOURCES = \
  test_messenger_sync_p2p.c \
  testing_messenger_barrier.c testing_messenger_barrier.h \
  testing_messenger_setup.c testing_messenger_setup.h
test_messenger_sync_p2p_LDADD = \
  libgnunetmessenger.la \
  $(top_builddir)/src/testbed/libgnunettestbed.la \
  $(top_builddir)/src/testing/libgnunettesting.la \
  $(top_builddir)/src/util/libgnunetutil.la
  
test_messenger_async_p2p_SOURCES = \
  test_messenger_async_p2p.c \
  testing_messenger_barrier.c testing_messenger_barrier.h \
  testing_messenger_setup.c testing_messenger_setup.h
test_messenger_async_p2p_LDADD = \
  libgnunetmessenger.la \
  $(top_builddir)/src/testbed/libgnunettestbed.la \
  $(top_builddir)/src/testing/libgnunettesting.la \
  $(top_builddir)/src/util/libgnunetutil.la

test_messenger_worst_p2p_SOURCES = \
  test_messenger_worst_p2p.c \
  testing_messenger_barrier.c testing_messenger_barrier.h \
  testing_messenger_setup.c testing_messenger_setup.h
test_messenger_worst_p2p_LDADD = \
  libgnunetmessenger.la \
  $(top_builddir)/src/testbed/libgnunettestbed.la \
  $(top_builddir)/src/testing/libgnunettesting.la \
  $(top_builddir)/src/util/libgnunetutil.la
  
test_messenger_server_SOURCES = \
  test_messenger_server.c \
  testing_messenger_barrier.c testing_messenger_barrier.h \
  testing_messenger_setup.c testing_messenger_setup.h
test_messenger_server_LDADD = \
  libgnunetmessenger.la \
  $(top_builddir)/src/testbed/libgnunettestbed.la \
  $(top_builddir)/src/testing/libgnunettesting.la \
  $(top_builddir)/src/util/libgnunetutil.la
  
test_messenger_growth_SOURCES = \
  test_messenger_growth.c \
  testing_messenger_barrier.c testing_messenger_barrier.h \
  testing_messenger_setup.c testing_messenger_setup.h
test_messenger_growth_LDADD = \
  libgnunetmessenger.la \
  $(top_builddir)/src/testbed/libgnunettestbed.la \
  $(top_builddir)/src/testing/libgnunettesting.la \
  $(top_builddir)/src/util/libgnunetutil.la
  
test_messenger_ring_SOURCES = \
  test_messenger_ring.c \
  testing_messenger_barrier.c testing_messenger_barrier.h \
  testing_messenger_setup.c testing_messenger_setup.h
test_messenger_ring_LDADD = \
  libgnunetmessenger.la \
  $(top_builddir)/src/testbed/libgnunettestbed.la \
  $(top_builddir)/src/testing/libgnunettesting.la \
  $(top_builddir)/src/util/libgnunetutil.la
  
test_messenger_adapt_SOURCES = \
  test_messenger_adapt.c \
  testing_messenger_barrier.c testing_messenger_barrier.h \
  testing_messenger_setup.c testing_messenger_setup.h
test_messenger_adapt_LDADD = \
  libgnunetmessenger.la \
  $(top_builddir)/src/testbed/libgnunettestbed.la \
  $(top_builddir)/src/testing/libgnunettesting.la \
  $(top_builddir)/src/util/libgnunetutil.la

EXTRA_DIST = \
  test_messenger_api.conf