1 |
38 |
julius |
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
|
4 |
|
|
|
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 \
|
8 |
|
|
_div_table _udiv_qrnnd_16 \
|
9 |
|
|
$(LIB1ASMFUNCS_CACHE)
|
10 |
|
|
|
11 |
|
|
# We want fine grained libraries, so use the new code to build the
|
12 |
|
|
# floating point emulation libraries.
|
13 |
|
|
FPBIT = fp-bit.c
|
14 |
|
|
DPBIT = dp-bit.c
|
15 |
|
|
|
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
|
21 |
|
|
|
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
|
28 |
|
|
|
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)
|
31 |
|
|
|
32 |
|
|
MULTILIB_OPTIONS= $(MULTILIB_ENDIAN) $(MULTILIB_CPUS:/=)
|
33 |
|
|
MULTILIB_DIRNAMES=
|
34 |
|
|
|
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,m4-400,m4-500,m4al,m4a-nofpu m1,m2,m2a-nofpu \
|
42 |
|
|
m2e,m3e,m4-single-only,m4-100-single-only,m4-200-single-only,m4a-single-only \
|
43 |
|
|
m2e,m2a-single-only \
|
44 |
|
|
m4-single,m4-100-single,m4-200-single,m4a-single \
|
45 |
|
|
m4,m4-100,m4-200,m4a \
|
46 |
|
|
m5-32media,m5-compact,m5-32media \
|
47 |
|
|
m5-32media-nofpu,m5-compact-nofpu,m5-32media-nofpu; do \
|
48 |
|
|
subst= ; \
|
49 |
|
|
for lib in `echo $$abi|tr , ' '` ; do \
|
50 |
|
|
if test "`echo $$multilibs|sed s/$$lib//`" != "$$multilibs"; then \
|
51 |
|
|
subst=$$lib ; \
|
52 |
|
|
elif test x$$subst != x ; then \
|
53 |
|
|
echo $$subst=$$lib ; \
|
54 |
|
|
fi \
|
55 |
|
|
done \
|
56 |
|
|
done)
|
57 |
|
|
|
58 |
|
|
# SH1 only supports big endian.
|
59 |
|
|
MULTILIB_EXCEPTIONS = ml/m1 ml/m2a*
|
60 |
|
|
|
61 |
|
|
LIBGCC = stmp-multilib
|
62 |
|
|
INSTALL_LIBGCC = install-multilib
|
63 |
|
|
|
64 |
|
|
$(T)crt1.o: $(srcdir)/config/sh/crt1.asm $(GCC_PASSES)
|
65 |
|
|
$(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crt1.o -x assembler-with-cpp $(srcdir)/config/sh/crt1.asm
|
66 |
|
|
$(T)crti.o: $(srcdir)/config/sh/crti.asm $(GCC_PASSES)
|
67 |
|
|
$(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/sh/crti.asm
|
68 |
|
|
$(T)crtn.o: $(srcdir)/config/sh/crtn.asm $(GCC_PASSES)
|
69 |
|
|
$(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/sh/crtn.asm
|
70 |
|
|
|
71 |
|
|
$(out_object_file): gt-sh.h
|
72 |
|
|
gt-sh.h : s-gtype ; @true
|
73 |
|
|
|
74 |
|
|
# These are not suitable for COFF.
|
75 |
|
|
# EXTRA_MULTILIB_PARTS= crt1.o crti.o crtn.o crtbegin.o crtend.o
|
76 |
|
|
|
77 |
|
|
IC_EXTRA_PARTS= libic_invalidate_array_4-100.a libic_invalidate_array_4-200.a \
|
78 |
|
|
libic_invalidate_array_4a.a
|
79 |
|
|
OPT_EXTRA_PARTS= libgcc-Os-4-200.a
|
80 |
|
|
EXTRA_MULTILIB_PARTS= $(IC_EXTRA_PARTS) $(OPT_EXTRA_PARTS)
|
81 |
|
|
|
82 |
|
|
$(T)ic_invalidate_array_4-100.o: $(srcdir)/config/sh/lib1funcs.asm $(GCC_PASSES)
|
83 |
|
|
$(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)ic_invalidate_array_4-100.o -DL_ic_invalidate_array -DWAYS=1 -DWAY_SIZE=0x2000 -x assembler-with-cpp $(srcdir)/config/sh/lib1funcs.asm
|
84 |
|
|
$(T)libic_invalidate_array_4-100.a: $(T)ic_invalidate_array_4-100.o $(GCC_PASSES)
|
85 |
|
|
$(AR_CREATE_FOR_TARGET) $(T)libic_invalidate_array_4-100.a $(T)ic_invalidate_array_4-100.o
|
86 |
|
|
|
87 |
|
|
$(T)ic_invalidate_array_4-200.o: $(srcdir)/config/sh/lib1funcs.asm $(GCC_PASSES)
|
88 |
|
|
$(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)ic_invalidate_array_4-200.o -DL_ic_invalidate_array -DWAYS=2 -DWAY_SIZE=0x2000 -x assembler-with-cpp $(srcdir)/config/sh/lib1funcs.asm
|
89 |
|
|
$(T)libic_invalidate_array_4-200.a: $(T)ic_invalidate_array_4-200.o $(GCC_PASSES)
|
90 |
|
|
$(AR_CREATE_FOR_TARGET) $(T)libic_invalidate_array_4-200.a $(T)ic_invalidate_array_4-200.o
|
91 |
|
|
|
92 |
|
|
$(T)ic_invalidate_array_4a.o: $(srcdir)/config/sh/lib1funcs.asm $(GCC_PASSES)
|
93 |
|
|
$(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)ic_invalidate_array_4a.o -DL_ic_invalidate_array -D__FORCE_SH4A__ -x assembler-with-cpp $(srcdir)/config/sh/lib1funcs.asm
|
94 |
|
|
$(T)libic_invalidate_array_4a.a: $(T)ic_invalidate_array_4a.o $(GCC_PASSES)
|
95 |
|
|
$(AR_CREATE_FOR_TARGET) $(T)libic_invalidate_array_4a.a $(T)ic_invalidate_array_4a.o
|
96 |
|
|
|
97 |
|
|
$(T)sdivsi3_i4i-Os-4-200.o: $(srcdir)/config/sh/lib1funcs-Os-4-200.asm $(GCC_PASSES)
|
98 |
|
|
$(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $@ -DL_sdivsi3_i4i -x assembler-with-cpp $<
|
99 |
|
|
$(T)udivsi3_i4i-Os-4-200.o: $(srcdir)/config/sh/lib1funcs-Os-4-200.asm $(GCC_PASSES)
|
100 |
|
|
$(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $@ -DL_udivsi3_i4i -x assembler-with-cpp $<
|
101 |
|
|
$(T)unwind-dw2-Os-4-200.o: $(srcdir)/unwind-dw2.c $(srcdir)/unwind-generic.h unwind-pe.h unwind.inc unwind-dw2-fde.h unwind-dw2.h $(CONFIG_H) coretypes.h $(TM_H) $(MACHMODE_H) longlong.h config.status stmp-int-hdrs tsystem.h $(GCC_PASSES)
|
102 |
|
|
$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) $(vis_hide) -fexceptions -Os -c -o $@ $<
|
103 |
|
|
OBJS_Os_4_200=$(T)sdivsi3_i4i-Os-4-200.o $(T)udivsi3_i4i-Os-4-200.o $(T)unwind-dw2-Os-4-200.o
|
104 |
|
|
$(T)libgcc-Os-4-200.a: $(OBJS_Os_4_200) $(GCC_PASSES)
|
105 |
|
|
$(AR_CREATE_FOR_TARGET) $@ $(OBJS_Os_4_200)
|
106 |
|
|
|
107 |
|
|
# Local Variables:
|
108 |
|
|
# mode: Makefile
|
109 |
|
|
# End:
|