1 # Copyright (C) 2002, 2003, 2010, 2011 Free Software Foundation, Inc.
3 # This file is part of GCC.
5 # GCC is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3, or (at your option)
10 # GCC 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
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with GCC; see the file COPYING3. If not see
17 # <http://www.gnu.org/licenses/>.
19 # Suppress building libgcc1.a, since the MIPS compiler port is complete
20 # and does not need anything from libgcc1.a.
24 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
25 # Don't let CTOR_LIST end up in sdata section.
26 CRTSTUFF_T_CFLAGS = -G 0
28 # Assemble startup files.
29 $(T)crti.o: $(srcdir)/config/mips/crti.asm $(GCC_PASSES)
30 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
31 -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/mips/crti.asm
33 $(T)crtn.o: $(srcdir)/config/mips/crtn.asm $(GCC_PASSES)
34 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
35 -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/mips/crtn.asm
37 # We must build libgcc2.a with -G 0, in case the user wants to link
38 # without the $gp register.
39 TARGET_LIBGCC2_CFLAGS = -G 0
41 # Build the libraries for both hard and soft floating point
43 MULTILIB_OPTIONS = EL/EB msoft-float mips2
44 MULTILIB_DIRNAMES = el eb soft-float mips2
46 LIBGCC = stmp-multilib
47 INSTALL_LIBGCC = install-multilib