Add a feature to the build system that Terry from Sun and I talked about
in San Jose. Allow the configure option --disable-binaries to build OMPI, but not build or install the support binaries (so basically, just build the libraries). This commit was SVN r9777.
Этот коммит содержится в:
родитель
5fed99c2c2
Коммит
52369307f8
@ -497,4 +497,12 @@ elif test "$with_cross" != "" ; then
|
|||||||
. "$with_cross"
|
. "$with_cross"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#
|
||||||
|
# Do we want to install binaries?
|
||||||
|
#
|
||||||
|
AC_ARG_ENABLE([binaries],
|
||||||
|
[AC_HELP_STRING([--enable-binaries],
|
||||||
|
[Build and install binaries required for Open MPI, such as the wrapper compilers. Useful for multi-lib installations. (default: enabled)])])
|
||||||
|
AM_CONDITIONAL([OMPI_INSTALL_BINARIES], [test "$enable_binaries" != "no"])
|
||||||
|
|
||||||
])
|
])
|
||||||
|
@ -36,12 +36,17 @@ AM_CPPFLAGS = \
|
|||||||
-DOMPI_F77_ABSOLUTE="\"@OMPI_F77_ABSOLUTE@\"" \
|
-DOMPI_F77_ABSOLUTE="\"@OMPI_F77_ABSOLUTE@\"" \
|
||||||
-DOMPI_F90_ABSOLUTE="\"@OMPI_F90_ABSOLUTE@\""
|
-DOMPI_F90_ABSOLUTE="\"@OMPI_F90_ABSOLUTE@\""
|
||||||
|
|
||||||
|
if OMPI_INSTALL_BINARIES
|
||||||
|
|
||||||
dist_pkgdata_DATA = help-ompi_info.txt
|
dist_pkgdata_DATA = help-ompi_info.txt
|
||||||
|
|
||||||
|
bin_PROGRAMS = ompi_info
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
libs = \
|
libs = \
|
||||||
$(top_builddir)/ompi/libmpi.la
|
$(top_builddir)/ompi/libmpi.la
|
||||||
|
|
||||||
bin_PROGRAMS = ompi_info
|
|
||||||
ompi_info_SOURCES = \
|
ompi_info_SOURCES = \
|
||||||
components.cc \
|
components.cc \
|
||||||
ompi_info.h \
|
ompi_info.h \
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
# $HEADER$
|
# $HEADER$
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if OMPI_INSTALL_BINARIES
|
||||||
|
|
||||||
dist_pkgdata_DATA = mpicc-wrapper-data.txt \
|
dist_pkgdata_DATA = mpicc-wrapper-data.txt \
|
||||||
mpic++-wrapper-data.txt \
|
mpic++-wrapper-data.txt \
|
||||||
mpif77-wrapper-data.txt \
|
mpif77-wrapper-data.txt \
|
||||||
@ -71,3 +73,5 @@ uninstall-local:
|
|||||||
$(DESTDIR)$(bindir)/mpif90$(EXEEXT) \
|
$(DESTDIR)$(bindir)/mpif90$(EXEEXT) \
|
||||||
$(DESTDIR)$(pkgdatadir)/mpicxx-wrapper-data.txt
|
$(DESTDIR)$(pkgdatadir)/mpicxx-wrapper-data.txt
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
endif
|
||||||
|
@ -16,6 +16,14 @@
|
|||||||
# $HEADER$
|
# $HEADER$
|
||||||
#
|
#
|
||||||
|
|
||||||
|
opal_wrapper_SOURCES = \
|
||||||
|
opal_wrapper.c
|
||||||
|
|
||||||
|
opal_wrapper_LDADD = $(top_builddir)/opal/libopal.la
|
||||||
|
opal_wrapper_DEPENDENCIES = $(top_builddir)/opal/libopal.la
|
||||||
|
|
||||||
|
if OMPI_INSTALL_BINARIES
|
||||||
|
|
||||||
nodist_pkgdata_DATA = \
|
nodist_pkgdata_DATA = \
|
||||||
opalcc-wrapper-data.txt \
|
opalcc-wrapper-data.txt \
|
||||||
opalc++-wrapper-data.txt
|
opalc++-wrapper-data.txt
|
||||||
@ -25,12 +33,6 @@ dist_pkgdata_DATA = \
|
|||||||
|
|
||||||
bin_PROGRAMS = opal_wrapper
|
bin_PROGRAMS = opal_wrapper
|
||||||
|
|
||||||
opal_wrapper_SOURCES = \
|
|
||||||
opal_wrapper.c
|
|
||||||
|
|
||||||
opal_wrapper_LDADD = $(top_builddir)/opal/libopal.la
|
|
||||||
opal_wrapper_DEPENDENCIES = $(top_builddir)/opal/libopal.la
|
|
||||||
|
|
||||||
if CASE_SENSITIVE_FS
|
if CASE_SENSITIVE_FS
|
||||||
install-exec-hook:
|
install-exec-hook:
|
||||||
(cd $(DESTDIR)$(bindir); rm -f opalcc$(EXEEXT); $(LN_S) opal_wrapper opalcc)
|
(cd $(DESTDIR)$(bindir); rm -f opalcc$(EXEEXT); $(LN_S) opal_wrapper opalcc)
|
||||||
@ -55,3 +57,7 @@ uninstall-local:
|
|||||||
$(DESTDIR)$(bindir)/opalc++$(EXEEXT)
|
$(DESTDIR)$(bindir)/opalc++$(EXEEXT)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
endif
|
||||||
|
@ -16,16 +16,20 @@
|
|||||||
# $HEADER$
|
# $HEADER$
|
||||||
#
|
#
|
||||||
|
|
||||||
dist_pkgdata_DATA = help-orteconsole.txt
|
|
||||||
|
|
||||||
libs = \
|
libs = \
|
||||||
$(top_builddir)/orte/liborte.la
|
$(top_builddir)/orte/liborte.la
|
||||||
|
|
||||||
headers = orteconsole.h
|
headers = orteconsole.h
|
||||||
|
|
||||||
|
if OMPI_INSTALL_BINARIES
|
||||||
|
|
||||||
|
dist_pkgdata_DATA = help-orteconsole.txt
|
||||||
|
|
||||||
bin_PROGRAMS = \
|
bin_PROGRAMS = \
|
||||||
orteconsole
|
orteconsole
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
orteconsole_SOURCES = \
|
orteconsole_SOURCES = \
|
||||||
$(headers) \
|
$(headers) \
|
||||||
orteconsole.c
|
orteconsole.c
|
||||||
@ -39,6 +43,3 @@ orte_HEADERS = $(headers)
|
|||||||
else
|
else
|
||||||
ortedir = $(includedir)
|
ortedir = $(includedir)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
clean-local:
|
|
||||||
test -z "$(OMPI_CXX_TEMPLATE_REPOSITORY)" || $(RM) -rf $(OMPI_CXX_TEMPLATE_REPOSITORY)
|
|
||||||
|
@ -20,12 +20,13 @@
|
|||||||
libs = \
|
libs = \
|
||||||
$(top_builddir)/orte/liborte.la
|
$(top_builddir)/orte/liborte.la
|
||||||
|
|
||||||
|
if OMPI_INSTALL_BINARIES
|
||||||
|
|
||||||
bin_PROGRAMS = openmpi
|
bin_PROGRAMS = openmpi
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
openmpi_SOURCES = openmpi.h openmpi.c
|
openmpi_SOURCES = openmpi.h openmpi.c
|
||||||
openmpi_LDADD = $(libs)
|
openmpi_LDADD = $(libs)
|
||||||
openmpi_DFLAGS =
|
openmpi_DFLAGS =
|
||||||
openmpi_DEPENDENCIES = $(libs)
|
openmpi_DEPENDENCIES = $(libs)
|
||||||
|
|
||||||
clean-local:
|
|
||||||
test -z "$(OMPI_CXX_TEMPLATE_REPOSITORY)" || $(RM) -rf $(OMPI_CXX_TEMPLATE_REPOSITORY)
|
|
||||||
|
@ -16,14 +16,18 @@
|
|||||||
# $HEADER$
|
# $HEADER$
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if OMPI_INSTALL_BINARIES
|
||||||
|
|
||||||
dist_pkgdata_DATA = help-orted.txt
|
dist_pkgdata_DATA = help-orted.txt
|
||||||
|
|
||||||
|
bin_PROGRAMS = orted
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
libs = \
|
libs = \
|
||||||
$(top_builddir)/orte/liborte.la
|
$(top_builddir)/orte/liborte.la
|
||||||
|
|
||||||
headers = orted.h
|
headers = orted.h
|
||||||
|
|
||||||
bin_PROGRAMS = orted
|
|
||||||
orted_SOURCES = \
|
orted_SOURCES = \
|
||||||
$(headers) \
|
$(headers) \
|
||||||
orted.c
|
orted.c
|
||||||
|
@ -16,12 +16,17 @@
|
|||||||
# $HEADER$
|
# $HEADER$
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if OMPI_INSTALL_BINARIES
|
||||||
|
|
||||||
dist_pkgdata_DATA = help-orteprobe.txt
|
dist_pkgdata_DATA = help-orteprobe.txt
|
||||||
|
|
||||||
|
bin_PROGRAMS = orteprobe
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
libs = \
|
libs = \
|
||||||
$(top_builddir)/orte/liborte.la
|
$(top_builddir)/orte/liborte.la
|
||||||
|
|
||||||
bin_PROGRAMS = orteprobe
|
|
||||||
orteprobe_SOURCES = \
|
orteprobe_SOURCES = \
|
||||||
orteprobe.h \
|
orteprobe.h \
|
||||||
orteprobe.c
|
orteprobe.c
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
# $HEADER$
|
# $HEADER$
|
||||||
#
|
#
|
||||||
|
|
||||||
dist_pkgdata_DATA = help-orterun.txt
|
|
||||||
|
|
||||||
# This is not quite in the Automake spirit, but we have to do it.
|
# This is not quite in the Automake spirit, but we have to do it.
|
||||||
# Since the totalview portion of the library must be built with -g, we
|
# Since the totalview portion of the library must be built with -g, we
|
||||||
# must eliminate the CFLAGS that are passed in here by default (which
|
# must eliminate the CFLAGS that are passed in here by default (which
|
||||||
@ -30,8 +28,6 @@ CFLAGS = $(CFLAGS_WITHOUT_OPTFLAGS) $(TOTALVIEW_DEBUG_FLAGS)
|
|||||||
libs = \
|
libs = \
|
||||||
$(top_builddir)/orte/liborte.la
|
$(top_builddir)/orte/liborte.la
|
||||||
|
|
||||||
bin_PROGRAMS = orterun
|
|
||||||
|
|
||||||
orterun_SOURCES = \
|
orterun_SOURCES = \
|
||||||
main.c \
|
main.c \
|
||||||
orterun.c \
|
orterun.c \
|
||||||
@ -42,6 +38,12 @@ orterun_SOURCES = \
|
|||||||
orterun_LDADD = $(libs)
|
orterun_LDADD = $(libs)
|
||||||
orterun_DEPENDENCIES = $(libs)
|
orterun_DEPENDENCIES = $(libs)
|
||||||
|
|
||||||
|
if OMPI_INSTALL_BINARIES
|
||||||
|
|
||||||
|
bin_PROGRAMS = orterun
|
||||||
|
|
||||||
|
dist_pkgdata_DATA = help-orterun.txt
|
||||||
|
|
||||||
# AM 1.9.6 seems to have a bug in it's dependencies for install-man if
|
# AM 1.9.6 seems to have a bug in it's dependencies for install-man if
|
||||||
#dist_ and nodist_ are used, so explicitly add to EXTRA_DIST...
|
#dist_ and nodist_ are used, so explicitly add to EXTRA_DIST...
|
||||||
man_MANS = orterun.1 mpirun.1 mpiexec.1
|
man_MANS = orterun.1 mpirun.1 mpiexec.1
|
||||||
@ -63,3 +65,5 @@ mpiexec.1: $(top_srcdir)/orte/tools/orterun/orterun.1
|
|||||||
|
|
||||||
distclean-local:
|
distclean-local:
|
||||||
rm -f mpirun.1 mpiexec.1
|
rm -f mpirun.1 mpiexec.1
|
||||||
|
|
||||||
|
endif
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
# $HEADER$
|
# $HEADER$
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if OMPI_INSTALL_BINARIES
|
||||||
|
|
||||||
nodist_pkgdata_DATA = \
|
nodist_pkgdata_DATA = \
|
||||||
ortecc-wrapper-data.txt \
|
ortecc-wrapper-data.txt \
|
||||||
ortec++-wrapper-data.txt
|
ortec++-wrapper-data.txt
|
||||||
@ -44,3 +46,5 @@ uninstall-local:
|
|||||||
$(DESTDIR)$(bindir)/ortec++$(EXEEXT)
|
$(DESTDIR)$(bindir)/ortec++$(EXEEXT)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
endif
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user