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 FLTRPATH_sparc = $$ORIGIN/cpu/$$ISALIST/libmvec_isa.so.1
163 FLTRPATH_sparcv9 = $$ORIGIN/../cpu/$$ISALIST/sparcv9/libmvec_isa.so.1
164 FLTRPATH_i386 = $$ORIGIN/libmvec/$$HWCAP
165 FLTRPATH = $(FLTRPATH_$(TARGET_ARCH))
167 SRCS_mvec_i386 = ../common/__vsqrtf.c
169 SRCS_mvec_sparc = $(SRCS_mvec_i386)
171 SRCS_mvec_sparcv9 = $(SRCS_mvec_i386)
175 $(SRCS_mvec_$(TARGETMACH)) \
176 ../common/__vTBL_atan1.c \
177 ../common/__vTBL_atan2.c \
178 ../common/__vTBL_rsqrt.c \
179 ../common/__vTBL_sincos.c \
180 ../common/__vTBL_sincos2.c \
181 ../common/__vTBL_sqrtf.c \
182 ../common/__vatan.c \
183 ../common/__vatan2.c \
184 ../common/__vatan2f.c \
185 ../common/__vatanf.c \
186 ../common/__vc_abs.c \
187 ../common/__vc_exp.c \
188 ../common/__vc_log.c \
189 ../common/__vc_pow.c \
191 ../common/__vcosbig.c \
192 ../common/__vcosbigf.c \
193 ../common/__vcosf.c \
195 ../common/__vexpf.c \
196 ../common/__vhypot.c \
197 ../common/__vhypotf.c \
199 ../common/__vlogf.c \
201 ../common/__vpowf.c \
202 ../common/__vrem_pio2m.c \
203 ../common/__vrhypot.c \
204 ../common/__vrhypotf.c \
205 ../common/__vrsqrt.c \
206 ../common/__vrsqrtf.c \
208 ../common/__vsinbig.c \
209 ../common/__vsinbigf.c \
210 ../common/__vsincos.c \
211 ../common/__vsincosbig.c \
212 ../common/__vsincosbigf.c \
213 ../common/__vsincosf.c \
214 ../common/__vsinf.c \
215 ../common/__vsqrt.c \
216 ../common/__vz_abs.c \
217 ../common/__vz_exp.c \
218 ../common/__vz_log.c \
219 ../common/__vz_pow.c \
220 ../common/vatan2_.c \
221 ../common/vatan2f_.c \
223 ../common/vatanf_.c \
224 ../common/vc_abs_.c \
225 ../common/vc_exp_.c \
226 ../common/vc_log_.c \
227 ../common/vc_pow_.c \
232 ../common/vhypot_.c \
233 ../common/vhypotf_.c \
238 ../common/vrhypot_.c \
239 ../common/vrhypotf_.c \
240 ../common/vrsqrt_.c \
241 ../common/vrsqrtf_.c \
243 ../common/vsincos_.c \
244 ../common/vsincosf_.c \
247 ../common/vsqrtf_.c \
248 ../common/vz_abs_.c \
249 ../common/vz_exp_.c \
250 ../common/vz_log_.c \
257 pics/%.o: ../$(TARGET_ARCH)/src/%.S
258 $(COMPILE.s) -o $@ $<
261 pics/%.o: ../common/$$(CHIP)/%.S
262 $(COMPILE.s) -o $@ $<