1 # Copyright (C) 2002, 2004, 2005 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 # BEGIN boiler-plate MIPS stuff
21 # Don't let CTOR_LIST end up in sdata section.
22 CRTSTUFF_T_CFLAGS = -G 0
24 # We must build libgcc2.a with -G 0, in case the user wants to link
25 # without the $gp register.
26 TARGET_LIBGCC2_CFLAGS = -G 0
28 LIB2FUNCS_STATIC_EXTRA = $(srcdir)/config/mips/mips16.S \
29 $(srcdir)/config/mips/vr4120-div.S
30 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
32 # Assemble startup files.
33 $(T)crti.o: $(srcdir)/config/mips/crti.asm $(GCC_PASSES)
34 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
35 -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/mips/crti.asm
37 $(T)crtn.o: $(srcdir)/config/mips/crtn.asm $(GCC_PASSES)
38 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
39 -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/mips/crtn.asm
46 # Endianness: EB or EL
53 # mabi=eabi/mgp32/mlong64
55 # Architecture: march=vr4120 with -mfix-vr4120
56 # march=vr4130 with -mfix-vr4130 (default)
61 # Total: 2 * 6 * 5 = 60 multilibs.
64 # Extra vr4300 multilibs
65 # ----------------------
67 # Endianness: EB or EL
71 # Architecture: vr4300.
73 # Total: 2 * 1 * 2 = 2 multilibs.
76 # Extra MIPS16 multilibs
77 # ----------------------
79 # Endianness: EB or EL
85 # Architecture: march=vr4120 with -mfix-vr4120
86 # march=vr4130 with -mfix-vr4130 (default)
88 # Total: 2 * 3 * 2 = 12 multilibs.
91 mabi=32/mabi=o64/mabi=eabi \
95 mfix-vr4120/mfix-vr4130/march=vr4300/march=vr5000/march=vr5400/march=vr5500
103 vr4120 vr4130 vr4300 vr5000 vr5400 vr5500
105 MULTILIB_MATCHES = EL=mel EB=meb mfix-vr4120=march?vr4120 \
106 mfix-vr4130=march?vr4130
108 # Assume a 41xx-series is the default: we'd need a *mips16 entry if
109 # the default processor didn't support mips16. Also assume the
110 # default ABI is EABI64 -mlong32.
111 MULTILIB_EXCEPTIONS = \
117 *mips16/march=vr4300 \
118 $(MIPS16_EXCEPTIONS) \
121 MIPS16_EXCEPTIONS = \
125 VR4300_EXCEPTIONS = \
126 *mabi=32*march=vr4300 \
127 *mgp32*march=vr4300 \
128 *mlong64*march=vr4300 \