annotate libhsail-rt/Makefile.am @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 # Makefile.am -- libhsail-rt library Makefile.
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 # Starting point copied from libcilkrts:
kono
parents:
diff changeset
4 # @copyright
kono
parents:
diff changeset
5 # Copyright (C) 2011, 2013, Intel Corporation
kono
parents:
diff changeset
6 # All rights reserved.
kono
parents:
diff changeset
7 #
kono
parents:
diff changeset
8 # @copyright
kono
parents:
diff changeset
9 # Redistribution and use in source and binary forms, with or without
kono
parents:
diff changeset
10 # modification, are permitted provided that the following conditions
kono
parents:
diff changeset
11 # are met:
kono
parents:
diff changeset
12 #
kono
parents:
diff changeset
13 # * Redistributions of source code must retain the above copyright
kono
parents:
diff changeset
14 # notice, this list of conditions and the following disclaimer.
kono
parents:
diff changeset
15 # * Redistributions in binary form must reproduce the above copyright
kono
parents:
diff changeset
16 # notice, this list of conditions and the following disclaimer in
kono
parents:
diff changeset
17 # the documentation and/or other materials provided with the
kono
parents:
diff changeset
18 # distribution.
kono
parents:
diff changeset
19 # * Neither the name of Intel Corporation nor the names of its
kono
parents:
diff changeset
20 # contributors may be used to endorse or promote products derived
kono
parents:
diff changeset
21 # from this software without specific prior written permission.
kono
parents:
diff changeset
22 #
kono
parents:
diff changeset
23 # @copyright
kono
parents:
diff changeset
24 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
kono
parents:
diff changeset
25 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
kono
parents:
diff changeset
26 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
kono
parents:
diff changeset
27 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
kono
parents:
diff changeset
28 # HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
kono
parents:
diff changeset
29 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
kono
parents:
diff changeset
30 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
kono
parents:
diff changeset
31 # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
kono
parents:
diff changeset
32 # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
kono
parents:
diff changeset
33 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
kono
parents:
diff changeset
34 # WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
kono
parents:
diff changeset
35 # POSSIBILITY OF SUCH DAMAGE.
kono
parents:
diff changeset
36
kono
parents:
diff changeset
37 # libhsail-rt modifications:
kono
parents:
diff changeset
38 # Contributed by Pekka Jaaskelainen <pekka.jaaskelainen@parmance.com>
kono
parents:
diff changeset
39 # for General Processor Tech.
kono
parents:
diff changeset
40 # Use of this source code is governed by a BSD-style
kono
parents:
diff changeset
41 # license that can be found in the LICENSE file.
kono
parents:
diff changeset
42
kono
parents:
diff changeset
43 # Process this file with autoreconf to produce Makefile.in.
kono
parents:
diff changeset
44
kono
parents:
diff changeset
45 AUTOMAKE_OPTIONS = foreign subdir-objects
kono
parents:
diff changeset
46
kono
parents:
diff changeset
47 gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
kono
parents:
diff changeset
48
kono
parents:
diff changeset
49 MAINT_CHARSET = latin1
kono
parents:
diff changeset
50
kono
parents:
diff changeset
51 mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
kono
parents:
diff changeset
52
kono
parents:
diff changeset
53 ACLOCAL_AMFLAGS = -I .. -I ../config
kono
parents:
diff changeset
54
kono
parents:
diff changeset
55 WARN_CFLAGS = $(WARN_FLAGS) $(WERROR)
kono
parents:
diff changeset
56
kono
parents:
diff changeset
57 # -I/-D flags to pass when compiling.
kono
parents:
diff changeset
58 AM_CPPFLAGS = -I$(srcdir)/rt -I$(srcdir)/include/internal
kono
parents:
diff changeset
59
kono
parents:
diff changeset
60 AM_CFLAGS = \
kono
parents:
diff changeset
61 -I $(srcdir)/../include \
kono
parents:
diff changeset
62 -I $(srcdir)/../libgcc \
kono
parents:
diff changeset
63 -I $(MULTIBUILDTOP)../../gcc/include $(PTH_CFLAGS)
kono
parents:
diff changeset
64
kono
parents:
diff changeset
65 toolexeclib_LTLIBRARIES = libhsail-rt.la
kono
parents:
diff changeset
66
kono
parents:
diff changeset
67 runtime_files = \
kono
parents:
diff changeset
68 rt/arithmetic.c \
kono
parents:
diff changeset
69 rt/atomics.c \
kono
parents:
diff changeset
70 rt/bitstring.c \
kono
parents:
diff changeset
71 rt/fbarrier.c \
kono
parents:
diff changeset
72 rt/fp16.c \
kono
parents:
diff changeset
73 rt/misc.c \
kono
parents:
diff changeset
74 rt/multimedia.c \
kono
parents:
diff changeset
75 rt/queue.c \
kono
parents:
diff changeset
76 rt/sat_arithmetic.c \
kono
parents:
diff changeset
77 rt/segment.c \
kono
parents:
diff changeset
78 rt/workitems.c \
kono
parents:
diff changeset
79 rt/fibers.c
kono
parents:
diff changeset
80
kono
parents:
diff changeset
81 libhsail_rt_la_SOURCES = $(runtime_files)
kono
parents:
diff changeset
82 libhsail_rt_la_LDFLAGS = -rpath '$(libdir)'
kono
parents:
diff changeset
83
kono
parents:
diff changeset
84 # Work around what appears to be a GNU make bug handling MAKEFLAGS
kono
parents:
diff changeset
85 # values defined in terms of make variables, as is the case for CC and
kono
parents:
diff changeset
86 # friends when we are called from the top level Makefile.
kono
parents:
diff changeset
87 AM_MAKEFLAGS = \
kono
parents:
diff changeset
88 "AR_FLAGS=$(AR_FLAGS)" \
kono
parents:
diff changeset
89 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
kono
parents:
diff changeset
90 "CFLAGS=$(CFLAGS)" \
kono
parents:
diff changeset
91 "CXXFLAGS=$(CXXFLAGS)" \
kono
parents:
diff changeset
92 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
kono
parents:
diff changeset
93 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
kono
parents:
diff changeset
94 "INSTALL=$(INSTALL)" \
kono
parents:
diff changeset
95 "INSTALL_DATA=$(INSTALL_DATA)" \
kono
parents:
diff changeset
96 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
kono
parents:
diff changeset
97 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
kono
parents:
diff changeset
98 "JC1FLAGS=$(JC1FLAGS)" \
kono
parents:
diff changeset
99 "LDFLAGS=$(LDFLAGS)" \
kono
parents:
diff changeset
100 "LIBCFLAGS=$(LIBCFLAGS)" \
kono
parents:
diff changeset
101 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
kono
parents:
diff changeset
102 "MAKE=$(MAKE)" \
kono
parents:
diff changeset
103 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
kono
parents:
diff changeset
104 "PICFLAG=$(PICFLAG)" \
kono
parents:
diff changeset
105 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
kono
parents:
diff changeset
106 "SHELL=$(SHELL)" \
kono
parents:
diff changeset
107 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
kono
parents:
diff changeset
108 "exec_prefix=$(exec_prefix)" \
kono
parents:
diff changeset
109 "infodir=$(infodir)" \
kono
parents:
diff changeset
110 "libdir=$(libdir)" \
kono
parents:
diff changeset
111 "prefix=$(prefix)" \
kono
parents:
diff changeset
112 "includedir=$(includedir)" \
kono
parents:
diff changeset
113 "AR=$(AR)" \
kono
parents:
diff changeset
114 "AS=$(AS)" \
kono
parents:
diff changeset
115 "LD=$(LD)" \
kono
parents:
diff changeset
116 "LIBCFLAGS=$(LIBCFLAGS)" \
kono
parents:
diff changeset
117 "NM=$(NM)" \
kono
parents:
diff changeset
118 "PICFLAG=$(PICFLAG)" \
kono
parents:
diff changeset
119 "RANLIB=$(RANLIB)" \
kono
parents:
diff changeset
120 "DESTDIR=$(DESTDIR)"
kono
parents:
diff changeset
121
kono
parents:
diff changeset
122 MAKEOVERRIDES=