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=embed-bb.c
8 embed-bb.c: $(srcdir)/libgcc2.c
9 echo '#ifdef inhibit_libc' > $@
10 echo '#define L_bb' >> $@
11 echo '#undef inhibit_libc' >> $@
15 # We want fine grained libraries, so use the new code to build the
16 # floating point emulation libraries.
20 dp-bit.c: $(srcdir)/config/fp-bit.c
21 echo '#ifdef __LITTLE_ENDIAN__' > dp-bit.c
22 echo '#define FLOAT_BIT_ORDER_MISMATCH' >>dp-bit.c
23 echo '#endif' >> dp-bit.c
24 cat $(srcdir)/config/fp-bit.c >> dp-bit.c
26 fp-bit.c: $(srcdir)/config/fp-bit.c
27 echo '#define FLOAT' > fp-bit.c
28 echo '#ifdef __LITTLE_ENDIAN__' >> fp-bit.c
29 echo '#define FLOAT_BIT_ORDER_MISMATCH' >>fp-bit.c
30 echo '#endif' >> fp-bit.c
31 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
33 MULTILIB_OPTIONS= ml m2/m3e/m4-single-only/m4-single/m4
35 MULTILIB_MATCHES = m2=m3 m2=m4-nofpu
37 LIBGCC = stmp-multilib
38 INSTALL_LIBGCC = install-multilib
40 $(T)crt1.o: $(srcdir)/config/sh/crt1.asm $(GCC_PASSES)
41 $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crt1.o -x assembler-with-cpp $(srcdir)/config/sh/crt1.asm
42 $(T)crti.o: $(srcdir)/config/sh/crti.asm $(GCC_PASSES)
43 $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/sh/crti.asm
44 $(T)crtn.o: $(srcdir)/config/sh/crtn.asm $(GCC_PASSES)
45 $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/sh/crtn.asm
47 # These are not suitable for COFF.
48 # EXTRA_MULTILIB_PARTS= crt1.o crti.o crtn.o crtbegin.o crtend.o