forked from alanxz/rabbitmq-c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
401 lines (333 loc) · 10.1 KB
/
Makefile.am
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
# vim:set ts=2 sw=2 sts=2 noet:
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = -I$(top_srcdir)/librabbitmq
lib_LTLIBRARIES = librabbitmq/librabbitmq.la
librabbitmq_librabbitmq_la_CFLAGS = \
$(SSL_CFLAGS) \
$(AM_CFLAGS)
librabbitmq_librabbitmq_la_LDFLAGS = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
$(NO_UNDEFINED) \
$(SSL_LIBS)
include_HEADERS = \
librabbitmq/amqp.h \
librabbitmq/amqp_framing.h \
librabbitmq/amqp_tcp_socket.h
if SSL
include_HEADERS += librabbitmq/amqp_ssl_socket.h
endif
librabbitmq_librabbitmq_la_SOURCES = \
librabbitmq/amqp_api.c \
librabbitmq/amqp_connection.c \
librabbitmq/amqp_consumer.c \
librabbitmq/amqp_framing.c \
librabbitmq/amqp_mem.c \
librabbitmq/amqp_private.h \
librabbitmq/amqp_socket.c \
librabbitmq/amqp_socket.h \
librabbitmq/amqp_table.c \
librabbitmq/amqp_table.h \
librabbitmq/amqp_tcp_socket.c \
librabbitmq/amqp_tcp_socket.h \
librabbitmq/amqp_time.c \
librabbitmq/amqp_time.h \
librabbitmq/amqp_url.c
if SSL_OPENSSL
librabbitmq_librabbitmq_la_SOURCES += \
librabbitmq/amqp_hostcheck.c \
librabbitmq/amqp_hostcheck.h \
librabbitmq/amqp_openssl.c \
librabbitmq/amqp_openssl_bio.c \
librabbitmq/amqp_openssl_bio.h \
librabbitmq/amqp_openssl_hostname_validation.c \
librabbitmq/amqp_openssl_hostname_validation.h
librabbitmq_librabbitmq_la_LDFLAGS += -pthread
if OS_APPLE
librabbitmq_librabbitmq_la_CFLAGS += -Wno-deprecated-declarations
endif
endif
if OS_UNIX
librabbitmq_librabbitmq_la_SOURCES += librabbitmq/unix/threads.h
librabbitmq_librabbitmq_la_CFLAGS += -I$(top_srcdir)/librabbitmq/unix
endif
if OS_WIN32
librabbitmq_librabbitmq_la_SOURCES += librabbitmq/win32/threads.h
librabbitmq_librabbitmq_la_CFLAGS += \
-I$(top_srcdir)/librabbitmq/win32 \
-I$(top_srcdir)/librabbitmq/win32/msinttypes
endif
check_PROGRAMS = \
tests/test_tables \
tests/test_parse_url \
tests/test_hostcheck \
tests/test_status_enum \
tests/test_sasl_mechanism \
tests/test_merge_capabilities
TESTS = $(check_PROGRAMS)
tests_test_tables_SOURCES = tests/test_tables.c
tests_test_tables_LDADD = librabbitmq/librabbitmq.a
tests_test_parse_url_SOURCES = tests/test_parse_url.c
tests_test_parse_url_LDADD = librabbitmq/librabbitmq.a
tests_test_hostcheck_SOURCES = \
tests/test_hostcheck.c \
librabbitmq/amqp_hostcheck.c
tests_test_status_enum_SOURCES = tests/test_status_enum.c
tests_test_status_enum_LDADD = librabbitmq/librabbitmq.a
tests_test_sasl_mechanism_SOURCES = tests/test_sasl_mechanism.c
tests_test_sasl_mechanism_LDADD = librabbitmq/librabbitmq.a
tests_test_merge_capabilities_SOURCES = tests/test_merge_capabilities.c
tests_test_merge_capabilities_LDADD = librabbitmq/librabbitmq.a
noinst_LTLIBRARIES =
if EXAMPLES
noinst_LTLIBRARIES += examples/libutils.la
examples_libutils_la_SOURCES = \
examples/utils.c \
examples/utils.h
examples_libutils_la_CFLAGS = $(AM_CFLAGS)
if OS_UNIX
examples_libutils_la_SOURCES += examples/unix/platform_utils.c
endif
if OS_WIN32
examples_libutils_la_SOURCES += examples/win32/platform_utils.c
examples_libutils_la_CFLAGS += -I$(top_srcdir)/tools/win32/msinttypes
endif
noinst_PROGRAMS = \
examples/amqp_bind \
examples/amqp_consumer \
examples/amqp_connect_timeout \
examples/amqp_exchange_declare \
examples/amqp_listen \
examples/amqp_listenq \
examples/amqp_producer \
examples/amqp_rpc_sendstring_client \
examples/amqp_sendstring \
examples/amqp_unbind
examples_amqp_sendstring_SOURCES = examples/amqp_sendstring.c
examples_amqp_sendstring_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
examples_amqp_exchange_declare_SOURCES = examples/amqp_exchange_declare.c
examples_amqp_exchange_declare_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
examples_amqp_listen_SOURCES = examples/amqp_listen.c
examples_amqp_listen_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
examples_amqp_producer_SOURCES = examples/amqp_producer.c
examples_amqp_producer_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
examples_amqp_consumer_SOURCES = examples/amqp_consumer.c
examples_amqp_consumer_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
examples_amqp_connect_timeout_SOURCES = examples/amqp_connect_timeout.c
examples_amqp_connect_timeout_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
examples_amqp_unbind_SOURCES = examples/amqp_unbind.c
examples_amqp_unbind_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
examples_amqp_bind_SOURCES = examples/amqp_bind.c
examples_amqp_bind_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
examples_amqp_listenq_SOURCES = examples/amqp_listenq.c
examples_amqp_listenq_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
examples_amqp_rpc_sendstring_client_SOURCES = \
examples/amqp_rpc_sendstring_client.c
examples_amqp_rpc_sendstring_client_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
if SSL
noinst_PROGRAMS += \
examples/amqps_bind \
examples/amqps_connect_timeout \
examples/amqps_consumer \
examples/amqps_exchange_declare \
examples/amqps_listen \
examples/amqps_listenq \
examples/amqps_producer \
examples/amqps_sendstring \
examples/amqps_unbind
examples_amqps_bind_SOURCES = examples/amqps_bind.c
examples_amqps_bind_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
examples_amqps_connect_timeout_SOURCES = examples/amqps_connect_timeout.c
examples_amqps_connect_timeout_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
examples_amqps_consumer_SOURCES = examples/amqps_consumer.c
examples_amqps_consumer_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
examples_amqps_exchange_declare_SOURCES = examples/amqps_exchange_declare.c
examples_amqps_exchange_declare_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
examples_amqps_listen_SOURCES = examples/amqps_listen.c
examples_amqps_listen_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
examples_amqps_listenq_SOURCES = examples/amqps_listenq.c
examples_amqps_listenq_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
examples_amqps_producer_SOURCES = examples/amqps_producer.c
examples_amqps_producer_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
examples_amqps_sendstring_SOURCES = examples/amqps_sendstring.c
examples_amqps_sendstring_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
examples_amqps_unbind_SOURCES = examples/amqps_unbind.c
examples_amqps_unbind_LDADD = \
examples/libutils.la \
librabbitmq/librabbitmq.la
endif
endif
if TOOLS
noinst_LTLIBRARIES += tools/libcommon.la
tools_libcommon_la_SOURCES = \
tools/common.c \
tools/common.h
tools_libcommon_la_CFLAGS = \
$(AM_CFLAGS) \
-I$(top_srcdir)/tools
tools_platform_CFLAGS = $(AM_CFLAGS)
if OS_UNIX
tools_libcommon_la_SOURCES += \
tools/unix/process.c \
tools/unix/process.h
tools_platform_CFLAGS += -I$(top_srcdir)/tools/unix
endif
if OS_WIN32
tools_libcommon_la_SOURCES += \
tools/win32/compat.c \
tools/win32/compat.h \
tools/win32/process.c \
tools/win32/process.h
tools_platform_CFLAGS += \
-I$(top_srcdir)/tools/win32 \
-I$(top_srcdir)/tools/win32/msinttypes
endif
bin_PROGRAMS = \
tools/amqp-consume \
tools/amqp-declare-queue \
tools/amqp-delete-queue \
tools/amqp-get \
tools/amqp-publish
tools_amqp_publish_SOURCES = tools/publish.c
tools_amqp_publish_CFLAGS = \
$(AM_CFLAGS) \
$(POPT_CFLAGS) \
$(tools_platform_CFLAGS) \
-I$(top_srcdir)/tools
tools_amqp_publish_LDADD = \
$(POPT_LIBS) \
tools/libcommon.la \
librabbitmq/librabbitmq.la
tools_amqp_get_SOURCES = tools/get.c
tools_amqp_get_CFLAGS = \
$(AM_CFLAGS) \
$(POPT_CFLAGS) \
$(tools_platform_CFLAGS) \
-I$(top_srcdir)/tools
tools_amqp_get_LDADD = \
$(POPT_LIBS) \
tools/libcommon.la \
librabbitmq/librabbitmq.la
tools_amqp_consume_SOURCES = tools/consume.c
tools_amqp_consume_CFLAGS = \
$(AM_CFLAGS) \
$(POPT_CFLAGS) \
$(tools_platform_CFLAGS) \
-I$(top_srcdir)/tools
tools_amqp_consume_LDADD = \
$(POPT_LIBS) \
tools/libcommon.la \
librabbitmq/librabbitmq.la
tools_amqp_declare_queue_SOURCES = tools/declare_queue.c
tools_amqp_declare_queue_CFLAGS = \
$(AM_CFLAGS) \
$(POPT_CFLAGS) \
$(tools_platform_CFLAGS) \
-I$(top_srcdir)/tools
tools_amqp_declare_queue_LDADD = \
$(POPT_LIBS) \
tools/libcommon.la \
librabbitmq/librabbitmq.la
tools_amqp_delete_queue_SOURCES = tools/delete_queue.c
tools_amqp_delete_queue_CFLAGS = \
$(AM_CFLAGS) \
$(POPT_CFLAGS) \
$(tools_platform_CFLAGS) \
-I$(top_srcdir)/tools
tools_amqp_delete_queue_LDADD = \
$(POPT_LIBS) \
tools/libcommon.la \
librabbitmq/librabbitmq.la
if DOCS
man_MANS = \
$(top_builddir)/tools/doc/amqp-publish.1 \
$(top_builddir)/tools/doc/amqp-consume.1 \
$(top_builddir)/tools/doc/amqp-get.1 \
$(top_builddir)/tools/doc/amqp-declare-queue.1 \
$(top_builddir)/tools/doc/amqp-delete-queue.1 \
$(top_builddir)/tools/doc/librabbitmq-tools.7
# xmlto's --searchpath doesn't get passed through to xmllint, so we disable
# xmllint validation with --skip-validation for the benefit of build/source
# separation as required by distcheck, debian packaging etc.
XMLTO_FLAGS = \
--skip-validation \
--searchpath $(abs_top_builddir)/tools/doc
%.1: %.xml $(top_builddir)/tools/doc/man-date.ent
$(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) -o $(top_builddir)/tools/doc man $<
%.7: %.xml $(top_builddir)/tools/doc/man-date.ent
$(AM_V_GEN)$(XMLTO) $(XMLTO_FLAGS) -o $(top_builddir)/tools/doc man $<
$(top_builddir)/tools/doc/man-date.ent:
$(AM_V_at)$(MKDIR_P) $(top_builddir)/tools/doc
$(AM_V_GEN)date +'%Y-%m-%d' > $@
endif # DOCS
endif # TOOLS
EXTRA_DIST = \
AUTHORS \
CMakeLists.txt \
CONTRIBUTING.md \
ChangeLog.md \
LICENSE-MIT \
README.md \
THANKS \
TODO \
cmake \
codegen \
docs \
examples/CMakeLists.txt \
librabbitmq/CMakeLists.txt \
librabbitmq/codegen.py \
librabbitmq/win32 \
tests/CMakeLists.txt \
tests/test_tables.expected \
tests/win32 \
tools/CMakeLists.txt \
tools/doc/amqp-consume.xml \
tools/doc/amqp-declare-queue.xml \
tools/doc/amqp-delete-queue.xml \
tools/doc/amqp-get.xml \
tools/doc/amqp-publish.xml \
tools/doc/librabbitmq-tools.xml
MOSTLYCLEANFILES = \
$(man_MANS) \
$(top_builddir)/tools/doc/man-date.ent
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = librabbitmq.pc
clean-local:
-$(MAKE) -C codegen clean
distclean-local:
-$(MAKE) -C codegen distclean