]>
Commit | Line | Data |
---|---|---|
f7eac6eb RM |
1 | # Makefile for the math library. |
2 | ||
3 | # Copyright (C) 1996 Free Software Foundation, Inc. | |
28f540f4 RM |
4 | # This file is part of the GNU C Library. |
5 | ||
6 | # The GNU C Library is free software; you can redistribute it and/or | |
7 | # modify it under the terms of the GNU Library General Public License as | |
8 | # published by the Free Software Foundation; either version 2 of the | |
9 | # License, or (at your option) any later version. | |
10 | ||
11 | # The GNU C Library is distributed in the hope that it will be useful, | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 | # Library General Public License for more details. | |
15 | ||
16 | # You should have received a copy of the GNU Library General Public | |
17 | # License along with the GNU C Library; see the file COPYING.LIB. If | |
18 | # not, write to the Free Software Foundation, Inc., 675 Mass Ave, | |
19 | # Cambridge, MA 02139, USA. | |
20 | ||
f7eac6eb RM |
21 | subdir := math |
22 | ||
23 | # Installed header files. | |
24 | headers := math.h mathcalls.h __math.h huge_val.h nan.h | |
25 | ||
26 | # Internal header files. | |
27 | distribute := math_private.h machine/asm.h machine/endian.h | |
28f540f4 | 28 | |
28f540f4 | 29 | |
f7eac6eb | 30 | # Build the -lm library. |
28f540f4 | 31 | |
f7eac6eb RM |
32 | extra-libs := libm |
33 | libm.so-version := .0 | |
34 | libm-routines := e_acos e_acosf e_acosh e_acoshf e_asin e_asinf \ | |
35 | e_atan2 e_atan2f e_atanh e_atanhf e_cosh e_coshf \ | |
36 | e_exp e_expf e_fmod e_fmodf e_hypot e_hypotf e_j0 \ | |
37 | e_j0f e_j1 e_j1f e_jn e_jnf e_lgamma_r e_lgammaf_r \ | |
38 | e_log e_log10 e_log10f e_logf e_pow e_powf \ | |
39 | e_rem_pio2 e_rem_pio2f e_remainder e_remainderf \ | |
40 | e_scalb e_scalbf e_sinh e_sinhf e_sqrt e_sqrtf k_cos \ | |
41 | k_cosf k_rem_pio2 k_rem_pio2f k_sin k_sinf \ | |
42 | k_standard k_tan k_tanf s_asinh s_asinhf s_atan \ | |
43 | s_atanf s_cbrt s_cbrtf s_ceil s_ceilf s_copysign \ | |
44 | s_copysignf s_cos s_cosf s_erf s_erff s_expm1 \ | |
45 | s_expm1f s_fabs s_fabsf s_finite s_finitef s_floor \ | |
46 | s_floorf s_frexp s_frexpf s_ilogb s_ilogbf \ | |
47 | s_ldexp s_ldexpf s_lib_version s_log1p s_log1pf \ | |
48 | s_logb s_logbf s_matherr s_modf s_modff s_nextafter \ | |
49 | s_nextafterf s_rint s_rintf s_scalbn s_scalbnf \ | |
50 | s_signgam s_significand s_significandf s_sin s_sinf \ | |
51 | s_tan s_tanf s_tanh s_tanhf w_acos w_acosf w_acosh \ | |
52 | w_acoshf w_asin w_asinf w_atan2 w_atan2f w_atanh \ | |
53 | w_atanhf w_cabs w_cabsf w_cosh w_coshf w_drem \ | |
54 | w_dremf w_exp w_expf w_fmod w_fmodf w_gamma \ | |
55 | w_gamma_r w_gammaf w_gammaf_r w_hypot w_hypotf w_j0 \ | |
56 | w_j0f w_j1 w_j1f w_jn w_jnf w_lgamma w_lgamma_r \ | |
57 | w_lgammaf w_lgammaf_r w_log w_log10 w_log10f w_logf \ | |
58 | w_pow w_powf w_remainder w_remainderf w_scalb \ | |
59 | w_scalbf w_sinh w_sinhf w_sqrt w_sqrtf | |
60 | ||
61 | # These functions are in libc instead of libm because __printf_fp | |
62 | # calls them, so any program using printf will need them linked in, | |
63 | # and we don't want to have to link every program with -lm. | |
64 | routines := s_isinf s_isinff s_isnan s_isnanf isinfl isnanl | |
28f540f4 RM |
65 | |
66 | ||
67 | include ../Rules | |
68 | ||
f7eac6eb RM |
69 | |
70 | # This file defines the default _LIB_VERSION variable that controls | |
71 | # the error return conventions for the math functions. | |
72 | CPPFLAGS-s_lib_version.c := -D_POSIX_MODE | |
73 | ||
74 | # The fdlibm code generates a lot of these warnings but is otherwise clean. | |
75 | override CFLAGS += -Wno-uninitialized -Wno-write-strings |