| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.198 2017/08/16 09:18:24 he Exp $ | | 1 | # $NetBSD: Makefile,v 1.199 2017/08/16 13:34:59 nisimura 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 | # |
| @@ -50,26 +50,27 @@ USE_SHLIBDIR= yes | | | @@ -50,26 +50,27 @@ USE_SHLIBDIR= yes |
50 | LIBC_MACHINE_ARCH?= ${MACHINE_ARCH} | | 50 | LIBC_MACHINE_ARCH?= ${MACHINE_ARCH} |
51 | LIBC_MACHINE_CPU?= ${MACHINE_CPU} | | 51 | LIBC_MACHINE_CPU?= ${MACHINE_CPU} |
52 | | | 52 | |
53 | # compiler_rt uses typeof() and __extension__ | | 53 | # compiler_rt uses typeof() and __extension__ |
54 | LINTFLAGS += -g | | 54 | LINTFLAGS += -g |
55 | | | 55 | |
56 | .if (${LIBC_MACHINE_CPU} == "aarch64") | | 56 | .if (${LIBC_MACHINE_CPU} == "aarch64") |
57 | .PATH: ${.CURDIR}/arch/aarch64 | | 57 | .PATH: ${.CURDIR}/arch/aarch64 |
58 | ARCH_SRCS = e_sqrt.S e_sqrtf.S s_fabsf.S | | 58 | ARCH_SRCS = e_sqrt.S e_sqrtf.S s_fabsf.S |
59 | ARCH_SRCS+= s_fma.S s_fmaf.S s_fmax.S s_fmaxf.S s_fmin.S s_fminf.S | | 59 | ARCH_SRCS+= s_fma.S s_fmaf.S s_fmax.S s_fmaxf.S s_fmin.S s_fminf.S |
60 | .if ${MKSOFTFLOAT} == "no" | | 60 | .if ${MKSOFTFLOAT} == "no" |
61 | COMMON_SRCS+= fenv.c | | 61 | COMMON_SRCS+= fenv.c |
62 | .endif | | 62 | .endif |
| | | 63 | COMMON_SRCS+= s_rintl.c |
63 | COMMON_SRCS+= e_sqrtl.c | | 64 | COMMON_SRCS+= e_sqrtl.c |
64 | COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c | | 65 | COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c |
65 | | | 66 | |
66 | .elif (${LIBC_MACHINE_ARCH} == "alpha") | | 67 | .elif (${LIBC_MACHINE_ARCH} == "alpha") |
67 | .PATH: ${.CURDIR}/arch/alpha | | 68 | .PATH: ${.CURDIR}/arch/alpha |
68 | ARCH_SRCS = s_copysign.S s_copysignf.S lrint.S | | 69 | ARCH_SRCS = s_copysign.S s_copysignf.S lrint.S |
69 | COMMON_SRCS+= fenv.c | | 70 | COMMON_SRCS+= fenv.c |
70 | COPTS+= -mfloat-ieee -mieee-with-inexact -mfp-trap-mode=sui -mtrap-precision=i | | 71 | COPTS+= -mfloat-ieee -mieee-with-inexact -mfp-trap-mode=sui -mtrap-precision=i |
71 | | | 72 | |
72 | .elif (${LIBC_MACHINE_CPU} == "arm") | | 73 | .elif (${LIBC_MACHINE_CPU} == "arm") |
73 | .PATH.c: ${.CURDIR}/arch/arm | | 74 | .PATH.c: ${.CURDIR}/arch/arm |
74 | .if ${MKSOFTFLOAT} == "no" | | 75 | .if ${MKSOFTFLOAT} == "no" |
75 | COMMON_SRCS+= fenv.c | | 76 | COMMON_SRCS+= fenv.c |