# # Copyright (c) 2013-2016 Mellanox Technologies, Inc. # All rights reserved # Copyright (c) 2014 Cisco Systems, Inc. All rights reserved. # Copyright (c) 2021 Amazon.com, Inc. or its affiliates. # All Rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow # # $HEADER$ # OSHMEM_AUX_SOURCES = \ shmem_lock.c \ shmem_mcs_lock.c OSHMEM_API_SOURCES = \ shmem_init.c \ shmem_finalize.c \ shmem_free.c \ shmem_alloc.c \ shmem_realloc.c \ shmem_align.c \ shmem_query.c \ shmem_p.c \ shmem_context.c \ shmem_put.c \ shmem_g.c \ shmem_get.c \ shmem_broadcast.c \ shmem_collect.c \ shmem_alltoall.c \ shmem_ptr.c \ shmem_pe_accessible.c \ shmem_addr_accessible.c \ shmem_barrier.c \ shmem_sync.c \ shmem_fence.c \ shmem_quiet.c \ shmem_wait.c \ shmem_iget.c \ shmem_iput.c \ shmem_get_nb.c \ shmem_put_nb.c \ shmem_udcflush.c \ shmem_udcflush_line.c \ shmem_set_cache_inv.c \ shmem_set_cache_line_inv.c \ shmem_clear_cache_inv.c \ shmem_clear_cache_line_inv.c \ shmem_reduce.c \ shmem_swap.c \ shmem_set.c \ shmem_cswap.c \ shmem_fadd.c \ shmem_fand.c \ shmem_for.c \ shmem_fxor.c \ shmem_fetch.c \ shmem_finc.c \ shmem_add.c \ shmem_and.c \ shmem_or.c \ shmem_xor.c \ shmem_inc.c \ shmem_clear_lock.c \ shmem_set_lock.c \ shmem_test_lock.c \ shmem_global_exit.c \ shmem_cswap_nb.c \ shmem_fadd_nb.c \ shmem_fand_nb.c \ shmem_fetch_nb.c \ shmem_finc_nb.c \ shmem_for_nb.c \ shmem_fxor_nb.c \ shmem_pcontrol.c \ shmem_put_signal.c \ shmem_put_signal_nb.c \ shmem_swap_nb.c \ shmem_team.c \ shmem_wait_ivars.c \ shmem_test_ivars.c \ shmem_info.c noinst_LTLIBRARIES = if PROJECT_OSHMEM # Only build if we're building OSHMEM noinst_LTLIBRARIES += liboshmem_c.la endif headers = profile-defines.h # In case when OSHMEM_PROFILING enabled # We build api from c/profile folder liboshmem_c_la_SOURCES = $(OSHMEM_AUX_SOURCES) \ $(OSHMEM_API_SOURCES) if OSHMEM_PROFILING liboshmem_c_la_CPPFLAGS = -DOSHMEM_PROFILING=1 else liboshmem_c_la_CPPFLAGS = -DOSHMEM_PROFILING=0 endif if PROJECT_OSHMEM if WANT_INSTALL_HEADERS oshmemdir = $(oshmemincludedir)/$(subdir) oshmem_HEADERS = $(headers) endif endif