1 LIB1ASMSRC = sh/lib1funcs.asm
2 LIB1ASMFUNCS = _ashiftrt _ashiftrt_n _ashiftlt _lshiftrt _movmem \
3 _movmem_i4 _mulsi3 _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr \
6 # We want fine grained libraries, so use the new code to build the
7 # floating point emulation libraries.
11 dp-bit.c: $(srcdir)/config/fp-bit.c
12 echo '#ifdef __LITTLE_ENDIAN__' > dp-bit.c
13 echo '#define FLOAT_BIT_ORDER_MISMATCH' >>dp-bit.c
14 echo '#endif' >> dp-bit.c
15 cat $(srcdir)/config/fp-bit.c >> dp-bit.c
17 fp-bit.c: $(srcdir)/config/fp-bit.c
18 echo '#define FLOAT' > fp-bit.c
19 echo '#ifdef __LITTLE_ENDIAN__' >> fp-bit.c
20 echo '#define FLOAT_BIT_ORDER_MISMATCH' >>fp-bit.c
21 echo '#endif' >> fp-bit.c
22 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
24 MULTILIB_ENDIAN = ml/mb
25 MULTILIB_CPUS= $(ML_sh1)$(ML_sh2a)$(ML_sh2a_nofpu)$(ML_sh2a_single_only)$(ML_sh2a_single)$(ML_sh2e)$(ML_sh2)$(ML_sh3e)$(ML_sh3)$(ML_sh4_nofpu)$(ML_sh4_single_only)$(ML_sh4_single)$(ML_sh4)$(ML_sh4a_nofpu)$(ML_sh4a_single_only)$(ML_sh4a_single)$(ML_sh4a)$(ML_sh5_32media)$(ML_sh5_32media_nofpu)$(ML_sh5_compact)$(ML_sh5_compact_nofpu)$(ML_sh5_64media)$(ML_sh5_64media_nofpu)
27 MULTILIB_OPTIONS= $(MULTILIB_ENDIAN) $(MULTILIB_CPUS:/=)
30 # The separate entries for m2a-nofpu and m2a-single-only with
31 # duplicate base libraries are there to make sure we don't ever use an
32 # m4* multilib for m2a or vice-versa; they are not compatible. This
33 # is why sh2a and sh2a-single need their own multilibs.
34 MULTILIB_MATCHES = $(shell \
35 multilibs="$(MULTILIB_OPTIONS)" ; \
36 for abi in m1,m2,m3,m4-nofpu,m4al,m4a-nofpu m1,m2,m2a-nofpu \
37 m2e,m3e,m4-single-only,m4a-single-only m2e,m2a-single-only \
38 m4-single,m4a-single m4,m4a \
39 m5-32media,m5-compact,m5-32media \
40 m5-32media-nofpu,m5-compact-nofpu,m5-32media-nofpu; do \
42 for lib in `echo $$abi|tr , ' '` ; do \
43 if test "`echo $$multilibs|sed s/$$lib//`" != "$$multilibs"; then \
45 elif test x$$subst != x ; then \
46 echo $$subst=$$lib ; \
51 # SH1 only supports big endian.
52 MULTILIB_EXCEPTIONS = ml/m1 ml/m2a*
54 LIBGCC = stmp-multilib
55 INSTALL_LIBGCC = install-multilib
57 $(T)crt1.o: $(srcdir)/config/sh/crt1.asm $(GCC_PASSES)
58 $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crt1.o -x assembler-with-cpp $(srcdir)/config/sh/crt1.asm
59 $(T)crti.o: $(srcdir)/config/sh/crti.asm $(GCC_PASSES)
60 $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/sh/crti.asm
61 $(T)crtn.o: $(srcdir)/config/sh/crtn.asm $(GCC_PASSES)
62 $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/sh/crtn.asm
64 $(out_object_file): gt-sh.h
65 gt-sh.h : s-gtype ; @true
67 # These are not suitable for COFF.
68 # EXTRA_MULTILIB_PARTS= crt1.o crti.o crtn.o crtbegin.o crtend.o