| 1 | # Makefile for SPARC 64-bit. |
| 2 | # Copyright (C) 1997-2026 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 | |
| 20 | sysdep-CFLAGS += -Wa,-Av9a -mvis |
| 21 | |
| 22 | ifeq ($(subdir),string) |
| 23 | sysdep_routines += align-cpy |
| 24 | endif |
| 25 | |
| 26 | ASFLAGS-.o += -Wa,-Av9d |
| 27 | ASFLAGS-.os += -Wa,-Av9d |
| 28 | ASFLAGS-.op += -Wa,-Av9d |
| 29 | ASFLAGS-.oS += -Wa,-Av9d |
| 30 | |
| 31 | ifeq ($(subdir),soft-fp) |
| 32 | sparc64-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 |
| 36 | sysdep_routines += $(sparc64-quad-routines) |
| 37 | endif |
| 38 | |
| 39 | ifeq ($(subdir),math) |
| 40 | CPPFLAGS += -I../soft-fp/ |
| 41 | endif |