1 sh-c.o: $(srcdir)/config/sh/sh-c.c \
2 $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(TM_H) $(TM_P_H) coretypes.h
3 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/sh/sh-c.c
5 LIB1ASMSRC = sh/lib1funcs.asm
6 LIB1ASMFUNCS = _ashiftrt _ashiftrt_n _ashiftlt _lshiftrt _movmem \
7 _movmem_i4 _mulsi3 _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr \
11 # We want fine grained libraries, so use the new code to build the
12 # floating point emulation libraries.
16 dp-bit.c: $(srcdir)/config/fp-bit.c
17 echo '#ifdef __LITTLE_ENDIAN__' > dp-bit.c
18 echo '#define FLOAT_BIT_ORDER_MISMATCH' >>dp-bit.c
19 echo '#endif' >> dp-bit.c
20 cat $(srcdir)/config/fp-bit.c >> dp-bit.c
22 fp-bit.c: $(srcdir)/config/fp-bit.c
23 echo '#define FLOAT' > fp-bit.c
24 echo '#ifdef __LITTLE_ENDIAN__' >> fp-bit.c
25 echo '#define FLOAT_BIT_ORDER_MISMATCH' >>fp-bit.c
26 echo '#endif' >> fp-bit.c
27 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
29 MULTILIB_ENDIAN = ml/mb
30 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)
32 MULTILIB_OPTIONS= $(MULTILIB_ENDIAN) $(MULTILIB_CPUS:/=)
35 # The separate entries for m2a-nofpu and m2a-single-only with
36 # duplicate base libraries are there to make sure we don't ever use an
37 # m4* multilib for m2a or vice-versa; they are not compatible. This
38 # is why sh2a and sh2a-single need their own multilibs.
39 MULTILIB_MATCHES = $(shell \
40 multilibs="$(MULTILIB_OPTIONS)" ; \
41 for abi in m1,m2,m3,m4-nofpu,m4al,m4a-nofpu m1,m2,m2a-nofpu \
42 m2e,m3e,m4-single-only,m4a-single-only m2e,m2a-single-only \
43 m4-single,m4a-single m4,m4a \
44 m5-32media,m5-compact,m5-32media \
45 m5-32media-nofpu,m5-compact-nofpu,m5-32media-nofpu; do \
47 for lib in `echo $$abi|tr , ' '` ; do \
48 if test "`echo $$multilibs|sed s/$$lib//`" != "$$multilibs"; then \
50 elif test x$$subst != x ; then \
51 echo $$subst=$$lib ; \
56 # SH1 only supports big endian.
57 MULTILIB_EXCEPTIONS = ml/m1 ml/m2a*
59 LIBGCC = stmp-multilib
60 INSTALL_LIBGCC = install-multilib
62 $(T)crt1.o: $(srcdir)/config/sh/crt1.asm $(GCC_PASSES)
63 $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crt1.o -x assembler-with-cpp $(srcdir)/config/sh/crt1.asm
64 $(T)crti.o: $(srcdir)/config/sh/crti.asm $(GCC_PASSES)
65 $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/sh/crti.asm
66 $(T)crtn.o: $(srcdir)/config/sh/crtn.asm $(GCC_PASSES)
67 $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/sh/crtn.asm
69 $(out_object_file): gt-sh.h
70 gt-sh.h : s-gtype ; @true
72 # These are not suitable for COFF.
73 # EXTRA_MULTILIB_PARTS= crt1.o crti.o crtn.o crtbegin.o crtend.o