2004-01-08 00:39:46 +03:00
|
|
|
# -*- makefile -*-
|
|
|
|
#
|
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(top_srcdir)/config/Makefile.options
|
2004-01-17 01:40:27 +03:00
|
|
|
#
|
|
|
|
# LAM_PROFILING_DEFINES flag is 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.
|
|
|
|
#
|
2004-01-17 05:44:33 +03:00
|
|
|
AM_CPPFLAGS = -DLAM_PROFILE_LAYER=1
|
2004-01-17 01:40:27 +03:00
|
|
|
#
|
|
|
|
# This build needs to go through only if profiling is required.
|
|
|
|
# Further, this build HAS to go through if profiling is required.
|
|
|
|
#
|
2004-01-08 00:39:46 +03:00
|
|
|
|
2004-01-17 01:40:27 +03:00
|
|
|
if WANT_PMPI_BINDINGS_LAYER
|
|
|
|
pmpi_lib = libmpi_f77_pmpi.la
|
2004-01-09 21:55:51 +03:00
|
|
|
else
|
2004-01-17 01:40:27 +03:00
|
|
|
pmpi_lib =
|
2004-01-09 21:55:51 +03:00
|
|
|
endif
|
|
|
|
|
2004-01-17 01:40:27 +03:00
|
|
|
noinst_LTLIBRARIES = $(pmpi_lib)
|
2004-01-08 00:39:46 +03:00
|
|
|
|
2004-01-17 01:40:27 +03:00
|
|
|
nodist_libmpi_f77_pmpi_la_SOURCES = \
|
2004-01-17 05:44:33 +03:00
|
|
|
palloc_mem_f.c \
|
|
|
|
pcomm_get_name_f.c \
|
|
|
|
pcomm_set_name_f.c \
|
|
|
|
pinit_f.c \
|
|
|
|
pfinalize_f.c \
|
2004-03-17 02:19:39 +03:00
|
|
|
pfree_mem_f.c \
|
|
|
|
pgroup_compare_f.c
|
2004-01-17 01:40:27 +03:00
|
|
|
#
|
2004-01-08 00:39:46 +03:00
|
|
|
# Sym link in the sources from the real MPI directory
|
2004-01-17 01:40:27 +03:00
|
|
|
#
|
|
|
|
$(nodist_libmpi_f77_pmpi_la_SOURCES):
|
2004-01-17 06:01:11 +03:00
|
|
|
if test ! -r $@ ; then \
|
|
|
|
pname=`echo $@ | cut -b '2-'` ; \
|
2004-03-17 22:06:06 +03:00
|
|
|
ln -s $(top_srcdir)/src/mpi/f77/$$pname $@ ; \
|
2004-01-17 06:01:11 +03:00
|
|
|
fi
|
2004-01-17 01:40:27 +03:00
|
|
|
#
|
|
|
|
#
|
|
|
|
headers = \
|
2004-01-17 05:44:33 +03:00
|
|
|
prototypes_pmpi.h
|
2004-01-17 01:40:27 +03:00
|
|
|
#
|
|
|
|
# These files were created by targets above
|
|
|
|
#
|
|
|
|
MAINTAINERCLEANFILES = $(nodist_libmpi_f77_profile_la_SOURCES)
|
|
|
|
#
|
2004-01-09 20:44:07 +03:00
|
|
|
# Conditionally install the header files
|
2004-01-17 01:40:27 +03:00
|
|
|
#
|
|
|
|
EXTRA_DIST = $(nodist_libmpi_f77_pmpi_la_SOURCES)
|
|
|
|
#
|
2004-01-09 20:44:07 +03:00
|
|
|
if WANT_INSTALL_HEADERS
|
|
|
|
lamdir = $(includedir)/lam/mpi/f77/profile
|
|
|
|
lam_HEADERS = $(headers)
|
|
|
|
else
|
|
|
|
lamdir = $(includedir)
|
|
|
|
endif
|
2004-01-17 01:40:27 +03:00
|
|
|
#
|
2004-01-08 00:39:46 +03:00
|
|
|
# Don't want these targets in here
|
2004-01-17 01:40:27 +03:00
|
|
|
#
|
2004-01-08 00:39:46 +03:00
|
|
|
tags-recursive:
|
|
|
|
tags:
|
|
|
|
TAGS:
|
|
|
|
GTAGS:
|
|
|
|
ID:
|