Makefile revision 1.191
11.191Schristos#  $NetBSD: Makefile,v 1.191 2017/05/06 18:03:24 christos Exp $
21.46Ssimonb#
31.46Ssimonb#  @(#)Makefile 5.1beta 93/09/24
41.27Sragge#
51.11Sjtc#  ====================================================
61.11Sjtc#  Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
71.46Ssimonb#
81.11Sjtc#  Developed at SunPro, a Sun Microsystems, Inc. business.
91.11Sjtc#  Permission to use, copy, modify, and distribute this
101.46Ssimonb#  software is freely granted, provided that this notice
111.11Sjtc#  is preserved.
121.11Sjtc#  ====================================================
131.46Ssimonb#
141.46Ssimonb#
151.11Sjtc
161.11Sjtc#
171.11Sjtc# There are two options in making libm at fdlibm compile time:
181.11Sjtc# 	_IEEE_LIBM 	--- IEEE libm; smaller, and somewhat faster
191.46Ssimonb#	_MULTI_LIBM	--- Support multi-standard at runtime by
201.46Ssimonb#			    imposing wrapper functions defined in
211.11Sjtc#			    fdlibm.h:
221.11Sjtc#				_IEEE_MODE 	-- IEEE
231.11Sjtc#				_XOPEN_MODE 	-- X/OPEN
241.11Sjtc#				_POSIX_MODE 	-- POSIX/ANSI
251.11Sjtc#				_SVID3_MODE 	-- SVID
261.11Sjtc#
271.46Ssimonb# Here is how to set up CPPFLAGS to create the desired libm at
281.11Sjtc# compile time:
291.1Scgd#
301.37Slukem# 	CPPFLAGS = -D_IEEE_LIBM		... IEEE libm (recommended)
311.37Slukem#	CPPFLAGS = -D_SVID3_MODE	... Multi-standard supported
321.46Ssimonb#					    libm with SVID as the
331.11Sjtc#					    default standard
341.37Slukem#	CPPFLAGS = -D_XOPEN_MODE	... Multi-standard supported
351.46Ssimonb#					    libm with XOPEN as the
361.11Sjtc#					    default standard
371.37Slukem#	CPPFLAGS = -D_POSIX_MODE	... Multi-standard supported
381.46Ssimonb#					    libm with POSIX as the
391.11Sjtc#					    default standard
401.37Slukem#	CPPFLAGS = 			... Multi-standard supported
411.46Ssimonb#					    libm with IEEE as the
421.11Sjtc#					    default standard
431.46Ssimonb#
441.11Sjtc
451.84SchristosUSE_SHLIBDIR=	yes
461.55Stv
471.40Sperry# require this for the value of I387_LIBM from mk.conf, if set.
481.40Sperry.include <bsd.own.mk>
491.54Slukem
501.163SmattLIBC_MACHINE_ARCH?=	${MACHINE_ARCH}
511.163SmattLIBC_MACHINE_CPU?=	${MACHINE_CPU}
521.163Smatt
531.156Schristos# compiler_rt uses typeof() and __extension__
541.156SchristosLINTFLAGS += -g
551.156Schristos
561.163Smatt.if (${LIBC_MACHINE_CPU} == "aarch64")
571.161Smatt.PATH: ${.CURDIR}/arch/aarch64
581.161SmattARCH_SRCS = e_sqrt.S e_sqrtf.S s_fabsf.S
591.161SmattARCH_SRCS+= s_fma.S s_fmaf.S s_fmax.S s_fmaxf.S s_fmin.S s_fminf.S
601.189Schs.if ${MKSOFTFLOAT} == "no"
611.161SmattCOMMON_SRCS+= fenv.c
621.189Schs.endif
631.161SmattCOMMON_SRCS+= e_sqrtl.c
641.161SmattCOMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
651.163Smatt.elif (${LIBC_MACHINE_ARCH} == "alpha")
661.29Sjtc.PATH: ${.CURDIR}/arch/alpha
671.63SdrochnerARCH_SRCS = s_copysign.S s_copysignf.S lrint.S
681.178SchristosCOMMON_SRCS+= fenv.c
691.159SmartinCOPTS+=	-mfloat-ieee -mieee-with-inexact -mfp-trap-mode=sui -mtrap-precision=i
701.163Smatt.elif (${LIBC_MACHINE_CPU} == "arm")
711.165Schristos.PATH.c: ${.CURDIR}/arch/arm
721.189Schs.if ${MKSOFTFLOAT} == "no"
731.189SchsCOMMON_SRCS+= fenv.c
741.189Schs.endif
751.189SchsCOMMON_SRCS+= s_nexttowardf.c s_nearbyint.c s_rintl.c
761.187Schristos.for f in fenv.c lrint.S lrintf.S s_fabsf.S s_fma.S s_fmaf.S
771.187SchristosCOPTS.$f +=	-mfpu=vfp
781.187Schristos.endfor
791.185SjakllschCOMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
801.137Smatt.if (${MKSOFTFLOAT} == "no")
811.165Schristos.PATH.S: ${.CURDIR}/arch/arm
821.132SmattARCH_SRCS = e_sqrt.S e_sqrtf.S lrint.S lrintf.S s_fabsf.S s_fma.S s_fmaf.S
831.137Smatt.endif
841.188Sscole.elif (${LIBC_MACHINE_ARCH} == "ia64")
851.188Sscole.PATH: ${.CURDIR}/arch/ia64
861.188SscoleCOMMON_SRCS += fenv.c
871.168Smartin.elif (${LIBC_MACHINE_ARCH} == "hppa")
881.168Smartin.PATH.c: ${.CURDIR}/arch/hppa
891.189SchsCOMMON_SRCS+= fenv.c s_nexttowardf.c s_nearbyint.c s_rintl.c
901.163Smatt.elif (${LIBC_MACHINE_ARCH} == "sparc")
911.110Snakayama.PATH: ${.CURDIR}/arch/sparc
921.110SnakayamaCOMMON_SRCS+= fenv.c
931.132SmattCOMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
941.163Smatt.elif (${LIBC_MACHINE_ARCH} == "sparc64")
951.102Schristos.PATH: ${.CURDIR}/arch/sparc64
961.189SchsCOMMON_SRCS+= fenv.c
971.189SchsCOMMON_SRCS+= s_nexttowardf.c s_nearbyint.c s_rintl.c
981.141Smartin.ifndef _COMPAT_M32_MK_
991.141SmartinCOMMON_SRCS+= s_nexttoward.c
1001.141Smartin.endif
1011.132SmattCOMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
1021.164Smrg.elif ((${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "x86_64"))
1031.95Sjoerg
1041.164Smrg# XXX consider making this LIBC_MACHINE_ARCH?
1051.164Smrg.if (${MACHINE_ARCH} == "x86_64")
1061.95Sjoerg.PATH: ${.CURDIR}/arch/x86_64
1071.95Sjoerg.endif
1081.40Sperry.PATH:	${.CURDIR}/arch/i387
1091.95Sjoerg
1101.133SmartinCOMMON_SRCS+= fenv.c s_nexttoward.c s_nexttowardf.c \
1111.152Smartin	s_nearbyint.c s_rintl.c
1121.132SmattCOMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
1131.130Schristos
1141.40SperryARCH_SRCS = e_acos.S e_asin.S e_atan2.S e_exp.S e_expf.S e_fmod.S e_log.S \
1151.68Srpaulo	    e_logf.S e_log10.S e_log10f.S e_log2.S e_log2f.S e_remainder.S \
1161.68Srpaulo	    e_remainderf.S e_scalb.S e_scalbf.S e_sqrt.S e_sqrtf.S s_atan.S \
1171.68Srpaulo	    s_atanf.S s_ceil.S s_ceilf.S s_copysign.S s_copysignf.S s_cos.S \
1181.116Sjoerg	    s_cosf.S s_finite.S s_finitef.S s_floor.S s_floorf.S \
1191.180Schristos	    s_log1p.S s_log1pf.S s_logb.S s_logbf.S s_logbl.S \
1201.115Sjoerg	    s_rint.S s_rintf.S s_scalbn.S s_scalbnf.S s_significand.S \
1211.127Schristos	    s_significandf.S s_sin.S s_sinf.S s_tan.S s_tanf.S lrint.S 
1221.180Schristos# do not pick up the i387 asm version for the following functions;
1231.180Schristos# it is incorrect
1241.180Schristos.for f in modf ilogb ilogbl ilogbf
1251.184Schristoss_${f}.o s_${f}.pico s_${f}.po s_${f}.go s_${f}.d: s_${f}.c
1261.180Schristos.endfor
1271.95Sjoerg
1281.164Smrg.if (${MACHINE_ARCH} == "i386")
1291.52SchristosSUBDIR=arch/i387
1301.40Sperry.endif
1311.163Smatt.elif (${LIBC_MACHINE_ARCH} == "m68k")
1321.50Sis.if defined(M68060)
1331.50Sis.PATH:	${.CURDIR}/arch/m68060
1341.50Sis.include "${.CURDIR}/arch/m68060/Makefile.list"
1351.50SisCOPTS+=-m68060
1361.51Sis.PATH:	${.CURDIR}/arch/m68k
1371.51SisARCH_SRCS += s_ceil.S s_copysign.S s_finite.S s_floor.S s_rint.S
1381.50Sis.elif defined(M68040)
1391.51Sis.PATH: ${.CURDIR}/arch/m68k
1401.51SisCOPTS+=-m68040
1411.51SisARCH_SRCS = s_copysign.S s_finite.S
1421.50Sis.else
1431.189Schs.if (${MKSOFTFLOAT} == "no")
1441.51Sis.PATH:	${.CURDIR}/arch/mc68881 ${.CURDIR}/arch/m68k
1451.30SjtcARCH_SRCS = e_acos.S e_asin.S e_atanh.S e_cosh.S e_exp.S e_fmod.S e_log.S \
1461.30Sjtc	    e_log10.S e_remainder.S e_scalb.S e_sinh.S e_sqrt.S s_atan.S \
1471.30Sjtc	    s_ceil.S s_copysign.S s_cos.S s_expm1.S s_finite.S s_floor.S \
1481.30Sjtc	    s_log1p.S s_logb.S s_rint.S s_scalbn.S s_sin.S s_tan.S s_tanh.S
1491.174SchristosCOMMON_SRCS += fenv.c
1501.65Sjmmv.endif
1511.177Smartin.endif
1521.50Sis# end of m68k
1531.163Smatt.elif (${LIBC_MACHINE_ARCH} == "vax")
1541.113Smatt.PATH:	${.CURDIR}/arch/vax
1551.71Sis
1561.169She#NOIEEE_ARCH+= s_fmax.c s_fmaxf.c s_fmaxl.c
1571.169She#NOIEEE_ARCH+= n_infnan.S n_argred.S n_sqrt.S
1581.41Sragge#ARCH_SRCS = n_atan2.S n_cabs.S n_cbrt.S n_support.S n_sincos.S n_tan.S
1591.41Sragge# XXX - ripped out due to lack of the insn polyd in the Mariah chip,
1601.41Sragge# and emulation code isn't written yet.
1611.138SmartinARCH_SRCS = n_scalbn.S
1621.122SmattWARNS?=5
1631.166Smatt.elif (${LIBC_MACHINE_CPU} == "riscv")
1641.166Smatt.PATH:	${.CURDIR}/arch/riscv
1651.166Smatt
1661.189Schs.if ${MKSOFTFLOAT} == "no"
1671.166SmattCOMMON_SRCS += fenv.c
1681.166SmattARCH_SRCS = e_sqrt.S e_sqrtf.S
1691.166SmattARCH_SRCS += s_copysign.S s_copysignf.S
1701.166SmattARCH_SRCS += s_fabs.S s_fabsf.S
1711.166SmattARCH_SRCS += s_fma.S s_fmaf.S
1721.166SmattARCH_SRCS += s_fmax.S s_fmaxf.S
1731.166SmattARCH_SRCS += s_fmin.S s_fminf.S
1741.166Smatt.endif
1751.172Schristos.elif (${LIBC_MACHINE_ARCH} == "powerpc")
1761.172Schristos.PATH:	${.CURDIR}/arch/powerpc
1771.189Schs.if ${MKSOFTFLOAT} == "no"
1781.173SchristosCOMMON_SRCS += fenv.c
1791.189Schs.endif
1801.173Schristos.elif (${LIBC_MACHINE_CPU} == "mips")
1811.173Schristos.PATH:	${.CURDIR}/arch/mips
1821.189Schs.if ${MKSOFTFLOAT} == "no"
1831.182SchristosCOMMON_SRCS += fenv.c
1841.189Schs.endif
1851.181Schristos.elif (${LIBC_MACHINE_CPU} == "sh3")
1861.181Schristos.PATH:	${.CURDIR}/arch/sh3
1871.189Schs.if ${MKSOFTFLOAT} == "no"
1881.181SchristosCOMMON_SRCS += fenv.c
1891.11Sjtc.endif
1901.189Schs.endif
1911.59Smatt
1921.122SmattWARNS?=5
1931.1Scgd
1941.11Sjtc.PATH:	${.CURDIR}/man
1951.11Sjtc.PATH:	${.CURDIR}/src
1961.27Sragge.PATH:	${.CURDIR}/noieee_src
1971.1Scgd
1981.163Smatt.if (${LIBC_MACHINE_ARCH} == "alpha")
1991.125SmattCOPTS+= -mfp-rounding-mode=d
2001.121Snjoly.endif
2011.121Snjoly
2021.163Smatt.if (${LIBC_MACHINE_ARCH} != "vax")
2031.37SlukemCPPFLAGS+= -D_MULTI_LIBM -D_POSIX_MODE
2041.76Smrg# XXX noieee libm is gross
2051.76SmrgCOPTS+=	-fno-strict-aliasing
2061.27Sragge.endif
2071.37SlukemCPPFLAGS+=-DLIBM_SCCS
2081.3Smycroft
2091.190Schs.if (${MKSOFTFLOAT} != "no" || ${MACHINE_ARCH} == "m68000")
2101.189Schs.PATH:	${.CURDIR}/softfloat
2111.189Schs.include "${.CURDIR}/../libc/libcincludes.mk"
2121.189SchsCPPFLAGS+=	-I${ARCHDIR}/softfloat
2131.189SchsCOMMON_SRCS += \
2141.189Schs	feclearexcept.c \
2151.189Schs	fedisableexcept.c \
2161.189Schs	feenableexcept.c \
2171.189Schs	fegetenv.c \
2181.189Schs	fegetexcept.c \
2191.189Schs	fegetexceptflag.c \
2201.189Schs	fegetround.c \
2211.189Schs	feholdexcept.c \
2221.189Schs	feraiseexcept.c \
2231.189Schs	fesetenv.c \
2241.189Schs	fesetexceptflag.c \
2251.189Schs	fesetround.c \
2261.189Schs	fetestexcept.c \
2271.189Schs	feupdateenv.c
2281.189Schs.endif
2291.189Schs
2301.11SjtcLIB=	m
2311.124SchristosCOMMON_SRCS+= b_exp.c b_log.c b_tgamma.c \
2321.124Schristos	e_acos.c e_acosf.c e_acosh.c e_acoshf.c e_asin.c e_asinf.c \
2331.22Sjtc	e_atan2.c e_atan2f.c e_atanh.c e_atanhf.c e_cosh.c e_coshf.c e_exp.c \
2341.146Sjoerg	e_expf.c e_fmod.c e_fmodf.c e_fmodl.c e_hypot.c e_hypotf.c \
2351.146Sjoerg	e_j0.c e_j0f.c \
2361.28Sjtc	e_j1.c e_j1f.c e_jn.c e_jnf.c e_lgamma_r.c e_lgammaf_r.c e_log.c \
2371.66Schristos	e_log2.c e_log10.c e_log10f.c e_log2f.c e_logf.c e_pow.c e_powf.c \
2381.66Schristos	e_rem_pio2.c e_rem_pio2f.c e_remainder.c e_remainderf.c e_scalb.c \
2391.152Smartin	e_scalbf.c e_sinh.c e_sinhf.c e_sqrt.c e_sqrtf.c e_sqrtl.c \
2401.22Sjtc	k_cos.c k_cosf.c k_rem_pio2.c k_rem_pio2f.c k_sin.c k_sinf.c \
2411.22Sjtc	k_standard.c k_tan.c k_tanf.c \
2421.147Sjoerg	ldbl_dummy.c \
2431.150Sjoerg	s_asinh.c s_asinhf.c s_atan.c s_atanf.c s_cbrt.c s_cbrtf.c s_cbrtl.c \
2441.144Sjoerg	s_ceil.c s_ceilf.c s_ceill.c s_copysign.c s_copysignf.c s_copysignl.c \
2451.144Sjoerg	s_cos.c s_cosf.c s_erf.c \
2461.98Schristos	s_erff.c s_exp2.c s_exp2f.c s_expm1.c s_expm1f.c s_fabsf.c s_fabsl.c \
2471.92Schristos	s_finite.c s_finitef.c \
2481.144Sjoerg	s_floor.c s_floorf.c s_floorl.c s_frexpf.c \
2491.144Sjoerg	s_ilogb.c s_ilogbf.c s_ilogbl.c \
2501.135Sjoerg	s_isinff.c s_isnanf.c s_lib_version.c s_log1p.c \
2511.191Schristos	s_llrint.c s_llrintf.c s_llrintl.c \
2521.191Schristos	s_llround.c s_llroundf.c s_llroundl.c \
2531.191Schristos	s_lrint.c s_lrintf.c s_lrintl.c \
2541.191Schristos	s_lround.c s_lroundf.c s_lroundl.c \
2551.116Sjoerg	s_log1pf.c s_logb.c s_logbf.c s_logbl.c \
2561.160Sjoerg	s_matherr.c s_modff.c s_modfl.c s_nextafter.c s_nextafterl.c \
2571.144Sjoerg	s_nextafterf.c s_remquo.c s_remquof.c s_rint.c s_rintf.c \
2581.144Sjoerg	s_round.c s_roundf.c s_roundl.c s_scalbn.c \
2591.112Sjoerg	s_scalbnf.c s_scalbnl.c s_signgam.c s_significand.c s_significandf.c s_sin.c \
2601.148Sjoerg	s_sinf.c s_tan.c s_tanf.c s_tanh.c s_tanhf.c s_tgammaf.c \
2611.148Sjoerg	s_trunc.c s_truncf.c s_truncl.c \
2621.22Sjtc	w_acos.c w_acosf.c w_acosh.c w_acoshf.c w_asin.c w_asinf.c w_atan2.c \
2631.78Sdrochner	w_atan2f.c w_atanh.c w_atanhf.c w_cosh.c w_coshf.c \
2641.146Sjoerg	w_drem.c w_dremf.c w_exp.c w_expf.c w_fmod.c w_fmodf.c w_fmodl.c \
2651.146Sjoerg	w_gamma.c w_gamma_r.c w_gammaf.c w_gammaf_r.c w_hypot.c w_hypotf.c \
2661.146Sjoerg	w_j0.c \
2671.22Sjtc	w_j0f.c w_j1.c w_j1f.c w_jn.c w_jnf.c w_lgamma.c w_lgamma_r.c \
2681.67Schristos	w_lgammaf.c w_lgammaf_r.c w_log.c w_log10.c w_log10f.c w_log2.c \
2691.67Schristos	w_log2f.c w_logf.c \
2701.22Sjtc	w_pow.c w_powf.c w_remainder.c w_remainderf.c w_scalb.c w_scalbf.c \
2711.150Sjoerg	w_sinh.c w_sinhf.c w_sqrt.c w_sqrtf.c w_sqrtl.c \
2721.191Schristos	s_frexp.c s_frexpl.c s_modf.c \
2731.132Smatt	s_fmax.c s_fmaxf.c s_fmaxl.c \
2741.132Smatt	s_fmin.c s_fminf.c s_fminl.c s_fdim.c
2751.90Schristos
2761.78Sdrochner.PATH:	${.CURDIR}/compat
2771.78SdrochnerCOMMON_SRCS+= compat_cabs.c compat_cabsf.c
2781.78Sdrochner# XXX our compatibility cabs() is different!
2791.123SjoergCOPTS.compat_cabs.c=	${${ACTIVE_CC} == "gcc":? -fno-builtin-cabs :}
2801.123SjoergCOPTS.compat_cabsf.c=	${${ACTIVE_CC} == "gcc":? -fno-builtin-cabsf :}
2811.78Sdrochner
2821.27Sragge# math routines for non-IEEE architectures.
2831.186SchristosNOIEEE_SRCS = n_asincos.c n_acosh.c n_asinh.c n_atan.c n_atanh.c n_atanhf.c \
2841.186Schristos	n_cosh.c \
2851.155Smartin	n_erf.c n_exp.c n_exp2.c n_exp2f.c n_exp__E.c n_expm1.c n_floor.c \
2861.179Schristos	n_fmod.c n_gamma.c n_ilogb.c \
2871.27Sragge	n_lgamma.c n_j0.c n_j1.c n_jn.c n_log.c n_log10.c n_log1p.c \
2881.155Smartin	n_log2.c n_log__L.c n_pow.c n_sinh.c n_tanh.c \
2891.71Sis	n_sincos.c n_tan.c \
2901.100Sjakllsch	n_round.c n_roundf.c n_lround.c n_lroundf.c \
2911.100Sjakllsch	n_fmax.c n_fmaxf.c n_fmin.c n_fminf.c
2921.46Ssimonb#	n_sqrt.c n_argred.c n_infnan.c n_atan2.c n_cabs.c n_cbrt.c n_support.c
2931.36Smikel
2941.27Sragge
2951.13Sjtc# NetBSD's C library supplies these functions:
2961.23Sjtc#COMMON_SRCS+=	s_fabs.c s_frexp.c s_isinf.c s_isnan.c s_ldexp.c s_modf.c
2971.17Sjtc
2981.163Smatt.if (${LIBC_MACHINE_ARCH} == "vax")
2991.27SraggeSRCS=	${NOIEEE_SRCS} ${NOIEEE_ARCH}
3001.27Sragge.else
3011.103SchristosSRCS=	${COMMON_SRCS}
3021.50Sis.endif
3031.50Sis
3041.50Sis.ifdef ARCH_ADDS
3051.50SisSRCS+= ${ARCH_ADDS}
3061.27Sragge.endif
3071.17Sjtc
3081.46Ssimonb# Substitute common sources with any arch specific sources
3091.33Sragge.for i in ${ARCH_SRCS} ${NOIEEE_ARCH}
3101.62Sdrochner    SRCS:=${SRCS:S/^${i:S/.S/.c/}/$i/}
3111.17Sjtc.endfor
3121.17Sjtc
3131.163Smatt.if (${LIBC_MACHINE_ARCH} == "vax") # XXX until POLYD is written.
3141.43Smatt.PATH:	${.CURDIR}/arch/vax
3151.43SmattSRCS:=${SRCS} n_sqrt.S n_argred.S n_infnan.S n_atan2.S n_cabs.S n_cbrt.S \
3161.138Smartin	n_support.S n_scalbn.S
3171.41Sragge.endif
3181.1Scgd
3191.163Smatt.if (${LIBC_MACHINE_ARCH} == "i386")
3201.97Sdrochner# XXX this gets miscompiled. There should be a better fix.
3211.97SdrochnerCOPTS.s_tanh.c+= -O0
3221.97Sdrochner.endif
3231.97Sdrochner
3241.106SjruohoMAN+=	acos.3 acosh.3 asin.3 asinh.3 atan.3 atan2.3 atanh.3 \
3251.106Sjruoho	ceil.3 copysign.3 cos.3 cosh.3 \
3261.106Sjruoho	erf.3 exp.3 \
3271.171Snros	fabs.3 finite.3 fma.3 fmod.3 frexp.3 hypot.3 \
3281.119Sjruoho	ieee_test.3 ilogb.3 isinff.3 j0.3 ldexp.3 lgamma.3 log.3 lrint.3 \
3291.120Sjruoho	math.3 modf.3 nextafter.3 pow.3 \
3301.106Sjruoho	remainder.3 rint.3 round.3 \
3311.117Sjruoho	scalbn.3 sin.3 sinh.3 sqrt.3 \
3321.106Sjruoho	tan.3 tanh.3 trunc.3 fmax.3 fdim.3
3331.1Scgd
3341.95Sjoerg# fenv.h interface
3351.95SjoergMAN+=	feclearexcept.3 feenableexcept.3 fegetenv.3 fegetround.3 fenv.3
3361.95SjoergMLINKS+=feclearexcept.3 fegetexceptflag.3	\
3371.95Sjoerg	feclearexcept.3 feraiseexcept.3		\
3381.96Swiz	feclearexcept.3 fesetexceptflag.3	\
3391.95Sjoerg	feclearexcept.3 fetestexcept.3
3401.95SjoergMLINKS+=feenableexcept.3 fedisableexcept.3	\
3411.95Sjoerg	feenableexcept.3 fegetexcept.3
3421.95SjoergMLINKS+=fegetenv.3 feholdexcept.3		\
3431.95Sjoerg	fegetenv.3 fesetenv.3			\
3441.95Sjoerg	fegetenv.3 feupdateenv.3
3451.95SjoergMLINKS+=fegetround.3 fesetround.3
3461.95Sjoerg
3471.47SkleinkMLINKS+=acos.3 acosf.3
3481.47SkleinkMLINKS+=acosh.3 acoshf.3
3491.47SkleinkMLINKS+=asin.3 asinf.3
3501.47SkleinkMLINKS+=asinh.3 asinhf.3
3511.47SkleinkMLINKS+=atan.3 atanf.3
3521.47SkleinkMLINKS+=atan2.3 atan2f.3
3531.47SkleinkMLINKS+=atanh.3 atanhf.3
3541.107SjruohoMLINKS+=ceil.3 ceilf.3 \
3551.145Sjoerg	ceil.3 ceill.3 \
3561.107Sjruoho	ceil.3 floor.3 \
3571.145Sjoerg	ceil.3 floorf.3 \
3581.145Sjoerg	ceil.3 floorl.3
3591.106SjruohoMLINKS+=copysign.3 copysignf.3 \
3601.106Sjruoho	copysign.3 copysignl.3
3611.47SkleinkMLINKS+=cos.3 cosf.3
3621.47SkleinkMLINKS+=cosh.3 coshf.3
3631.167SchristosMLINKS+=erf.3 erff.3 \
3641.167Schristos	erf.3 erfl.3 \
3651.167Schristos	erf.3 erfc.3 \
3661.167Schristos	erf.3 erfcf.3 \
3671.167Schristos	erf.3 erfcl.3
3681.98SchristosMLINKS+=exp.3 expf.3 exp.3 expm1.3 exp.3 expm1f.3 			\
3691.120Sjruoho	exp.3 exp2.3 exp.3 exp2f.3
3701.119SjruohoMLINKS+=log.3 logf.3 \
3711.119Sjruoho	log.3 log10.3 \
3721.119Sjruoho	log.3 log10f.3 \
3731.119Sjruoho	log.3 log1p.3 \
3741.119Sjruoho	log.3 log1pf.3 \
3751.119Sjruoho	log.3 log2.3 \
3761.119Sjruoho	log.3 log2f.3
3771.120SjruohoMLINKS+=pow.3 powf.3
3781.175SnrosMLINKS+=fabs.3 fabsf.3 \
3791.175Snros	fabs.3 fabsl.3
3801.118SjruohoMLINKS+=finite.3 finitef.3
3811.146SjoergMLINKS+=fmod.3 fmodf.3 \
3821.146Sjoerg	fmod.3 fmodl.3
3831.78SdrochnerMLINKS+=hypot.3 hypotf.3
3841.116SjoergMLINKS+=ieee_test.3 logb.3 ieee_test.3 logbf.3 ieee_test.3 logbl.3
3851.47SkleinkMLINKS+=ieee_test.3 scalb.3 ieee_test.3 scalbf.3
3861.47SkleinkMLINKS+=ieee_test.3 significand.3 ieee_test.3 significandf.3
3871.115SjoergMLINKS+=ilogb.3 ilogbf.3 ilogb.3 ilogbl.3
3881.49SkleinkMLINKS+=isinff.3 isnanf.3
3891.47SkleinkMLINKS+=j0.3 j0f.3 j0.3 j1.3 j0.3 j1f.3 j0.3 jn.3 j0.3 jnf.3 \
3901.47Skleink	j0.3 y0.3 j0.3 y0f.3 j0.3 y1.3 j0.3 y1f.3 j0.3 yn.3 j0.3 ynf.3
3911.176SnrosMLINKS+=ldexp.3 ldexpf.3 \
3921.176Snros	ldexp.3 ldexpl.3
3931.48SkleinkMLINKS+=lgamma.3 lgammaf.3 lgamma.3 lgamma_r.3 lgamma.3 lgammaf_r.3 \
3941.48Skleink	lgamma.3 gamma.3 lgamma.3 gammaf.3 lgamma.3 gamma_r.3 \
3951.124Schristos	lgamma.3 gammaf_r.3 lgamma.3 tgamma.3 lgamma.3 tgammaf.3
3961.160SjoergMLINKS+=modf.3 modff.3 \
3971.160Sjoerg	modf.3 modfl.3
3981.105SjruohoMLINKS+=nextafter.3 nextafterf.3 \
3991.105Sjruoho	nextafter.3 nextafterl.3 \
4001.170She	nextafter.3 nexttoward.3 \
4011.170She	nextafter.3 nexttowardf.3
4021.69SwizMLINKS+=lrint.3 lrintf.3 lrint.3 llrint.3 lrint.3 llrintf.3
4031.106SjruohoMLINKS+=remainder.3 remainderf.3 \
4041.106Sjruoho	remainder.3 remquo.3 \
4051.106Sjruoho	remainder.3 remquof.3
4061.169SheMLINKS+=rint.3 rintf.3 \
4071.169She	rint.3 rintl.3 \
4081.169She	rint.3 nearbyint.3 \
4091.169She	rint.3 nearbyintf.3 \
4101.169She	rint.3 nearbyintl.3
4111.117SjruohoMLINKS+=scalbn.3 scalbnf.3 \
4121.117Sjruoho	scalbn.3 scalbnl.3
4131.47SkleinkMLINKS+=sin.3 sinf.3
4141.134SuebayasiMLINKS+=sin.3 sinhf.3
4151.150SjoergMLINKS+=sqrt.3 sqrtf.3 sqrt.3 sqrtl.3 \
4161.150Sjoerg	sqrt.3 cbrt.3 sqrt.3 cbrtf.3 sqrt.3 cbrtl.3
4171.47SkleinkMLINKS+=tan.3 tanf.3
4181.47SkleinkMLINKS+=tanh.3 tanhf.3
4191.145SjoergMLINKS+=round.3 roundf.3 \
4201.145Sjoerg	round.3 roundl.3
4211.149SjoergMLINKS+=trunc.3 truncf.3 \
4221.149Sjoerg	trunc.3 truncl.3
4231.90SchristosMLINKS+=fmax.3 fmaxl.3
4241.90SchristosMLINKS+=fmax.3 fmaxf.3
4251.90SchristosMLINKS+=fmax.3 fmin.3
4261.90SchristosMLINKS+=fmax.3 fminl.3
4271.90SchristosMLINKS+=fmax.3 fminf.3
4281.90SchristosMLINKS+=fdim.3 fdiml.3
4291.90SchristosMLINKS+=fdim.3 fdimf.3
4301.171SnrosMLINKS+=fma.3 fmaf.3 \
4311.171Snros	fma.3 fmal.3
4321.1Scgd
4331.89She.if (${MKCOMPLEX} != "no")
4341.82Sdrochner.include "${.CURDIR}/complex/Makefile.inc"
4351.87Sgmcgarry.endif
4361.87Sgmcgarry
4371.142SjoergCOPTS.compat_cabs.c+=	${${ACTIVE_CC} == "clang":? -Wno-incompatible-library-redeclaration :}
4381.142SjoergCOPTS.compat_cabsf.c+=	${${ACTIVE_CC} == "clang":? -Wno-incompatible-library-redeclaration :}
4391.142Sjoerg
4401.154Sjoerg.include "${.CURDIR}/compiler_rt/Makefile.inc"
4411.72Skleink.include "${.CURDIR}/gen/Makefile.inc"
4421.143Sjoerg
4431.1Scgd.include <bsd.lib.mk>
4441.52Schristos.include <bsd.subdir.mk>
445