t-rtems-i386 revision 96263
190075Sobrien#
290075Sobrien# This file was based on t-sol2 - x68 Solaris implementation. Actually,
390075Sobrien# the source code to create crti.o anf crtn.o are exactly the same 
490075Sobrien# as the ones for Solaris. Later, we might want to have a RTEMS's 
590075Sobrien# version of these files.
690075Sobrien#
790075Sobrien
890075Sobriencrti.o: $(srcdir)/config/i386/sol2-ci.asm $(GCC_PASSES)
990075Sobrien	sed -e '/^!/d' <$(srcdir)/config/i386/sol2-ci.asm >crti.s
1090075Sobrien	$(GCC_FOR_TARGET) -c -o crti.o crti.s
1190075Sobriencrtn.o: $(srcdir)/config/i386/sol2-cn.asm $(GCC_PASSES)
1290075Sobrien	sed -e '/^!/d' <$(srcdir)/config/i386/sol2-cn.asm >crtn.s
1390075Sobrien	$(GCC_FOR_TARGET) -c -o crtn.o crtn.s
1490075Sobrien
1596263Sobrien# We want fine grained libraries, so use the new code to build the
1696263Sobrien# floating point emulation libraries.
1796263SobrienFPBIT = fp-bit.c
1896263SobrienDPBIT = dp-bit.c
1996263Sobrien
2096263SobrienLIB2FUNCS_EXTRA = xp-bit.c
2196263Sobrien
2296263Sobriendp-bit.c: $(srcdir)/config/fp-bit.c
2396263Sobrien	echo '#ifdef __LITTLE_ENDIAN__' > dp-bit.c
2496263Sobrien	echo '#define FLOAT_BIT_ORDER_MISMATCH' >>dp-bit.c
2596263Sobrien	echo '#endif'           >> dp-bit.c
2696263Sobrien	cat $(srcdir)/config/fp-bit.c >> dp-bit.c
2796263Sobrien
2896263Sobrienfp-bit.c: $(srcdir)/config/fp-bit.c
2996263Sobrien	echo '#define FLOAT' > fp-bit.c
3096263Sobrien	echo '#ifdef __LITTLE_ENDIAN__' >> fp-bit.c
3196263Sobrien	echo '#define FLOAT_BIT_ORDER_MISMATCH' >>fp-bit.c
3296263Sobrien	echo '#endif'           >> fp-bit.c
3396263Sobrien	cat $(srcdir)/config/fp-bit.c >> fp-bit.c
3496263Sobrien
3596263Sobrienxp-bit.c: $(srcdir)/config/fp-bit.c
3696263Sobrien	echo '#define EXTENDED_FLOAT_STUBS' > xp-bit.c
3796263Sobrien	cat $(srcdir)/config/fp-bit.c >> xp-bit.c
3896263Sobrien
3996263SobrienMULTILIB_OPTIONS = mcpu=i486/mcpu=pentium/mcpu=pentiumpro/mcpu=k6/mcpu=athlon \
4096263Sobrienmsoft-float mno-fp-ret-in-387
4196263SobrienMULTILIB_DIRNAMES= m486 mpentium mpentiumpro k6 athlon soft-float nofp
4296263SobrienMULTILIB_MATCHES = msoft-float=mno-m80387
4396263SobrienMULTILIB_EXCEPTIONS = \
4496263Sobrienmno-fp-ret-in-387 \
4596263Sobrienmcpu=i486/*mno-fp-ret-in-387* \
4696263Sobrienmcpu=pentium/*msoft-float* mcpu=pentium/*mno-fp-ret-in-387* \
4796263Sobrienmcpu=pentiumpro/*msoft-float* mcpu=pentiumpro/*mno-fp-ret-in-387* \
4896263Sobrienmcpu=k6/*msoft-float* mcpu=k6/*mno-fp-ret-in-387* \
4996263Sobrienmcpu=athlon/*msoft-float* mcpu=athlon/*mno-fp-ret-in-387*
5096263Sobrien
5196263SobrienEXTRA_MULTILIB_PARTS = crtbegin.o crtend.o
5296263Sobrien
5396263SobrienLIBGCC = stmp-multilib
5496263SobrienINSTALL_LIBGCC = install-multilib
55