b68d66bb9b
This commit adds support for project_framework_component_* parameter matching. This is the first step in allowing the same framework name in multiple projects. This change also bumps the MCA component version to 2.1.0. All master frameworks have been updated to use the new component versioning macro. An mca.h has been added to each project to add a project specific versioning macro of the form PROJECT_MCA_VERSION_2_1_0. Signed-off-by: Nathan Hjelm <hjelmn@me.com>
100 строки
2.3 KiB
Makefile
100 строки
2.3 KiB
Makefile
#
|
|
# Copyright (c) 2013 Mellanox Technologies, Inc.
|
|
# All rights reserved.
|
|
# Copyright (c) 2013-2014 Cisco Systems, Inc. All rights reserved.
|
|
# Copyright (c) 2014 Intel, Inc. All rights reserved.
|
|
# Copyright (c) 2015 Los Alamos National Security, LLC. 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_BUILD_FORTRAN_BINDINGS
|
|
fortran_oshmem_lib = shmem/fortran/liboshmem_fortran.la
|
|
|
|
if OSHMEM_PROFILING
|
|
fortran_pshmem_lib = shmem/fortran/profile/liboshmem_fortran_pshmem.la
|
|
endif
|
|
|
|
else
|
|
fortran_oshmem_lib =
|
|
fortran_pshmem_lib =
|
|
endif
|
|
|
|
SUBDIRS = \
|
|
include \
|
|
shmem/c \
|
|
shmem/fortran
|
|
|
|
if PROJECT_OSHMEM
|
|
# Only traverse these dirs if we're building oshmem
|
|
SUBDIRS += \
|
|
$(MCA_oshmem_FRAMEWORKS_SUBDIRS) \
|
|
$(MCA_oshmem_FRAMEWORK_COMPONENT_STATIC_SUBDIRS) \
|
|
. \
|
|
$(MCA_oshmem_FRAMEWORK_COMPONENT_DSO_SUBDIRS) \
|
|
shmem/java
|
|
endif
|
|
|
|
DIST_SUBDIRS = \
|
|
include \
|
|
shmem/c \
|
|
shmem/fortran \
|
|
$(MCA_oshmem_FRAMEWORKS_SUBDIRS) \
|
|
$(MCA_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS) \
|
|
shmem/java
|
|
|
|
# Build The main OSHMEM library, but only if we're building OSHMEM
|
|
lib_LTLIBRARIES =
|
|
if PROJECT_OSHMEM
|
|
lib_LTLIBRARIES += liboshmem.la
|
|
endif
|
|
|
|
liboshmem_la_SOURCES =
|
|
liboshmem_la_LIBADD = \
|
|
shmem/c/liboshmem_c.la \
|
|
$(c_pshmem_lib) \
|
|
$(fortran_oshmem_lib) \
|
|
$(fortran_pshmem_lib) \
|
|
$(MCA_oshmem_FRAMEWORK_LIBS) \
|
|
$(OSHMEM_TOP_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_oshmemdata_DATA =
|
|
liboshmem_la_SOURCES += $(headers)
|
|
nodist_man_MANS =
|
|
|
|
# Conditionally install the header files
|
|
|
|
if WANT_INSTALL_HEADERS
|
|
oshmemdir = $(oshmemincludedir)/$(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 mca/Makefile.am
|
|
include tools/Makefile.am
|
|
include util/Makefile.am
|