Makefile (96462) | Makefile (117909) |
---|---|
1# @(#)Makefile 5.1beta 93/09/24 | 1# @(#)Makefile 5.1beta 93/09/24 |
2# $FreeBSD: head/lib/msun/Makefile 96462 2002-05-12 16:01:00Z ru $ | 2# $FreeBSD: head/lib/msun/Makefile 117909 2003-07-23 04:23:36Z peter $ |
3# 4# ==================================================== 5# Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 6# 7# Developed at SunPro, a Sun Microsystems, Inc. business. 8# Permission to use, copy, modify, and distribute this 9# software is freely granted, provided that this notice 10# is preserved. --- 26 unchanged lines hidden (view full) --- 37# libm with POSIX as the 38# default standard 39# CFLAGS = ... Multi-standard supported 40# libm with IEEE as the 41# default standard 42# 43 44.if ${MACHINE_ARCH} == "alpha" | 3# 4# ==================================================== 5# Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 6# 7# Developed at SunPro, a Sun Microsystems, Inc. business. 8# Permission to use, copy, modify, and distribute this 9# software is freely granted, provided that this notice 10# is preserved. --- 26 unchanged lines hidden (view full) --- 37# libm with POSIX as the 38# default standard 39# CFLAGS = ... Multi-standard supported 40# libm with IEEE as the 41# default standard 42# 43 44.if ${MACHINE_ARCH} == "alpha" |
45.PATH: ${.CURDIR)/alpha | |
46ARCH= alpha 47ARCH_SRCS = s_copysign.S s_copysignf.S 48# XXX Comment from NetBSD/Alpha: 49# XXX LINT SIGFPEs in e_exp.c's strtod(). FP underflow/denorm software 50# handling is broken (doesn't exist!) on the Alpha port. 51# Stock gcc 2.7.2.1 doesn't understand these options. 52#CFLAGS += -mtrap-precision=i -mfp-trap-mode=su 53.elif ${MACHINE_ARCH} == "i386" 54ARCH= i387 | 45ARCH= alpha 46ARCH_SRCS = s_copysign.S s_copysignf.S 47# XXX Comment from NetBSD/Alpha: 48# XXX LINT SIGFPEs in e_exp.c's strtod(). FP underflow/denorm software 49# handling is broken (doesn't exist!) on the Alpha port. 50# Stock gcc 2.7.2.1 doesn't understand these options. 51#CFLAGS += -mtrap-precision=i -mfp-trap-mode=su 52.elif ${MACHINE_ARCH} == "i386" 53ARCH= i387 |
55ARCH_PREFIX= ${ARCH}_ | |
56ARCH_SRCS = e_acos.S e_asin.S e_atan2.S e_exp.S e_fmod.S e_log.S e_log10.S \ 57 e_remainder.S e_scalb.S e_sqrt.S s_atan.S s_ceil.S s_copysign.S \ 58 s_cos.S s_finite.S s_floor.S s_ilogb.S s_logb.S \ 59 s_rint.S s_scalbn.S s_significand.S s_sin.S s_tan.S 60.endif 61 62# Broken 63# ARCH_SRCS+= s_log1p.S 64 | 54ARCH_SRCS = e_acos.S e_asin.S e_atan2.S e_exp.S e_fmod.S e_log.S e_log10.S \ 55 e_remainder.S e_scalb.S e_sqrt.S s_atan.S s_ceil.S s_copysign.S \ 56 s_cos.S s_finite.S s_floor.S s_ilogb.S s_logb.S \ 57 s_rint.S s_scalbn.S s_significand.S s_sin.S s_tan.S 58.endif 59 60# Broken 61# ARCH_SRCS+= s_log1p.S 62 |
63.if defined(ARCH) 64.PATH: ${.CURDIR)/${ARCH} 65ARCH_PREFIX= ${ARCH}_ 66.endif 67 |
|
65.PATH: ${.CURDIR}/bsdsrc 66.PATH: ${.CURDIR}/man 67.PATH: ${.CURDIR}/src 68 | 68.PATH: ${.CURDIR}/bsdsrc 69.PATH: ${.CURDIR}/man 70.PATH: ${.CURDIR}/src 71 |
69CFLAGS+= -D_IEEE_LIBM -D_ARCH_INDIRECT=${ARCH_PREFIX} | 72CFLAGS+= -D_IEEE_LIBM |
70 71LIB= m 72COMMON_SRCS= b_exp.c b_log.c b_tgamma.c \ 73 e_acos.c e_acosf.c e_acosh.c e_acoshf.c e_asin.c e_asinf.c \ 74 e_atan2.c e_atan2f.c e_atanh.c e_atanhf.c e_cosh.c e_coshf.c e_exp.c \ 75 e_expf.c e_fmod.c e_fmodf.c e_gamma.c e_gamma_r.c e_gammaf.c \ 76 e_gammaf_r.c e_hypot.c e_hypotf.c e_j0.c e_j0f.c e_j1.c e_j1f.c \ 77 e_jn.c e_jnf.c e_lgamma.c e_lgamma_r.c e_lgammaf.c e_lgammaf_r.c \ --- 20 unchanged lines hidden (view full) --- 98 w_lgammaf.c w_lgammaf_r.c w_log.c w_log10.c w_log10f.c w_logf.c \ 99 w_pow.c w_powf.c w_remainder.c w_remainderf.c w_scalb.c w_scalbf.c \ 100 w_sinh.c w_sinhf.c w_sqrt.c w_sqrtf.c \ 101 w_y0.c w_y0f.c w_y1.c w_y1f.c w_yn.c w_ynf.c 102 103# FreeBSD's C library supplies these functions: 104#COMMON_SRCS+= s_fabs.c s_frexp.c s_isnan.c s_ldexp.c s_modf.c 105 | 73 74LIB= m 75COMMON_SRCS= b_exp.c b_log.c b_tgamma.c \ 76 e_acos.c e_acosf.c e_acosh.c e_acoshf.c e_asin.c e_asinf.c \ 77 e_atan2.c e_atan2f.c e_atanh.c e_atanhf.c e_cosh.c e_coshf.c e_exp.c \ 78 e_expf.c e_fmod.c e_fmodf.c e_gamma.c e_gamma_r.c e_gammaf.c \ 79 e_gammaf_r.c e_hypot.c e_hypotf.c e_j0.c e_j0f.c e_j1.c e_j1f.c \ 80 e_jn.c e_jnf.c e_lgamma.c e_lgamma_r.c e_lgammaf.c e_lgammaf_r.c \ --- 20 unchanged lines hidden (view full) --- 101 w_lgammaf.c w_lgammaf_r.c w_log.c w_log10.c w_log10f.c w_logf.c \ 102 w_pow.c w_powf.c w_remainder.c w_remainderf.c w_scalb.c w_scalbf.c \ 103 w_sinh.c w_sinhf.c w_sqrt.c w_sqrtf.c \ 104 w_y0.c w_y0f.c w_y1.c w_y1f.c w_yn.c w_ynf.c 105 106# FreeBSD's C library supplies these functions: 107#COMMON_SRCS+= s_fabs.c s_frexp.c s_isnan.c s_ldexp.c s_modf.c 108 |
106CLEANFILES+= ${RENAMED_ARCH_SRCS} | |
107RENAMED_ARCH_SRCS= ${ARCH_SRCS:S/^/${ARCH_PREFIX}/g} 108SRCS= ${COMMON_SRCS} ${RENAMED_ARCH_SRCS} | 109RENAMED_ARCH_SRCS= ${ARCH_SRCS:S/^/${ARCH_PREFIX}/g} 110SRCS= ${COMMON_SRCS} ${RENAMED_ARCH_SRCS} |
111CLEANFILES+= ${RENAMED_ARCH_SRCS} |
|
109 110# Generate rules to rename arch-specific sources to avoid conflicts. 111# The path to the arch-specific sources is given explicitly instead of 112# with `.PATH: ${.CURDIR}/${ARCH}' since otherwise bsd.lib.mk would 113# use .S.o rules instead of .c.o rules for the conflicting prefixes 114# (except after `make depend' it uses the correct rules!). 115.for i in ${ARCH_SRCS} 116${ARCH_PREFIX}${i}: ${.CURDIR}/${ARCH}/${i} --- 46 unchanged lines hidden --- | 112 113# Generate rules to rename arch-specific sources to avoid conflicts. 114# The path to the arch-specific sources is given explicitly instead of 115# with `.PATH: ${.CURDIR}/${ARCH}' since otherwise bsd.lib.mk would 116# use .S.o rules instead of .c.o rules for the conflicting prefixes 117# (except after `make depend' it uses the correct rules!). 118.for i in ${ARCH_SRCS} 119${ARCH_PREFIX}${i}: ${.CURDIR}/${ARCH}/${i} --- 46 unchanged lines hidden --- |