1# Copyright (C) 2007-2021 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# <http://www.gnu.org/licenses/>.
18
19## Target part of the Makefile
20
21MULTILIB_OPTIONS=mcpu=bf532-none
22MULTILIB_DIRNAMES=bf532-none
23
24MULTILIB_MATCHES=mcpu?bf532-none=mcpu?bf512-none mcpu?bf532-none=mcpu?bf514-none
25MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf516-none mcpu?bf532-none=mcpu?bf518-none
26MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf522-none mcpu?bf532-none=mcpu?bf523-none
27MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf524-none mcpu?bf532-none=mcpu?bf525-none
28MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf526-none mcpu?bf532-none=mcpu?bf527-none
29MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf531-none mcpu?bf532-none=mcpu?bf533-none
30MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf534-none mcpu?bf532-none=mcpu?bf536-none
31MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf537-none mcpu?bf532-none=mcpu?bf538-none
32MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf539-none mcpu?bf532-none=mcpu?bf542-none
33MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf542m-none
34MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf544-none
35MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf544m-none
36MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf547-none
37MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf547m-none
38MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf548-none
39MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf548m-none
40MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf549-none
41MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf549m-none
42MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf561-none
43MULTILIB_MATCHES+=mcpu?bf532-none=mcpu?bf592-none
44
45# This rule uses MULTILIB_MATCHES to generate a definition of
46# SYSROOT_SUFFIX_SPEC.
47linux-sysroot-suffix.h: $(srcdir)/config/bfin/print-sysroot-suffix.sh
48	$(SHELL) $(srcdir)/config/bfin/print-sysroot-suffix.sh \
49	  "$(SYSTEM_HEADER_DIR)/../.." "$(MULTILIB_MATCHES)" \
50	  "$(MULTILIB_OPTIONS)" > $@
51
52generated_files += linux-sysroot-suffix.h
53