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