1 # Copyright (C) 1997, 1998, 1999, 2001, 2002, 2005,
2 # 2007 Free Software Foundation, Inc.
4 # This file is part of GCC.
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)
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.
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/>.
20 LIB1ASMSRC = sparc/lb1spc.asm
21 LIB1ASMFUNCS = _mulsi3 _divsi3 _modsi3
23 # We want fine grained libraries, so use the new code to build the
24 # floating point emulation libraries.
28 dp-bit.c: $(srcdir)/config/fp-bit.c
29 cat $(srcdir)/config/fp-bit.c > dp-bit.c
31 fp-bit.c: $(srcdir)/config/fp-bit.c
32 echo '#define FLOAT' > fp-bit.c
33 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
35 # MULTILIB_OPTIONS should have msparclite too, but we'd have to make
37 MULTILIB_OPTIONS = msoft-float mcpu=v8
38 MULTILIB_DIRNAMES = soft v8
39 MULTILIB_MATCHES = msoft-float=mno-fpu mcpu?v8=mv8
41 LIBGCC = stmp-multilib
42 INSTALL_LIBGCC = install-multilib
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