forked from ofiwg/libfabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
476 lines (436 loc) · 14.4 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
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
# Makefile.am for libfabric
AM_CPPFLAGS = \
-I$(srcdir)/include \
-D_GNU_SOURCE \
-DSYSCONFDIR=\"$(sysconfdir)\" \
-DRDMADIR=\"@rdmadir@\" \
-DPROVDLDIR=\"$(pkglibdir)\"
lib_LTLIBRARIES = src/libfabric.la
pkglib_LTLIBRARIES = $(DL_PROVIDERS)
ACLOCAL_AMFLAGS = -I config
AM_CFLAGS = -g -Wall
if HAVE_LD_VERSION_SCRIPT
libfabric_version_script = -Wl,--version-script=$(srcdir)/libfabric.map
else !HAVE_LD_VERSION_SCRIPT
libfabric_version_script =
endif !HAVE_LD_VERSION_SCRIPT
rdmaincludedir = $(includedir)/rdma
rdmainclude_HEADERS =
# internal utility functions shared by in-tree providers:
common_srcs = \
src/common.c \
src/enosys.c
# ensure dl-built providers link back to libfabric
linkback = $(top_builddir)/src/libfabric.la
src_libfabric_la_SOURCES = \
include/fi.h \
include/fi_enosys.h \
include/fi_indexer.h \
include/fi_list.h \
include/fi_log.h \
include/fi_rbuf.h \
include/prov.h \
src/fabric.c \
src/fi_tostr.c \
src/log.c \
$(common_srcs)
if MACOS
src_libfabric_la_SOURCES += src/osx/osd.c
src_libfabric_la_SOURCES += include/osx/osd.h
endif
if LINUX
src_libfabric_la_SOURCES += include/linux/osd.h
endif
src_libfabric_la_CPPFLAGS = $(AM_CPPFLAGS)
src_libfabric_la_LDFLAGS =
src_libfabric_la_LIBADD =
if HAVE_SOCKETS
_sockets_files = \
prov/sockets/src/sock.h \
prov/sockets/src/sock_av.c \
prov/sockets/src/sock_dom.c \
prov/sockets/src/sock_eq.c \
prov/sockets/src/sock_cq.c \
prov/sockets/src/sock_cntr.c \
prov/sockets/src/sock_poll.c \
prov/sockets/src/sock_wait.c \
prov/sockets/src/sock_ep_rdm.c \
prov/sockets/src/sock_ep_dgram.c \
prov/sockets/src/sock_ep_msg.c \
prov/sockets/src/sock_fabric.c \
prov/sockets/src/sock_ep.c \
prov/sockets/src/sock_ctx.c \
prov/sockets/src/sock_rx_entry.c \
prov/sockets/src/sock_progress.c \
prov/sockets/src/sock_comm.c \
prov/sockets/src/sock_conn.c \
prov/sockets/src/sock_msg.c \
prov/sockets/src/sock_rma.c \
prov/sockets/src/sock_atomic.c \
prov/sockets/src/sock_util.h \
prov/sockets/src/indexer.c
if HAVE_SOCKETS_DL
pkglib_LTLIBRARIES += libsockets-fi.la
libsockets_fi_la_SOURCES = $(_sockets_files) $(common_srcs)
libsockets_fi_la_LIBADD = $(linkback) $(sockets_shm_LIBS)
libsockets_fi_la_LDFLAGS = -module -avoid-version -shared -export-dynamic
libsockets_fi_la_DEPENDENCIES = $(linkback)
else !HAVE_SOCKETS_DL
src_libfabric_la_SOURCES += $(_sockets_files)
src_libfabric_la_LIBADD += $(sockets_shm_LIBS)
endif !HAVE_SOCKETS_DL
endif HAVE_SOCKETS
if HAVE_VERBS
_verbs_files = prov/verbs/src/fi_verbs.c
if HAVE_VERBS_DL
pkglib_LTLIBRARIES += libverbs-fi.la
libverbs_fi_la_SOURCES = $(_verbs_files) $(common_srcs)
# Technically, verbs_ibverbs_CPPFLAGS and verbs_rdmacm_CPPFLAGS could
# be different, but it is highly unlikely that they ever will be. So
# only list verbs_ibverbs_CPPFLAGS here. Same with verbs_*_LDFLAGS,
# below.
libverbs_fi_la_CPPFLAGS = $(AM_CPPFLAGS) $(verbs_ibverbs_CPPFLAGS)
libverbs_fi_la_LDFLAGS = \
-module -avoid-version -shared -export-dynamic $(verbs_ibverbs_LDFLAGS)
libverbs_fi_la_LIBADD = $(linkback) $(verbs_rdmacm_LIBS) $(verbs_ibverbs_LIBS)
libverbs_fi_la_DEPENDENCIES = $(linkback)
else !HAVE_VERBS_DL
src_libfabric_la_SOURCES += $(_verbs_files)
src_libfabric_la_CPPFLAGS += $(verbs_ibverbs_CPPFLAGS)
src_libfabric_la_LDFLAGS += $(verbs_ibverbs_LDFLAGS)
src_libfabric_la_LIBADD += $(verbs_rdmacm_LIBS) $(verbs_ibverbs_LIBS)
endif !HAVE_VERBS_DL
endif HAVE_VERBS
if HAVE_USNIC
libusnic_direct_sources = \
prov/usnic/src/usnic_direct/cq_desc.h \
prov/usnic/src/usnic_direct/cq_enet_desc.h \
prov/usnic/src/usnic_direct/kcompat.h \
prov/usnic/src/usnic_direct/kcompat_priv.h \
prov/usnic/src/usnic_direct/libnl1_utils.h \
prov/usnic/src/usnic_direct/libnl3_utils.h \
prov/usnic/src/usnic_direct/libnl_utils_common.c \
prov/usnic/src/usnic_direct/libnl_utils.h \
prov/usnic/src/usnic_direct/linux/delay.h \
prov/usnic/src/usnic_direct/linux/slab.h \
prov/usnic/src/usnic_direct/linux_types.h \
prov/usnic/src/usnic_direct/rq_enet_desc.h \
prov/usnic/src/usnic_direct/usd_caps.c \
prov/usnic/src/usnic_direct/usd_caps.h \
prov/usnic/src/usnic_direct/usd_dest.c \
prov/usnic/src/usnic_direct/usd_dest.h \
prov/usnic/src/usnic_direct/usd_device.c \
prov/usnic/src/usnic_direct/usd_device.h \
prov/usnic/src/usnic_direct/usd_event.c \
prov/usnic/src/usnic_direct/usd.h \
prov/usnic/src/usnic_direct/usd_ib_cmd.c \
prov/usnic/src/usnic_direct/usd_ib_cmd.h \
prov/usnic/src/usnic_direct/usd_ib_sysfs.c \
prov/usnic/src/usnic_direct/usd_ib_sysfs.h \
prov/usnic/src/usnic_direct/usd_mem.c \
prov/usnic/src/usnic_direct/usd_poll.c \
prov/usnic/src/usnic_direct/usd_post.c \
prov/usnic/src/usnic_direct/usd_post.h \
prov/usnic/src/usnic_direct/usd_post_raw_normal.c \
prov/usnic/src/usnic_direct/usd_post_udp_normal.c \
prov/usnic/src/usnic_direct/usd_post_udp_pio.c \
prov/usnic/src/usnic_direct/usd_queue.h \
prov/usnic/src/usnic_direct/usd_queues.c \
prov/usnic/src/usnic_direct/usd_socket.c \
prov/usnic/src/usnic_direct/usd_socket.h \
prov/usnic/src/usnic_direct/usd_time.h \
prov/usnic/src/usnic_direct/usd_util.h \
prov/usnic/src/usnic_direct/usd_vnic.c \
prov/usnic/src/usnic_direct/usd_vnic.h \
prov/usnic/src/usnic_direct/usnic_abi.h \
prov/usnic/src/usnic_direct/usnic_direct.h \
prov/usnic/src/usnic_direct/usnic_ib_abi.h \
prov/usnic/src/usnic_direct/usnic_ip_utils.c \
prov/usnic/src/usnic_direct/usnic_ip_utils.h \
prov/usnic/src/usnic_direct/usnic_user_utils.h \
prov/usnic/src/usnic_direct/vnic_cq.c \
prov/usnic/src/usnic_direct/vnic_cq.h \
prov/usnic/src/usnic_direct/vnic_dev.c \
prov/usnic/src/usnic_direct/vnic_devcmd.h \
prov/usnic/src/usnic_direct/vnic_dev.h \
prov/usnic/src/usnic_direct/vnic_enet.h \
prov/usnic/src/usnic_direct/vnic_resource.h \
prov/usnic/src/usnic_direct/vnic_rq.c \
prov/usnic/src/usnic_direct/vnic_rq.h \
prov/usnic/src/usnic_direct/vnic_stats.h \
prov/usnic/src/usnic_direct/vnic_wq.c \
prov/usnic/src/usnic_direct/vnic_wq.h \
prov/usnic/src/usnic_direct/wq_enet_desc.h
_usnic_files = \
$(libusnic_direct_sources) \
prov/usnic/src/fi_ext_usnic.h \
prov/usnic/src/usdf.h \
prov/usnic/src/usdf_av.c \
prov/usnic/src/usdf_av.h \
prov/usnic/src/usdf_cm.c \
prov/usnic/src/usdf_cm.h \
prov/usnic/src/usdf_cq.c \
prov/usnic/src/usdf_cq.h \
prov/usnic/src/usdf_dgram.c \
prov/usnic/src/usdf_dgram.h \
prov/usnic/src/usdf_domain.c \
prov/usnic/src/usdf_endpoint.c \
prov/usnic/src/usdf_endpoint.h \
prov/usnic/src/usdf_ep_dgram.c \
prov/usnic/src/usdf_ep_msg.c \
prov/usnic/src/usdf_ep_rdm.c \
prov/usnic/src/usdf_eq.c \
prov/usnic/src/usdf_fabric.c \
prov/usnic/src/usdf_mem.c \
prov/usnic/src/usdf_msg.c \
prov/usnic/src/usdf_msg.h \
prov/usnic/src/usdf_pep.c \
prov/usnic/src/usdf_progress.c \
prov/usnic/src/usdf_progress.h \
prov/usnic/src/usdf_rdm.c \
prov/usnic/src/usdf_rdm.h \
prov/usnic/src/usdf_rudp.h \
prov/usnic/src/usdf_timer.c \
prov/usnic/src/usdf_timer.h
_usnic_cppflags = \
-D__LIBUSNIC__ \
-DHAVE_LIBNL3=$(HAVE_LIBNL3) $(usnic_libnl_CPPFLAGS) \
-I$(top_srcdir)/prov/usnic/src/usnic_direct
rdmainclude_HEADERS += \
prov/usnic/src/fi_ext_usnic.h
if HAVE_USNIC_DL
pkglib_LTLIBRARIES += libusnic-fi.la
libusnic_fi_la_CPPFLAGS = $(AM_CPPFLAGS) $(_usnic_cppflags)
libusnic_fi_la_SOURCES = $(_usnic_files) $(common_srcs)
libusnic_fi_la_LDFLAGS = -module -avoid-version -shared -export-dynamic
libusnic_fi_la_LIBADD = $(linkback) $(usnic_libnl_LIBS)
libusnic_fi_la_DEPENDENCIES = $(linkback)
else !HAVE_USNIC_DL
src_libfabric_la_SOURCES += $(_usnic_files)
src_libfabric_la_CPPFLAGS += $(_usnic_cppflags)
src_libfabric_la_LIBADD += $(usnic_libnl_LIBS)
endif !HAVE_USNIC_DL
endif HAVE_USNIC
if HAVE_PSM
_psm_files = \
prov/psm/src/psm_am.h \
prov/psm/src/psmx.h \
prov/psm/src/psm_am.h \
prov/psm/src/psmx_init.c \
prov/psm/src/psmx_domain.c \
prov/psm/src/psmx_cq.c \
prov/psm/src/psmx_cntr.c \
prov/psm/src/psmx_av.c \
prov/psm/src/psmx_ep.c \
prov/psm/src/psmx_cm.c \
prov/psm/src/psmx_tagged.c \
prov/psm/src/psmx_msg.c \
prov/psm/src/psmx_msg2.c \
prov/psm/src/psmx_rma.c \
prov/psm/src/psmx_atomic.c \
prov/psm/src/psmx_am.c \
prov/psm/src/psmx_mr.c \
prov/psm/src/psmx_wait.c \
prov/psm/src/psmx_poll.c \
prov/psm/src/psmx_util.c
if HAVE_PSM_DL
pkglib_LTLIBRARIES += libpsmx-fi.la
libpsmx_fi_la_SOURCES = $(_psm_files) $(common_srcs)
libpsmx_fi_la_CPPFLAGS = $(AM_CPPFLAGS) $(psm_CPPFLAGS)
libpsmx_fi_la_LDFLAGS = \
-module -avoid-version -shared -export-dynamic $(psm_LDFLAGS)
libpsmx_fi_la_LIBADD = $(linkback) $(psm_LIBS)
libpsmx_fi_la_DEPENDENCIES = $(linkback)
else !HAVE_PSM_DL
src_libfabric_la_SOURCES += $(_psm_files)
src_libfabric_la_CPPFLAGS += $(psm_CPPFLAGS)
src_libfabric_la_LDFLAGS += $(psm_LDFLAGS)
src_libfabric_la_LIBADD += $(psm_LIBS)
endif !HAVE_PSM_DL
endif HAVE_PSM
if HAVE_GNI
_gni_files = \
prov/gni/src/gnix.h \
prov/gni/src/gnix_init.c \
prov/gni/src/gnix_fabric.c \
prov/gni/src/gnix_dom.c \
prov/gni/src/gnix_ep.c \
prov/gni/src/gnix_cq.c \
prov/gni/src/gnix_av.c \
prov/gni/src/gnix_mr.c \
prov/gni/src/gnix_ep_rdm.c \
prov/gni/src/gnix_nameserver.c \
prov/gni/src/gnix_util.c
if HAVE_GNI_DL
pkglib_LTLIBRARIES += libgnix-fi.la
libgnix_fi_la_SOURCES = $(_gni_files) $(common_srcs)
libgnix_fi_la_LIBADD = $(linkback)
libgnix_fi_la_LDFLAGS = -module -avoid-version -shared -export-dynamic
libgnix_fi_la_DEPENDENCIES = $(linkback)
else !HAVE_GNI_DL
src_libfabric_la_SOURCES += $(_gni_files)
endif !HAVE_GNI_DL
endif HAVE_GNI
src_libfabric_la_LDFLAGS += -version-info 1 -export-dynamic \
$(libfabric_version_script)
src_libfabric_la_DEPENDENCIES = $(srcdir)/libfabric.map
rdmainclude_HEADERS += \
$(top_srcdir)/include/rdma/fabric.h \
$(top_srcdir)/include/rdma/fi_atomic.h \
$(top_srcdir)/include/rdma/fi_cm.h \
$(top_srcdir)/include/rdma/fi_domain.h \
$(top_srcdir)/include/rdma/fi_eq.h \
$(top_srcdir)/include/rdma/fi_prov.h \
$(top_srcdir)/include/rdma/fi_rma.h \
$(top_srcdir)/include/rdma/fi_endpoint.h \
$(top_srcdir)/include/rdma/fi_errno.h \
$(top_srcdir)/include/rdma/fi_tagged.h \
$(top_srcdir)/include/rdma/fi_trigger.h
if HAVE_DIRECT
nodist_rdmainclude_HEADERS = \
$(top_srcdir)/prov/$(PROVIDER_DIRECT)/include/rdma/fi_direct.h \
$(top_srcdir)/prov/$(PROVIDER_DIRECT)/include/rdma/fi_direct_domain.h \
$(top_srcdir)/prov/$(PROVIDER_DIRECT)/include/rdma/fi_direct_endpoint.h \
$(top_srcdir)/prov/$(PROVIDER_DIRECT)/include/rdma/fi_direct_tagged.h \
$(top_srcdir)/prov/$(PROVIDER_DIRECT)/include/rdma/fi_direct_rma.h \
$(top_srcdir)/prov/$(PROVIDER_DIRECT)/include/rdma/fi_direct_atomic_def.h \
$(top_srcdir)/prov/$(PROVIDER_DIRECT)/include/rdma/fi_direct_atomic.h \
$(top_srcdir)/prov/$(PROVIDER_DIRECT)/include/rdma/fi_direct_cm.h \
$(top_srcdir)/prov/$(PROVIDER_DIRECT)/include/rdma/fi_direct_eq.h \
$(top_srcdir)/prov/$(PROVIDER_DIRECT)/include/rdma/fi_direct_trigger.h
endif HAVE_DIRECT
real_man_pages = \
man/fabric.7 \
man/fi_av.3 \
man/fi_cm.3 \
man/fi_cntr.3 \
man/fi_control.3 \
man/fi_cq.3 \
man/fi_direct.7 \
man/fi_domain.3 \
man/fi_endpoint.3 \
man/fi_errno.3 \
man/fi_eq.3 \
man/fi_fabric.3 \
man/fi_getinfo.3 \
man/fi_mr.3 \
man/fi_msg.3 \
man/fi_poll.3 \
man/fi_rma.3 \
man/fi_tagged.3 \
man/fi_trigger.3 \
man/fi_version.3
dummy_man_pages = \
man/fi_accept.3 \
man/fi_alias.3 \
man/fi_atomic_valid.3 \
man/fi_atomicmsg.3 \
man/fi_atomicv.3 \
man/fi_av_bind.3 \
man/fi_av_insert.3 \
man/fi_av_insertsvc.3 \
man/fi_av_lookup.3 \
man/fi_av_open.3 \
man/fi_av_remove.3 \
man/fi_av_straddr.3 \
man/fi_cancel.3 \
man/fi_close.3 \
man/fi_cntr_add.3 \
man/fi_cntr_open.3 \
man/fi_cntr_read.3 \
man/fi_cntr_set.3 \
man/fi_cntr_wait.3 \
man/fi_compare_atomic.3 \
man/fi_compare_atomic_valid.3 \
man/fi_compare_atomicmsg.3 \
man/fi_compare_atomicv.3 \
man/fi_connect.3 \
man/fi_cq_open.3 \
man/fi_cq_read.3 \
man/fi_cq_readerr.3 \
man/fi_cq_readfrom.3 \
man/fi_cq_sread.3 \
man/fi_cq_sreadfrom.3 \
man/fi_cq_strerror.3 \
man/fi_cq_write.3 \
man/fi_domain_bind.3 \
man/fi_domain_query.3 \
man/fi_dupinfo.3 \
man/fi_enable.3 \
man/fi_ep_bind.3 \
man/fi_eq_open.3 \
man/fi_eq_read.3 \
man/fi_eq_readerr.3 \
man/fi_eq_sread.3 \
man/fi_eq_strerror.3 \
man/fi_eq_write.3 \
man/fi_fetch_atomic.3 \
man/fi_fetch_atomic_valid.3 \
man/fi_fetch_atomicmsg.3 \
man/fi_fetch_atomicv.3 \
man/fi_freeinfo.3 \
man/fi_getname.3 \
man/fi_getopt.3 \
man/fi_getpeer.3 \
man/fi_inject.3 \
man/fi_injectdata.3 \
man/fi_inject_atomic.3 \
man/fi_inject_write.3 \
man/fi_inject_writedata.3 \
man/fi_join.3 \
man/fi_leave.3 \
man/fi_listen.3 \
man/fi_mr_bind.3 \
man/fi_mr_desc.3 \
man/fi_mr_key.3 \
man/fi_mr_reg.3 \
man/fi_mr_regattr.3 \
man/fi_mr_regv.3 \
man/fi_open.3 \
man/fi_passive_ep.3 \
man/fi_poll_add.3 \
man/fi_poll_del.3 \
man/fi_poll_open.3 \
man/fi_read.3 \
man/fi_readmsg.3 \
man/fi_readv.3 \
man/fi_recv.3 \
man/fi_recvmsg.3 \
man/fi_recvv.3 \
man/fi_reject.3 \
man/fi_rx_addr.3 \
man/fi_rx_size_left.3 \
man/fi_send.3 \
man/fi_senddata.3 \
man/fi_sendmsg.3 \
man/fi_sendv.3 \
man/fi_setopt.3 \
man/fi_shutdown.3 \
man/fi_strerror.3 \
man/fi_tinject.3 \
man/fi_tinjectdata.3 \
man/fi_tostr.3 \
man/fi_trecv.3 \
man/fi_trecvmsg.3 \
man/fi_trecvv.3 \
man/fi_tsearch.3 \
man/fi_tsend.3 \
man/fi_tsenddata.3 \
man/fi_tsendmsg.3 \
man/fi_tsendv.3 \
man/fi_tx_size_left.3 \
man/fi_wait.3 \
man/fi_wait_open.3 \
man/fi_write.3 \
man/fi_writedata.3 \
man/fi_writemsg.3 \
man/fi_writev.3
man_MANS = $(real_man_pages) $(dummy_man_pages)
nroff:
@for file in $(real_man_pages); do \
config/md2nroff.pl --source=$$file.md; \
done
EXTRA_DIST = libfabric.map libfabric.spec.in config/distscript.pl $(man_MANS)
dist-hook: libfabric.spec
cp libfabric.spec $(distdir)
"$(top_srcdir)/config/distscript.pl" "$(distdir)" "$(PACKAGE_VERSION)"