- Only traverse into f77 and f90 if compilers were found for them
- Make the library as installable or as a convenience library, dependining on whether --enable-single-lib was given to configure or not This commit was SVN r112.
Этот коммит содержится в:
родитель
a650988429
Коммит
f4e7aa9ab7
@ -5,11 +5,44 @@
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
SUBDIRS = c cxx f77 f90
|
||||
# See if configure found a valid f77 compiler
|
||||
|
||||
lib_LTLIBRARIES = libmpi.la
|
||||
if BUILD_MPI_F77
|
||||
f77_subdir = f77
|
||||
f77_lib = f77/libmpi_f77.la
|
||||
else
|
||||
f77_subdir =
|
||||
f77_lib =
|
||||
endif
|
||||
|
||||
# See if configure found a valid f90/f95 compiler
|
||||
|
||||
if BUILD_MPI_F90
|
||||
f90_subdir = f90
|
||||
f90_lib = f90/libmpi_f90.la
|
||||
else
|
||||
f90_subdir =
|
||||
f90_lib =
|
||||
endif
|
||||
|
||||
SUBDIRS = c cxx $(f77_subdir) $(f90_subdir)
|
||||
DIST_SUBDIRS = c cxx f77 f90
|
||||
|
||||
# If the --enable-single-library flag was given to configure, then the
|
||||
# user wants to merge liblam and libmpi into a single big, honkin'
|
||||
# libmpi. So the libmpi in this directory should be a convenience
|
||||
# (noinst) library. Otherwise, it should be installed into lib.
|
||||
|
||||
if WANT_SINGLE_MPI_LIBRARY
|
||||
install_lib =
|
||||
convenince_lib = libmpi.la
|
||||
else
|
||||
install_lib = libmpi.la
|
||||
convenince_lib =
|
||||
endif
|
||||
|
||||
lib_LTLIBRARIES = $(install_lib)
|
||||
noinst_LTLIBRARIES = $(convenience_lib)
|
||||
|
||||
libmpi_la_SOURCES =
|
||||
libmpi_la_LIBADD = \
|
||||
c/libmpi_c.la \
|
||||
f77/libmpi_f77.la
|
||||
libmpi_la_LIBADD = c/libmpi_c.la $(f77_lib) $(f90_lib)
|
||||
|
@ -5,11 +5,44 @@
|
||||
|
||||
include $(top_srcdir)/config/Makefile.options
|
||||
|
||||
SUBDIRS = c cxx f77 f90
|
||||
# See if configure found a valid f77 compiler
|
||||
|
||||
lib_LTLIBRARIES = libmpi.la
|
||||
if BUILD_MPI_F77
|
||||
f77_subdir = f77
|
||||
f77_lib = f77/libmpi_f77.la
|
||||
else
|
||||
f77_subdir =
|
||||
f77_lib =
|
||||
endif
|
||||
|
||||
# See if configure found a valid f90/f95 compiler
|
||||
|
||||
if BUILD_MPI_F90
|
||||
f90_subdir = f90
|
||||
f90_lib = f90/libmpi_f90.la
|
||||
else
|
||||
f90_subdir =
|
||||
f90_lib =
|
||||
endif
|
||||
|
||||
SUBDIRS = c cxx $(f77_subdir) $(f90_subdir)
|
||||
DIST_SUBDIRS = c cxx f77 f90
|
||||
|
||||
# If the --enable-single-library flag was given to configure, then the
|
||||
# user wants to merge liblam and libmpi into a single big, honkin'
|
||||
# libmpi. So the libmpi in this directory should be a convenience
|
||||
# (noinst) library. Otherwise, it should be installed into lib.
|
||||
|
||||
if WANT_SINGLE_MPI_LIBRARY
|
||||
install_lib =
|
||||
convenince_lib = libmpi.la
|
||||
else
|
||||
install_lib = libmpi.la
|
||||
convenince_lib =
|
||||
endif
|
||||
|
||||
lib_LTLIBRARIES = $(install_lib)
|
||||
noinst_LTLIBRARIES = $(convenience_lib)
|
||||
|
||||
libmpi_la_SOURCES =
|
||||
libmpi_la_LIBADD = \
|
||||
c/libmpi_c.la \
|
||||
f77/libmpi_f77.la
|
||||
libmpi_la_LIBADD = c/libmpi_c.la $(f77_lib) $(f90_lib)
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user