Debian Codegraph @

sysdeps/alpha/Makefile

raw symbols SCIP
1 # Copyright (C) 1993-2026 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
3
4 # The GNU C Library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
8
9 # The GNU C Library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
13
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with the GNU C Library. If not, see
16 # <https://www.gnu.org/licenses/>.
17
18 ifeq ($(subdir),debug)
19 # Consider making this GCC's default...
20 CFLAGS-backtrace.c = -fasynchronous-unwind-tables
21 endif
22
23 ifeq ($(subdir),gmon)
24 sysdep_routines += _mcount
25 endif
26
27 ifeq ($(subdir),gnulib)
28 sysdep_routines += divl divlu divq divqu reml remlu remq remqu
29 endif
30
31 ifeq ($(subdir),string)
32 sysdep_routines += stxcpy stxncpy
33 endif
34
35 ifeq ($(subdir),stdlib)
36 sysdep_routines += udiv_qrnnd
37 endif
38
39 ifeq ($(subdir),elf)
40 # The ld.so startup code cannot use literals until it self-relocates.
41 CFLAGS-rtld.c = -mbuild-constants
42 endif
43
44 ifeq ($(subdir),math)
45 # The following routines rely on inexact being raised for correct results.
46 CFLAGS-s_fma.c = -mieee-with-inexact
47 CFLAGS-s_fmaf.c = -mieee-with-inexact
48 CFLAGS-s_llrintf.c += -mieee-with-inexact
49 CFLAGS-s_llrint.c += -mieee-with-inexact
50 CFLAGS-s_lrintf.c += -mieee-with-inexact
51 CFLAGS-s_lrint.c += -mieee-with-inexact
52 # This test tries to check for inexact being raised by arithmetic.
53 CFLAGS-test-misc.c += -mieee-with-inexact
54 # Avoid "conflicting types for built-in function" warnings
55 CFLAGS-s_isnan.c += -fno-builtin-isnanf
56 endif
57
58 # Build everything with full IEEE math support, and with dynamic rounding;
59 # there are a number of math routines that are defined to work with the
60 # "current" rounding mode, and it's easiest to set this with all of them.
61 sysdep-CFLAGS += -mieee -mfp-rounding-mode=d
62
63 # Software floating-point emulation.
64
65 ifeq ($(subdir),soft-fp)
66 sysdep_routines += ots_add ots_sub ots_mul ots_div ots_cmp ots_cmpe \
67 ots_cvtxq ots_cvtqx ots_cvtqux ots_cvttx ots_cvtxt ots_nintxq \
68 fraiseexcpt
69 endif
70
71 ifeq ($(subdir),math)
72 CPPFLAGS += -I../soft-fp
73 endif