1
1

MX BTL use the new configure sub-system.

This commit was SVN r6633.
Этот коммит содержится в:
George Bosilca 2005-07-27 23:38:31 +00:00
родитель 6ee8c81819
Коммит 94fe5e6ac8
4 изменённых файлов: 55 добавлений и 25 удалений

Просмотреть файл

Просмотреть файл

@ -18,38 +18,30 @@
include $(top_ompi_srcdir)/config/Makefile.options include $(top_ompi_srcdir)/config/Makefile.options
sources = \ AM_CPPFLAGS = $(btl_mx_CPPFLAGS)
btl_mx.c \
btl_mx.h \ btl_mx_sources = btl_mx.c btl_mx.h btl_mx_component.c btl_mx_endpoint.c \
btl_mx_component.c \ btl_mx_endpoint.h btl_mx_frag.c btl_mx_frag.h btl_mx_proc.c btl_mx_proc.h
btl_mx_endpoint.c \
btl_mx_endpoint.h \
btl_mx_frag.c \
btl_mx_frag.h \
btl_mx_proc.c \
btl_mx_proc.h
# Make the output library in this directory, and name it either # Make the output library in this directory, and name it either
# mca_<type>_<name>.la (for DSO builds) or libmca_<type>_<name>.la # mca_<type>_<name>.la (for DSO builds) or libmca_<type>_<name>.la
# (for static builds). # (for static builds).
if OMPI_BUILD_btl_mx_DSO if OMPI_BUILD_btl_mx_DSO
lib = component_noinst =
lib_sources = component_install = mca_btl_mx.la
component = mca_btl_mx.la
component_sources = $(sources)
else else
lib = libmca_btl_mx.la component_noinst = libmca_btl_mx.la
lib_sources = $(sources) component_install =
component =
component_sources =
endif endif
mcacomponentdir = $(libdir)/openmpi mcacomponentdir = $(libdir)/openmpi
mcacomponent_LTLIBRARIES = $(component) mcacomponent_LTLIBRARIES = $(component_install)
mca_btl_mx_la_SOURCES = $(component_sources) mca_btl_mx_la_SOURCES = $(btl_mx_sources)
mca_btl_mx_la_LDFLAGS = -module -avoid-version mca_btl_mx_la_LIBADD = $(btl_mx_LIBX)
mca_btl_mx_la_LDFLAGS = -module -avoid-version $(btl_mx_LDFLAGS)
noinst_LTLIBRARIES = $(lib) noinst_LTLIBRARIES = $(component_noinst)
libmca_btl_mx_la_SOURCES = $(lib_sources) libmca_btl_mx_la_SOURCES = $(btl_mx_sources)
libmca_btl_mx_la_LDFLAGS = -module -avoid-version libmca_btl_mx_la_LIBADD = $(btl_mx_LIBS)
libmca_btl_mx_la_LDFLAGS = -module -avoid-version $(btl_mx_LDFLAGS)

39
ompi/mca/btl/mx/configure.m4 Обычный файл
Просмотреть файл

@ -0,0 +1,39 @@
# -*- shell-script -*-
#
# 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$
#
# MCA_btl_mx_CONFIG([action-if-can-compile],
# [action-if-cant-compile])
# ------------------------------------------------
AC_DEFUN([MCA_btl_mx_CONFIG],[
OMPI_CHECK_MX([btl_mx],
[btl_mx_happy="yes"],
[btl_mx_happy="no"])
AS_IF([test "$btl_mx_happy" = "yes"],
[btl_mx_WRAPPER_EXTRA_LDFLAGS="$btl_mx_LDFLAGS"
btl_mx_WRAPPER_EXTRA_LIBS="$btl_mx_LIBS"
$1],
[$2])
# substitute in the things needed to build mx
AC_SUBST([btl_mx_CFLAGS])
AC_SUBST([btl_mx_CPPFLAGS])
AC_SUBST([btl_mx_LDFLAGS])
AC_SUBST([btl_mx_LIBS])
])dnl

Просмотреть файл

@ -18,5 +18,4 @@
# Specific to this module # Specific to this module
PARAM_INIT_FILE=btl_mx.c PARAM_INIT_FILE=btl_mx.c
PARAM_CONFIG_HEADER_FILE="mx_config.h"
PARAM_CONFIG_FILES="Makefile" PARAM_CONFIG_FILES="Makefile"