2013-09-10 19:34:09 +04:00
|
|
|
#
|
|
|
|
# Copyright (c) 2013 Mellanox Technologies, Inc.
|
|
|
|
# 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.
|
2013-09-10 19:34:09 +04:00
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
|
|
|
# $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) \
|
|
|
|
. \
|
2013-09-10 19:34:09 +04: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) \
|
|
|
|
$(MCA_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS)
|
|
|
|
|
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-01-08 02:11:15 +04:00
|
|
|
dist_ompidata_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-01-08 02:11:15 +04:00
|
|
|
oshmemdir = $(ompiincludedir)/$(subdir)
|
|
|
|
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
|
|
|
|
include runtime/Makefile.am
|
|
|
|
include shmem/Makefile.am
|
|
|
|
include tools/Makefile.am
|
2014-01-28 11:30:36 +04:00
|
|
|
include util/Makefile.am
|