# -*- makefile -*-
#
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
#                         University Research and Technology
#                         Corporation.  All rights reserved.
# Copyright (c) 2004-2005 The University of Tennessee and The University
#                         of Tennessee Research Foundation.  All rights
#                         reserved.
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
#                         University of Stuttgart.  All rights reserved.
# Copyright (c) 2004-2005 The Regents of the University of California.
#                         All rights reserved.
# Copyright (c) 2012      Los Alamos National Security, Inc.  All rights reserved.
# Copyright (c) 2013-2019 Intel, Inc.  All rights reserved.
# Copyright (c) 2017      Research Organization for Information Science
#                         and Technology (RIST). All rights reserved.
# Copyright (c) 2021-2022 Nanook Consulting.  All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#

AM_CPPFLAGS = $(gds_hash_CPPFLAGS)

headers = gds_hash.h
sources = \
        gds_hash_component.c \
        gds_hash.c \
        process_arrays.c \
        gds_utils.c \
        gds_fetch.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_pmix_gds_hash_DSO
lib =
lib_sources =
component = pmix_mca_gds_hash.la
component_sources = $(headers) $(sources)
else
lib = libpmix_mca_gds_hash.la
lib_sources = $(headers) $(sources)
component =
component_sources =
endif

mcacomponentdir = $(pmixlibdir)
mcacomponent_LTLIBRARIES = $(component)
pmix_mca_gds_hash_la_SOURCES = $(component_sources)
pmix_mca_gds_hash_la_LIBADD = $(gds_hash_LIBS)
pmix_mca_gds_hash_la_LDFLAGS = -module -avoid-version $(gds_hash_LDFLAGS)
if NEED_LIBPMIX
pmix_mca_gds_hash_la_LIBADD += $(top_builddir)/src/libpmix.la
endif

noinst_LTLIBRARIES = $(lib)
libpmix_mca_gds_hash_la_SOURCES = $(lib_sources)
libpmix_mca_gds_hash_la_LIBADD = $(gds_hash_LIBS)
libpmix_mca_gds_hash_la_LDFLAGS = -module -avoid-version $(gds_hash_LDFLAGS)
