Change build process slightly:
- always build src/libmpi.la (may contain all of liblam) - sometimes build src/liblam.la - ensure libwhatever is build before traversing src/tools This commit was SVN r487.
Этот коммит содержится в:
родитель
d1d4389627
Коммит
628a272bde
@ -166,8 +166,8 @@ AC_ARG_ENABLE(single-lib,
|
|||||||
if test "$enable_single_lib" != "yes"; then
|
if test "$enable_single_lib" != "yes"; then
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
WANT_SINGLE_MPI_LIBRARY=0
|
WANT_SINGLE_MPI_LIBRARY=0
|
||||||
LIBLAM_LA='$(top_builddir)/src/lam/liblam.la'
|
LIBLAM_LA='$(top_builddir)/src/liblam.la'
|
||||||
LIBMPI_LA='$(top_builddir)/src/mpi/libmpi.la'" $LIBLAM_LA"
|
LIBMPI_LA='$(top_builddir)/src/libmpi.la'" $LIBLAM_LA"
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
WANT_SINGLE_MPI_LIBRARY=1
|
WANT_SINGLE_MPI_LIBRARY=1
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
Makefile
|
Makefile
|
||||||
Makefile.in
|
Makefile.in
|
||||||
|
.libs
|
||||||
|
*.la
|
||||||
|
@ -5,22 +5,30 @@
|
|||||||
|
|
||||||
include $(top_srcdir)/config/Makefile.options
|
include $(top_srcdir)/config/Makefile.options
|
||||||
|
|
||||||
SUBDIRS = include lam mpi mca tools
|
SUBDIRS = include lam mpi mca . tools
|
||||||
|
|
||||||
# If the --enable-single-library flag was given to configure, then the
|
# If the --enable-single-library flag was given to configure, then the
|
||||||
# user wants to merge liblam and libmpi into a single big, honkin'
|
# user wants to merge liblam and libmpi into a single big, honkin'
|
||||||
# libmpi. So the libmpi in this directory should be a convenience
|
# libmpi. So the libmpi in this directory should be a convenience
|
||||||
# (noinst) library. Otherwise, it should be installed into lib.
|
# (noinst) library. Otherwise, it should be installed into lib.
|
||||||
|
|
||||||
|
lam_sources = lam/liblam_convenience.la mca/libmca_lam.la
|
||||||
|
mpi_sources = mpi/libmpi_convenience.la mca/libmca_mpi.la
|
||||||
|
|
||||||
if WANT_SINGLE_MPI_LIBRARY
|
if WANT_SINGLE_MPI_LIBRARY
|
||||||
install_lib = libmpi.la
|
install_libs = libmpi.la
|
||||||
|
libmpi_sources = $(mpi_sources) $(lam_sources)
|
||||||
|
liblam_sources =
|
||||||
else
|
else
|
||||||
install_lib =
|
install_libs = libmpi.la liblam.la
|
||||||
|
libmpi_sources = $(mpi_sources)
|
||||||
|
liblam_sources = $(lam_sources)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
lib_LTLIBRARIES = $(install_lib)
|
lib_LTLIBRARIES = $(install_libs)
|
||||||
|
|
||||||
libmpi_la_SOURCES =
|
libmpi_la_SOURCES =
|
||||||
libmpi_la_LIBADD = \
|
libmpi_la_LIBADD = $(libmpi_sources)
|
||||||
lam/liblam_convenience.la \
|
|
||||||
mpi/libmpi_convenience.la
|
liblam_la_SOURCES =
|
||||||
|
liblam_la_LIBADD = $(liblam_sources)
|
||||||
|
@ -7,6 +7,8 @@ include $(top_srcdir)/config/Makefile.options
|
|||||||
|
|
||||||
SUBDIRS = ctnetwork lfc mem os runtime threads util
|
SUBDIRS = ctnetwork lfc mem os runtime threads util
|
||||||
|
|
||||||
|
noinst_LTLIBRARIES = liblam_convenience.la
|
||||||
|
|
||||||
headers = \
|
headers = \
|
||||||
atomic.h \
|
atomic.h \
|
||||||
constants.h \
|
constants.h \
|
||||||
@ -15,11 +17,6 @@ headers = \
|
|||||||
totalview.h \
|
totalview.h \
|
||||||
types.h
|
types.h
|
||||||
|
|
||||||
# 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.
|
|
||||||
|
|
||||||
# List the input convenience libraries here
|
# List the input convenience libraries here
|
||||||
|
|
||||||
sources = \
|
sources = \
|
||||||
@ -29,6 +26,9 @@ sources = \
|
|||||||
threads/libthreads.la \
|
threads/libthreads.la \
|
||||||
util/libutil.la
|
util/libutil.la
|
||||||
|
|
||||||
|
liblam_convenience_la_SOURCES =
|
||||||
|
liblam_convenience_la_LIBADD = $(sources)
|
||||||
|
|
||||||
# Conditionally install the header files
|
# Conditionally install the header files
|
||||||
|
|
||||||
if WANT_INSTALL_HEADERS
|
if WANT_INSTALL_HEADERS
|
||||||
@ -37,28 +37,3 @@ lam_HEADERS = $(headers)
|
|||||||
else
|
else
|
||||||
lamdir = $(includedir)
|
lamdir = $(includedir)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# List the names of the output libraries here
|
|
||||||
|
|
||||||
convenience_lib_name = liblam_convenience.la
|
|
||||||
install_lib_name = liblam.la
|
|
||||||
|
|
||||||
# Setup for deciding which library form we'll build
|
|
||||||
|
|
||||||
if WANT_SINGLE_MPI_LIBRARY
|
|
||||||
install_lib =
|
|
||||||
convenience_lib = $(convenience_lib_name)
|
|
||||||
else
|
|
||||||
install_lib = $(install_lib_name)
|
|
||||||
convenience_lib =
|
|
||||||
endif
|
|
||||||
|
|
||||||
lib_LTLIBRARIES = $(install_lib)
|
|
||||||
noinst_LTLIBRARIES = $(convenience_lib)
|
|
||||||
|
|
||||||
liblam_la_SOURCES =
|
|
||||||
liblam_la_LIBADD = $(sources)
|
|
||||||
|
|
||||||
liblam_convenience_la_SOURCES =
|
|
||||||
liblam_convenience_la_LIBADD = $(sources)
|
|
||||||
|
|
||||||
|
@ -7,29 +7,12 @@ include $(top_srcdir)/config/Makefile.options
|
|||||||
|
|
||||||
SUBDIRS = communicator datatype interface runtime
|
SUBDIRS = communicator datatype interface runtime
|
||||||
|
|
||||||
# If the --enable-single-library flag was given to configure, then the
|
noinst_LTLIBRARIES = libmpi_convenience.la
|
||||||
# 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 =
|
|
||||||
convenience_lib = libmpi_convenience.la
|
|
||||||
else
|
|
||||||
install_lib = libmpi.la
|
|
||||||
convenience_lib =
|
|
||||||
endif
|
|
||||||
|
|
||||||
lib_LTLIBRARIES = $(install_lib)
|
|
||||||
noinst_LTLIBRARIES = $(convenience_lib)
|
|
||||||
|
|
||||||
sources = \
|
sources = \
|
||||||
datatype/libmpi_datatype.la \
|
datatype/libmpi_datatype.la \
|
||||||
interface/libmpi_interface.la \
|
interface/libmpi_interface.la \
|
||||||
runtime/libmpi_runtime.la
|
runtime/libmpi_runtime.la
|
||||||
|
|
||||||
libmpi_la_SOURCES =
|
|
||||||
libmpi_la_LIBADD = $(sources)
|
|
||||||
|
|
||||||
libmpi_convenience_la_SOURCES =
|
libmpi_convenience_la_SOURCES =
|
||||||
libmpi_convenience_la_LIBADD = $(sources)
|
libmpi_convenience_la_LIBADD = $(sources)
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user