#
# Copyright  (C)  2022 Jörg Behrens <behrens@dkrz.de>
#                      Moritz Hanke <hanke@dkrz.de>
#                      Thomas Jahns <jahns@dkrz.de>
#
# Author: Jörg Behrens <behrens@dkrz.de>
#         Moritz Hanke <hanke@dkrz.de>
#         Thomas Jahns <jahns@dkrz.de>
#
# Maintainer: Jörg Behrens <behrens@dkrz.de>
#             Moritz Hanke <hanke@dkrz.de>
#             Thomas Jahns <jahns@dkrz.de>
# URL: https://dkrz-sw.gitlab-pages.dkrz.de/yaxt/
#
# Redistribution and use in source and binary forms, with or without
# modification, are  permitted provided that the following conditions are
# met:
#
# Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# Neither the name of the DKRZ GmbH nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
# OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

if FC_MOD_UPPERCASE
##UPPERCASE_MODULE_NAME_MARKER do not remove##
XT_EXCHANGER_ABSTRACT_MOD_NAME=XT_EXCHANGER_ABSTRACT
XT_XMAP_DIST_DIR_BUCKET_GEN2_MOD_NAME=XT_XMAP_DIST_DIR_BUCKET_GEN2
XT_XMAP_DIST_DIR_BUCKET_GEN_MOD_NAME=XT_XMAP_DIST_DIR_BUCKET_GEN
XT_XMAP_RENAME_MOD_NAME=XT_XMAP_RENAME
XT_REDIST_RENAME_MOD_NAME=XT_REDIST_RENAME
XT_CONFIG_F_MOD_NAME=XT_CONFIG_F
XT_SORT_MOD_NAME=XT_SORT
XT_REDIST_INT_I2_MOD_NAME=XT_REDIST_INT_I2
XT_REDIST_INT_I4_MOD_NAME=XT_REDIST_INT_I4
XT_REDIST_INT_I8_MOD_NAME=XT_REDIST_INT_I8
XT_REDIST_LOGICAL_MOD_NAME=XT_REDIST_LOGICAL
XT_REDIST_REAL_SP_MOD_NAME=XT_REDIST_REAL_SP
XT_REDIST_REAL_DP_MOD_NAME=XT_REDIST_REAL_DP
XT_XMAP_INTERSECTION_MOD_NAME=XT_XMAP_INTERSECTION
XT_IDXLIST_COLLECTION_MOD_NAME=XT_IDXLIST_COLLECTION
XT_REDIST_BASE_MOD_NAME=XT_REDIST_BASE
XT_REQUESTS_MOD_NAME=XT_REQUESTS
XT_MPI_MOD_NAME=XT_MPI
XT_XMAP_ABSTRACT_MOD_NAME=XT_XMAP_ABSTRACT
XT_IDXSECTION_MOD_NAME=XT_IDXSECTION
XT_IDXLIST_ABSTRACT_MOD_NAME=XT_IDXLIST_ABSTRACT
XT_CORE_MOD_NAME=XT_CORE
XT_IDXVEC_MOD_NAME=XT_IDXVEC
XT_IDXSTRIPES_MOD_NAME=XT_IDXSTRIPES
YAXT_MOD_NAME=YAXT
else
##LOWERCASE_MODULE_NAME_MARKER do not remove##
XT_EXCHANGER_ABSTRACT_MOD_NAME=xt_exchanger_abstract
XT_XMAP_DIST_DIR_BUCKET_GEN2_MOD_NAME=xt_xmap_dist_dir_bucket_gen2
XT_XMAP_DIST_DIR_BUCKET_GEN_MOD_NAME=xt_xmap_dist_dir_bucket_gen
XT_XMAP_RENAME_MOD_NAME=xt_xmap_rename
XT_REDIST_RENAME_MOD_NAME=xt_redist_rename
XT_CONFIG_F_MOD_NAME=xt_config_f
XT_SORT_MOD_NAME=xt_sort
XT_REDIST_INT_I2_MOD_NAME=xt_redist_int_i2
XT_REDIST_INT_I4_MOD_NAME=xt_redist_int_i4
XT_REDIST_INT_I8_MOD_NAME=xt_redist_int_i8
XT_REDIST_LOGICAL_MOD_NAME=xt_redist_logical
XT_REDIST_REAL_SP_MOD_NAME=xt_redist_real_sp
XT_REDIST_REAL_DP_MOD_NAME=xt_redist_real_dp
XT_XMAP_INTERSECTION_MOD_NAME=xt_xmap_intersection
XT_IDXLIST_COLLECTION_MOD_NAME=xt_idxlist_collection
XT_REDIST_BASE_MOD_NAME=xt_redist_base
XT_REQUESTS_MOD_NAME=xt_requests
XT_MPI_MOD_NAME=xt_mpi
XT_XMAP_ABSTRACT_MOD_NAME=xt_xmap_abstract
XT_IDXSECTION_MOD_NAME=xt_idxsection
XT_IDXLIST_ABSTRACT_MOD_NAME=xt_idxlist_abstract
XT_CORE_MOD_NAME=xt_core
XT_IDXVEC_MOD_NAME=xt_idxvec
XT_IDXSTRIPES_MOD_NAME=xt_idxstripes
YAXT_MOD_NAME=yaxt
endif

