1 |
282 |
jeremybenn |
# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
|
2 |
|
|
#
|
3 |
|
|
# This file is part of GCC.
|
4 |
|
|
#
|
5 |
|
|
# GCC is free software; you can redistribute it and/or modify
|
6 |
|
|
# it under the terms of the GNU General Public License as published by
|
7 |
|
|
# the Free Software Foundation; either version 3, or (at your option)
|
8 |
|
|
# any later version.
|
9 |
|
|
#
|
10 |
|
|
# GCC is distributed in the hope that it will be useful,
|
11 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
|
|
# GNU General Public License for more details.
|
14 |
|
|
#
|
15 |
|
|
# You should have received a copy of the GNU General Public License
|
16 |
|
|
# along with GCC; see the file COPYING3. If not see
|
17 |
|
|
# .
|
18 |
|
|
|
19 |
|
|
## Target part of the Makefile
|
20 |
|
|
|
21 |
|
|
LIB1ASMSRC = bfin/lib1funcs.asm
|
22 |
|
|
LIB1ASMFUNCS = _divsi3 _udivsi3 _umodsi3 _modsi3 _umulsi3_highpart
|
23 |
|
|
LIB1ASMFUNCS += _smulsi3_highpart
|
24 |
|
|
|
25 |
|
|
FPBIT = fp-bit.c
|
26 |
|
|
DPBIT = dp-bit.c
|
27 |
|
|
|
28 |
|
|
dp-bit.c: $(srcdir)/config/fp-bit.c
|
29 |
|
|
cat $(srcdir)/config/fp-bit.c > dp-bit.c
|
30 |
|
|
|
31 |
|
|
fp-bit.c: $(srcdir)/config/fp-bit.c
|
32 |
|
|
echo '#define FLOAT' > fp-bit.c
|
33 |
|
|
cat $(srcdir)/config/fp-bit.c >> fp-bit.c
|
34 |
|
|
|
35 |
|
|
CRTSTUFF_T_CFLAGS = -fpic
|
36 |
|
|
TARGET_LIBGCC2_CFLAGS = -fpic
|
37 |
|
|
|
38 |
|
|
MULTILIB_OPTIONS=mcpu=bf532-none
|
39 |
|
|
MULTILIB_DIRNAMES=bf532-none
|
40 |
|
|
|
41 |
|
|
MULTILIB_MATCHES=mcpu?bf532-none=mcpu?bf512-none mcpu?bf532-none=mcpu?bf514-none
|
42 |
|
|
MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf516-none mcpu?bf532-none=mcpu?bf518-none
|
43 |
|
|
MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf522-none mcpu?bf532-none=mcpu?bf523-none
|
44 |
|
|
MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf524-none mcpu?bf532-none=mcpu?bf525-none
|
45 |
|
|
MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf526-none mcpu?bf532-none=mcpu?bf527-none
|
46 |
|
|
MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf531-none mcpu?bf532-none=mcpu?bf533-none
|
47 |
|
|
MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf534-none mcpu?bf532-none=mcpu?bf536-none
|
48 |
|
|
MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf537-none mcpu?bf532-none=mcpu?bf538-none
|
49 |
|
|
MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf539-none mcpu?bf532-none=mcpu?bf542-none
|
50 |
|
|
MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf542m-none
|
51 |
|
|
MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf544-none
|
52 |
|
|
MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf544m-none
|
53 |
|
|
MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf547-none
|
54 |
|
|
MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf547m-none
|
55 |
|
|
MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf548-none
|
56 |
|
|
MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf548m-none
|
57 |
|
|
MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf549-none
|
58 |
|
|
MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf549m-none
|
59 |
|
|
MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf561-none
|
60 |
|
|
|
61 |
|
|
SHLIB_MAPFILES=$(srcdir)/config/bfin/libgcc-bfin.ver
|
62 |
|
|
|
63 |
|
|
EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crtbeginS.o crtendS.o
|
64 |
|
|
|
65 |
|
|
# This rule uses MULTILIB_MATCHES to generate a definition of
|
66 |
|
|
# SYSROOT_SUFFIX_SPEC.
|
67 |
|
|
linux-sysroot-suffix.h: $(srcdir)/config/bfin/print-sysroot-suffix.sh
|
68 |
|
|
$(SHELL) $(srcdir)/config/bfin/print-sysroot-suffix.sh \
|
69 |
|
|
"$(SYSTEM_HEADER_DIR)/../.." "$(MULTILIB_MATCHES)" \
|
70 |
|
|
"$(MULTILIB_OPTIONS)" > $@
|
71 |
|
|
|
72 |
|
|
generated_files += linux-sysroot-suffix.h
|