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