2013-09-10 19:34:09 +04:00
|
|
|
#
|
2015-07-31 21:44:50 +03:00
|
|
|
# Copyright (c) 2013-2015 Mellanox Technologies, Inc.
|
2013-09-10 19:34:09 +04:00
|
|
|
# All rights reserved.
|
2014-03-14 01:23:04 +04:00
|
|
|
# Copyright (c) 2013-2014 Cisco Systems, Inc. All rights reserved.
|
2014-03-12 02:02:40 +04:00
|
|
|
# Copyright (c) 2014 Intel, Inc. All rights reserved.
|
2015-03-06 06:50:44 +03:00
|
|
|
# Copyright (c) 2015 Los Alamos National Security, LLC. All rights
|
|
|
|
# reserved.
|
2013-09-10 19:34:09 +04:00
|
|
|
# $COPYRIGHT$
|
2015-06-24 06:59:57 +03:00
|
|
|
#
|
2013-09-10 19:34:09 +04:00
|
|
|
# Additional copyrights may follow
|
2015-06-24 06:59:57 +03:00
|
|
|
#
|
2013-09-10 19:34:09 +04:00
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
|
|
|
# Do we have profiling?
|
|
|
|
if OSHMEM_PROFILING
|
2013-11-25 15:02:42 +04:00
|
|
|
c_pshmem_lib = shmem/c/profile/liboshmem_c_pshmem.la
|
2013-09-10 19:34:09 +04:00
|
|
|
else
|
2014-02-26 20:32:23 +04:00
|
|
|
c_pshmem_lib =
|
2013-09-10 19:34:09 +04:00
|
|
|
endif
|
|
|
|
|
2013-09-15 13:32:07 +04:00
|
|
|
# Do we have the Fortran bindings?
|
2014-01-23 11:49:13 +04:00
|
|
|
if OSHMEM_BUILD_FORTRAN_BINDINGS
|
2013-11-25 15:02:42 +04:00
|
|
|
fortran_oshmem_lib = shmem/fortran/liboshmem_fortran.la
|
2014-04-23 22:56:37 +04:00
|
|
|
|
|
|
|
if OSHMEM_PROFILING
|
|
|
|
fortran_pshmem_lib = shmem/fortran/profile/liboshmem_fortran_pshmem.la
|
|
|
|
endif
|
|
|
|
|
2013-09-15 13:32:07 +04:00
|
|
|
else
|
2013-11-25 15:02:42 +04:00
|
|
|
fortran_oshmem_lib =
|
2014-04-23 22:56:37 +04:00
|
|
|
fortran_pshmem_lib =
|
2013-09-15 13:32:07 +04:00
|
|
|
endif
|
2013-09-10 19:34:09 +04:00
|
|
|
|
|
|
|
SUBDIRS = \
|
|
|
|
include \
|
|
|
|
shmem/c \
|
2014-03-12 02:02:40 +04:00
|
|
|
shmem/fortran
|
|
|
|
|
2014-03-14 01:23:04 +04:00
|
|
|
if PROJECT_OSHMEM
|
|
|
|
# Only traverse these dirs if we're building oshmem
|
2014-03-12 02:02:40 +04:00
|
|
|
SUBDIRS += \
|
2013-09-10 19:34:09 +04:00
|
|
|
$(MCA_oshmem_FRAMEWORKS_SUBDIRS) \
|
2014-03-14 01:23:04 +04:00
|
|
|
$(MCA_oshmem_FRAMEWORK_COMPONENT_STATIC_SUBDIRS) \
|
|
|
|
. \
|
2015-12-02 16:31:34 +03:00
|
|
|
$(MCA_oshmem_FRAMEWORK_COMPONENT_DSO_SUBDIRS)
|
2014-03-14 01:23:04 +04:00
|
|
|
endif
|
2013-09-15 13:32:07 +04:00
|
|
|
|
2013-09-10 19:34:09 +04:00
|
|
|
DIST_SUBDIRS = \
|
|
|
|
include \
|
|
|
|
shmem/c \
|
2013-09-15 13:32:07 +04:00
|
|
|
shmem/fortran \
|
2013-09-10 19:34:09 +04:00
|
|
|
$(MCA_oshmem_FRAMEWORKS_SUBDIRS) \
|
2015-12-02 16:31:34 +03:00
|
|
|
$(MCA_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS)
|
2013-09-10 19:34:09 +04:00
|
|
|
|
2014-03-14 01:23:04 +04:00
|
|
|
# Build The main OSHMEM library, but only if we're building OSHMEM
|
2014-03-12 02:02:40 +04:00
|
|
|
lib_LTLIBRARIES =
|
2014-03-14 01:23:04 +04:00
|
|
|
if PROJECT_OSHMEM
|
2014-03-12 02:02:40 +04:00
|
|
|
lib_LTLIBRARIES += liboshmem.la
|
2014-03-14 01:23:04 +04:00
|
|
|
endif
|
2014-03-12 02:02:40 +04:00
|
|
|
|
2013-11-25 15:02:42 +04:00
|
|
|
liboshmem_la_SOURCES =
|
|
|
|
liboshmem_la_LIBADD = \
|
|
|
|
shmem/c/liboshmem_c.la \
|
2013-09-10 19:34:09 +04:00
|
|
|
$(c_pshmem_lib) \
|
2013-12-03 17:16:12 +04:00
|
|
|
$(fortran_oshmem_lib) \
|
2014-04-23 22:56:37 +04:00
|
|
|
$(fortran_pshmem_lib) \
|
2013-09-10 19:34:09 +04:00
|
|
|
$(MCA_oshmem_FRAMEWORK_LIBS) \
|
2014-05-08 01:48:53 +04:00
|
|
|
$(OSHMEM_TOP_BUILDDIR)/ompi/libmpi.la
|
2013-11-25 15:02:42 +04:00
|
|
|
liboshmem_la_DEPENDENCIES = $(liboshmem_la_LIBADD)
|
|
|
|
liboshmem_la_LDFLAGS = \
|
|
|
|
-version-info $(liboshmem_so_version) \
|
2013-09-10 19:34:09 +04:00
|
|
|
$(OSHMEM_LIBSHMEM_EXTRA_LDFLAGS)
|
|
|
|
|
|
|
|
# included subdirectory Makefile.am's and appended-to variables
|
|
|
|
headers =
|
|
|
|
noinst_LTLIBRARIES =
|
|
|
|
include_HEADERS =
|
2014-05-08 18:32:24 +04:00
|
|
|
dist_oshmemdata_DATA =
|
2013-11-25 15:02:42 +04:00
|
|
|
liboshmem_la_SOURCES += $(headers)
|
2013-09-10 19:34:09 +04:00
|
|
|
nodist_man_MANS =
|
|
|
|
|
|
|
|
# Conditionally install the header files
|
|
|
|
|
|
|
|
if WANT_INSTALL_HEADERS
|
2014-05-08 06:01:35 +04:00
|
|
|
oshmemdir = $(oshmemincludedir)/$(subdir)
|
2014-01-08 02:11:15 +04:00
|
|
|
nobase_oshmem_HEADERS = $(headers)
|
2013-09-10 19:34:09 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
include op/Makefile.am
|
|
|
|
include proc/Makefile.am
|
|
|
|
include request/Makefile.am
|
2015-11-24 12:31:27 +03:00
|
|
|
include info/Makefile.am
|
2013-09-10 19:34:09 +04:00
|
|
|
include runtime/Makefile.am
|
|
|
|
include shmem/Makefile.am
|
2015-07-31 21:44:50 +03:00
|
|
|
include shmem/man/man3/Makefile.extra
|
2015-03-06 06:50:44 +03:00
|
|
|
include mca/Makefile.am
|
2013-09-10 19:34:09 +04:00
|
|
|
include tools/Makefile.am
|
2014-01-28 11:30:36 +04:00
|
|
|
include util/Makefile.am
|
2015-07-31 21:44:50 +03:00
|
|
|
|
|
|
|
# Ensure that the man page directory exists before we try to make man
|
|
|
|
# page files (because ompi/mpi/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)
|