annotate libgomp/plugin/Makefrag.am @ 150:26042f4007d5 current

fix examples
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 23 May 2020 07:51:47 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 # Plugins for offload execution, Makefile.am fragment.
kono
parents:
diff changeset
2 #
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
3 # Copyright (C) 2014-2020 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
4 #
kono
parents:
diff changeset
5 # Contributed by Mentor Embedded.
kono
parents:
diff changeset
6 #
kono
parents:
diff changeset
7 # This file is part of the GNU Offloading and Multi Processing Library
kono
parents:
diff changeset
8 # (libgomp).
kono
parents:
diff changeset
9 #
kono
parents:
diff changeset
10 # Libgomp is free software; you can redistribute it and/or modify it
kono
parents:
diff changeset
11 # under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
12 # the Free Software Foundation; either version 3, or (at your option)
kono
parents:
diff changeset
13 # any later version.
kono
parents:
diff changeset
14 #
kono
parents:
diff changeset
15 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
kono
parents:
diff changeset
16 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
kono
parents:
diff changeset
17 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
kono
parents:
diff changeset
18 # more details.
kono
parents:
diff changeset
19 #
kono
parents:
diff changeset
20 # Under Section 7 of GPL version 3, you are granted additional
kono
parents:
diff changeset
21 # permissions described in the GCC Runtime Library Exception, version
kono
parents:
diff changeset
22 # 3.1, as published by the Free Software Foundation.
kono
parents:
diff changeset
23 #
kono
parents:
diff changeset
24 # You should have received a copy of the GNU General Public License and
kono
parents:
diff changeset
25 # a copy of the GCC Runtime Library Exception along with this program;
kono
parents:
diff changeset
26 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
kono
parents:
diff changeset
27 # <http://www.gnu.org/licenses/>.
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 if PLUGIN_NVPTX
kono
parents:
diff changeset
30 # Nvidia PTX OpenACC plugin.
kono
parents:
diff changeset
31 libgomp_plugin_nvptx_version_info = -version-info $(libtool_VERSION)
kono
parents:
diff changeset
32 toolexeclib_LTLIBRARIES += libgomp-plugin-nvptx.la
kono
parents:
diff changeset
33 libgomp_plugin_nvptx_la_SOURCES = plugin/plugin-nvptx.c
kono
parents:
diff changeset
34 libgomp_plugin_nvptx_la_CPPFLAGS = $(AM_CPPFLAGS) $(PLUGIN_NVPTX_CPPFLAGS)
kono
parents:
diff changeset
35 libgomp_plugin_nvptx_la_LDFLAGS = $(libgomp_plugin_nvptx_version_info) \
kono
parents:
diff changeset
36 $(lt_host_flags)
kono
parents:
diff changeset
37 libgomp_plugin_nvptx_la_LDFLAGS += $(PLUGIN_NVPTX_LDFLAGS)
kono
parents:
diff changeset
38 libgomp_plugin_nvptx_la_LIBADD = libgomp.la $(PLUGIN_NVPTX_LIBS)
kono
parents:
diff changeset
39 libgomp_plugin_nvptx_la_LIBTOOLFLAGS = --tag=disable-static
kono
parents:
diff changeset
40 endif
kono
parents:
diff changeset
41
kono
parents:
diff changeset
42 if PLUGIN_HSA
kono
parents:
diff changeset
43 # Heterogenous Systems Architecture plugin
kono
parents:
diff changeset
44 libgomp_plugin_hsa_version_info = -version-info $(libtool_VERSION)
kono
parents:
diff changeset
45 toolexeclib_LTLIBRARIES += libgomp-plugin-hsa.la
kono
parents:
diff changeset
46 libgomp_plugin_hsa_la_SOURCES = plugin/plugin-hsa.c
kono
parents:
diff changeset
47 libgomp_plugin_hsa_la_CPPFLAGS = $(AM_CPPFLAGS) $(PLUGIN_HSA_CPPFLAGS) \
kono
parents:
diff changeset
48 -D_GNU_SOURCE
kono
parents:
diff changeset
49 libgomp_plugin_hsa_la_LDFLAGS = $(libgomp_plugin_hsa_version_info) \
kono
parents:
diff changeset
50 $(lt_host_flags)
kono
parents:
diff changeset
51 libgomp_plugin_hsa_la_LDFLAGS += $(PLUGIN_HSA_LDFLAGS)
kono
parents:
diff changeset
52 libgomp_plugin_hsa_la_LIBADD = libgomp.la $(PLUGIN_HSA_LIBS)
kono
parents:
diff changeset
53 libgomp_plugin_hsa_la_LIBTOOLFLAGS = --tag=disable-static
kono
parents:
diff changeset
54 endif
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
55
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
56 if PLUGIN_GCN
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
57 # AMD GCN plugin
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
58 libgomp_plugin_gcn_version_info = -version-info $(libtool_VERSION)
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
59 toolexeclib_LTLIBRARIES += libgomp-plugin-gcn.la
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
60 libgomp_plugin_gcn_la_SOURCES = plugin/plugin-gcn.c
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
61 libgomp_plugin_gcn_la_CPPFLAGS = $(AM_CPPFLAGS) $(PLUGIN_GCN_CPPFLAGS) \
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
62 -D_GNU_SOURCE
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
63 libgomp_plugin_gcn_la_LDFLAGS = $(libgomp_plugin_gcn_version_info) \
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
64 $(lt_host_flags)
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
65 libgomp_plugin_gcn_la_LDFLAGS += $(PLUGIN_GCN_LDFLAGS)
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
66 libgomp_plugin_gcn_la_LIBADD = libgomp.la $(PLUGIN_GCN_LIBS)
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
67 libgomp_plugin_gcn_la_LIBTOOLFLAGS = --tag=disable-static
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
68 endif