1# Copyright (C) 1997, 1998, 1999, 2001, 2002, 2005, 2# 2007 Free Software Foundation, Inc. 3# 4# This file is part of GCC. 5# 6# GCC is free software; you can redistribute it and/or modify 7# it under the terms of the GNU General Public License as published by 8# the Free Software Foundation; either version 3, or (at your option) 9# any later version. 10# 11# GCC 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 14# GNU General Public License for more details. 15# 16# You should have received a copy of the GNU General Public License 17# along with GCC; see the file COPYING3. If not see 18# <http://www.gnu.org/licenses/>. 19 20LIB1ASMSRC = sparc/lb1spc.asm 21LIB1ASMFUNCS = _mulsi3 _divsi3 _modsi3 22 23# We want fine grained libraries, so use the new code to build the 24# floating point emulation libraries. 25FPBIT = fp-bit.c 26DPBIT = dp-bit.c 27 28dp-bit.c: $(srcdir)/config/fp-bit.c 29 cat $(srcdir)/config/fp-bit.c > dp-bit.c 30 31fp-bit.c: $(srcdir)/config/fp-bit.c 32 echo '#define FLOAT' > fp-bit.c 33 cat $(srcdir)/config/fp-bit.c >> fp-bit.c 34 35# MULTILIB_OPTIONS should have msparclite too, but we'd have to make 36# gas build... 37MULTILIB_OPTIONS = msoft-float mcpu=v8 38MULTILIB_DIRNAMES = soft v8 39MULTILIB_MATCHES = msoft-float=mno-fpu mcpu?v8=mv8 40 41LIBGCC = stmp-multilib 42INSTALL_LIBGCC = install-multilib 43 44# Assemble startup files. 45$(T)crti.o: $(srcdir)/config/sparc/sol2-ci.asm $(GCC_PASSES) 46 $(GCC_FOR_TARGET) -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-ci.asm 47$(T)crtn.o: $(srcdir)/config/sparc/sol2-cn.asm $(GCC_PASSES) 48 $(GCC_FOR_TARGET) -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/sparc/sol2-cn.asm 49