Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libm Adding extra dependencies does not affect the infer...
details: https://anonhg.NetBSD.org/src/rev/4046a7b7d53d
branches: trunk
changeset: 331834:4046a7b7d53d
user: christos <christos%NetBSD.org@localhost>
date: Tue Aug 26 11:48:20 2014 +0000
description:
Adding extra dependencies does not affect the inference rule search anymore.
XXX[1]: should that be the case?
Simplify the code anyway via selective path search.
XXX[2]: Split arch portions to arch specific files, this is a mess
diffstat:
lib/libm/Makefile | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diffs (29 lines):
diff -r 9ba20b2df542 -r 4046a7b7d53d lib/libm/Makefile
--- a/lib/libm/Makefile Tue Aug 26 11:45:49 2014 +0000
+++ b/lib/libm/Makefile Tue Aug 26 11:48:20 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.164 2014/08/11 08:20:57 mrg Exp $
+# $NetBSD: Makefile,v 1.165 2014/08/26 11:48:20 christos Exp $
#
# @(#)Makefile 5.1beta 93/09/24
#
@@ -66,17 +66,14 @@
ARCH_SRCS = s_copysign.S s_copysignf.S lrint.S
COPTS+= -mfloat-ieee -mieee-with-inexact -mfp-trap-mode=sui -mtrap-precision=i
.elif (${LIBC_MACHINE_CPU} == "arm")
-.PATH: ${.CURDIR}/arch/arm
+.PATH.c: ${.CURDIR}/arch/arm
COMMON_SRCS+= fenv.c s_nexttowardf.c \
s_nearbyint.c s_rintl.c
COPTS.e_sqrtl.c += -DHAVE_FENV_H
COPTS.fenv.c+= -mfpu=vfp
.if (${MKSOFTFLOAT} == "no")
+.PATH.S: ${.CURDIR}/arch/arm
ARCH_SRCS = e_sqrt.S e_sqrtf.S lrint.S lrintf.S s_fabsf.S s_fma.S s_fmaf.S
-.else
-.for i in e_sqrt.o e_sqrtf.o lrint.o lrintf.o s_fabsf.o s_fma.o s_fmaf.o
-${i} ${i:.o=.po} ${i:.o=.pico} ${i:.o=.go} ${i:.o=.ln}: ${i:.o=.c}
-.endfor
.endif
.elif (${LIBC_MACHINE_ARCH} == "sparc")
.PATH: ${.CURDIR}/arch/sparc
Home |
Main Index |
Thread Index |
Old Index