Wed Mar 30 07:44:06 2016 UTC ()
No fenv for m68k with SOFTFLOAT for now - so at least it builds.


(martin)
diff -r1.176 -r1.177 src/lib/libm/Makefile

cvs diff -r1.176 -r1.177 src/lib/libm/Makefile (expand / switch to unified diff)

--- src/lib/libm/Makefile 2016/03/17 18:29:59 1.176
+++ src/lib/libm/Makefile 2016/03/30 07:44:06 1.177
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.176 2016/03/17 18:29:59 nros Exp $ 1# $NetBSD: Makefile,v 1.177 2016/03/30 07:44:06 martin Exp $
2# 2#
3# @(#)Makefile 5.1beta 93/09/24 3# @(#)Makefile 5.1beta 93/09/24
4# 4#
5# ==================================================== 5# ====================================================
6# Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 6# Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
7# 7#
8# Developed at SunPro, a Sun Microsystems, Inc. business. 8# Developed at SunPro, a Sun Microsystems, Inc. business.
9# Permission to use, copy, modify, and distribute this 9# Permission to use, copy, modify, and distribute this
10# software is freely granted, provided that this notice 10# software is freely granted, provided that this notice
11# is preserved. 11# is preserved.
12# ==================================================== 12# ====================================================
13# 13#
14# 14#
@@ -130,30 +130,30 @@ COPTS+=-m68060 @@ -130,30 +130,30 @@ COPTS+=-m68060
130.PATH: ${.CURDIR}/arch/m68k 130.PATH: ${.CURDIR}/arch/m68k
131ARCH_SRCS += s_ceil.S s_copysign.S s_finite.S s_floor.S s_rint.S 131ARCH_SRCS += s_ceil.S s_copysign.S s_finite.S s_floor.S s_rint.S
132.elif defined(M68040) 132.elif defined(M68040)
133.PATH: ${.CURDIR}/arch/m68k 133.PATH: ${.CURDIR}/arch/m68k
134COPTS+=-m68040 134COPTS+=-m68040
135ARCH_SRCS = s_copysign.S s_finite.S 135ARCH_SRCS = s_copysign.S s_finite.S
136.else 136.else
137.if (${MKSOFTFLOAT} != "yes") 137.if (${MKSOFTFLOAT} != "yes")
138.PATH: ${.CURDIR}/arch/mc68881 ${.CURDIR}/arch/m68k 138.PATH: ${.CURDIR}/arch/mc68881 ${.CURDIR}/arch/m68k
139ARCH_SRCS = e_acos.S e_asin.S e_atanh.S e_cosh.S e_exp.S e_fmod.S e_log.S \ 139ARCH_SRCS = e_acos.S e_asin.S e_atanh.S e_cosh.S e_exp.S e_fmod.S e_log.S \
140 e_log10.S e_remainder.S e_scalb.S e_sinh.S e_sqrt.S s_atan.S \ 140 e_log10.S e_remainder.S e_scalb.S e_sinh.S e_sqrt.S s_atan.S \
141 s_ceil.S s_copysign.S s_cos.S s_expm1.S s_finite.S s_floor.S \ 141 s_ceil.S s_copysign.S s_cos.S s_expm1.S s_finite.S s_floor.S \
142 s_log1p.S s_logb.S s_rint.S s_scalbn.S s_sin.S s_tan.S s_tanh.S 142 s_log1p.S s_logb.S s_rint.S s_scalbn.S s_sin.S s_tan.S s_tanh.S
143.endif 
144COPTS.e_sqrtl.c += -DHAVE_FENV_H 143COPTS.e_sqrtl.c += -DHAVE_FENV_H
145COMMON_SRCS += fenv.c 144COMMON_SRCS += fenv.c
146.endif 145.endif
 146.endif
147# end of m68k 147# end of m68k
148.elif (${LIBC_MACHINE_ARCH} == "vax") 148.elif (${LIBC_MACHINE_ARCH} == "vax")
149.PATH: ${.CURDIR}/arch/vax 149.PATH: ${.CURDIR}/arch/vax
150 150
151#NOIEEE_ARCH+= s_fmax.c s_fmaxf.c s_fmaxl.c 151#NOIEEE_ARCH+= s_fmax.c s_fmaxf.c s_fmaxl.c
152#NOIEEE_ARCH+= n_infnan.S n_argred.S n_sqrt.S 152#NOIEEE_ARCH+= n_infnan.S n_argred.S n_sqrt.S
153#ARCH_SRCS = n_atan2.S n_cabs.S n_cbrt.S n_support.S n_sincos.S n_tan.S 153#ARCH_SRCS = n_atan2.S n_cabs.S n_cbrt.S n_support.S n_sincos.S n_tan.S
154# XXX - ripped out due to lack of the insn polyd in the Mariah chip, 154# XXX - ripped out due to lack of the insn polyd in the Mariah chip,
155# and emulation code isn't written yet. 155# and emulation code isn't written yet.
156ARCH_SRCS = n_scalbn.S 156ARCH_SRCS = n_scalbn.S
157WARNS?=5 157WARNS?=5
158.elif (${LIBC_MACHINE_CPU} == "riscv") 158.elif (${LIBC_MACHINE_CPU} == "riscv")
159.PATH: ${.CURDIR}/arch/riscv 159.PATH: ${.CURDIR}/arch/riscv