1#
2# Copyright (c) 2013-2016 Mellanox Technologies, Inc.
3#                         All rights reserved
4# Copyright (c) 2014 Cisco Systems, Inc.  All rights reserved.
5# $COPYRIGHT$
6#
7# Additional copyrights may follow
8#
9# $HEADER$
10#
11
12include $(top_srcdir)/Makefile.ompi-rules
13
14#
15# OSHMEM_PROFILING flag is enabled when we want our shmem_* symbols
16# to be replaced by pshmem_*. In other words, this flag decides
17# whether "profile/defines.h" is included or not. "profile/defines.h"
18# replaces all shmem_* symbols with pshmem_* symbols. In this directory
19# we definately need it to be 1.
20#
21AM_CPPFLAGS = -DOSHMEM_PROFILING=1
22
23noinst_LTLIBRARIES =
24if PROJECT_OSHMEM
25# Only build if we're building OSHMEM
26noinst_LTLIBRARIES += liboshmem_c_pshmem.la
27endif
28
29headers = defines.h
30
31
32OSHMEM_API_SOURCES = \
33	pshmem_init.c \
34	pshmem_finalize.c \
35	pshmem_free.c \
36	pshmem_alloc.c \
37	pshmem_realloc.c \
38	pshmem_align.c \
39	pshmem_query.c \
40	pshmem_p.c \
41	pshmem_context.c \
42	pshmem_put.c \
43	pshmem_g.c \
44	pshmem_get.c \
45	pshmem_alltoall.c \
46	pshmem_broadcast.c \
47	pshmem_collect.c \
48	pshmem_ptr.c \
49	pshmem_pe_accessible.c \
50	pshmem_addr_accessible.c \
51	pshmem_barrier.c \
52	pshmem_sync.c \
53	pshmem_fence.c \
54	pshmem_quiet.c \
55	pshmem_wait.c \
56	pshmem_iget.c \
57	pshmem_iput.c \
58	pshmem_get_nb.c \
59	pshmem_put_nb.c \
60	pshmem_udcflush.c \
61	pshmem_udcflush_line.c \
62	pshmem_set_cache_inv.c \
63	pshmem_set_cache_line_inv.c \
64	pshmem_clear_cache_inv.c \
65	pshmem_clear_cache_line_inv.c \
66	pshmem_reduce.c \
67	pshmem_swap.c \
68	pshmem_set.c \
69	pshmem_cswap.c \
70	pshmem_fadd.c \
71	pshmem_fand.c \
72	pshmem_for.c \
73	pshmem_fxor.c \
74	pshmem_fetch.c \
75	pshmem_finc.c \
76	pshmem_add.c \
77	pshmem_and.c \
78	pshmem_or.c \
79	pshmem_xor.c \
80	pshmem_inc.c \
81	pshmem_clear_lock.c \
82	pshmem_set_lock.c \
83	pshmem_test_lock.c \
84	pshmem_global_exit.c \
85	pshmem_info.c
86
87nodist_liboshmem_c_pshmem_la_SOURCES = \
88	$(OSHMEM_API_SOURCES)
89
90#
91# Sym link in the sources from the real OSHMEM directory
92#
93$(nodist_liboshmem_c_pshmem_la_SOURCES):
94	$(OMPI_V_LN_S) if test ! -r $@ ; then \
95		pname=`echo $@ | cut -b '2-'` ; \
96		$(LN_S) $(top_srcdir)/oshmem/shmem/c/$$pname $@ ; \
97	fi
98
99if PROJECT_OSHMEM
100if WANT_INSTALL_HEADERS
101oshmemdir = $(oshmemincludedir)/$(subdir)
102oshmem_HEADERS = $(headers)
103endif
104endif
105
106# These files were created by targets above
107
108MAINTAINERCLEANFILES = $(nodist_liboshmem_c_pshmem_la_SOURCES)
109
110# Don't want these targets in here
111
112tags-recursive:
113tags:
114TAGS:
115GTAGS:
116ID:
117