t-isa3264 revision 1.1 1 1.1 mrg # Copyright (C) 2001, 2002, 2003, 2004, 2007,
2 1.1 mrg # 2008 Free Software Foundation, Inc.
3 1.1 mrg #
4 1.1 mrg # This file is part of GCC.
5 1.1 mrg #
6 1.1 mrg # GCC is free software; you can redistribute it and/or modify
7 1.1 mrg # it under the terms of the GNU General Public License as published by
8 1.1 mrg # the Free Software Foundation; either version 3, or (at your option)
9 1.1 mrg # any later version.
10 1.1 mrg #
11 1.1 mrg # GCC is distributed in the hope that it will be useful,
12 1.1 mrg # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 1.1 mrg # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 1.1 mrg # GNU General Public License for more details.
15 1.1 mrg #
16 1.1 mrg # You should have received a copy of the GNU General Public License
17 1.1 mrg # along with GCC; see the file COPYING3. If not see
18 1.1 mrg # <http://www.gnu.org/licenses/>.
19 1.1 mrg
20 1.1 mrg # Don't let CTOR_LIST end up in sdata section.
21 1.1 mrg CRTSTUFF_T_CFLAGS = -G 0
22 1.1 mrg
23 1.1 mrg # Assemble startup files.
24 1.1 mrg $(T)crti.o: $(srcdir)/config/mips/crti.asm $(GCC_PASSES)
25 1.1 mrg $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
26 1.1 mrg -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/mips/crti.asm
27 1.1 mrg
28 1.1 mrg $(T)crtn.o: $(srcdir)/config/mips/crtn.asm $(GCC_PASSES)
29 1.1 mrg $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
30 1.1 mrg -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/mips/crtn.asm
31 1.1 mrg
32 1.1 mrg # We must build libgcc2.a with -G 0, in case the user wants to link
33 1.1 mrg # without the $gp register.
34 1.1 mrg TARGET_LIBGCC2_CFLAGS = -G 0
35 1.1 mrg
36 1.1 mrg # Build the libraries for both hard and soft floating point
37 1.1 mrg
38 1.1 mrg ifneq ($(filter MIPS_ABI_DEFAULT=ABI_EABI,$(tm_defines)),)
39 1.1 mrg MULTILIB_OPTIONS = msoft-float EL/EB mips32/mips32r2/mips64/mips64r2
40 1.1 mrg MULTILIB_DIRNAMES = soft-float el eb mips32 mips32r2 mips64 mips64r2
41 1.1 mrg else
42 1.1 mrg MULTILIB_OPTIONS = msoft-float/mfp64 EL/EB mips32/mips32r2/mips64/mips64r2
43 1.1 mrg MULTILIB_DIRNAMES = soft-float fp64 el eb mips32 mips32r2 mips64 mips64r2
44 1.1 mrg ifneq ($(filter MIPS_ISA_DEFAULT=33,$(tm_defines)),)
45 1.1 mrg MULTILIB_EXCLUSIONS = mips32/mfp64 mips64/mfp64 mips64r2/mfp64
46 1.1 mrg else
47 1.1 mrg MULTILIB_EXCLUSIONS = !mips32r2/mfp64
48 1.1 mrg endif
49 1.1 mrg endif
50 1.1 mrg MULTILIB_MATCHES = EL=mel EB=meb
51 1.1 mrg EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
52 1.1 mrg
53 1.1 mrg LIBGCC = stmp-multilib
54 1.1 mrg INSTALL_LIBGCC = install-multilib
55