
and WANT_PMPI_BINDINGS_LAYER. These determine whether src/mpi/interface/c and src/mpi/interface/c/profile are built. Makefile.am's were changed to reflect the same change. Now the top layer always builds MPI bindings and the lower layer always builds PMPI bindings : ---------------------------------------------------------------------- This commit was SVN r393.
102 строки
2.7 KiB
Makefile
102 строки
2.7 KiB
Makefile
# -*- makefile -*-
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
include $(top_srcdir)/config/Makefile.options
|
|
#
|
|
# LAM_IS_PMPI_BINDING flag s enabled when we want our MPI_* symbols
|
|
# to be replaced by PMPI_*. In other words, this flag decides
|
|
# whether "profile/defines.h" is included or not. "profile/defines.h"
|
|
# replaces all MPI_* symbols with PMPI_* symbols. In this directory
|
|
# we definately need it to be 1.
|
|
#
|
|
AM_CPPFLAGS = -DLAM_PROFILING_DEFINES=1
|
|
|
|
#
|
|
# This build needs to go through only if profiling is required.
|
|
# Further, this build HAS to go through if profiling is required.
|
|
#
|
|
|
|
if WANT_PMPI_BINDINGS_LAYER
|
|
pmpi_lib = libmpi_c_pmpi.la
|
|
else
|
|
pmpi_lib =
|
|
endif
|
|
|
|
noinst_LTLIBRARIES = $(pmpi_lib)
|
|
|
|
headers = defines.h
|
|
|
|
nodist_libmpi_c_pmpi_la_SOURCES = \
|
|
palloc_mem.c \
|
|
pcomm_get_name.c \
|
|
pcomm_set_name.c \
|
|
pfinalize.c \
|
|
pfree_mem.c \
|
|
pinit.c \
|
|
ptype_commit.c \
|
|
ptype_contiguous.c \
|
|
ptype_create_darray.c \
|
|
ptype_create_f90_complex.c \
|
|
ptype_create_f90_integer.c \
|
|
ptype_create_f90_real.c \
|
|
ptype_create_hindexed.c \
|
|
ptype_create_hvector.c \
|
|
ptype_create_indexed_block.c \
|
|
ptype_create_keyval.c \
|
|
ptype_create_resized.c \
|
|
ptype_create_struct.c \
|
|
ptype_create_subarray.c \
|
|
ptype_delete_attr.c \
|
|
ptype_dup.c \
|
|
ptype_extent.c \
|
|
ptype_free.c \
|
|
ptype_free_keyval.c \
|
|
ptype_get_attr.c \
|
|
ptype_get_contents.c \
|
|
ptype_get_envelope.c \
|
|
ptype_get_extent.c \
|
|
ptype_get_name.c \
|
|
ptype_get_true_extent.c \
|
|
ptype_hindexed.c \
|
|
ptype_hvector.c \
|
|
ptype_indexed.c \
|
|
ptype_lb.c \
|
|
ptype_match_size.c \
|
|
ptype_set_attr.c \
|
|
ptype_set_name.c \
|
|
ptype_size.c \
|
|
ptype_struct.c \
|
|
ptype_ub.c \
|
|
ptype_vector.c
|
|
#
|
|
# Sym link in the sources from the real MPI directory
|
|
#
|
|
$(nodist_libmpi_c_pmpi_la_SOURCES):
|
|
if test ! -r $@ ; then \
|
|
pname=`echo $@ | cut -b '2-'` ; \
|
|
ln -s $(top_srcdir)/src/mpi/interface/c/$$pname $@ ; \
|
|
fi
|
|
|
|
# Conditionally install the header files
|
|
|
|
if WANT_INSTALL_HEADERS
|
|
lamdir = $(includedir)/lam/mpi/c/profile
|
|
lam_HEADERS = $(headers)
|
|
else
|
|
lamdir = $(includedir)
|
|
endif
|
|
|
|
# These files were created by targets above
|
|
|
|
MAINTAINERCLEANFILES = $(nodist_libmpi_c_pmpi_la_SOURCES)
|
|
|
|
# Don't want these targets in here
|
|
|
|
tags-recursive:
|
|
tags:
|
|
TAGS:
|
|
GTAGS:
|
|
ID:
|