6098b84294
When compiling against an external libfabric, ensure to also pass the appropriate -L flags so that the compiler/linker can find it.
56 строки
1.4 KiB
Makefile
56 строки
1.4 KiB
Makefile
#
|
|
# Copyright (c) 2013-2014 Intel, Inc. All rights reserved
|
|
#
|
|
# Copyright (c) 2014-2015 Cisco Systems, Inc. All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
EXTRA_DIST = post_configure.sh
|
|
|
|
AM_CPPFLAGS = $(opal_common_libfabric_CPPFLAGS)
|
|
|
|
dist_ompidata_DATA = help-mtl-ofi.txt
|
|
|
|
mtl_ofi_sources = \
|
|
mtl_ofi.h \
|
|
mtl_ofi.c \
|
|
mtl_ofi_cancel.c \
|
|
mtl_ofi_component.c \
|
|
mtl_ofi_endpoint.h \
|
|
mtl_ofi_endpoint.c \
|
|
mtl_ofi_message.h \
|
|
mtl_ofi_message.c \
|
|
mtl_ofi_probe.c \
|
|
mtl_ofi_recv.c \
|
|
mtl_ofi_request.h \
|
|
mtl_ofi_send.c \
|
|
mtl_ofi_types.h
|
|
|
|
# Make the output library in this directory, and name it either
|
|
# mca_<type>_<name>.la (for DSO builds) or libmca_<type>_<name>.la
|
|
# (for static builds).
|
|
|
|
if MCA_BUILD_ompi_mtl_ofi_DSO
|
|
component_noinst =
|
|
component_install = mca_mtl_ofi.la
|
|
else
|
|
component_noinst = libmca_mtl_ofi.la
|
|
component_install =
|
|
endif
|
|
|
|
mcacomponentdir = $(ompilibdir)
|
|
mcacomponent_LTLIBRARIES = $(component_install)
|
|
mca_mtl_ofi_la_SOURCES = $(mtl_ofi_sources)
|
|
mca_mtl_ofi_la_LDFLAGS = \
|
|
$(opal_common_libfabric_LDFLAGS) \
|
|
-module -avoid-version
|
|
mca_mtl_ofi_la_LIBADD = $(opal_common_libfabric_LIBADD)
|
|
|
|
noinst_LTLIBRARIES = $(component_noinst)
|
|
libmca_mtl_ofi_la_SOURCES = $(mtl_ofi_sources)
|
|
libmca_mtl_ofi_la_LDFLAGS = -module -avoid-version
|