1# Copyright (C) 2001, 2002, 2003, 2004, 2007, 2# 2008 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 20# Don't let CTOR_LIST end up in sdata section. 21CRTSTUFF_T_CFLAGS = -G 0 22 23# Assemble startup files. 24$(T)crti.o: $(srcdir)/config/mips/crti.asm $(GCC_PASSES) 25 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \ 26 -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/mips/crti.asm 27 28$(T)crtn.o: $(srcdir)/config/mips/crtn.asm $(GCC_PASSES) 29 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \ 30 -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/mips/crtn.asm 31 32# We must build libgcc2.a with -G 0, in case the user wants to link 33# without the $gp register. 34TARGET_LIBGCC2_CFLAGS = -G 0 35 36# Build the libraries for both hard and soft floating point 37 38ifneq ($(filter MIPS_ABI_DEFAULT=ABI_EABI,$(tm_defines)),) 39MULTILIB_OPTIONS = msoft-float EL/EB mips32/mips32r2/mips64/mips64r2 40MULTILIB_DIRNAMES = soft-float el eb mips32 mips32r2 mips64 mips64r2 41else 42MULTILIB_OPTIONS = msoft-float/mfp64 EL/EB mips32/mips32r2/mips64/mips64r2 43MULTILIB_DIRNAMES = soft-float fp64 el eb mips32 mips32r2 mips64 mips64r2 44ifneq ($(filter MIPS_ISA_DEFAULT=33,$(tm_defines)),) 45MULTILIB_EXCLUSIONS = mips32/mfp64 mips64/mfp64 mips64r2/mfp64 46else 47MULTILIB_EXCLUSIONS = !mips32r2/mfp64 48endif 49endif 50MULTILIB_MATCHES = EL=mel EB=meb 51EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o 52 53LIBGCC = stmp-multilib 54INSTALL_LIBGCC = install-multilib 55