2016-10-26 Edward Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / libgcc / config / msp430 / t-msp430
blob562c458e23f56c2270ea4b9a2b40eb7e8a209f8d
1 # Makefile fragment for building LIBGCC for the TI MSP430 processor.
2 # Copyright (C) 2011-2016 Free Software Foundation, Inc.
3 # Contributed by Red Hat.
5 # This file is part of GCC.
7 # GCC is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published
9 # by the Free Software Foundation; either version 3, or (at your
10 # option) any later version.
12 # GCC is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.   See
15 # the GNU General Public License for more details.
17 # You should have received a copy of the  GNU General Public
18 # License along with GCC; see the file COPYING3.  If not see
19 # <http://www.gnu.org/licenses/>.
21 # Note - we have separate versions of the lib2div<mode> files
22 # as the functions are quite large and we do not want to pull
23 # in unneeded division routines.
25 LIB2ADD = \
26         $(srcdir)/config/msp430/lib2divQI.c \
27         $(srcdir)/config/msp430/lib2divHI.c \
28         $(srcdir)/config/msp430/lib2divSI.c \
29         $(srcdir)/config/msp430/lib2bitcountHI.c \
30         $(srcdir)/config/msp430/lib2mul.c \
31         $(srcdir)/config/msp430/lib2shift.c \
32         $(srcdir)/config/msp430/epilogue.S \
33         $(srcdir)/config/msp430/mpy.c \
34         $(srcdir)/config/msp430/slli.S \
35         $(srcdir)/config/msp430/srai.S \
36         $(srcdir)/config/msp430/srli.S \
37         $(srcdir)/config/msp430/cmpsi2.S \
38         $(srcdir)/config/msp430/floatunhisf.c \
39         $(srcdir)/config/msp430/floatunhidf.c \
40         $(srcdir)/config/msp430/floathidf.c \
41         $(srcdir)/config/msp430/floathisf.c \
42         $(srcdir)/config/msp430/cmpd.c
44 HOST_LIBGCC2_CFLAGS += -Os -ffunction-sections -fdata-sections -mhwmult=none
46 lib2_mul_none.o: $(srcdir)/config/msp430/lib2mul.c
47         $(gcc_compile) $< -c -DMUL_NONE
49 lib2_mul_16bit.o: $(srcdir)/config/msp430/lib2mul.c
50         $(gcc_compile) $< -c -DMUL_16
52 lib2hw_mul_16.o: $(srcdir)/config/msp430/lib2hw_mul.S
53         $(gcc_compile) $< -c -DMUL_16
55 lib2hw_mul_32.o: $(srcdir)/config/msp430/lib2hw_mul.S
56         $(gcc_compile) $< -c -DMUL_32
58 lib2hw_mul_f5.o: $(srcdir)/config/msp430/lib2hw_mul.S
59         $(gcc_compile) $< -c -DMUL_F5
61 libmul_none.a: lib2_mul_none.o
62         $(AR_CREATE_FOR_TARGET) $@ $^
64 libmul_16.a: lib2hw_mul_16.o lib2_mul_16bit.o
65         $(AR_CREATE_FOR_TARGET) $@ $^
67 libmul_32.a: lib2hw_mul_32.o
68         $(AR_CREATE_FOR_TARGET) $@ $^
70 libmul_f5.a: lib2hw_mul_f5.o
71         $(AR_CREATE_FOR_TARGET) $@ $^
73 # Local Variables:
74 # mode: Makefile
75 # End: