1#  Makefile for SPARC 64-bit.
2#  Copyright (C) 1997-2021 Free Software Foundation, Inc.
3#  This file is part of the GNU C Library.
4#
5
6# The GNU C Library is free software; you can redistribute it and/or
7# modify it under the terms of the GNU Lesser General Public
8# License as published by the Free Software Foundation; either
9# version 2.1 of the 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# Lesser General Public License for more details.
15
16# You should have received a copy of the GNU Lesser General Public
17# License along with the GNU C Library; if not, see
18# <https://www.gnu.org/licenses/>.
19
20sysdep-CFLAGS += -Wa,-Av9a -mvis
21
22ifeq ($(subdir),string)
23sysdep_routines += align-cpy
24endif
25
26ASFLAGS-.o += -Wa,-Av9d
27ASFLAGS-.os += -Wa,-Av9d
28ASFLAGS-.op += -Wa,-Av9d
29ASFLAGS-.oS += -Wa,-Av9d
30
31ifeq ($(subdir),soft-fp)
32sparc64-quad-routines := qp_add qp_cmp qp_cmpe qp_div qp_dtoq qp_feq qp_fge \
33	qp_fgt qp_fle qp_flt qp_fne qp_itoq qp_mul qp_neg qp_qtod qp_qtoi   \
34	qp_qtos qp_qtoui qp_qtoux qp_qtox qp_sqrt qp_stoq qp_sub qp_uitoq   \
35	qp_uxtoq qp_xtoq qp_util
36sysdep_routines += $(sparc64-quad-routines)
37endif
38
39ifeq ($(subdir),math)
40CPPFLAGS += -I../soft-fp/
41endif
42