t-rtems-i386 revision 96263
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 8crti.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 crti.o crti.s 11crtn.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 crtn.o crtn.s 14 15# We want fine grained libraries, so use the new code to build the 16# floating point emulation libraries. 17FPBIT = fp-bit.c 18DPBIT = dp-bit.c 19 20LIB2FUNCS_EXTRA = xp-bit.c 21 22dp-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 28fp-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 35xp-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 39MULTILIB_OPTIONS = mcpu=i486/mcpu=pentium/mcpu=pentiumpro/mcpu=k6/mcpu=athlon \ 40msoft-float mno-fp-ret-in-387 41MULTILIB_DIRNAMES= m486 mpentium mpentiumpro k6 athlon soft-float nofp 42MULTILIB_MATCHES = msoft-float=mno-m80387 43MULTILIB_EXCEPTIONS = \ 44mno-fp-ret-in-387 \ 45mcpu=i486/*mno-fp-ret-in-387* \ 46mcpu=pentium/*msoft-float* mcpu=pentium/*mno-fp-ret-in-387* \ 47mcpu=pentiumpro/*msoft-float* mcpu=pentiumpro/*mno-fp-ret-in-387* \ 48mcpu=k6/*msoft-float* mcpu=k6/*mno-fp-ret-in-387* \ 49mcpu=athlon/*msoft-float* mcpu=athlon/*mno-fp-ret-in-387* 50 51EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o 52 53LIBGCC = stmp-multilib 54INSTALL_LIBGCC = install-multilib 55