OSDN Git Service

626b1d29a1250187a62f90fca0b3853857ac2b13
[pf3gnuchains/gcc-fork.git] / gcc / config / arm / t-pe
1 # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006, 2008, 2009,
2 # 2010
3 # Free Software Foundation, Inc.
4 #
5 # This file is part of GCC.
6 #
7 # GCC is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3, or (at your option)
10 # any later version.
11 #
12 # GCC is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with GCC; see the file COPYING3.  If not see
19 # <http://www.gnu.org/licenses/>.
20
21 LIB1ASMFUNCS += _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _call_via_rX _interwork_call_via_rX _clzsi2 _clzdi2
22
23 # We want fine grained libraries, so use the new code to build the
24 # floating point emulation libraries.
25 FPBIT = fp-bit.c
26 DPBIT = dp-bit.c
27
28 fp-bit.c: $(srcdir)/config/fp-bit.c
29         echo '#define FLOAT' > fp-bit.c
30         echo '#ifndef __ARMEB__' >> fp-bit.c
31         echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
32         echo '#endif' >> fp-bit.c
33         cat $(srcdir)/config/fp-bit.c >> fp-bit.c
34
35 dp-bit.c: $(srcdir)/config/fp-bit.c
36         echo '#ifndef __ARMEB__' > dp-bit.c
37         echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c
38         echo '#define FLOAT_WORD_ORDER_MISMATCH' >> dp-bit.c
39         echo '#endif' >> dp-bit.c
40         cat $(srcdir)/config/fp-bit.c >> dp-bit.c
41
42 pe.o: $(srcdir)/config/arm/pe.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
43   $(RTL_H) output.h flags.h $(TREE_H) expr.h $(TM_P_H)
44         $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
45                 $(srcdir)/config/arm/pe.c
46
47 MULTILIB_OPTIONS = mhard-float mthumb
48 MULTILIB_DIRNAMES = fpu thumb
49
50 LIBGCC = stmp-multilib
51 INSTALL_LIBGCC = install-multilib
52 TARGET_LIBGCC2_CFLAGS =