Makefile revision 1.11
11.11Sjtc# @(#)Makefile 5.1beta 93/09/24 21.11Sjtc# $Id: Makefile,v 1.11 1994/02/11 18:35:35 jtc Exp $ 31.11Sjtc# 41.11Sjtc# ==================================================== 51.11Sjtc# Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. 61.11Sjtc# 71.11Sjtc# Developed at SunPro, a Sun Microsystems, Inc. business. 81.11Sjtc# Permission to use, copy, modify, and distribute this 91.11Sjtc# software is freely granted, provided that this notice 101.11Sjtc# is preserved. 111.11Sjtc# ==================================================== 121.11Sjtc# 131.11Sjtc# 141.11Sjtc 151.11Sjtc# 161.11Sjtc# There are two options in making libm at fdlibm compile time: 171.11Sjtc# _IEEE_LIBM --- IEEE libm; smaller, and somewhat faster 181.11Sjtc# _MULTI_LIBM --- Support multi-standard at runtime by 191.11Sjtc# imposing wrapper functions defined in 201.11Sjtc# fdlibm.h: 211.11Sjtc# _IEEE_MODE -- IEEE 221.11Sjtc# _XOPEN_MODE -- X/OPEN 231.11Sjtc# _POSIX_MODE -- POSIX/ANSI 241.11Sjtc# _SVID3_MODE -- SVID 251.11Sjtc# 261.11Sjtc# Here is how to set up CFLAGS to create the desired libm at 271.11Sjtc# compile time: 281.1Scgd# 291.11Sjtc# CFLAGS = -D_IEEE_LIBM ... IEEE libm (recommended) 301.11Sjtc# CFLAGS = -D_SVID3_MODE ... Multi-standard supported 311.11Sjtc# libm with SVID as the 321.11Sjtc# default standard 331.11Sjtc# CFLAGS = -D_XOPEN_MODE ... Multi-standard supported 341.11Sjtc# libm with XOPEN as the 351.11Sjtc# default standard 361.11Sjtc# CFLAGS = -D_POSIX_MODE ... Multi-standard supported 371.11Sjtc# libm with POSIX as the 381.11Sjtc# default standard 391.11Sjtc# CFLAGS = ... Multi-standard supported 401.11Sjtc# libm with IEEE as the 411.11Sjtc# default standard 421.11Sjtc# 431.11Sjtc 441.11Sjtc.if (${MACHINE_ARCH} == "i386") 451.11Sjtc# Uncomment the following lines if you have a i387 (or i486 or Pentium) 461.11Sjtc#.PATH: ${.CURDIR}/arch/i387 471.11Sjtc.elif (${MACHINE_ARCH} == "m68k") 481.11Sjtc#.PATH: ${.CURDIR}/arch/mc68881 491.11Sjtc.endif 501.1Scgd 511.11Sjtc.PATH: ${.CURDIR}/man 521.11Sjtc.PATH: ${.CURDIR}/src 531.1Scgd 541.3Smycroft 551.11SjtcCFLAGS+= -D_MULTI_LIBM -D_POSIX_MODE 561.11SjtcNOPIC= 571.3Smycroft 581.11SjtcLIB= m 591.11SjtcOBJS = k_standard.o k_rem_pio2.o k_cos.o k_sin.o k_tan.o \ 601.11Sjtc e_acos.o e_acosh.o e_asin.o e_atan2.o e_atanh.o e_cosh.o e_exp.o \ 611.11Sjtc e_fmod.o e_gamma.o e_gamma_r.o e_hypot.o e_j0.o e_j1.o e_jn.o \ 621.11Sjtc e_lgamma.o e_lgamma_r.o e_log.o e_log10.o e_pow.o e_rem_pio2.o \ 631.11Sjtc e_remainder.o e_scalb.o e_sinh.o e_sqrt.o \ 641.11Sjtc w_acos.o w_acosh.o w_asin.o w_atan2.o \ 651.11Sjtc w_atanh.o w_cosh.o w_exp.o w_fmod.o \ 661.11Sjtc w_gamma.o w_gamma_r.o w_hypot.o w_j0.o \ 671.11Sjtc w_j1.o w_jn.o w_lgamma.o w_lgamma_r.o \ 681.11Sjtc w_log.o w_log10.o w_pow.o w_remainder.o \ 691.11Sjtc w_scalb.o w_sinh.o w_sqrt.o \ 701.11Sjtc s_asinh.o s_atan.o s_cbrt.o s_ceil.o s_copysign.o \ 711.11Sjtc s_cos.o s_erf.o s_expm1.o s_fabs.o s_finite.o s_floor.o \ 721.11Sjtc s_frexp.o s_ilogb.o s_isnan.o s_ldexp.o s_lib_version.o \ 731.11Sjtc s_log1p.o s_logb.o s_matherr.o s_modf.o s_nextafter.o \ 741.11Sjtc s_rint.o s_scalbn.o s_signgam.o s_significand.o s_sin.o \ 751.11Sjtc s_tan.o s_tanh.o 761.3Smycroft 771.1Scgd 781.1ScgdMAN3+= acos.0 acosh.0 asin.0 asinh.0 atan.0 atan2.0 atanh.0 ceil.0 \ 791.1Scgd cos.0 cosh.0 erf.0 exp.0 fabs.0 floor.0 fmod.0 hypot.0 ieee.0 \ 801.1Scgd infnan.0 j0.0 lgamma.0 math.0 rint.0 sin.0 sinh.0 sqrt.0 \ 811.1Scgd tan.0 tanh.0 821.1Scgd 831.1ScgdMLINKS+=erf.3 erfc.3 841.1ScgdMLINKS+=exp.3 expm1.3 exp.3 log.3 exp.3 log10.3 exp.3 log1p.3 exp.3 pow.3 851.1ScgdMLINKS+=hypot.3 cabs.3 861.1ScgdMLINKS+=ieee.3 copysign.3 ieee.3 drem.3 ieee.3 finite.3 ieee.3 logb.3 \ 871.1Scgd ieee.3 scalb.3 881.1ScgdMLINKS+=j0.3 j1.3 j0.3 jn.3 j0.3 y0.3 j0.3 y1.3 j0.3 yn.3 891.1ScgdMLINKS+=lgamma.3 gamma.3 901.7SjtcMLINKS+=sqrt.3 cbrt.3 911.1Scgd 921.1Scgd 931.1Scgd.include <bsd.lib.mk> 94