1
1
openmpi/ompi/mca/ptl/sm/Makefile.am
Jeff Squyres a9777f902a Move all the ptl sm source code out of src (the Makefile.am treated it
that way anway) so that we can properly "make distcheck" easier.  Fix
the rule for making the sym link to ptl_sm_send_alternate.c so that
"distcheck" works.

This commit was SVN r6919.
2005-08-18 00:09:51 +00:00

79 строки
2.3 KiB
Makefile

#
# Copyright (c) 2004-2005 The Trustees of Indiana University.
# All rights reserved.
# Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
# 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$
#
# Use the top-level Makefile.options
include $(top_ompi_srcdir)/config/Makefile.options
# 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 OMPI_BUILD_ptl_sm_DSO
component_noinst =
component_install = mca_ptl_sm.la
else
component_noinst = libmca_ptl_sm.la
component_install =
endif
EXTRA_DIST =
sm_SOURCES = \
ptl_sm.c \
ptl_sm.h \
ptl_sm_address.h \
ptl_sm_component.c \
ptl_sm_frag.h \
ptl_sm_frag.c \
ptl_sm_peer.h \
ptl_sm_recvfrag.h \
ptl_sm_recvfrag.c \
ptl_sm_send.c \
ptl_sm_sendreq.c \
ptl_sm_sendreq.h \
ptl_sm_sendfrag.c \
ptl_sm_sendfrag.h
# See ompi/mca/common/sm/Makefile.am for an explanation of
# libmca_common_sm.la.
mcacomponentdir = $(libdir)/openmpi
mcacomponent_LTLIBRARIES = $(component_install)
mca_ptl_sm_la_SOURCES = $(sm_SOURCES)
mca_ptl_sm_la_DEPENDENCIES = librecompile.la
mca_ptl_sm_la_LIBADD = librecompile.la \
$(top_ompi_builddir)/ompi/mca/common/sm/libmca_common_sm.la
mca_ptl_sm_la_LDFLAGS = -module -avoid-version
noinst_LTLIBRARIES = $(component_noinst) librecompile.la
libmca_ptl_sm_la_SOURCES = $(sm_SOURCES)
libmca_ptl_sm_la_DEPENDENCIES = librecompile.la
libmca_ptl_sm_la_LDFLAGS = -module -avoid-version
libmca_ptl_sm_la_LIBADD = librecompile.la
nodist_librecompile_la_SOURCES = ptl_sm_send_alternate.c
librecompile_la_CPPFLAGS = -DSM_COMMON_BASE_ADDR
#
# The "send alternate" file is really the same as the "send" file, but
# compiled with a different #define
#
ptl_sm_send_alternate.c:
if test ! -f $@; then \
ln -sf $(srcdir)/ptl_sm_send.c ptl_sm_send_alternate.c; \
fi