OSDN Git Service

2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / gcc / config / i386 / t-rtems-i386
1 #
2 # This file was based on t-sol2 - x68 Solaris implementation. Actually,
3 # the source code to create crti.o anf crtn.o are exactly the same 
4 # as the ones for Solaris. Later, we might want to have a RTEMS's 
5 # version of these files.
6 #
7
8 $(T)crti.o: $(srcdir)/config/i386/sol2-ci.asm $(GCC_PASSES)
9         sed -e '/^!/d' <$(srcdir)/config/i386/sol2-ci.asm >crti.s
10         $(GCC_FOR_TARGET) -c -o $(T)crti.o crti.s
11 $(T)crtn.o: $(srcdir)/config/i386/sol2-cn.asm $(GCC_PASSES)
12         sed -e '/^!/d' <$(srcdir)/config/i386/sol2-cn.asm >crtn.s
13         $(GCC_FOR_TARGET) -c -o $(T)crtn.o crtn.s
14
15 # We want fine grained libraries, so use the new code to build the
16 # floating point emulation libraries.
17 FPBIT = fp-bit.c
18 DPBIT = dp-bit.c
19
20 LIB2FUNCS_EXTRA = xp-bit.c
21
22 dp-bit.c: $(srcdir)/config/fp-bit.c
23         echo '#ifdef __LITTLE_ENDIAN__' > dp-bit.c
24         echo '#define FLOAT_BIT_ORDER_MISMATCH' >>dp-bit.c
25         echo '#endif'           >> dp-bit.c
26         cat $(srcdir)/config/fp-bit.c >> dp-bit.c
27
28 fp-bit.c: $(srcdir)/config/fp-bit.c
29         echo '#define FLOAT' > fp-bit.c
30         echo '#ifdef __LITTLE_ENDIAN__' >> 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 xp-bit.c: $(srcdir)/config/fp-bit.c
36         echo '#define EXTENDED_FLOAT_STUBS' > xp-bit.c
37         cat $(srcdir)/config/fp-bit.c >> xp-bit.c
38
39 MULTILIB_OPTIONS = mtune=i486/mtune=pentium/mtune=pentiumpro \
40 msoft-float
41 MULTILIB_DIRNAMES= m486 mpentium mpentiumpro soft-float
42 MULTILIB_MATCHES = msoft-float=mno-m80387
43 MULTILIB_MATCHES += mtune?pentium=mtune?k6 mtune?pentiumpro=mtune?mathlon
44 MULTILIB_EXCEPTIONS = \
45 mtune=pentium/*msoft-float* \
46 mtune=pentiumpro/*msoft-float*
47
48 EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o
49
50 LIBGCC = stmp-multilib
51 INSTALL_LIBGCC = install-multilib