136ac495dSmrg# Target Makefile Fragment for R8C/M16C/M32C 2*8feb0f0bSmrg# Copyright (C) 2005-2020 Free Software Foundation, Inc. 336ac495dSmrg# Contributed by Red Hat. 436ac495dSmrg# 536ac495dSmrg# This file is part of GCC. 636ac495dSmrg# 736ac495dSmrg# GCC is free software; you can redistribute it and/or modify it 836ac495dSmrg# under the terms of the GNU General Public License as published 936ac495dSmrg# by the Free Software Foundation; either version 3, or (at your 1036ac495dSmrg# option) any later version. 1136ac495dSmrg# 1236ac495dSmrg# GCC is distributed in the hope that it will be useful, but WITHOUT 1336ac495dSmrg# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 1436ac495dSmrg# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 1536ac495dSmrg# License for more details. 1636ac495dSmrg# 1736ac495dSmrg# You should have received a copy of the GNU General Public License 1836ac495dSmrg# along with GCC; see the file COPYING3. If not see 1936ac495dSmrg# <http://www.gnu.org/licenses/>. 2036ac495dSmrg 2136ac495dSmrg# target-specific files 2236ac495dSmrg 2336ac495dSmrgmd_file = $(srcdir)/common.md md 2436ac495dSmrg 2536ac495dSmrgMD_FILES = m32c constraints predicates addsub bitops blkmov cond jump minmax mov muldiv prologue shift 2636ac495dSmrg 2736ac495dSmrg# Doing it this way lets the gen* programs report the right line numbers. 2836ac495dSmrg 2936ac495dSmrgmd : $(MD_FILES:%=$(srcdir)/config/m32c/%.md) $(srcdir)/config/m32c/t-m32c 3036ac495dSmrg for md in $(MD_FILES); do \ 3136ac495dSmrg echo "(include \"$(srcdir)/config/m32c/$$md.md\")"; \ 3236ac495dSmrg done > md 3336ac495dSmrg 3436ac495dSmrgm32c-pragma.o: $(srcdir)/config/m32c/m32c-pragma.c $(RTL_H) $(TREE_H) $(CONFIG_H) $(TM_H) 3536ac495dSmrg $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< 3636ac495dSmrg 3736ac495dSmrg# We support four CPU series, but R8C and M16C share one multilib, and 3836ac495dSmrg# M32C and M32CM share another. 3936ac495dSmrg 4036ac495dSmrgMULTILIB_OPTIONS = mcpu=m32cm 4136ac495dSmrgMULTILIB_DIRNAMES = m32cm 4236ac495dSmrgMULTILIB_MATCHES = mcpu?m32cm=mcpu?m32c mcpu?r8c=mcpu?m16c 43