8b778903d8
pkg{data,lib,includedir}, use our own ompi{data,lib,includedir}, which is always set to {datadir,libdir,includedir}/openmpi. This will keep us from having help files in prefix/share/open-rte when building without Open MPI, but in prefix/share/openmpi when building with Open MPI. This commit was SVN r30140.
99 строки
2.5 KiB
Makefile
99 строки
2.5 KiB
Makefile
#
|
|
# Copyright (c) 2013 Mellanox Technologies, Inc.
|
|
# All rights reserved.
|
|
# Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
# Do we have profiling?
|
|
if OSHMEM_PROFILING
|
|
c_pshmem_lib = shmem/c/profile/liboshmem_c_pshmem.la
|
|
else
|
|
c_pshmem_lib =
|
|
endif
|
|
|
|
# Do we have the Fortran bindings?
|
|
if OSHMEM_WANT_FORTRAN_BINDINGS
|
|
fortran_oshmem_lib = shmem/fortran/liboshmem_fortran.la
|
|
else
|
|
fortran_oshmem_lib =
|
|
endif
|
|
|
|
SUBDIRS = \
|
|
include \
|
|
shmem/c \
|
|
shmem/fortran \
|
|
$(EXT_oshmem_FRAMEWORKS_SUBDIRS) \
|
|
$(EXT_oshmem_FRAMEWORK_COMPONENT_STATIC_SUBDIRS) \
|
|
$(MCA_oshmem_FRAMEWORKS_SUBDIRS) \
|
|
$(MCA_oshmem_FRAMEWORK_COMPONENT_STATIC_SUBDIRS) \
|
|
. \
|
|
$(MCA_oshmem_FRAMEWORK_COMPONENT_DSO_SUBDIRS)
|
|
|
|
DIST_SUBDIRS = \
|
|
include \
|
|
shmem/c \
|
|
shmem/fortran \
|
|
$(EXT_oshmem_FRAMEWORKS_SUBDIRS) \
|
|
$(EXT_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS) \
|
|
$(MCA_oshmem_FRAMEWORKS_SUBDIRS) \
|
|
$(MCA_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS)
|
|
|
|
#Build The main OSHMEM library
|
|
lib_LTLIBRARIES = liboshmem.la
|
|
liboshmem_la_SOURCES =
|
|
liboshmem_la_LIBADD = \
|
|
shmem/c/liboshmem_c.la \
|
|
$(c_pshmem_lib) \
|
|
$(fortran_oshmem_lib) \
|
|
$(MCA_oshmem_FRAMEWORK_LIBS) \
|
|
$(top_ompi_builddir)/ompi/libmpi.la
|
|
liboshmem_la_DEPENDENCIES = $(liboshmem_la_LIBADD)
|
|
liboshmem_la_LDFLAGS = \
|
|
-version-info $(liboshmem_so_version) \
|
|
$(OSHMEM_LIBSHMEM_EXTRA_LDFLAGS)
|
|
|
|
# included subdirectory Makefile.am's and appended-to variables
|
|
headers =
|
|
noinst_LTLIBRARIES =
|
|
include_HEADERS =
|
|
dist_ompidata_DATA =
|
|
liboshmem_la_SOURCES += $(headers)
|
|
nodist_man_MANS =
|
|
|
|
# Conditionally install the header files
|
|
|
|
if WANT_INSTALL_HEADERS
|
|
oshmemdir = $(ompiincludedir)/$(subdir)
|
|
nobase_oshmem_HEADERS = $(headers)
|
|
endif
|
|
|
|
include op/Makefile.am
|
|
include proc/Makefile.am
|
|
include request/Makefile.am
|
|
include runtime/Makefile.am
|
|
include shmem/Makefile.am
|
|
include tools/Makefile.am
|
|
|
|
# Ensure that the man page directory exists before we try to make man
|
|
# page files (because oshmem/shmem/man/man3 has no config.status-generated
|
|
# Makefile)
|
|
dir_stamp = $(top_builddir)/$(subdir)/shmem/man/man3/.dir-stamp
|
|
|
|
# Also ensure that the man pages are rebuilt if the opal_config.h file
|
|
# changes (e.g., configure was run again, meaning that the release
|
|
# date or version may have changed)
|
|
$(nodist_man_MANS): $(dir_stamp) $(top_builddir)/opal/include/opal_config.h
|
|
|
|
$(dir_stamp):
|
|
$(mkdir_p) `dirname $@`
|
|
touch "$@"
|
|
|
|
# Remove the generated man pages
|
|
distclean-local:
|
|
rm -f $(nodist_man_MANS) $(dir_stamp)
|