annotate libcilkrts/Makefile.am @ 136:4627f235cf2a

fix c-next example
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 08 Nov 2018 14:11:56 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 # Copyright (C) 2011-2016, Intel Corporation
kono
parents:
diff changeset
2 # All rights reserved.
kono
parents:
diff changeset
3 #
kono
parents:
diff changeset
4 # Redistribution and use in source and binary forms, with or without
kono
parents:
diff changeset
5 # modification, are permitted provided that the following conditions
kono
parents:
diff changeset
6 # are met:
kono
parents:
diff changeset
7 #
kono
parents:
diff changeset
8 # * Redistributions of source code must retain the above copyright
kono
parents:
diff changeset
9 # notice, this list of conditions and the following disclaimer.
kono
parents:
diff changeset
10 # * Redistributions in binary form must reproduce the above copyright
kono
parents:
diff changeset
11 # notice, this list of conditions and the following disclaimer in
kono
parents:
diff changeset
12 # the documentation and/or other materials provided with the
kono
parents:
diff changeset
13 # distribution.
kono
parents:
diff changeset
14 # * Neither the name of Intel Corporation nor the names of its
kono
parents:
diff changeset
15 # contributors may be used to endorse or promote products derived
kono
parents:
diff changeset
16 # from this software without specific prior written permission.
kono
parents:
diff changeset
17 #
kono
parents:
diff changeset
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
kono
parents:
diff changeset
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
kono
parents:
diff changeset
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
kono
parents:
diff changeset
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
kono
parents:
diff changeset
22 # HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
kono
parents:
diff changeset
23 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
kono
parents:
diff changeset
24 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
kono
parents:
diff changeset
25 # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
kono
parents:
diff changeset
26 # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
kono
parents:
diff changeset
27 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
kono
parents:
diff changeset
28 # WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
kono
parents:
diff changeset
29 # POSSIBILITY OF SUCH DAMAGE.
kono
parents:
diff changeset
30 #
kono
parents:
diff changeset
31 # *********************************************************************
kono
parents:
diff changeset
32 #
kono
parents:
diff changeset
33 # PLEASE NOTE: This file is a downstream copy of a file mainitained in
kono
parents:
diff changeset
34 # a repository at cilkplus.org. Changes made to this file that are not
kono
parents:
diff changeset
35 # submitted through the contribution process detailed at
kono
parents:
diff changeset
36 # http://www.cilkplus.org/submit-cilk-contribution will be lost the next
kono
parents:
diff changeset
37 # time that a new version is released. Changes only submitted to the
kono
parents:
diff changeset
38 # GNU compiler collection or posted to the git repository at
kono
parents:
diff changeset
39 # https://bitbucket.org/intelcilkruntime/intel-cilk-runtime.git are
kono
parents:
diff changeset
40 # not tracked.
kono
parents:
diff changeset
41 #
kono
parents:
diff changeset
42 # We welcome your contributions to this open source project. Thank you
kono
parents:
diff changeset
43 # for your assistance in helping us improve Cilk Plus.
kono
parents:
diff changeset
44
kono
parents:
diff changeset
45 AUTOMAKE_OPTIONS = foreign
kono
parents:
diff changeset
46
kono
parents:
diff changeset
47 # Use when building GCC
kono
parents:
diff changeset
48 ACLOCAL_AMFLAGS = -I .. -I ../config
kono
parents:
diff changeset
49
kono
parents:
diff changeset
50 # Compiler and linker flags.
kono
parents:
diff changeset
51 GENERAL_FLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/runtime -I$(top_srcdir)/runtime/config/$(config_dir) -I$(top_srcdir)/runtime/sslib -DIN_CILK_RUNTIME=1
kono
parents:
diff changeset
52 # GENERAL_FLAGS += -D_Cilk_spawn="" -D_Cilk_sync="" -D_Cilk_for=for
kono
parents:
diff changeset
53
kono
parents:
diff changeset
54 # Enable Intel Cilk Plus extension
kono
parents:
diff changeset
55 GENERAL_FLAGS += -fcilkplus
kono
parents:
diff changeset
56
kono
parents:
diff changeset
57 #Always generate unwind tables
kono
parents:
diff changeset
58 GENERAL_FLAGS += -funwind-tables
kono
parents:
diff changeset
59
kono
parents:
diff changeset
60 AM_CFLAGS = $(XCFLAGS) $(GENERAL_FLAGS) -std=c99
kono
parents:
diff changeset
61 AM_CPPFLAGS = $(GENERAL_FLAGS)
kono
parents:
diff changeset
62 AM_LDFLAGS = $(XLDFLAGS)
kono
parents:
diff changeset
63
kono
parents:
diff changeset
64 # May be used by toolexeclibdir.
kono
parents:
diff changeset
65 gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
kono
parents:
diff changeset
66
kono
parents:
diff changeset
67 # Target list.
kono
parents:
diff changeset
68 nodist_toolexeclib_HEADERS = libcilkrts.spec
kono
parents:
diff changeset
69 toolexeclib_LTLIBRARIES = libcilkrts.la
kono
parents:
diff changeset
70
kono
parents:
diff changeset
71 libcilkrts_la_SOURCES = \
kono
parents:
diff changeset
72 runtime/config/$(config_dir)/cilk-abi-vla.c \
kono
parents:
diff changeset
73 runtime/config/$(config_dir)/os-unix-sysdep.c \
kono
parents:
diff changeset
74 runtime/sslib/ignore_handler_s.c \
kono
parents:
diff changeset
75 runtime/sslib/safe_lib.h \
kono
parents:
diff changeset
76 runtime/sslib/safe_lib_errno.h \
kono
parents:
diff changeset
77 runtime/sslib/safe_str_constraint.c \
kono
parents:
diff changeset
78 runtime/sslib/safe_str_constraint.h \
kono
parents:
diff changeset
79 runtime/sslib/safe_str_lib.h \
kono
parents:
diff changeset
80 runtime/sslib/safe_types.h \
kono
parents:
diff changeset
81 runtime/sslib/safeclib_private.h \
kono
parents:
diff changeset
82 runtime/sslib/snprintf_s.h \
kono
parents:
diff changeset
83 runtime/sslib/snprintf_support.c \
kono
parents:
diff changeset
84 runtime/sslib/strcpy_s.c \
kono
parents:
diff changeset
85 runtime/sslib/strncpy_s.c \
kono
parents:
diff changeset
86 runtime/sslib/strnlen_s.c \
kono
parents:
diff changeset
87 runtime/bug.cpp \
kono
parents:
diff changeset
88 runtime/cilk-abi.c \
kono
parents:
diff changeset
89 runtime/cilk-abi-cilk-for.cpp \
kono
parents:
diff changeset
90 runtime/cilk-abi-vla-internal.c \
kono
parents:
diff changeset
91 runtime/cilk_api.c \
kono
parents:
diff changeset
92 runtime/cilk_fiber.cpp \
kono
parents:
diff changeset
93 runtime/cilk_fiber-unix.cpp \
kono
parents:
diff changeset
94 runtime/cilk_malloc.c \
kono
parents:
diff changeset
95 runtime/c_reducers.c \
kono
parents:
diff changeset
96 runtime/except-gcc.cpp \
kono
parents:
diff changeset
97 runtime/frame_malloc.c \
kono
parents:
diff changeset
98 runtime/full_frame.c \
kono
parents:
diff changeset
99 runtime/global_state.cpp \
kono
parents:
diff changeset
100 runtime/jmpbuf.c \
kono
parents:
diff changeset
101 runtime/local_state.c \
kono
parents:
diff changeset
102 runtime/metacall_impl.c \
kono
parents:
diff changeset
103 runtime/os_mutex-unix.c \
kono
parents:
diff changeset
104 runtime/os-unix.c \
kono
parents:
diff changeset
105 runtime/pedigrees.c \
kono
parents:
diff changeset
106 runtime/record-replay.cpp \
kono
parents:
diff changeset
107 runtime/reducer_impl.cpp \
kono
parents:
diff changeset
108 runtime/scheduler.c \
kono
parents:
diff changeset
109 runtime/signal_node.c \
kono
parents:
diff changeset
110 runtime/spin_mutex.c \
kono
parents:
diff changeset
111 runtime/stats.c \
kono
parents:
diff changeset
112 runtime/sysdep-unix.c \
kono
parents:
diff changeset
113 runtime/worker_mutex.c
kono
parents:
diff changeset
114
kono
parents:
diff changeset
115
kono
parents:
diff changeset
116 # Load the $(REVISION) value.
kono
parents:
diff changeset
117 include include/internal/rev.mk
kono
parents:
diff changeset
118
kono
parents:
diff changeset
119 #libcilkrts_la_LDFLAGS = -rpath '$(libdir)'
kono
parents:
diff changeset
120 libcilkrts_la_LDFLAGS = -version-info 5:0:0
kono
parents:
diff changeset
121 libcilkrts_la_LDFLAGS += @lt_cv_dlopen_libs@
kono
parents:
diff changeset
122 libcilkrts_la_LDFLAGS += $(AM_LDFLAGS)
kono
parents:
diff changeset
123
kono
parents:
diff changeset
124 # If we're building on Linux, use the Linux version script
kono
parents:
diff changeset
125 if LINUX_LINKER_SCRIPT
kono
parents:
diff changeset
126 libcilkrts_la_LDFLAGS += -Wl,--version-script,$(srcdir)/runtime/linux-symbols.ver
kono
parents:
diff changeset
127 endif
kono
parents:
diff changeset
128
kono
parents:
diff changeset
129 # If we're building on MacOS, use the Mac versioning
kono
parents:
diff changeset
130 if MAC_LINKER_SCRIPT
kono
parents:
diff changeset
131 libcilkrts_la_LDFLAGS += -Wl,-exported_symbols_list,$(srcdir)/runtime/mac-symbols.txt
kono
parents:
diff changeset
132 endif
kono
parents:
diff changeset
133
kono
parents:
diff changeset
134
kono
parents:
diff changeset
135 # Hack for Cygwin
kono
parents:
diff changeset
136 libcilkrts_la_LDFLAGS += -no-undefined
kono
parents:
diff changeset
137
kono
parents:
diff changeset
138 # C/C++ header files for Cilk.
kono
parents:
diff changeset
139 # cilkincludedir = $(includedir)/cilk
kono
parents:
diff changeset
140 cilkincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/include/cilk
kono
parents:
diff changeset
141 nodist_cilkinclude_HEADERS = \
kono
parents:
diff changeset
142 include/cilk/cilk_api.h \
kono
parents:
diff changeset
143 include/cilk/cilk_api_linux.h \
kono
parents:
diff changeset
144 include/cilk/cilk.h \
kono
parents:
diff changeset
145 include/cilk/cilk_stub.h \
kono
parents:
diff changeset
146 include/cilk/cilk_undocumented.h \
kono
parents:
diff changeset
147 include/cilk/common.h \
kono
parents:
diff changeset
148 include/cilk/holder.h \
kono
parents:
diff changeset
149 include/cilk/hyperobject_base.h \
kono
parents:
diff changeset
150 include/cilk/metaprogramming.h \
kono
parents:
diff changeset
151 include/cilk/reducer_file.h \
kono
parents:
diff changeset
152 include/cilk/reducer.h \
kono
parents:
diff changeset
153 include/cilk/reducer_list.h \
kono
parents:
diff changeset
154 include/cilk/reducer_max.h \
kono
parents:
diff changeset
155 include/cilk/reducer_min.h \
kono
parents:
diff changeset
156 include/cilk/reducer_min_max.h \
kono
parents:
diff changeset
157 include/cilk/reducer_opadd.h \
kono
parents:
diff changeset
158 include/cilk/reducer_opand.h \
kono
parents:
diff changeset
159 include/cilk/reducer_opmul.h \
kono
parents:
diff changeset
160 include/cilk/reducer_opor.h \
kono
parents:
diff changeset
161 include/cilk/reducer_opxor.h \
kono
parents:
diff changeset
162 include/cilk/reducer_ostream.h \
kono
parents:
diff changeset
163 include/cilk/reducer_string.h
kono
parents:
diff changeset
164
kono
parents:
diff changeset
165
kono
parents:
diff changeset
166 # Work around what appears to be a GNU make bug handling MAKEFLAGS
kono
parents:
diff changeset
167 # values defined in terms of make variables, as is the case for CC and
kono
parents:
diff changeset
168 # friends when we are called from the top level Makefile.
kono
parents:
diff changeset
169 AM_MAKEFLAGS = \
kono
parents:
diff changeset
170 "AR_FLAGS=$(AR_FLAGS)" \
kono
parents:
diff changeset
171 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
kono
parents:
diff changeset
172 "CFLAGS=$(CFLAGS)" \
kono
parents:
diff changeset
173 "CXXFLAGS=$(CXXFLAGS)" \
kono
parents:
diff changeset
174 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
kono
parents:
diff changeset
175 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
kono
parents:
diff changeset
176 "INSTALL=$(INSTALL)" \
kono
parents:
diff changeset
177 "INSTALL_DATA=$(INSTALL_DATA)" \
kono
parents:
diff changeset
178 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
kono
parents:
diff changeset
179 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
kono
parents:
diff changeset
180 "JC1FLAGS=$(JC1FLAGS)" \
kono
parents:
diff changeset
181 "LDFLAGS=$(LDFLAGS)" \
kono
parents:
diff changeset
182 "LIBCFLAGS=$(LIBCFLAGS)" \
kono
parents:
diff changeset
183 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
kono
parents:
diff changeset
184 "MAKE=$(MAKE)" \
kono
parents:
diff changeset
185 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
kono
parents:
diff changeset
186 "PICFLAG=$(PICFLAG)" \
kono
parents:
diff changeset
187 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
kono
parents:
diff changeset
188 "SHELL=$(SHELL)" \
kono
parents:
diff changeset
189 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
kono
parents:
diff changeset
190 "exec_prefix=$(exec_prefix)" \
kono
parents:
diff changeset
191 "infodir=$(infodir)" \
kono
parents:
diff changeset
192 "libdir=$(libdir)" \
kono
parents:
diff changeset
193 "prefix=$(prefix)" \
kono
parents:
diff changeset
194 "includedir=$(includedir)" \
kono
parents:
diff changeset
195 "AR=$(AR)" \
kono
parents:
diff changeset
196 "AS=$(AS)" \
kono
parents:
diff changeset
197 "LD=$(LD)" \
kono
parents:
diff changeset
198 "LIBCFLAGS=$(LIBCFLAGS)" \
kono
parents:
diff changeset
199 "NM=$(NM)" \
kono
parents:
diff changeset
200 "PICFLAG=$(PICFLAG)" \
kono
parents:
diff changeset
201 "RANLIB=$(RANLIB)" \
kono
parents:
diff changeset
202 "DESTDIR=$(DESTDIR)"
kono
parents:
diff changeset
203
kono
parents:
diff changeset
204 MAKEOVERRIDES=
kono
parents:
diff changeset
205