makefile.am

来自「MPI stands for the Message Passing Inter」· AM 代码 · 共 96 行

AM
96
字号
## Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana#                         University Research and Technology#                         Corporation.  All rights reserved.# Copyright (c) 2004-2005 The University of Tennessee and The University#                         of Tennessee Research Foundation.  All rights#                         reserved.# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, #                         University of Stuttgart.  All rights reserved.# Copyright (c) 2004-2005 The Regents of the University of California.#                         All rights reserved.# $COPYRIGHT$# # Additional copyrights may follow# # $HEADER$## A word of explanation...## This library is linked against various MCA components because all# shared-memory based components (e.g., mpool, ptl, etc.)  need to# share some common code and data.  There's two cases:## 1. libmca_common_portals.la is a shared library.  By linking that shared# library to all components that need it, the OS linker will# automatically load it into the process as necessary, and there will# only be one copy (i.e., all the components will share *one* copy of# the code and data).# 2. libmca_common_portals.la is a static library.  In this case, it# will be rolled up into the top-level libmpi.la.  It will also be# rolled into each component, but then the component will also be# rolled up into the upper-level libmpi.la.  Libtool sorts this all# out and it all works out in the end.## Note that building this common component statically and linking# against other dynamic components is *not* supported!AM_CPPFLAGS = $(common_mx_CPPFLAGS)# Header filesheaders = \        common_mx.h# Source filessources = \        common_mx.clib_LTLIBRARIES =noinst_LTLIBRARIES =comp_inst = libmca_common_mx.lacomp_noinst = libmca_common_mx_noinst.laif OMPI_BUILD_common_mx_DSOlib_LTLIBRARIES += $(comp_inst)elsenoinst_LTLIBRARIES += $(comp_noinst)endiflibmca_common_mx_la_SOURCES = $(headers) $(sources)libmca_common_mx_la_LDFLAGS = $(common_mx_LDFLAGS)libmca_common_mx_la_LIBADD = $(common_mx_LIBS)libmca_common_mx_noinst_la_SOURCES = $(libmca_common_mx_la_SOURCES)libmca_common_mx_noinst_la_LDFLAGS = $(common_mx_LDFLAGS)libmca_common_mx_noinst_la_LIBADD = $(common_mx_LIBS)# Conditionally install the header filesif WANT_INSTALL_HEADERSompidir = $(includedir)/openmpi/ompi/mca/common/mxompi_HEADERS = $(headers)elseompidir = $(includedir)endif# These two rules will sym link the "noinst" libtool library filename# to the installable libtool library filename in the case where we are# compiling this component statically (case 2), described above).all-local:	if test -z "$(lib_LTLIBRARIES)"; then \	  rm -f "$(comp_inst)"; \	  $(LN_S) "$(comp_noinst)" "$(comp_inst)"; \	ficlean-local:	if test -z "$(lib_LTLIBRARIES)"; then \	  rm -f "$(comp_inst)"; \	fi

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?