Print this page
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libmvec/Makefile.com
+++ new/usr/src/lib/libmvec/Makefile.com
1 1 #
2 2 # This file and its contents are supplied under the terms of the
3 3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 4 # You may only use this file in accordance with the terms of version
5 5 # 1.0 of the CDDL.
6 6 #
7 7 # A full copy of the text of the CDDL should have accompanied this
8 8 # source. A copy of the CDDL is also available via the Internet at
9 9 # http://www.illumos.org/license/CDDL.
10 10 #
11 11
12 12 #
13 13 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
14 14 #
15 15
16 16 LIBMDIR = $(SRC)/lib/libm
17 17
18 18 mvecOBJS = \
19 19 __vTBL_atan1.o \
20 20 __vTBL_atan2.o \
21 21 __vTBL_rsqrt.o \
22 22 __vTBL_sincos.o \
23 23 __vTBL_sincos2.o \
24 24 __vTBL_sqrtf.o \
25 25 __vatan.o \
26 26 __vatan2.o \
27 27 __vatan2f.o \
28 28 __vatanf.o \
29 29 __vc_abs.o \
30 30 __vc_exp.o \
31 31 __vc_log.o \
32 32 __vc_pow.o \
33 33 __vcos.o \
34 34 __vcosbig.o \
35 35 __vcosbigf.o \
36 36 __vcosf.o \
37 37 __vexp.o \
38 38 __vexpf.o \
39 39 __vhypot.o \
40 40 __vhypotf.o \
41 41 __vlog.o \
42 42 __vlogf.o \
43 43 __vpow.o \
44 44 __vpowf.o \
45 45 __vrem_pio2m.o \
46 46 __vrhypot.o \
47 47 __vrhypotf.o \
48 48 __vrsqrt.o \
49 49 __vrsqrtf.o \
50 50 __vsin.o \
51 51 __vsinbig.o \
52 52 __vsinbigf.o \
53 53 __vsincos.o \
54 54 __vsincosbig.o \
55 55 __vsincosbigf.o \
56 56 __vsincosf.o \
57 57 __vsinf.o \
58 58 __vsqrt.o \
59 59 __vsqrtf.o \
60 60 __vz_abs.o \
61 61 __vz_exp.o \
62 62 __vz_log.o \
63 63 __vz_pow.o \
64 64 vatan2_.o \
65 65 vatan2f_.o \
66 66 vatan_.o \
67 67 vatanf_.o \
68 68 vc_abs_.o \
69 69 vc_exp_.o \
70 70 vc_log_.o \
71 71 vc_pow_.o \
72 72 vcos_.o \
73 73 vcosf_.o \
74 74 vexp_.o \
75 75 vexpf_.o \
76 76 vhypot_.o \
77 77 vhypotf_.o \
78 78 vlog_.o \
79 79 vlogf_.o \
80 80 vpow_.o \
81 81 vpowf_.o \
82 82 vrhypot_.o \
83 83 vrhypotf_.o \
84 84 vrsqrt_.o \
85 85 vrsqrtf_.o \
86 86 vsin_.o \
87 87 vsincos_.o \
88 88 vsincosf_.o \
89 89 vsinf_.o \
90 90 vsqrt_.o \
91 91 vsqrtf_.o \
92 92 vz_abs_.o \
93 93 vz_exp_.o \
94 94 vz_log_.o \
95 95 vz_pow_.o \
96 96 #end
97 97
98 98 mvecvisCOBJS = \
99 99 __vTBL_atan1.o \
100 100 __vTBL_atan2.o \
101 101 __vTBL_rsqrt.o \
102 102 __vTBL_sincos.o \
103 103 __vTBL_sincos2.o \
104 104 __vTBL_sqrtf.o \
105 105 __vcosbig.o \
106 106 __vcosbigf.o \
107 107 __vrem_pio2m.o \
108 108 __vsinbig.o \
109 109 __vsinbigf.o \
110 110 __vsincosbig.o \
111 111 __vsincosbigf.o \
112 112 #end
113 113
114 114 mvecvisSOBJS = \
115 115 __vatan.o \
116 116 __vatan2.o \
117 117 __vatan2f.o \
118 118 __vatanf.o \
119 119 __vcos.o \
120 120 __vcosf.o \
121 121 __vexp.o \
122 122 __vexpf.o \
123 123 __vhypot.o \
124 124 __vhypotf.o \
125 125 __vlog.o \
126 126 __vlogf.o \
127 127 __vpow.o \
128 128 __vpowf.o \
129 129 __vrhypot.o \
130 130 __vrhypotf.o \
131 131 __vrsqrt.o \
132 132 __vrsqrtf.o \
133 133 __vsin.o \
134 134 __vsincos.o \
135 135 __vsincosf.o \
136 136 __vsinf.o \
137 137 __vsqrt.o \
138 138 __vsqrtf.o \
139 139 #end
140 140
141 141 mvecvis2COBJS = \
142 142 __vTBL_sincos.o \
143 143 __vTBL_sincos2.o \
144 144 __vTBL_sqrtf.o \
145 145 __vcosbig.o \
146 146 __vcosbig_ultra3.o \
147 147 __vrem_pio2m.o \
148 148 __vsinbig.o \
149 149 __vsinbig_ultra3.o \
150 150 #end
151 151
152 152 mvecvis2SOBJS = \
153 153 __vcos_ultra3.o \
154 154 __vlog_ultra3.o \
155 155 __vsin_ultra3.o \
156 156 __vsqrtf_ultra3.o \
157 157 #end
158 158
159 159 include $(SRC)/lib/Makefile.lib
160 160 include $(SRC)/lib/Makefile.rootfs
161 161 include $(LIBMDIR)/Makefile.libm.com
162 162
163 163 LIBS = $(DYNLIB)
↓ open down ↓ |
163 lines elided |
↑ open up ↑ |
164 164 SRCDIR = ../common/
165 165 DYNFLAGS += -zignore
166 166
167 167 LINTERROFF = -erroff=E_FP_DIVISION_BY_ZERO
168 168 LINTERROFF += -erroff=E_FP_INVALID
169 169 LINTERROFF += -erroff=E_BAD_PTR_CAST_ALIGN
170 170 LINTERROFF += -erroff=E_ASSIGMENT_CAUSE_LOSS_PREC
171 171 LINTERROFF += -erroff=E_FUNC_SET_NOT_USED
172 172
173 173 CERRWARN += -_gcc=-Wno-parentheses
174 -CERRWARN += -_gcc=-Wno-uninitialized
175 174 CERRWARN += -_gcc=-Wno-unused-variable
176 175
177 176 LINTFLAGS += $(LINTERROFF)
178 177 LINTFLAGS64 += $(LINTERROFF)
179 178 LINTFLAGS64 += -errchk=longptr64
180 179
181 180 CLAGS += $(LINTERROFF)
182 181 CFLAGS64 += $(LINTERROFF)
183 182
184 183 ASDEF += -DLIBMVEC_SO_BUILD
185 184
186 185 FLTRPATH_sparc = $$ORIGIN/cpu/$$ISALIST/libmvec_isa.so.1
187 186 FLTRPATH_sparcv9 = $$ORIGIN/../cpu/$$ISALIST/sparcv9/libmvec_isa.so.1
188 187 FLTRPATH_i386 = $$ORIGIN/libmvec/$$HWCAP
189 188 FLTRPATH = $(FLTRPATH_$(TARGET_ARCH))
190 189
191 190 sparc_CFLAGS += -_cc=-W0,-xintrinsic
192 191 sparcv9_CFLAGS += -_cc=-W0,-xintrinsic
193 192 CPPFLAGS_i386 += -Dfabs=__fabs
194 193
195 194 CPPFLAGS += -DLIBMVEC_SO_BUILD
196 195
197 196 SRCS_mvec_i386 = \
198 197 ../common/__vsqrtf.c \
199 198 #end
200 199
201 200 SRCS_mvec_sparc = \
202 201 $(SRCS_mvec_i386) \
203 202 #end
204 203 SRCS_mvec_sparcv9 = \
205 204 $(SRCS_mvec_i386) \
206 205 #end
207 206
208 207 SRCS_mvec = \
209 208 $(SRCS_mvec_$(TARGETMACH)) \
210 209 ../common/__vTBL_atan1.c \
211 210 ../common/__vTBL_atan2.c \
212 211 ../common/__vTBL_rsqrt.c \
213 212 ../common/__vTBL_sincos.c \
214 213 ../common/__vTBL_sincos2.c \
215 214 ../common/__vTBL_sqrtf.c \
216 215 ../common/__vatan.c \
217 216 ../common/__vatan2.c \
218 217 ../common/__vatan2f.c \
219 218 ../common/__vatanf.c \
220 219 ../common/__vc_abs.c \
221 220 ../common/__vc_exp.c \
222 221 ../common/__vc_log.c \
223 222 ../common/__vc_pow.c \
224 223 ../common/__vcos.c \
225 224 ../common/__vcosbig.c \
226 225 ../common/__vcosbigf.c \
227 226 ../common/__vcosf.c \
228 227 ../common/__vexp.c \
229 228 ../common/__vexpf.c \
230 229 ../common/__vhypot.c \
231 230 ../common/__vhypotf.c \
232 231 ../common/__vlog.c \
233 232 ../common/__vlogf.c \
234 233 ../common/__vpow.c \
235 234 ../common/__vpowf.c \
236 235 ../common/__vrem_pio2m.c \
237 236 ../common/__vrhypot.c \
238 237 ../common/__vrhypotf.c \
239 238 ../common/__vrsqrt.c \
240 239 ../common/__vrsqrtf.c \
241 240 ../common/__vsin.c \
242 241 ../common/__vsinbig.c \
243 242 ../common/__vsinbigf.c \
244 243 ../common/__vsincos.c \
245 244 ../common/__vsincosbig.c \
246 245 ../common/__vsincosbigf.c \
247 246 ../common/__vsincosf.c \
248 247 ../common/__vsinf.c \
249 248 ../common/__vsqrt.c \
250 249 ../common/__vz_abs.c \
251 250 ../common/__vz_exp.c \
252 251 ../common/__vz_log.c \
253 252 ../common/__vz_pow.c \
254 253 ../common/vatan2_.c \
255 254 ../common/vatan2f_.c \
256 255 ../common/vatan_.c \
257 256 ../common/vatanf_.c \
258 257 ../common/vc_abs_.c \
259 258 ../common/vc_exp_.c \
260 259 ../common/vc_log_.c \
261 260 ../common/vc_pow_.c \
262 261 ../common/vcos_.c \
263 262 ../common/vcosf_.c \
264 263 ../common/vexp_.c \
265 264 ../common/vexpf_.c \
266 265 ../common/vhypot_.c \
267 266 ../common/vhypotf_.c \
268 267 ../common/vlog_.c \
269 268 ../common/vlogf_.c \
270 269 ../common/vpow_.c \
271 270 ../common/vpowf_.c \
272 271 ../common/vrhypot_.c \
273 272 ../common/vrhypotf_.c \
274 273 ../common/vrsqrt_.c \
275 274 ../common/vrsqrtf_.c \
276 275 ../common/vsin_.c \
277 276 ../common/vsincos_.c \
278 277 ../common/vsincosf_.c \
279 278 ../common/vsinf_.c \
280 279 ../common/vsqrt_.c \
281 280 ../common/vsqrtf_.c \
282 281 ../common/vz_abs_.c \
283 282 ../common/vz_exp_.c \
284 283 ../common/vz_log_.c \
285 284 ../common/vz_pow_.c \
286 285 #end
287 286
288 287 .KEEP_STATE:
289 288
290 289 all: $(LIBS)
291 290
292 291 lint: lintcheck
293 292
294 293 pics/%.o: ../$(TARGET_ARCH)/src/%.S
295 294 $(COMPILE.s) -o $@ $<
296 295 $(POST_PROCESS_O)
297 296
298 297 pics/%.o: ../common/$$(CHIP)/%.S
299 298 $(COMPILE.s) -o $@ $<
300 299 $(POST_PROCESS_O)
↓ open down ↓ |
116 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX