#
# Copyright (c) 2011-2020 Cisco Systems, Inc.  All rights reserved
# Copyright (c) 2013      Los Alamos National Security, LLC.  All rights
#                         reserved.
# Copyright (c) 2014-2020 Intel, Inc.  All rights reserved.
# Copyright (c) 2017      IBM Corporation.  All rights reserved.
# Copyright (c) 2022      Nanook Consulting.  All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#

AM_CPPFLAGS = $(grpcomm_direct_CPPFLAGS)

sources = \
	grpcomm_direct.h \
	grpcomm_direct.c \
	grpcomm_direct_component.c

# Make the output library in this directory, and name it either
# mca_<type>_<name>.la (for DSO builds) or libmca_<type>_<name>.la
# (for static builds).

if MCA_BUILD_prte_grpcomm_direct_DSO
component_noinst =
component_install = prte_mca_grpcomm_direct.la
else
component_noinst = libprtemca_grpcomm_direct.la
component_install =
endif

mcacomponentdir = $(prtelibdir)
mcacomponent_LTLIBRARIES = $(component_install)
prte_mca_grpcomm_direct_la_SOURCES = $(sources)
prte_mca_grpcomm_direct_la_LDFLAGS = -module -avoid-version
prte_mca_grpcomm_direct_la_LIBADD = $(top_builddir)/src/libprrte.la

noinst_LTLIBRARIES = $(component_noinst)
libprtemca_grpcomm_direct_la_SOURCES =$(sources)
libprtemca_grpcomm_direct_la_LDFLAGS = -module -avoid-version
