t-rtems-i386 revision 146895
139287Ssos#
239643Syokota# This file was based on t-sol2 - x68 Solaris implementation. Actually,
339287Ssos# the source code to create crti.o anf crtn.o are exactly the same 
439287Ssos# as the ones for Solaris. Later, we might want to have a RTEMS's 
539287Ssos# version of these files.
639287Ssos#
739287Ssos
839287Ssoscrti.o: $(srcdir)/config/i386/sol2-ci.asm $(GCC_PASSES)
939643Syokota	sed -e '/^!/d' <$(srcdir)/config/i386/sol2-ci.asm >crti.s
1039643Syokota	$(GCC_FOR_TARGET) -c -o crti.o crti.s
1139287Ssoscrtn.o: $(srcdir)/config/i386/sol2-cn.asm $(GCC_PASSES)
1239287Ssos	sed -e '/^!/d' <$(srcdir)/config/i386/sol2-cn.asm >crtn.s
1339287Ssos	$(GCC_FOR_TARGET) -c -o crtn.o crtn.s
1439287Ssos
1539643Syokota# We want fine grained libraries, so use the new code to build the
1639643Syokota# floating point emulation libraries.
1739643SyokotaFPBIT = fp-bit.c
1839643SyokotaDPBIT = dp-bit.c
1939643Syokota
2039643SyokotaLIB2FUNCS_EXTRA = xp-bit.c
2139643Syokota
2239643Syokotadp-bit.c: $(srcdir)/config/fp-bit.c
2339643Syokota	echo '#ifdef __LITTLE_ENDIAN__' > dp-bit.c
2439643Syokota	echo '#define FLOAT_BIT_ORDER_MISMATCH' >>dp-bit.c
2539287Ssos	echo '#endif'           >> dp-bit.c
2639287Ssos	cat $(srcdir)/config/fp-bit.c >> dp-bit.c
27115703Sobrien
28115703Sobrienfp-bit.c: $(srcdir)/config/fp-bit.c
29115703Sobrien	echo '#define FLOAT' > fp-bit.c
3042504Syokota	echo '#ifdef __LITTLE_ENDIAN__' >> fp-bit.c
3166710Sjhb	echo '#define FLOAT_BIT_ORDER_MISMATCH' >>fp-bit.c
3239287Ssos	echo '#endif'           >> fp-bit.c
3356836Speter	cat $(srcdir)/config/fp-bit.c >> fp-bit.c
3439287Ssos
3539287Ssosxp-bit.c: $(srcdir)/config/fp-bit.c
36198251Sjkim	echo '#define EXTENDED_FLOAT_STUBS' > xp-bit.c
3739287Ssos	cat $(srcdir)/config/fp-bit.c >> xp-bit.c
3839287Ssos
3942179SyokotaMULTILIB_OPTIONS = mtune=i486/mtune=pentium/mtune=pentiumpro/mtune=k6/mtune=athlon \
4039287Ssosmsoft-float mno-fp-ret-in-387
4148104SyokotaMULTILIB_DIRNAMES= m486 mpentium mpentiumpro k6 athlon soft-float nofp
4248104SyokotaMULTILIB_MATCHES = msoft-float=mno-m80387
4339287SsosMULTILIB_EXCEPTIONS = \
4448104Syokotamno-fp-ret-in-387 \
4548104Syokotamtune=i486/*mno-fp-ret-in-387* \
46130312Sjhbmtune=pentium/*msoft-float* mtune=pentium/*mno-fp-ret-in-387* \
4739287Ssosmtune=pentiumpro/*msoft-float* mtune=pentiumpro/*mno-fp-ret-in-387* \
4839287Ssosmtune=k6/*msoft-float* mtune=k6/*mno-fp-ret-in-387* \
49197383Sdelphijmtune=athlon/*msoft-float* mtune=athlon/*mno-fp-ret-in-387*
50197025Sdelphij
5139287SsosEXTRA_MULTILIB_PARTS = crtbegin.o crtend.o
5242504Syokota
5342504SyokotaLIBGCC = stmp-multilib
5439287SsosINSTALL_LIBGCC = install-multilib
55198251Sjkim