$(YAXT_MOD_NAME).$(FCMODEXT): ../../src/$(YAXT_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(YAXT_MOD_NAME).$(FCMODEXT) .

$(XT_IDXVEC_MOD_NAME).$(FCMODEXT): ../../src/$(XT_IDXVEC_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(XT_IDXVEC_MOD_NAME).$(FCMODEXT) .

$(XT_IDXSTRIPES_MOD_NAME).$(FCMODEXT): ../../src/$(XT_IDXSTRIPES_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(XT_IDXSTRIPES_MOD_NAME).$(FCMODEXT) .

$(XT_CORE_MOD_NAME).$(FCMODEXT): ../../src/$(XT_CORE_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(XT_CORE_MOD_NAME).$(FCMODEXT) .

$(XT_IDXLIST_ABSTRACT_MOD_NAME).$(FCMODEXT): ../../src/$(XT_IDXLIST_ABSTRACT_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(XT_IDXLIST_ABSTRACT_MOD_NAME).$(FCMODEXT) .

$(XT_IDXSECTION_MOD_NAME).$(FCMODEXT): ../../src/$(XT_IDXSECTION_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(XT_IDXSECTION_MOD_NAME).$(FCMODEXT) .

$(XT_XMAP_ABSTRACT_MOD_NAME).$(FCMODEXT): ../../src/$(XT_XMAP_ABSTRACT_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(XT_XMAP_ABSTRACT_MOD_NAME).$(FCMODEXT) .

$(XT_MPI_MOD_NAME).$(FCMODEXT): ../../src/$(XT_MPI_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(XT_MPI_MOD_NAME).$(FCMODEXT) .

$(XT_REDIST_BASE_MOD_NAME).$(FCMODEXT): ../../src/$(XT_REDIST_BASE_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(XT_REDIST_BASE_MOD_NAME).$(FCMODEXT) .

$(XT_REQUESTS_MOD_NAME).$(FCMODEXT): ../../src/$(XT_REQUESTS_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(XT_REQUESTS_MOD_NAME).$(FCMODEXT) .

$(XT_IDXLIST_COLLECTION_MOD_NAME).$(FCMODEXT): ../../src/$(XT_IDXLIST_COLLECTION_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(XT_IDXLIST_COLLECTION_MOD_NAME).$(FCMODEXT) .

$(XT_XMAP_INTERSECTION_MOD_NAME).$(FCMODEXT): ../../src/$(XT_XMAP_INTERSECTION_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(XT_XMAP_INTERSECTION_MOD_NAME).$(FCMODEXT) .

$(XT_REDIST_REAL_SP_MOD_NAME).$(FCMODEXT): ../../src/$(XT_REDIST_REAL_SP_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(XT_REDIST_REAL_SP_MOD_NAME).$(FCMODEXT) .

$(XT_REDIST_REAL_DP_MOD_NAME).$(FCMODEXT): ../../src/$(XT_REDIST_REAL_DP_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(XT_REDIST_REAL_DP_MOD_NAME).$(FCMODEXT) .

$(XT_REDIST_INT_I4_MOD_NAME).$(FCMODEXT): ../../src/$(XT_REDIST_INT_I4_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(XT_REDIST_INT_I4_MOD_NAME).$(FCMODEXT) .

$(XT_REDIST_INT_I8_MOD_NAME).$(FCMODEXT): ../../src/$(XT_REDIST_INT_I8_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(XT_REDIST_INT_I8_MOD_NAME).$(FCMODEXT) .

$(XT_REDIST_LOGICAL_MOD_NAME).$(FCMODEXT): ../../src/$(XT_REDIST_LOGICAL_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(XT_REDIST_LOGICAL_MOD_NAME).$(FCMODEXT) .

$(XT_REDIST_INT_I2_MOD_NAME).$(FCMODEXT): ../../src/$(XT_REDIST_INT_I2_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(XT_REDIST_INT_I2_MOD_NAME).$(FCMODEXT) .

$(XT_SORT_MOD_NAME).$(FCMODEXT): ../../src/$(XT_SORT_MOD_NAME).$(FCMODEXT)
	$(AM_V_GEN)$(LN_S) ../../src/$(XT_SORT_MOD_NAME).$(FCMODEXT) .

$(XT_CONFIG_F_MOD_NAME).$(FCMODEXT): ../../src/$(XT_CONFIG_F_MOD_NAME).$(FCMODEXT)
	$(LN_S) ../../src/$(XT_CONFIG_F_MOD_NAME).$(FCMODEXT) .

$(XT_REDIST_RENAME_MOD_NAME).$(FCMODEXT): ../../src/$(XT_REDIST_RENAME_MOD_NAME).$(FCMODEXT)
	$(LN_S) ../../src/$(XT_REDIST_RENAME_MOD_NAME).$(FCMODEXT) .

$(XT_XMAP_RENAME_MOD_NAME).$(FCMODEXT): ../../src/$(XT_XMAP_RENAME_MOD_NAME).$(FCMODEXT)
	$(LN_S) ../../src/$(XT_XMAP_RENAME_MOD_NAME).$(FCMODEXT) .

$(XT_XMAP_DIST_DIR_BUCKET_GEN_MOD_NAME).$(FCMODEXT): ../../src/$(XT_XMAP_DIST_DIR_BUCKET_GEN_MOD_NAME).$(FCMODEXT)
	$(LN_S) ../../src/$(XT_XMAP_DIST_DIR_BUCKET_GEN_MOD_NAME).$(FCMODEXT) .

$(XT_XMAP_DIST_DIR_BUCKET_GEN2_MOD_NAME).$(FCMODEXT): ../../src/$(XT_XMAP_DIST_DIR_BUCKET_GEN2_MOD_NAME).$(FCMODEXT)
	$(LN_S) ../../src/$(XT_XMAP_DIST_DIR_BUCKET_GEN2_MOD_NAME).$(FCMODEXT) .

$(XT_EXCHANGER_ABSTRACT_MOD_NAME).$(FCMODEXT): ../../src/$(XT_EXCHANGER_ABSTRACT_MOD_NAME).$(FCMODEXT)
	$(LN_S) ../../src/$(XT_EXCHANGER_ABSTRACT_MOD_NAME).$(FCMODEXT) .

##MODULE_RECIPE_MARKER do not remove ##

if with_fortran
##INCLUDE_HEADER_MARKER do not remove ##
nodist_include_HEADERS= \
	$(XT_EXCHANGER_ABSTRACT_MOD_NAME).$(FCMODEXT) \
	$(XT_XMAP_RENAME_MOD_NAME).$(FCMODEXT) \
	$(XT_REDIST_RENAME_MOD_NAME).$(FCMODEXT) \
	$(XT_CONFIG_F_MOD_NAME).$(FCMODEXT) \
	$(XT_SORT_MOD_NAME).$(FCMODEXT) \
	$(XT_REDIST_INT_I2_MOD_NAME).$(FCMODEXT) \
	$(XT_REDIST_INT_I4_MOD_NAME).$(FCMODEXT) \
	$(XT_REDIST_INT_I8_MOD_NAME).$(FCMODEXT) \
	$(XT_REDIST_LOGICAL_MOD_NAME).$(FCMODEXT) \
	$(XT_REDIST_REAL_SP_MOD_NAME).$(FCMODEXT) \
	$(XT_REDIST_REAL_DP_MOD_NAME).$(FCMODEXT) \
	$(XT_XMAP_INTERSECTION_MOD_NAME).$(FCMODEXT) \
	$(XT_XMAP_DIST_DIR_BUCKET_GEN_MOD_NAME).$(FCMODEXT) \
	$(XT_IDXLIST_COLLECTION_MOD_NAME).$(FCMODEXT) \
	$(XT_REDIST_BASE_MOD_NAME).$(FCMODEXT) \
	$(XT_REQUESTS_MOD_NAME).$(FCMODEXT) \
	$(XT_MPI_MOD_NAME).$(FCMODEXT) \
	$(XT_XMAP_ABSTRACT_MOD_NAME).$(FCMODEXT) \
	$(XT_IDXSECTION_MOD_NAME).$(FCMODEXT) \
	$(XT_IDXLIST_ABSTRACT_MOD_NAME).$(FCMODEXT) \
	$(XT_CORE_MOD_NAME).$(FCMODEXT) \
	$(XT_IDXVEC_MOD_NAME).$(FCMODEXT) \
	$(XT_IDXSTRIPES_MOD_NAME).$(FCMODEXT) \
	$(YAXT_MOD_NAME).$(FCMODEXT)
if xt_fc_hlf_struct_return
nodist_include_HEADERS += \
	$(XT_XMAP_DIST_DIR_BUCKET_GEN2_MOD_NAME).$(FCMODEXT)
endif
endif

clean-local:
	rm -f *.$(FCMODEXT)

# Local Variables:
# coding: utf-8
# mode: Makefile
# End:
