t-rtems-i386 revision 169690
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 = mtune=i486/mtune=pentium/mtune=pentiumpro \ 40msoft-float 41MULTILIB_DIRNAMES= m486 mpentium mpentiumpro soft-float 42MULTILIB_MATCHES = msoft-float=mno-m80387 43MULTILIB_MATCHES += mtune?pentium=mtune?k6 mtune?pentiumpro=mtune?mathlon 44MULTILIB_EXCEPTIONS = \ 45mtune=pentium/*msoft-float* \ 46mtune=pentiumpro/*msoft-float* 47 48EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o 49 50LIBGCC = stmp-multilib 51INSTALL_LIBGCC = install-multilib 52