1#
2# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
3#                         University Research and Technology
4#                         Corporation.  All rights reserved.
5# Copyright (c) 2004-2005 The University of Tennessee and The University
6#                         of Tennessee Research Foundation.  All rights
7#                         reserved.
8# Copyright (c) 2004-2009 High Performance Computing Center Stuttgart,
9#                         University of Stuttgart.  All rights reserved.
10# Copyright (c) 2004-2005 The Regents of the University of California.
11#                         All rights reserved.
12# Copyright (c) 2010-2014 Cisco Systems, Inc.  All rights reserved.
13# Copyright (c) 2012      NVIDIA Corporation.  All rights reserved.
14# Copyright (c) 2015      Los Alamos National Security, LLC. All rights
15#                         reserved.
16# Copyright (c) 2017      IBM Corporation.  All rights reserved.
17# $COPYRIGHT$
18#
19# Additional copyrights may follow
20#
21# $HEADER$
22#
23
24AM_CPPFLAGS = $(rcache_gpusm_CPPFLAGS)
25
26sources = \
27    rcache_gpusm_module.c \
28    rcache_gpusm_component.c
29
30if WANT_INSTALL_HEADERS
31opaldir = $(opalincludedir)/$(subdir)
32opal_HEADERS = rcache_gpusm.h
33endif
34
35# Make the output library in this directory, and name it either
36# mca_<type>_<name>.la (for DSO builds) or libmca_<type>_<name>.la
37# (for static builds).
38
39if MCA_BUILD_opal_rcache_gpusm_DSO
40component_noinst =
41component_install = mca_rcache_gpusm.la
42else
43component_noinst = libmca_rcache_gpusm.la
44component_install =
45endif
46
47mcacomponentdir = $(opallibdir)
48mcacomponent_LTLIBRARIES = $(component_install)
49mca_rcache_gpusm_la_SOURCES = $(sources)
50mca_rcache_gpusm_la_LDFLAGS = -module -avoid-version
51mca_rcache_gpusm_la_LIBADD = $(top_builddir)/opal/lib@OPAL_LIB_PREFIX@open-pal.la \
52	$(rcache_gpusm_LIBS)
53if OPAL_cuda_support
54mca_rcache_gpusm_la_LIBADD += \
55    $(OPAL_TOP_BUILDDIR)/opal/mca/common/cuda/lib@OPAL_LIB_PREFIX@mca_common_cuda.la
56endif
57
58noinst_LTLIBRARIES = $(component_noinst)
59libmca_rcache_gpusm_la_SOURCES = $(sources)
60libmca_rcache_gpusm_la_LDFLAGS = -module -avoid-version
61libmca_rcache_gpusm_la_LIBADD = $(rcache_gpusm_LIBS)
62