t-cris revision 1.1.1.1.8.2 1 1.1.1.1.8.2 tls #
2 1.1.1.1.8.2 tls # t-cris
3 1.1.1.1.8.2 tls #
4 1.1.1.1.8.2 tls # The Makefile fragment to include when compiling gcc et al for CRIS.
5 1.1.1.1.8.2 tls #
6 1.1.1.1.8.2 tls # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
7 1.1.1.1.8.2 tls #
8 1.1.1.1.8.2 tls # This file is part of GCC.
9 1.1.1.1.8.2 tls #
10 1.1.1.1.8.2 tls # GCC is free software; you can redistribute it and/or modify
11 1.1.1.1.8.2 tls # it under the terms of the GNU General Public License as published by
12 1.1.1.1.8.2 tls # the Free Software Foundation; either version 3, or (at your option)
13 1.1.1.1.8.2 tls # any later version.
14 1.1.1.1.8.2 tls #
15 1.1.1.1.8.2 tls # GCC is distributed in the hope that it will be useful,
16 1.1.1.1.8.2 tls # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 1.1.1.1.8.2 tls # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 1.1.1.1.8.2 tls # GNU General Public License for more details.
19 1.1.1.1.8.2 tls #
20 1.1.1.1.8.2 tls # You should have received a copy of the GNU General Public License
21 1.1.1.1.8.2 tls # along with GCC; see the file COPYING3. If not see
22 1.1.1.1.8.2 tls # <http://www.gnu.org/licenses/>.
23 1.1.1.1.8.2 tls #
24 1.1.1.1.8.2 tls # The makefile macros etc. are included in the order found in the
25 1.1.1.1.8.2 tls # section "Target Fragment" in the gcc info-files (or the paper copy) of
26 1.1.1.1.8.2 tls # "Using and Porting GCC"
27 1.1.1.1.8.2 tls
28 1.1.1.1.8.2 tls LIB2FUNCS_EXTRA = _udivsi3.c _divsi3.c _umodsi3.c _modsi3.c
29 1.1.1.1.8.2 tls CRIS_LIB1CSRC = $(srcdir)/config/cris/arit.c
30 1.1.1.1.8.2 tls
31 1.1.1.1.8.2 tls FPBIT = tmplibgcc_fp_bit.c
32 1.1.1.1.8.2 tls DPBIT = dp-bit.c
33 1.1.1.1.8.2 tls
34 1.1.1.1.8.2 tls dp-bit.c: $(srcdir)/config/fp-bit.c
35 1.1.1.1.8.2 tls echo '#define FLOAT_BIT_ORDER_MISMATCH' > dp-bit.c
36 1.1.1.1.8.2 tls cat $(srcdir)/config/fp-bit.c >> dp-bit.c
37 1.1.1.1.8.2 tls
38 1.1.1.1.8.2 tls # Use another name to avoid confusing SUN make, if support for
39 1.1.1.1.8.2 tls # it is reinstated elsewhere. Prefixed with "tmplibgcc" means
40 1.1.1.1.8.2 tls # "make clean" will wipe it. We define a few L_ thingies
41 1.1.1.1.8.2 tls # because we can't select them individually through FPBIT_FUNCS;
42 1.1.1.1.8.2 tls # see above.
43 1.1.1.1.8.2 tls tmplibgcc_fp_bit.c: $(srcdir)/config/fp-bit.c
44 1.1.1.1.8.2 tls echo '#define FLOAT_BIT_ORDER_MISMATCH' > $@
45 1.1.1.1.8.2 tls echo '#define FLOAT' >> $@
46 1.1.1.1.8.2 tls cat $(srcdir)/config/fp-bit.c >> $@
47 1.1.1.1.8.2 tls
48 1.1.1.1.8.2 tls # The fixed-point arithmetic code is in one file, arit.c,
49 1.1.1.1.8.2 tls # similar to libgcc2.c (or the old libgcc1.c). We need to
50 1.1.1.1.8.2 tls # "split it up" with one file per define.
51 1.1.1.1.8.2 tls $(LIB2FUNCS_EXTRA): $(CRIS_LIB1CSRC)
52 1.1.1.1.8.2 tls name=`echo $@ | sed -e 's,.*/,,' | sed -e 's,.c$$,,'`; \
53 1.1.1.1.8.2 tls echo "#define L$$name" > tmp-$@ \
54 1.1.1.1.8.2 tls && echo '#include "$<"' >> tmp-$@ \
55 1.1.1.1.8.2 tls && mv -f tmp-$@ $@
56 1.1.1.1.8.2 tls
57 1.1.1.1.8.2 tls $(out_object_file): gt-cris.h
58 1.1.1.1.8.2 tls gt-cris.h : s-gtype ; @true
59