]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/alpha/Makefile
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / sysdeps / alpha / Makefile
CommitLineData
04277e02 1# Copyright (C) 1993-2019 Free Software Foundation, Inc.
b5ce64ef 2# This file is part of the GNU C Library.
72d531d6
BK
3# Contributed by Brendan Kehoe (brendan@zen.org).
4
5# The GNU C Library is free software; you can redistribute it and/or
3214b89b
AJ
6# modify it under the terms of the GNU Lesser General Public
7# License as published by the Free Software Foundation; either
8# version 2.1 of the License, or (at your option) any later version.
72d531d6
BK
9
10# The GNU C Library is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3214b89b 13# Lesser General Public License for more details.
72d531d6 14
3214b89b 15# You should have received a copy of the GNU Lesser General Public
ab84e3ff 16# License along with the GNU C Library. If not, see
5a82c748 17# <https://www.gnu.org/licenses/>.
72d531d6 18
c1d675f8
UD
19ifeq ($(subdir),db2)
20CPPFLAGS += -DHAVE_SPINLOCKS=1 -DHAVE_ASSEM_ALPHA=1
21endif
22
d77c0899
RH
23ifeq ($(subdir),debug)
24# Consider making this GCC's default...
25CFLAGS-backtrace.c = -fasynchronous-unwind-tables
26endif
27
b434211b 28ifeq ($(subdir),gmon)
0137a397 29sysdep_routines += _mcount
b434211b
RM
30endif
31
72d531d6 32ifeq ($(subdir),gnulib)
08e3c578 33sysdep_routines += divl divlu divq divqu reml remlu remq remqu
cf182b58
UD
34endif
35
36ifeq ($(subdir),string)
37sysdep_routines += stxcpy stxncpy
38endif
72d531d6 39
d7cf1621 40ifeq ($(subdir),elf)
cf182b58 41# The ld.so startup code cannot use literals until it self-relocates.
b136e08e 42CFLAGS-rtld.c = -mbuild-constants
d7cf1621
RM
43endif
44
8cac0ece
RH
45ifeq ($(subdir),math)
46# The fma routines rely on inexact being raised for correct results.
47CFLAGS-s_fma.c = -mieee-with-inexact
48CFLAGS-s_fmaf.c = -mieee-with-inexact
f93d7902
RH
49# This test tries to check for inexact being raised by arithmetic.
50CFLAGS-test-misc.c += -mieee-with-inexact
1aec5f74
RH
51# Avoid "conflicting types for built-in function" warnings
52CFLAGS-s_isnan.c += -fno-builtin-isnanf
8cac0ece
RH
53endif
54
9ea0d865
RH
55# Build everything with full IEEE math support, and with dynamic rounding;
56# there are a number of math routines that are defined to work with the
57# "current" rounding mode, and it's easiest to set this with all of them.
58sysdep-CFLAGS += -mieee -mfp-rounding-mode=d
6fbd2f3d
UD
59
60# libc.so requires about 16k for the small data area, which is well
61# below the 64k maximum.
62pic-ccflag = -fpic
2834fb46
JM
63
64# Software floating-point emulation.
65
66ifeq ($(subdir),soft-fp)
67sysdep_routines += ots_add ots_sub ots_mul ots_div ots_cmp ots_cmpe \
68 ots_cvtxq ots_cvtqx ots_cvtqux ots_cvttx ots_cvtxt ots_nintxq \
69 fraiseexcpt
70endif
71
72ifeq ($(subdir),math)
73CPPFLAGS += -I../soft-fp
74endif