2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
16 LIBMDIR = $(SRC)/lib/libm
154 include $(SRC)/lib/Makefile.lib
155 include $(SRC)/lib/Makefile.rootfs
156 include $(LIBMDIR)/Makefile.libm.com
160 DYNFLAGS += $(ZIGNORE)
162 LINTERROFF = -erroff=E_FP_DIVISION_BY_ZERO
163 LINTERROFF += -erroff=E_FP_INVALID
164 LINTERROFF += -erroff=E_BAD_PTR_CAST_ALIGN
165 LINTERROFF += -erroff=E_ASSIGMENT_CAUSE_LOSS_PREC
166 LINTERROFF += -erroff=E_FUNC_SET_NOT_USED
168 LINTFLAGS += $(LINTERROFF)
169 LINTFLAGS64 += $(LINTERROFF)
170 LINTFLAGS64 += -errchk=longptr64
172 CLAGS += $(LINTERROFF)
173 CFLAGS64 += $(LINTERROFF)
175 FLTRPATH_sparc = $$ORIGIN/cpu/$$ISALIST/libmvec_isa.so.1
176 FLTRPATH_sparcv9 = $$ORIGIN/../cpu/$$ISALIST/sparcv9/libmvec_isa.so.1
177 FLTRPATH_i386 = $$ORIGIN/libmvec/$$HWCAP
178 FLTRPATH = $(FLTRPATH_$(TARGET_ARCH))
180 sparc_CFLAGS += -_cc=-W0,-xintrinsic
181 sparcv9_CFLAGS += -_cc=-W0,-xintrinsic
183 SRCS_mvec_i386 = ../common/__vsqrtf.c
185 SRCS_mvec_sparc = $(SRCS_mvec_i386)
187 SRCS_mvec_sparcv9 = $(SRCS_mvec_i386)
191 $(SRCS_mvec_$(TARGETMACH)) \
192 ../common/__vTBL_atan1.c \
193 ../common/__vTBL_atan2.c \
194 ../common/__vTBL_rsqrt.c \
195 ../common/__vTBL_sincos.c \
196 ../common/__vTBL_sincos2.c \
197 ../common/__vTBL_sqrtf.c \
198 ../common/__vatan.c \
199 ../common/__vatan2.c \
200 ../common/__vatan2f.c \
201 ../common/__vatanf.c \
202 ../common/__vc_abs.c \
203 ../common/__vc_exp.c \
204 ../common/__vc_log.c \
205 ../common/__vc_pow.c \
207 ../common/__vcosbig.c \
208 ../common/__vcosbigf.c \
209 ../common/__vcosf.c \
211 ../common/__vexpf.c \
212 ../common/__vhypot.c \
213 ../common/__vhypotf.c \
215 ../common/__vlogf.c \
217 ../common/__vpowf.c \
218 ../common/__vrem_pio2m.c \
219 ../common/__vrhypot.c \
220 ../common/__vrhypotf.c \
221 ../common/__vrsqrt.c \
222 ../common/__vrsqrtf.c \
224 ../common/__vsinbig.c \
225 ../common/__vsinbigf.c \
226 ../common/__vsincos.c \
227 ../common/__vsincosbig.c \
228 ../common/__vsincosbigf.c \
229 ../common/__vsincosf.c \
230 ../common/__vsinf.c \
231 ../common/__vsqrt.c \
232 ../common/__vz_abs.c \
233 ../common/__vz_exp.c \
234 ../common/__vz_log.c \
235 ../common/__vz_pow.c \
236 ../common/vatan2_.c \
237 ../common/vatan2f_.c \
239 ../common/vatanf_.c \
240 ../common/vc_abs_.c \
241 ../common/vc_exp_.c \
242 ../common/vc_log_.c \
243 ../common/vc_pow_.c \
248 ../common/vhypot_.c \
249 ../common/vhypotf_.c \
254 ../common/vrhypot_.c \
255 ../common/vrhypotf_.c \
256 ../common/vrsqrt_.c \
257 ../common/vrsqrtf_.c \
259 ../common/vsincos_.c \
260 ../common/vsincosf_.c \
263 ../common/vsqrtf_.c \
264 ../common/vz_abs_.c \
265 ../common/vz_exp_.c \
266 ../common/vz_log_.c \
275 pics/%.o: ../$(TARGET_ARCH)/src/%.S
276 $(COMPILE.s) -o $@ $<
279 pics/%.o: ../common/$$(CHIP)/%.S
280 $(COMPILE.s) -o $@ $<