1# Target Makefile Fragment for R8C/M16C/M32C
2# Copyright (C) 2005-2020 Free Software Foundation, Inc.
3# Contributed by Red Hat.
4#
5# This file is part of GCC.
6#
7# GCC is free software; you can redistribute it and/or modify it
8# under the terms of the GNU General Public License as published
9# by the Free Software Foundation; either version 3, or (at your
10# option) any later version.
11#
12# GCC is distributed in the hope that it will be useful, but WITHOUT
13# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
15# License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with GCC; see the file COPYING3.  If not see
19# <http://www.gnu.org/licenses/>.
20
21# target-specific files
22
23md_file = $(srcdir)/common.md md
24
25MD_FILES = m32c constraints predicates addsub bitops blkmov cond jump minmax mov muldiv prologue shift
26
27# Doing it this way lets the gen* programs report the right line numbers.
28
29md : $(MD_FILES:%=$(srcdir)/config/m32c/%.md) $(srcdir)/config/m32c/t-m32c
30	for md in $(MD_FILES); do \
31	  echo "(include \"$(srcdir)/config/m32c/$$md.md\")"; \
32	done > md
33
34m32c-pragma.o: $(srcdir)/config/m32c/m32c-pragma.c $(RTL_H) $(TREE_H) $(CONFIG_H) $(TM_H)
35	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
36
37# We support four CPU series, but R8C and M16C share one multilib, and
38# M32C and M32CM share another.
39
40MULTILIB_OPTIONS = mcpu=m32cm
41MULTILIB_DIRNAMES = m32cm
42MULTILIB_MATCHES = mcpu?m32cm=mcpu?m32c mcpu?r8c=mcpu?m16c
43