if HAVE_PSM3 _psm3_files = \ prov/psm3/src/version.h \ prov/psm3/src/psmx3.h \ prov/psm3/src/psmx3_am.c \ prov/psm3/src/psmx3_atomic.c \ prov/psm3/src/psmx3_attr.c \ prov/psm3/src/psmx3_av.c \ prov/psm3/src/psmx3_cm.c \ prov/psm3/src/psmx3_cntr.c \ prov/psm3/src/psmx3_cq.c \ prov/psm3/src/psmx3_domain.c \ prov/psm3/src/psmx3_ep.c \ prov/psm3/src/psmx3_fabric.c \ prov/psm3/src/psmx3_init.c \ prov/psm3/src/psmx3_mr.c \ prov/psm3/src/psmx3_msg.c \ prov/psm3/src/psmx3_rma.c \ prov/psm3/src/psmx3_tagged.c \ prov/psm3/src/psmx3_trigger.h \ prov/psm3/src/psmx3_trx_ctxt.c \ prov/psm3/src/psmx3_util.c \ prov/psm3/src/psmx3_wait.c _psm3_cppflags = \ -I$(top_srcdir)/prov/psm3 chksum_srcs = $(_psm3_files) if HAVE_PSM3_SRC _psm3_cflags = $(psm3_ARCH_CFLAGS) _nodist_psm3_files = \ prov/psm3/src/psm3_revision.c \ prov/psm3/src/psm3_src_chksum.h # builddir is for nodist config headers: See nodist_libpsm3i_la_SOURCES _psm3_cppflags += \ -I$(top_srcdir)/prov/psm3/src \ -I$(top_srcdir)/prov/psm3/psm3 \ -I$(top_srcdir)/prov/psm3/psm3/ptl_ips \ -I$(top_srcdir)/prov/psm3/psm3/include \ -I$(top_srcdir)/prov/psm3/psm3/include/linux-i386 \ -I$(top_srcdir)/prov/psm3/psm3/mpspawn \ -I$(top_srcdir)/prov/psm3/psm3/utils \ -I$(top_builddir)/prov/psm3/psm3 \ -D_GNU_SOURCE=1 noinst_LTLIBRARIES += \ prov/psm3/psm3/libutils.la \ prov/psm3/psm3/libptl_am.la \ prov/psm3/psm3/libptl_ips.la \ prov/psm3/psm3/libptl_self.la \ prov/psm3/psm3/libhal_verbs.la \ prov/psm3/psm3/libhal_sockets.la \ prov/psm3/psm3/libpsm3i.la prov_psm3_psm3_libptl_am_la_SOURCES = \ prov/psm3/psm3/ptl_am/am_config.h \ prov/psm3/psm3/ptl_am/am_cuda_memhandle_cache.c \ prov/psm3/psm3/ptl_am/am_cuda_memhandle_cache.h \ prov/psm3/psm3/ptl_am/am_oneapi_memhandle_cache.c \ prov/psm3/psm3/ptl_am/am_oneapi_memhandle_cache.h \ prov/psm3/psm3/ptl_am/am_reqrep.c \ prov/psm3/psm3/ptl_am/am_reqrep_shmem.c \ prov/psm3/psm3/ptl_am/cmarw.h \ prov/psm3/psm3/ptl_am/cmarwu.c \ prov/psm3/psm3/ptl_am/psm_am_internal.h \ prov/psm3/psm3/ptl_am/ptl.c \ prov/psm3/psm3/ptl_am/ptl_fwd.h prov_psm3_psm3_libptl_am_la_CPPFLAGS = \ -I$(top_srcdir)/prov/psm3/psm3/ptl_am/ \ $(AM_CPPFLAGS) $(psm3_CPPFLAGS) $(_psm3_cppflags) prov_psm3_psm3_libptl_am_la_CFLAGS = \ $(AM_CFLAGS) $(psm3_CFLAGS) $(_psm3_cflags) prov_psm3_psm3_libptl_ips_la_SOURCES = \ prov/psm3/psm3/ptl_ips/ips_config.h \ prov/psm3/psm3/ptl_ips/ips_crc32.c \ prov/psm3/psm3/ptl_ips/ips_epstate.c \ prov/psm3/psm3/ptl_ips/ips_epstate.h \ prov/psm3/psm3/ptl_ips/ips_expected_proto.h \ prov/psm3/psm3/ptl_ips/ips_opp_path_rec.c \ prov/psm3/psm3/ptl_ips/ips_path_rec.c \ prov/psm3/psm3/ptl_ips/ips_path_rec.h \ prov/psm3/psm3/ptl_ips/ips_proto.c \ prov/psm3/psm3/ptl_ips/ips_proto.h \ prov/psm3/psm3/ptl_ips/ips_proto_am.c \ prov/psm3/psm3/ptl_ips/ips_proto_am.h \ prov/psm3/psm3/ptl_ips/ips_proto_connect.c \ prov/psm3/psm3/ptl_ips/ips_proto_connect.h \ prov/psm3/psm3/ptl_ips/ips_proto_dump.c \ prov/psm3/psm3/ptl_ips/ips_proto_expected.c \ prov/psm3/psm3/ptl_ips/ips_proto_header.h \ prov/psm3/psm3/ptl_ips/ips_proto_help.h \ prov/psm3/psm3/ptl_ips/ips_proto_internal.h \ prov/psm3/psm3/ptl_ips/ips_proto_mq.c \ prov/psm3/psm3/ptl_ips/ips_proto_params.h \ prov/psm3/psm3/ptl_ips/ips_proto_recv.c \ prov/psm3/psm3/ptl_ips/ips_recvhdrq.h \ prov/psm3/psm3/ptl_ips/ips_recvq.c \ prov/psm3/psm3/ptl_ips/ips_recvq.h \ prov/psm3/psm3/ptl_ips/ips_scb.c \ prov/psm3/psm3/ptl_ips/ips_scb.h \ prov/psm3/psm3/ptl_ips/ips_tid.c \ prov/psm3/psm3/ptl_ips/ips_tid.h \ prov/psm3/psm3/ptl_ips/ips_tidcache.c \ prov/psm3/psm3/ptl_ips/ips_tidcache.h \ prov/psm3/psm3/ptl_ips/ips_tidflow.c \ prov/psm3/psm3/ptl_ips/ips_tidflow.h \ prov/psm3/psm3/ptl_ips/ptl.c \ prov/psm3/psm3/ptl_ips/ptl_fwd.h \ prov/psm3/psm3/ptl_ips/ptl_ips.h \ prov/psm3/psm3/ptl_ips/ptl_rcvthread.c prov_psm3_psm3_libptl_ips_la_CPPFLAGS = \ -I$(top_srcdir)/prov/psm3/psm3/ptl_ips/ \ $(AM_CPPFLAGS) $(psm3_CPPFLAGS) $(_psm3_cppflags) prov_psm3_psm3_libptl_ips_la_CFLAGS = \ $(AM_CFLAGS) $(psm3_CFLAGS) $(_psm3_cflags) prov_psm3_psm3_libptl_ips_la_DEPENDENCIES = \ prov/psm3/psm3/libutils.la prov_psm3_psm3_libptl_self_la_SOURCES = \ prov/psm3/psm3/ptl_self/ptl.c \ prov/psm3/psm3/ptl_self/ptl_fwd.h prov_psm3_psm3_libptl_self_la_CPPFLAGS = \ -I$(top_srcdir)/prov/psm3/psm3/ptl_self/ \ $(AM_CPPFLAGS) $(psm3_CPPFLAGS) $(_psm3_cppflags) prov_psm3_psm3_libptl_self_la_CFLAGS = \ $(AM_CFLAGS) $(psm3_CFLAGS) $(_psm3_cflags) prov_psm3_psm3_libutils_la_SOURCES = \ prov/psm3/psm3/utils/utils_debug.c \ prov/psm3/psm3/utils/utils_dsa.c \ prov/psm3/psm3/utils/utils_dwordcpy-x86_64.c \ prov/psm3/psm3/utils/utils_env.c \ prov/psm3/psm3/utils/utils_sysfs.c \ prov/psm3/psm3/utils/utils_syslog.c \ prov/psm3/psm3/utils/utils_time.c \ prov/psm3/psm3/utils/utils_mallopt.c \ prov/psm3/psm3/include/utils_byteorder.h \ prov/psm3/psm3/include/utils_debug.h \ prov/psm3/psm3/include/utils_dsa.h \ prov/psm3/psm3/include/utils_env.h \ prov/psm3/psm3/include/utils_macros.h \ prov/psm3/psm3/include/utils_queue.h \ prov/psm3/psm3/include/psm_revision.h \ prov/psm3/psm3/include/utils_sysfs.h \ prov/psm3/psm3/include/utils_user.h \ prov/psm3/psm3/include/psm2_mock_testing.h \ prov/psm3/psm3/include/psm3_rbtree.h \ prov/psm3/psm3/include/linux-i386/bit_ops.h \ prov/psm3/psm3/include/linux-i386/sysdep.h \ prov/psm3/psm3/mpspawn/mpspawn_stats.h prov_psm3_psm3_libutils_la_CPPFLAGS = \ $(AM_CPPFLAGS) $(psm3_CPPFLAGS) $(_psm3_cppflags) prov_psm3_psm3_libutils_la_CFLAGS = \ $(AM_CFLAGS) $(psm3_CFLAGS) $(_psm3_cflags) prov_psm3_psm3_libhal_verbs_la_SOURCES = \ prov/psm3/psm3/hal_verbs/verbs_ep.c \ prov/psm3/psm3/hal_verbs/verbs_ep.h \ prov/psm3/psm3/hal_verbs/verbs_service.c \ prov/psm3/psm3/hal_verbs/verbs_service.h \ prov/psm3/psm3/hal_verbs/verbs_user.h \ prov/psm3/psm3/hal_verbs/verbs_gdrcpy.c \ prov/psm3/psm3/hal_verbs/verbs_hal.c \ prov/psm3/psm3/hal_verbs/verbs_hal.h \ prov/psm3/psm3/hal_verbs/verbs_hal_inline_i.h \ prov/psm3/psm3/hal_verbs/verbs_ptl_ips.c \ prov/psm3/psm3/hal_verbs/verbs_rcvthread.c \ prov/psm3/psm3/hal_verbs/verbs_recvhdrq.c prov_psm3_psm3_libhal_verbs_la_CPPFLAGS = \ -I$(top_srcdir)/prov/psm3/psm3/hal_verbs/ \ $(AM_CPPFLAGS) $(psm3_CPPFLAGS) $(_psm3_cppflags) prov_psm3_psm3_libhal_verbs_la_CFLAGS = \ $(AM_CFLAGS) $(psm3_CFLAGS) $(_psm3_cflags) prov_psm3_psm3_libhal_sockets_la_SOURCES = \ prov/psm3/psm3/hal_sockets/sockets_ep.c \ prov/psm3/psm3/hal_sockets/sockets_ep.h \ prov/psm3/psm3/hal_sockets/sockets_service.c \ prov/psm3/psm3/hal_sockets/sockets_service.h \ prov/psm3/psm3/hal_sockets/sockets_user.h \ prov/psm3/psm3/hal_sockets/sockets_gdrcpy.c \ prov/psm3/psm3/hal_sockets/sockets_hal.c \ prov/psm3/psm3/hal_sockets/sockets_hal.h \ prov/psm3/psm3/hal_sockets/sockets_hal_inline_i.h \ prov/psm3/psm3/hal_sockets/sockets_proto.c \ prov/psm3/psm3/hal_sockets/sockets_ptl_ips.c \ prov/psm3/psm3/hal_sockets/sockets_rcvthread.c \ prov/psm3/psm3/hal_sockets/sockets_recvhdrq.c prov_psm3_psm3_libhal_sockets_la_CPPFLAGS = \ -I$(top_srcdir)/prov/psm3/psm3/hal_sockets/ \ $(AM_CPPFLAGS) $(psm3_CPPFLAGS) $(_psm3_cppflags) prov_psm3_psm3_libhal_sockets_la_CFLAGS = \ $(AM_CFLAGS) $(psm3_CFLAGS) $(_psm3_cflags) prov_psm3_psm3_libpsm3i_la_SOURCES = \ prov/psm3/psm3/psm.c \ prov/psm3/psm3/psm_am.c \ prov/psm3/psm3/psm_am_internal.h \ prov/psm3/psm3/psm_config.h \ prov/psm3/psm3/psm_context.c \ prov/psm3/psm3/psm_context.h \ prov/psm3/psm3/psm_diags.c \ prov/psm3/psm3/psm_ep.c \ prov/psm3/psm3/psm_ep.h \ prov/psm3/psm3/psm_ep_connect.c \ prov/psm3/psm3/psm_error.c \ prov/psm3/psm3/psm_error.h \ prov/psm3/psm3/psm_help.h \ prov/psm3/psm3/psm_lock.h \ prov/psm3/psm3/psm_log.h \ prov/psm3/psm3/psm_memcpy.c \ prov/psm3/psm3/psm_mock.c \ prov/psm3/psm3/psm_mpool.c \ prov/psm3/psm3/psm_mpool.h \ prov/psm3/psm3/psm_mq.c \ prov/psm3/psm3/psm_mq_internal.h \ prov/psm3/psm3/psm_mq_recv.c \ prov/psm3/psm3/psm_mq_utils.c \ prov/psm3/psm3/psm_netutils.h \ prov/psm3/psm3/psm_nic_select.c \ prov/psm3/psm3/psm_nic_select.h \ prov/psm3/psm3/psm_oneapi_ze.c \ prov/psm3/psm3/psm_perf.c \ prov/psm3/psm3/psm_perf.h \ prov/psm3/psm3/psm_rndv_mod.c \ prov/psm3/psm3/psm_rndv_mod.h \ prov/psm3/psm3/psm_stats.c \ prov/psm3/psm3/psm_stats.h \ prov/psm3/psm3/psm_sysbuf.c \ prov/psm3/psm3/psm_sysbuf.h \ prov/psm3/psm3/psm_timer.c \ prov/psm3/psm3/psm_timer.h \ prov/psm3/psm3/psm_uffd.c \ prov/psm3/psm3/psm_uffd.h \ prov/psm3/psm3/psm_user.h \ prov/psm3/psm3/psm_utils.c \ prov/psm3/psm3/psm_utils.h \ prov/psm3/psm3/psm_verbs_mr.c \ prov/psm3/psm3/psm_verbs_mr.h \ prov/psm3/psm3/psmi_wrappers.c \ prov/psm3/psm3/psmi_wrappers.h \ prov/psm3/psm3/psm2.h \ prov/psm3/psm3/psm2_am.h \ prov/psm3/psm3/psm2_hal.c \ prov/psm3/psm3/psm2_hal_loopback.c \ prov/psm3/psm3/psm2_hal.h \ prov/psm3/psm3/psm2_hal_loopback.h \ prov/psm3/psm3/psm2_hal_inline_t.h \ prov/psm3/psm3/psm2_mq.h \ prov/psm3/psm3/ptl.h prov_psm3_psm3_libpsm3i_la_CPPFLAGS = \ -I$(top_srcdir)/prov/psm3/psm3/include/ \ $(AM_CPPFLAGS) $(psm3_CPPFLAGS) $(_psm3_cppflags) prov_psm3_psm3_libpsm3i_la_CFLAGS = \ $(AM_CFLAGS) $(psm3_CFLAGS) $(_psm3_cflags) nodist_prov_psm3_psm3_libpsm3i_la_SOURCES = \ prov/psm3/psm3/psm2_hal_inlines_i.h \ prov/psm3/psm3/psm2_hal_inlines_d.h prov_psm3_psm3_libpsm3i_la_LIBADD = \ prov/psm3/psm3/libutils.la \ prov/psm3/psm3/libptl_am.la \ prov/psm3/psm3/libptl_ips.la \ prov/psm3/psm3/libptl_self.la \ prov/psm3/psm3/libhal_verbs.la \ prov/psm3/psm3/libhal_sockets.la prov_psm3_psm3_libpsm3i_la_DEPENDENCIES = \ prov/psm3/psm3/libutils.la \ prov/psm3/psm3/libptl_am.la \ prov/psm3/psm3/libptl_ips.la \ prov/psm3/psm3/libptl_self.la \ prov/psm3/psm3/libhal_verbs.la \ prov/psm3/psm3/libhal_sockets.la # Mirror EXTRA_DIST to end of file prov_psm3_extra_dist = \ prov/psm3/psm3/include/psm3_rbtree.c \ prov/psm3/psm3/hal_verbs/verbs_spio.c \ prov/psm3/psm3/hal_sockets/sockets_spio.c \ prov/psm3/psm3/utils/utils_dwordcpy-x86_64-fast.S \ prov/psm3/VERSION chksum_srcs += \ $(prov_psm3_psm3_libptl_am_la_SOURCES) \ $(prov_psm3_psm3_libptl_ips_la_SOURCES) \ $(prov_psm3_psm3_libptl_self_la_SOURCES) \ $(prov_psm3_psm3_libutils_la_SOURCES) \ $(prov_psm3_psm3_libhal_verbs_la_SOURCES) \ $(prov_psm3_psm3_libhal_sockets_la_SOURCES) \ $(prov_psm3_psm3_libpsm3i_la_SOURCES) \ $(prov_psm3_extra_dist) _psm3_LIBS = prov/psm3/psm3/libpsm3i.la BUILT_SOURCES = prov/psm3/src/psm3_src_chksum.h CLEANFILES = prov/psm3/src/psm3_src_chksum.h DATE_FMT = +%Y-%m-%dT%H:%M:%S prov/psm3/src/psm3_src_chksum.h: Makefile $(chksum_srcs) $(AM_V_GEN) chksum=`for file in $(chksum_srcs); do cat $(top_srcdir)/$$file; done | sha1sum | cut -d' ' -f 1`; \ if ! grep -q $$chksum prov/psm3/src/psm3_src_chksum.h 2>/dev/null; then \ echo "#define PSMX3_SRC_CHECKSUM \"$$chksum\"" > prov/psm3/src/psm3_src_chksum.h; \ echo "#define PSMX3_BUILD_TIMESTAMP \"`if test -z "$(SOURCE_DATE_EPOCH)" ; then date "$(DATE_FMT)" ; else date -u -d "@$(SOURCE_DATE_EPOCH)" "$(DATE_FMT)" 2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" "$(DATE_FMT)" 2>/dev/null || date -u "$(DATE_FMT)" ; fi`\"" >> prov/psm3/src/psm3_src_chksum.h; \ fi endif HAVE_PSM3_SRC if HAVE_PSM3_DL pkglib_LTLIBRARIES += libpsm3-fi.la libpsm3_fi_la_SOURCES = $(_psm3_files) $(common_srcs) nodist_libpsm3_fi_la_SOURCES = $(_nodist_psm3_files) libpsm3_fi_la_CFLAGS = $(AM_CFLAGS) $(psm3_CFLAGS) libpsm3_fi_la_CPPFLAGS = $(AM_CPPFLAGS) $(psm3_CPPFLAGS) $(_psm3_cppflags) libpsm3_fi_la_LDFLAGS = \ -module -avoid-version -shared -export-dynamic \ -export-symbols-regex ^fi_prov_ini $(psm3_LDFLAGS) libpsm3_fi_la_LIBADD = $(linkback) $(psm3_LIBS) $(_psm3_LIBS) libpsm3_fi_la_DEPENDENCIES = $(linkback) \ prov/psm3/src/psm3_src_chksum.h \ prov/psm3/psm3/libpsm3i.la else !HAVE_PSM3_DL noinst_LTLIBRARIES += libpsm3.la libpsm3_la_SOURCES = $(_psm3_files) libpsm3_la_DEPENDENCIES = \ prov/psm3/src/psm3_src_chksum.h \ prov/psm3/psm3/libpsm3i.la nodist_libpsm3_la_SOURCES = $(_nodist_psm3_files) libpsm3_la_CFLAGS = $(src_libfabric_la_CFLAGS) $(psm3_CFLAGS) libpsm3_la_CPPFLAGS = $(src_libfabric_la_CPPFLAGS) $(psm3_CPPFLAGS) $(_psm3_cppflags) libpsm3_la_LDFLAGS = $(psm3_LDFLAGS) libpsm3_la_LIBADD = $(psm3_LIBS) $(_psm3_LIBS) src_libfabric_la_LIBADD += libpsm3.la src_libfabric_la_DEPENDENCIES += libpsm3.la endif !HAVE_PSM3_DL prov_install_man_pages += man/man7/fi_psm3.7 endif HAVE_PSM3 prov_dist_man_pages += man/man7/fi_psm3.7 prov_extra_dist += \ prov/psm3/psm3/include/psm3_rbtree.c \ prov/psm3/psm3/hal_verbs/verbs_spio.c \ prov/psm3/psm3/hal_sockets/sockets_spio.c \ prov/psm3/psm3/utils/utils_dwordcpy-x86_64-fast.S \ prov/psm3/VERSION