Rebase.
[official-gcc.git] / gcc / config / m32c / t-m32c
blob00162e9a89aa4303a7cf5fb2fe9d46335a7d283b
1 # Target Makefile Fragment for R8C/M16C/M32C
2 # Copyright (C) 2005-2014 Free Software Foundation, Inc.
3 # Contributed by Red Hat.
5 # This file is part of GCC.
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.
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.
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/>.
21 # target-specific files
23 md_file = $(srcdir)/common.md md
25 MD_FILES = m32c constraints predicates addsub bitops blkmov cond jump minmax mov muldiv prologue shift
27 # Doing it this way lets the gen* programs report the right line numbers.
29 md : $(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
34 m32c-pragma.o: $(srcdir)/config/m32c/m32c-pragma.c $(RTL_H) $(TREE_H) $(CONFIG_H) $(TM_H)
35         $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
37 # We support four CPU series, but R8C and M16C share one multilib, and
38 # M32C and M32CM share another.
40 MULTILIB_OPTIONS = mcpu=m32cm
41 MULTILIB_DIRNAMES = m32cm
42 MULTILIB_MATCHES = mcpu?m32cm=mcpu?m32c mcpu?r8c=mcpu?m16c