2004-01-08 00:39:46 +03:00
|
|
|
# -*- makefile -*-
|
|
|
|
#
|
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(top_srcdir)/config/Makefile.options
|
|
|
|
|
2004-01-09 20:44:07 +03:00
|
|
|
AM_CPPFLAGS = -DLAM_PROFILING_DEFINES=1
|
2004-01-08 00:39:46 +03:00
|
|
|
|
2004-01-09 21:55:51 +03:00
|
|
|
# We must traverse into the profile directory to install the proper
|
|
|
|
# header files. So only only expect to find the C profiling library
|
|
|
|
# if we're compiling profiling separately.
|
|
|
|
|
|
|
|
if COMPILE_PROFILING_SEPARATELY
|
|
|
|
lib = libmpi_c_profile.la
|
|
|
|
else
|
|
|
|
lib =
|
|
|
|
endif
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES = $(lib)
|
2004-01-08 00:39:46 +03:00
|
|
|
|
2004-01-09 20:44:07 +03:00
|
|
|
headers = defines.h
|
2004-01-09 11:30:19 +03:00
|
|
|
|
2004-01-09 20:44:07 +03:00
|
|
|
nodist_libmpi_c_profile_la_SOURCES = \
|
2004-01-10 11:22:06 +03:00
|
|
|
palloc_mem.c \
|
2004-01-09 20:44:07 +03:00
|
|
|
pcomm_get_name.c \
|
|
|
|
pcomm_set_name.c \
|
|
|
|
pinit.c \
|
2004-01-10 11:22:06 +03:00
|
|
|
pfinalize.c \
|
|
|
|
pfree_mem.c
|
2004-01-08 00:39:46 +03:00
|
|
|
|
|
|
|
# Sym link in the sources from the real MPI directory
|
|
|
|
|
|
|
|
$(nodist_libmpi_c_profile_la_SOURCES):
|
|
|
|
if test ! -r $@ ; then \
|
|
|
|
pname=`echo $@ | cut -b '2-'` ; \
|
2004-01-11 01:41:39 +03:00
|
|
|
ln -s $(top_srcdir)/src/mpi/interface/c/$$pname $@ ; \
|
2004-01-08 00:39:46 +03:00
|
|
|
fi
|
|
|
|
|
2004-01-09 20:44:07 +03:00
|
|
|
# Conditionally install the header files
|
|
|
|
|
|
|
|
if WANT_INSTALL_HEADERS
|
|
|
|
lamdir = $(includedir)/lam/mpi/c/profile
|
|
|
|
lam_HEADERS = $(headers)
|
|
|
|
else
|
|
|
|
lamdir = $(includedir)
|
|
|
|
endif
|
|
|
|
|
2004-01-08 00:39:46 +03:00
|
|
|
# These files were created by targets above
|
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = $(nodist_libmpi_c_profile_la_SOURCES)
|
|
|
|
|
|
|
|
# Don't want these targets in here
|
|
|
|
|
|
|
|
tags-recursive:
|
|
|
|
tags:
|
|
|
|
TAGS:
|
|
|
|
GTAGS:
|
|
|
|
ID:
|