t-h8300 revision 1.1.1.1 1 1.1 mrg # Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003,
2 1.1 mrg # 2004 Free Software Foundation, Inc.
3 1.1 mrg #
4 1.1 mrg # This file is part of GCC.
5 1.1 mrg #
6 1.1 mrg # GCC is free software; you can redistribute it and/or modify
7 1.1 mrg # it under the terms of the GNU General Public License as published by
8 1.1 mrg # the Free Software Foundation; either version 3, or (at your option)
9 1.1 mrg # any later version.
10 1.1 mrg #
11 1.1 mrg # GCC is distributed in the hope that it will be useful,
12 1.1 mrg # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 1.1 mrg # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 1.1 mrg # GNU General Public License for more details.
15 1.1 mrg #
16 1.1 mrg # You should have received a copy of the GNU General Public License
17 1.1 mrg # along with GCC; see the file COPYING3. If not see
18 1.1 mrg # <http://www.gnu.org/licenses/>.
19 1.1 mrg
20 1.1 mrg LIB1ASMSRC = h8300/lib1funcs.asm
21 1.1 mrg LIB1ASMFUNCS = _cmpsi2 _ucmpsi2 _divhi3 _divsi3 _mulhi3 _mulsi3 \
22 1.1 mrg _fixunssfsi_asm
23 1.1 mrg
24 1.1 mrg LIB2FUNCS_EXTRA = \
25 1.1 mrg $(srcdir)/config/h8300/clzhi2.c \
26 1.1 mrg $(srcdir)/config/h8300/ctzhi2.c \
27 1.1 mrg $(srcdir)/config/h8300/parityhi2.c \
28 1.1 mrg $(srcdir)/config/h8300/popcounthi2.c \
29 1.1 mrg $(srcdir)/config/h8300/fixunssfsi.c
30 1.1 mrg
31 1.1 mrg # We do not have DF type, so fake out the libgcc2 compilation.
32 1.1 mrg TARGET_LIBGCC2_CFLAGS = -DDF=SF
33 1.1 mrg
34 1.1 mrg # We want fine grained libraries, so use the new code to build the
35 1.1 mrg # floating point emulation libraries.
36 1.1 mrg FPBIT = fp-bit.c
37 1.1 mrg
38 1.1 mrg fp-bit.c: $(srcdir)/config/fp-bit.c
39 1.1 mrg echo '#define FLOAT' > fp-bit.c
40 1.1 mrg echo '#define FLOAT_ONLY' >> fp-bit.c
41 1.1 mrg echo '#define SMALL_MACHINE' >> fp-bit.c
42 1.1 mrg echo '#ifdef __H8300__' >> fp-bit.c
43 1.1 mrg echo '#define CMPtype HItype' >> fp-bit.c
44 1.1 mrg echo '#else' >> fp-bit.c
45 1.1 mrg echo '#define CMPtype SItype' >> fp-bit.c
46 1.1 mrg echo '#endif' >> fp-bit.c
47 1.1 mrg cat $(srcdir)/config/fp-bit.c >> fp-bit.c
48 1.1 mrg
49 1.1 mrg MULTILIB_OPTIONS = mh/ms/msx mn mint32
50 1.1 mrg MULTILIB_DIRNAMES = h8300h h8300s h8sx normal int32
51 1.1 mrg MULTILIB_EXCEPTIONS = mint32 mn mn/mint32
52 1.1 mrg
53 1.1 mrg LIBGCC = stmp-multilib
54 1.1 mrg INSTALL_LIBGCC = install-multilib
55 1.1 mrg
56 1.1 mrg s-config s-conditions s-flags s-codes s-constants s-emit s-recog \
57 1.1 mrg s-opinit s-extract s-peep s-attr s-attrtab s-output: \
58 1.1 mrg $(srcdir)/config/h8300/mova.md
59 1.1 mrg
60 1.1 mrg $(srcdir)/config/h8300/mova.md: $(srcdir)/config/h8300/genmova.sh
61 1.1 mrg $(SHELL) $(srcdir)/config/h8300/genmova.sh \
62 1.1 mrg > $(srcdir)/config/h8300/mova.md
63