xref: /netbsd-src/external/gpl3/gcc/dist/libgcc/config/rx/t-rx (revision 2b3d1ee8a773e028429b331332895d44f445d720)
1# Makefile fragment for building LIBGCC for the Renesas RX target.
2# Copyright (C) 2008, 2009 Free Software Foundation, Inc.
3# Contributed by Red Hat.
4#
5# This file is part of GCC.
6#
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.
11#
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.
16#
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/>.
20
21
22# Add functions required by the RX ABI which are not part of
23# the normal libgcc sources:
24
25LIB2ADD = $(srcdir)/config/rx/rx-abi-functions.c
26
27
28# We need special handling of the floating point conversion
29# routines, to allow for the varying size of a double:
30
31FPBIT = fp-bit.c
32$(gcc_objdir)/fp-bit.c: $(gcc_srcdir)/config/fp-bit.c
33	echo '#define FLOAT'		     > $@
34	echo '#ifndef __RX_64BIT_DOUBLES__' >> $@
35	echo '#define DF SF'		    >> $@
36	echo '#define FLOAT_ONLY'	    >> $@
37	echo '#endif' 			    >> $@
38	cat $(gcc_srcdir)/config/fp-bit.c   >> $@
39
40DPBIT = dp-bit.c
41$(gcc_objdir)/dp-bit.c: $(gcc_srcdir)/config/fp-bit.c
42	echo '#ifdef __RX_64BIT_DOUBLES__'   > $@
43	cat $(gcc_srcdir)/config/fp-bit.c   >> $@
44	echo '#endif'		      	    >> $@
45