| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.218 2022/08/27 09:56:21 christos Exp $ | | 1 | # $NetBSD: Makefile,v 1.219 2023/04/10 19:23:02 rillig 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 | # |
| @@ -43,28 +43,28 @@ COPTS+= ${${ACTIVE_CC} == "gcc":? -fro | | | @@ -43,28 +43,28 @@ COPTS+= ${${ACTIVE_CC} == "gcc":? -fro |
43 | # CPPFLAGS = ... Multi-standard supported | | 43 | # CPPFLAGS = ... Multi-standard supported |
44 | # libm with IEEE as the | | 44 | # libm with IEEE as the |
45 | # default standard | | 45 | # default standard |
46 | # | | 46 | # |
47 | | | 47 | |
48 | USE_SHLIBDIR= yes | | 48 | USE_SHLIBDIR= yes |
49 | | | 49 | |
50 | # require this for the value of I387_LIBM from mk.conf, if set. | | 50 | # require this for the value of I387_LIBM from mk.conf, if set. |
51 | .include <bsd.own.mk> | | 51 | .include <bsd.own.mk> |
52 | | | 52 | |
53 | LIBC_MACHINE_ARCH?= ${MACHINE_ARCH} | | 53 | LIBC_MACHINE_ARCH?= ${MACHINE_ARCH} |
54 | LIBC_MACHINE_CPU?= ${MACHINE_CPU} | | 54 | LIBC_MACHINE_CPU?= ${MACHINE_CPU} |
55 | | | 55 | |
56 | # compiler_rt uses typeof() and __extension__ | | 56 | LINTFLAGS+= -g # compiler_rt uses typeof() and __extension__ |
57 | LINTFLAGS += -g | | 57 | LINTFLAGS+= -X 117 # GCC sign-extends '>>' on signed int |
58 | | | 58 | |
59 | .if (${LIBC_MACHINE_CPU} == "aarch64") | | 59 | .if (${LIBC_MACHINE_CPU} == "aarch64") |
60 | .PATH: ${.CURDIR}/arch/aarch64 | | 60 | .PATH: ${.CURDIR}/arch/aarch64 |
61 | ARCH_SRCS = e_sqrt.S e_sqrtf.S s_fabsf.S | | 61 | ARCH_SRCS = e_sqrt.S e_sqrtf.S s_fabsf.S |
62 | ARCH_SRCS+= s_fma.S s_fmaf.S s_fmax.S s_fmaxf.S s_fmin.S s_fminf.S | | 62 | ARCH_SRCS+= s_fma.S s_fmaf.S s_fmax.S s_fmaxf.S s_fmin.S s_fminf.S |
63 | .if ${MKSOFTFLOAT} == "no" | | 63 | .if ${MKSOFTFLOAT} == "no" |
64 | COMMON_SRCS+= fenv.c | | 64 | COMMON_SRCS+= fenv.c |
65 | .endif | | 65 | .endif |
66 | COMMON_SRCS+= s_nexttoward.c s_rintl.c | | 66 | COMMON_SRCS+= s_nexttoward.c s_rintl.c |
67 | COMMON_SRCS+= e_sqrtl.c | | 67 | COMMON_SRCS+= e_sqrtl.c |
68 | COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c | | 68 | COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c |
69 | | | 69 | |
70 | .elif (${LIBC_MACHINE_ARCH} == "alpha") | | 70 | .elif (${LIBC_MACHINE_ARCH} == "alpha") |