2018-01-22 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / libgomp / plugin / Makefrag.am
blob5c8e80629879c4b0b8a821e628594f9e8b4b9f82
1 # Plugins for offload execution, Makefile.am fragment.
3 # Copyright (C) 2014-2018 Free Software Foundation, Inc.
5 # Contributed by Mentor Embedded.
7 # This file is part of the GNU Offloading and Multi Processing Library
8 # (libgomp).
10 # Libgomp is free software; you can redistribute it and/or modify it
11 # under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; either version 3, or (at your option)
13 # any later version.
15 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
16 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17 # FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
18 # more details.
20 # Under Section 7 of GPL version 3, you are granted additional
21 # permissions described in the GCC Runtime Library Exception, version
22 # 3.1, as published by the Free Software Foundation.
24 # You should have received a copy of the GNU General Public License and
25 # a copy of the GCC Runtime Library Exception along with this program;
26 # see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
27 # <http://www.gnu.org/licenses/>.
29 if PLUGIN_NVPTX
30 # Nvidia PTX OpenACC plugin.
31 libgomp_plugin_nvptx_version_info = -version-info $(libtool_VERSION)
32 toolexeclib_LTLIBRARIES += libgomp-plugin-nvptx.la
33 libgomp_plugin_nvptx_la_SOURCES = plugin/plugin-nvptx.c
34 libgomp_plugin_nvptx_la_CPPFLAGS = $(AM_CPPFLAGS) $(PLUGIN_NVPTX_CPPFLAGS)
35 libgomp_plugin_nvptx_la_LDFLAGS = $(libgomp_plugin_nvptx_version_info) \
36         $(lt_host_flags)
37 libgomp_plugin_nvptx_la_LDFLAGS += $(PLUGIN_NVPTX_LDFLAGS)
38 libgomp_plugin_nvptx_la_LIBADD = libgomp.la $(PLUGIN_NVPTX_LIBS)
39 libgomp_plugin_nvptx_la_LIBTOOLFLAGS = --tag=disable-static
40 endif
42 if PLUGIN_HSA
43 # Heterogenous Systems Architecture plugin
44 libgomp_plugin_hsa_version_info = -version-info $(libtool_VERSION)
45 toolexeclib_LTLIBRARIES += libgomp-plugin-hsa.la
46 libgomp_plugin_hsa_la_SOURCES = plugin/plugin-hsa.c
47 libgomp_plugin_hsa_la_CPPFLAGS = $(AM_CPPFLAGS) $(PLUGIN_HSA_CPPFLAGS) \
48         -D_GNU_SOURCE
49 libgomp_plugin_hsa_la_LDFLAGS = $(libgomp_plugin_hsa_version_info) \
50         $(lt_host_flags)
51 libgomp_plugin_hsa_la_LDFLAGS += $(PLUGIN_HSA_LDFLAGS)
52 libgomp_plugin_hsa_la_LIBADD = libgomp.la $(PLUGIN_HSA_LIBS)
53 libgomp_plugin_hsa_la_LIBTOOLFLAGS = --tag=disable-static
54 endif