1 # Copyright (C) 2005 Free Software Foundation, Inc.
3 # This file is part of GCC.
5 # GCC is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published
7 # by the Free Software Foundation; either version 2, or (at your
8 # option) any later version.
10 # GCC is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
13 # License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with GCC; see the file COPYING. If not, write to the Free
17 # Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
20 # Name of assembly file containing libgcc1 functions.
21 # This entry must be present, but it can be empty if the target does
22 # not need any assembler functions to support its code generation.
25 # Alternatively if assembler functions *are* needed then define the
27 # CROSS_LIBGCC1 = libgcc1-asm.a
28 # LIB1ASMSRC = mt/lib1funcs.asm
29 # LIB1ASMFUNCS = _udivsi3 etc...
31 LIB2FUNCS_EXTRA = $(srcdir)/config/mt/lib2extra-funcs.c
33 # If any special flags are necessary when building libgcc2 put them here.
35 # TARGET_LIBGCC2_CFLAGS =
37 EXTRA_PARTS = crtbegin.o crtend.o crti.o crtn.o
39 # We want fine grained libraries, so use the new code to build the
40 # floating point emulation libraries.
44 fp-bit.c: $(srcdir)/config/fp-bit.c
45 echo '#define FLOAT' > fp-bit.c
46 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
48 dp-bit.c: $(srcdir)/config/fp-bit.c
49 cat $(srcdir)/config/fp-bit.c > dp-bit.c
51 # Assemble startup files.
52 $(T)crti.o: $(srcdir)/config/mt/crti.asm $(GCC_PASSES)
53 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
54 -c -o $(T)crti.o -x assembler $(srcdir)/config/mt/crti.asm
56 $(T)crtn.o: $(srcdir)/config/mt/crtn.asm $(GCC_PASSES)
57 $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
58 -c -o $(T)crtn.o -x assembler $(srcdir)/config/mt/crtn.asm
60 # Enable the following if multilibs are needed.
61 # See gcc/genmultilib, gcc/gcc.texi and gcc/tm.texi for a
62 # description of the options and their values.
64 MULTILIB_OPTIONS = march=ms1-64-001/march=ms1-16-002/march=ms1-16-003/march=ms2
65 MULTILIB_DIRNAMES = ms1-64-001 ms1-16-002 ms1-16-003 ms2
67 # MULTILIB_EXCEPTIONS =
68 # MULTILIB_EXTRA_OPTS =
69 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
71 # LIBGCC = stmp-multilib
72 # INSTALL_LIBGCC = install-multilib