]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/mt/t-mt
c949e84e500d422a2df26ddeb0512c53c4461744
[thirdparty/gcc.git] / gcc / config / mt / t-mt
1 # Copyright (C) 2005, 2007 Free Software Foundation, Inc.
2 #
3 # This file is part of GCC.
4 #
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 3, or (at your
8 # option) any later version.
9 #
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.
14 #
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/>.
18
19
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.
23 CROSS_LIBGCC1 =
24 #
25 # Alternatively if assembler functions *are* needed then define the
26 # entries below:
27 # CROSS_LIBGCC1 = libgcc1-asm.a
28 # LIB1ASMSRC = mt/lib1funcs.asm
29 # LIB1ASMFUNCS = _udivsi3 etc...
30
31 LIB2FUNCS_EXTRA = $(srcdir)/config/mt/lib2extra-funcs.c
32
33 # If any special flags are necessary when building libgcc2 put them here.
34 #
35 # TARGET_LIBGCC2_CFLAGS =
36
37 EXTRA_PARTS = crtbegin.o crtend.o crti.o crtn.o
38
39 # We want fine grained libraries, so use the new code to build the
40 # floating point emulation libraries.
41 FPBIT = fp-bit.c
42 DPBIT = dp-bit.c
43
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
47
48 dp-bit.c: $(srcdir)/config/fp-bit.c
49 cat $(srcdir)/config/fp-bit.c > dp-bit.c
50
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
55
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
59
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.
63 #
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
66 # MULTILIB_MATCHES =
67 # MULTILIB_EXCEPTIONS =
68 # MULTILIB_EXTRA_OPTS =
69 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
70 #
71 # LIBGCC = stmp-multilib
72 # INSTALL_LIBGCC = install-multilib
73