t-arc revision 1.1 1 1.1 mrg # Copyright (C) 1997, 1998, 1999, 2001, 2002, 2003,
2 1.1 mrg # 2004 Free Software Foundation, Inc.
3 1.1 mrg #
4 1.1 mrg # This file is part of GCC.
5 1.1 mrg #
6 1.1 mrg # GCC is free software; you can redistribute it and/or modify
7 1.1 mrg # it under the terms of the GNU General Public License as published by
8 1.1 mrg # the Free Software Foundation; either version 3, or (at your option)
9 1.1 mrg # any later version.
10 1.1 mrg #
11 1.1 mrg # GCC is distributed in the hope that it will be useful,
12 1.1 mrg # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 1.1 mrg # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 1.1 mrg # GNU General Public License for more details.
15 1.1 mrg #
16 1.1 mrg # You should have received a copy of the GNU General Public License
17 1.1 mrg # along with GCC; see the file COPYING3. If not see
18 1.1 mrg # <http://www.gnu.org/licenses/>.
19 1.1 mrg
20 1.1 mrg LIB1ASMSRC = arc/lib1funcs.asm
21 1.1 mrg LIB1ASMFUNCS = _mulsi3 _umulsidi3 _udivsi3 _divsi3 _umodsi3 _modsi3 _divmod_tools
22 1.1 mrg
23 1.1 mrg # We need libgcc routines to be mangled according to which cpu they
24 1.1 mrg # were compiled for.
25 1.1 mrg # ??? -mmangle-cpu passed by default for now.
26 1.1 mrg #LIBGCC2_CFLAGS = -g1 -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) -mmangle-cpu
27 1.1 mrg
28 1.1 mrg # We want fine grained libraries, so use the new code to build the
29 1.1 mrg # floating point emulation libraries.
30 1.1 mrg FPBIT = fp-bit.c
31 1.1 mrg DPBIT = dp-bit.c
32 1.1 mrg
33 1.1 mrg dp-bit.c: $(srcdir)/config/fp-bit.c
34 1.1 mrg echo '#ifndef __big_endian__' > dp-bit.c
35 1.1 mrg echo '#define FLOAT_BIT_ORDER_MISMATCH' >> dp-bit.c
36 1.1 mrg echo '#endif' >> dp-bit.c
37 1.1 mrg cat $(srcdir)/config/fp-bit.c >> dp-bit.c
38 1.1 mrg
39 1.1 mrg fp-bit.c: $(srcdir)/config/fp-bit.c
40 1.1 mrg echo '#define FLOAT' > fp-bit.c
41 1.1 mrg echo '#ifndef __big_endian__' >> fp-bit.c
42 1.1 mrg echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
43 1.1 mrg echo '#endif' >> fp-bit.c
44 1.1 mrg cat $(srcdir)/config/fp-bit.c >> fp-bit.c
45 1.1 mrg
46 1.1 mrg # .init/.fini section routines
47 1.1 mrg
48 1.1 mrg $(T)crtinit.o: $(srcdir)/config/arc/initfini.c $(GCC_PASSES) $(CONFIG_H)
49 1.1 mrg $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
50 1.1 mrg $(MULTILIB_CFLAGS) -DCRT_INIT -finhibit-size-directive -fno-inline-functions \
51 1.1 mrg -g0 -c $(srcdir)/config/arc/initfini.c -o $(T)crtinit.o
52 1.1 mrg
53 1.1 mrg $(T)crtfini.o: $(srcdir)/config/arc/initfini.c $(GCC_PASSES) $(CONFIG_H)
54 1.1 mrg $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS) \
55 1.1 mrg -DCRT_FINI $(MULTILIB_CFLAGS) -finhibit-size-directive -fno-inline-functions \
56 1.1 mrg -g0 -c $(srcdir)/config/arc/initfini.c -o $(T)crtfini.o
57 1.1 mrg
58 1.1 mrg MULTILIB_OPTIONS = EB
59 1.1 mrg MULTILIB_DIRNAMES = be
60 1.1 mrg EXTRA_MULTILIB_PARTS = crtinit.o crtfini.o
61