1 # Copyright (C) 1999, 2001, 2002, 2005, 2007 Free Software Foundation, Inc.
3 # This file is part of GCC.
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)
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.
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/>.
20 # This file was based on t-sol2 - x68 Solaris implementation. Actually,
21 # the source code to create crti.o anf crtn.o are exactly the same
22 # as the ones for Solaris. Later, we might want to have a RTEMS's
23 # version of these files.
26 $(T)crti.o: $(srcdir)/config/i386/sol2-ci.asm $(GCC_PASSES)
27 sed -e '/^!/d' <$(srcdir)/config/i386/sol2-ci.asm >crti.s
28 $(GCC_FOR_TARGET) -c -o $(T)crti.o crti.s
29 $(T)crtn.o: $(srcdir)/config/i386/sol2-cn.asm $(GCC_PASSES)
30 sed -e '/^!/d' <$(srcdir)/config/i386/sol2-cn.asm >crtn.s
31 $(GCC_FOR_TARGET) -c -o $(T)crtn.o crtn.s
33 # We want fine grained libraries, so use the new code to build the
34 # floating point emulation libraries.
38 LIB2FUNCS_EXTRA = xp-bit.c
40 dp-bit.c: $(srcdir)/config/fp-bit.c
41 echo '#ifdef __LITTLE_ENDIAN__' > dp-bit.c
42 echo '#define FLOAT_BIT_ORDER_MISMATCH' >>dp-bit.c
43 echo '#endif' >> dp-bit.c
44 cat $(srcdir)/config/fp-bit.c >> dp-bit.c
46 fp-bit.c: $(srcdir)/config/fp-bit.c
47 echo '#define FLOAT' > fp-bit.c
48 echo '#ifdef __LITTLE_ENDIAN__' >> fp-bit.c
49 echo '#define FLOAT_BIT_ORDER_MISMATCH' >>fp-bit.c
50 echo '#endif' >> fp-bit.c
51 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
53 xp-bit.c: $(srcdir)/config/fp-bit.c
54 echo '#define EXTENDED_FLOAT_STUBS' > xp-bit.c
55 cat $(srcdir)/config/fp-bit.c >> xp-bit.c
57 MULTILIB_OPTIONS = mtune=i486/mtune=pentium/mtune=pentiumpro \
59 MULTILIB_DIRNAMES= m486 mpentium mpentiumpro soft-float
60 MULTILIB_MATCHES = msoft-float=mno-m80387
61 MULTILIB_MATCHES += mtune?pentium=mtune?k6 mtune?pentiumpro=mtune?mathlon
62 MULTILIB_EXCEPTIONS = \
63 mtune=pentium/*msoft-float* \
64 mtune=pentiumpro/*msoft-float*
66 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o
68 LIBGCC = stmp-multilib
69 INSTALL_LIBGCC = install-multilib