Makefile (22993) | Makefile (24964) |
---|---|
1# @(#)Makefile 5.1beta 93/09/24 | 1# @(#)Makefile 5.1beta 93/09/24 |
2# $Id$ | 2# $Id: Makefile,v 1.18 1997/02/22 15:08:42 peter Exp $ |
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 44ARCH= i387 | 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 44ARCH= i387 |
45ARCH_PREFIX= ${ARCH}_ |
|
45ARCH_SRCS = e_acos.S e_asin.S e_atan2.S e_exp.S e_fmod.S e_log.S e_log10.S \ 46 e_remainder.S e_scalb.S e_sqrt.S s_atan.S s_ceil.S s_copysign.S \ 47 s_cos.S s_finite.S s_floor.S s_ilogb.S s_logb.S \ 48 s_rint.S s_scalbn.S s_significand.S s_sin.S s_tan.S 49 50# Broken 51# ARCH_SRCS+= s_log1p.S 52 53.PATH: ${.CURDIR}/man 54.PATH: ${.CURDIR}/src 55 | 46ARCH_SRCS = e_acos.S e_asin.S e_atan2.S e_exp.S e_fmod.S e_log.S e_log10.S \ 47 e_remainder.S e_scalb.S e_sqrt.S s_atan.S s_ceil.S s_copysign.S \ 48 s_cos.S s_finite.S s_floor.S s_ilogb.S s_logb.S \ 49 s_rint.S s_scalbn.S s_significand.S s_sin.S s_tan.S 50 51# Broken 52# ARCH_SRCS+= s_log1p.S 53 54.PATH: ${.CURDIR}/man 55.PATH: ${.CURDIR}/src 56 |
56CFLAGS+= -D_IEEE_LIBM | 57CFLAGS+= -D_IEEE_LIBM -D_ARCH_INDIRECT=${ARCH_PREFIX} |
57 58LIB= m 59COMMON_SRCS = e_acos.c e_acosf.c e_acosh.c e_acoshf.c e_asin.c e_asinf.c \ 60 e_atan2.c e_atan2f.c e_atanh.c e_atanhf.c e_cosh.c e_coshf.c e_exp.c \ 61 e_expf.c e_fmod.c e_fmodf.c e_gamma.c e_gamma_r.c e_gammaf.c \ 62 e_gammaf_r.c e_hypot.c e_hypotf.c e_j0.c e_j0f.c e_j1.c e_j1f.c \ 63 e_jn.c e_jnf.c e_lgamma.c e_lgamma_r.c e_lgammaf.c e_lgammaf_r.c \ 64 e_log.c e_log10.c e_log10f.c e_logf.c e_pow.c e_powf.c e_rem_pio2.c \ --- 20 unchanged lines hidden (view full) --- 85 w_pow.c w_powf.c w_remainder.c w_remainderf.c w_scalb.c w_scalbf.c \ 86 w_sinh.c w_sinhf.c w_sqrt.c w_sqrtf.c \ 87 w_y0.c w_y0f.c w_y1.c w_y1f.c w_yn.c w_ynf.c 88 89# FreeBSD's C library supplies these functions: 90#COMMON_SRCS+= s_fabs.c s_frexp.c s_isnan.c s_ldexp.c s_modf.c 91 92CLEANFILES+= ${RENAMED_ARCH_SRCS} | 58 59LIB= m 60COMMON_SRCS = e_acos.c e_acosf.c e_acosh.c e_acoshf.c e_asin.c e_asinf.c \ 61 e_atan2.c e_atan2f.c e_atanh.c e_atanhf.c e_cosh.c e_coshf.c e_exp.c \ 62 e_expf.c e_fmod.c e_fmodf.c e_gamma.c e_gamma_r.c e_gammaf.c \ 63 e_gammaf_r.c e_hypot.c e_hypotf.c e_j0.c e_j0f.c e_j1.c e_j1f.c \ 64 e_jn.c e_jnf.c e_lgamma.c e_lgamma_r.c e_lgammaf.c e_lgammaf_r.c \ 65 e_log.c e_log10.c e_log10f.c e_logf.c e_pow.c e_powf.c e_rem_pio2.c \ --- 20 unchanged lines hidden (view full) --- 86 w_pow.c w_powf.c w_remainder.c w_remainderf.c w_scalb.c w_scalbf.c \ 87 w_sinh.c w_sinhf.c w_sqrt.c w_sqrtf.c \ 88 w_y0.c w_y0f.c w_y1.c w_y1f.c w_yn.c w_ynf.c 89 90# FreeBSD's C library supplies these functions: 91#COMMON_SRCS+= s_fabs.c s_frexp.c s_isnan.c s_ldexp.c s_modf.c 92 93CLEANFILES+= ${RENAMED_ARCH_SRCS} |
93RENAMED_ARCH_SRCS= ${ARCH_SRCS:S/^/${ARCH}_/g} | 94RENAMED_ARCH_SRCS= ${ARCH_SRCS:S/^/${ARCH_PREFIX}/g} |
94SRCS= ${COMMON_SRCS} ${RENAMED_ARCH_SRCS} 95 96# Generate rules to rename arch-specific sources to avoid conflicts. 97# The path to the arch-specific sources is given explicitly instead of 98# with `.PATH: ${.CURDIR}/${ARCH}' since otherwise bsd.lib.mk would 99# use .S.o rules instead of .c.o rules for the conflicting prefixes 100# (except after `make depend' it uses the correct rules!). 101.for i in ${ARCH_SRCS} | 95SRCS= ${COMMON_SRCS} ${RENAMED_ARCH_SRCS} 96 97# Generate rules to rename arch-specific sources to avoid conflicts. 98# The path to the arch-specific sources is given explicitly instead of 99# with `.PATH: ${.CURDIR}/${ARCH}' since otherwise bsd.lib.mk would 100# use .S.o rules instead of .c.o rules for the conflicting prefixes 101# (except after `make depend' it uses the correct rules!). 102.for i in ${ARCH_SRCS} |
102${ARCH}_${i}: ${.CURDIR}/i387/${i} | 103${ARCH_PREFIX}${i}: ${.CURDIR}/${ARCH}/${i} |
103 cp ${.ALLSRC} ${.TARGET} 104.endfor 105 106MANSRC= ${.CURDIR}/man 107 108MAN3+= acos.3 acosh.3 asin.3 asinh.3 atan.3 atan2.3 atanh.3 ceil.3 \ 109 cos.3 cosh.3 erf.3 exp.3 fabs.3 floor.3 fmod.3 hypot.3 ieee.3 \ 110 ieee_test.3 j0.3 lgamma.3 math.3 rint.3 sin.3 sinh.3 sqrt.3 \ --- 43 unchanged lines hidden --- | 104 cp ${.ALLSRC} ${.TARGET} 105.endfor 106 107MANSRC= ${.CURDIR}/man 108 109MAN3+= acos.3 acosh.3 asin.3 asinh.3 atan.3 atan2.3 atanh.3 ceil.3 \ 110 cos.3 cosh.3 erf.3 exp.3 fabs.3 floor.3 fmod.3 hypot.3 ieee.3 \ 111 ieee_test.3 j0.3 lgamma.3 math.3 rint.3 sin.3 sinh.3 sqrt.3 \ --- 43 unchanged lines hidden --- |