1 # Copyright (C) 1993-2013 Free Software Foundation, Inc.
3 # This file is part of GCC.
5 # GCC is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3, or (at your option)
10 # GCC is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with GCC; see the file COPYING3. If not see
17 # <http://www.gnu.org/licenses/>.
19 LIB1ASMSRC = sh/lib1funcs.S
20 LIB1ASMFUNCS = _ashiftrt _ashiftrt_n _ashiftlt _lshiftrt _movmem \
21 _movmem_i4 _mulsi3 _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr \
22 _div_table _udiv_qrnnd_16 \
24 LIB1ASMFUNCS_CACHE = _ic_invalidate _ic_invalidate_array
26 crt1.o: $(srcdir)/config/sh/crt1.S
29 ic_invalidate_array_4-100.o: $(srcdir)/config/sh/lib1funcs.S
30 $(gcc_compile) -c -DL_ic_invalidate_array -DWAYS=1 -DWAY_SIZE=0x2000 $<
31 libic_invalidate_array_4-100.a: ic_invalidate_array_4-100.o
32 $(AR_CREATE_FOR_TARGET) $@ $<
34 ic_invalidate_array_4-200.o: $(srcdir)/config/sh/lib1funcs.S
35 $(gcc_compile) -c -DL_ic_invalidate_array -DWAYS=2 -DWAY_SIZE=0x2000 $<
36 libic_invalidate_array_4-200.a: ic_invalidate_array_4-200.o
37 $(AR_CREATE_FOR_TARGET) $@ $<
39 ic_invalidate_array_4a.o: $(srcdir)/config/sh/lib1funcs.S
40 $(gcc_compile) -c -DL_ic_invalidate_array -D__FORCE_SH4A__ $<
41 libic_invalidate_array_4a.a: ic_invalidate_array_4a.o
42 $(AR_CREATE_FOR_TARGET) $@ $<
44 sdivsi3_i4i-Os-4-200.o: $(srcdir)/config/sh/lib1funcs-Os-4-200.S
45 $(gcc_compile) -c -DL_sdivsi3_i4i $<
46 udivsi3_i4i-Os-4-200.o: $(srcdir)/config/sh/lib1funcs-Os-4-200.S
47 $(gcc_compile) -c -DL_udivsi3_i4i $<
48 unwind-dw2-Os-4-200.o: $(srcdir)/unwind-dw2.c
49 $(gcc_compile) $(LIBGCC2_CFLAGS) $(vis_hide) -fexceptions -Os -c $<
51 OBJS_Os_4_200=sdivsi3_i4i-Os-4-200.o udivsi3_i4i-Os-4-200.o unwind-dw2-Os-4-200.o
52 libgcc-Os-4-200.a: $(OBJS_Os_4_200)
53 $(AR_CREATE_FOR_TARGET) $@ $(OBJS_Os_4_200)
55 div_table-4-300.o: $(srcdir)/config/sh/lib1funcs-4-300.S
56 $(gcc_compile) -c -DL_div_table $<
58 libgcc-4-300.a: div_table-4-300.o
59 $(AR_CREATE_FOR_TARGET) $@ div_table-4-300.o