OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / config / bfin / t-bfin
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
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)
8 # any later version.
9 #
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.
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 ## Target part of the Makefile
20
21 LIB1ASMSRC = bfin/lib1funcs.asm
22 LIB1ASMFUNCS = _divsi3 _udivsi3 _umodsi3 _modsi3
23
24 EXTRA_PARTS = crtbegin.o crtend.o crti.o crtn.o
25
26 FPBIT = fp-bit.c
27 DPBIT = dp-bit.c
28
29 dp-bit.c: $(srcdir)/config/fp-bit.c
30         cat $(srcdir)/config/fp-bit.c > dp-bit.c
31
32 fp-bit.c: $(srcdir)/config/fp-bit.c
33         echo '#define FLOAT' > fp-bit.c
34         cat $(srcdir)/config/fp-bit.c >> fp-bit.c
35
36 # Assemble startup files.
37 $(T)crti.o: $(srcdir)/config/bfin/crti.s $(GCC_PASSES)
38         $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
39         -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/bfin/crti.s
40
41 $(T)crtn.o: $(srcdir)/config/bfin/crtn.s $(GCC_PASSES)
42         $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \
43         -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/bfin/crtn.s