1 LIB1ASMSRC = sh/lib1funcs.asm
2 LIB1ASMFUNCS = _ashiftrt _ashiftrt_n _ashiftlt _lshiftrt _movstr \
3 _movstr_i4 _mulsi3 _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr \
6 LIB2FUNCS_EXTRA=$(srcdir)/config/sh/embed_bb.c
8 # We want fine grained libraries, so use the new code to build the
9 # floating point emulation libraries.
13 dp-bit.c: $(srcdir)/config/fp-bit.c
14 echo '#ifdef __LITTLE_ENDIAN__' > dp-bit.c
15 echo '#define FLOAT_BIT_ORDER_MISMATCH' >>dp-bit.c
16 echo '#endif' >> dp-bit.c
17 cat $(srcdir)/config/fp-bit.c >> dp-bit.c
19 fp-bit.c: $(srcdir)/config/fp-bit.c
20 echo '#define FLOAT' > fp-bit.c
21 echo '#ifdef __LITTLE_ENDIAN__' >> fp-bit.c
22 echo '#define FLOAT_BIT_ORDER_MISMATCH' >>fp-bit.c
23 echo '#endif' >> fp-bit.c
24 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
26 MULTILIB_OPTIONS= ml m2/m3e/m4-single-only/m4-single/m4
28 MULTILIB_MATCHES = m2=m3 m2=m4-nofpu
30 LIBGCC = stmp-multilib
31 INSTALL_LIBGCC = install-multilib
33 $(T)crt1.o: $(srcdir)/config/sh/crt1.asm $(GCC_PASSES)
34 $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crt1.o -x assembler-with-cpp $(srcdir)/config/sh/crt1.asm
35 $(T)crti.o: $(srcdir)/config/sh/crti.asm $(GCC_PASSES)
36 $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/sh/crti.asm
37 $(T)crtn.o: $(srcdir)/config/sh/crtn.asm $(GCC_PASSES)
38 $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/sh/crtn.asm
40 # These are not suitable for COFF.
41 # EXTRA_MULTILIB_PARTS= crt1.o crti.o crtn.o crtbegin.o crtend.o