1# General rules that all rs6000/ targets must have.
2#
3# Copyright (C) 1995-2019 Free Software Foundation, Inc.
4#
5# This file is part of GCC.
6#
7# GCC is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 3, or (at your option)
10# any later version.
11#
12# GCC is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15# GNU General Public 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
21TM_H += $(srcdir)/config/rs6000/rs6000-builtin.def
22TM_H += $(srcdir)/config/rs6000/rs6000-cpus.def
23TM_H += $(srcdir)/config/rs6000/rs6000-modes.h
24PASSES_EXTRA += $(srcdir)/config/rs6000/rs6000-passes.def
25
26rs6000-c.o: $(srcdir)/config/rs6000/rs6000-c.c
27	$(COMPILE) $<
28	$(POSTCOMPILE)
29
30rs6000-string.o: $(srcdir)/config/rs6000/rs6000-string.c
31	$(COMPILE) $<
32	$(POSTCOMPILE)
33
34rs6000-p8swap.o: $(srcdir)/config/rs6000/rs6000-p8swap.c
35	$(COMPILE) $<
36	$(POSTCOMPILE)
37
38rs6000-d.o: $(srcdir)/config/rs6000/rs6000-d.c
39	$(COMPILE) $<
40	$(POSTCOMPILE)
41
42$(srcdir)/config/rs6000/rs6000-tables.opt: $(srcdir)/config/rs6000/genopt.sh \
43  $(srcdir)/config/rs6000/rs6000-cpus.def
44	$(SHELL) $(srcdir)/config/rs6000/genopt.sh $(srcdir)/config/rs6000 > \
45		$(srcdir)/config/rs6000/rs6000-tables.opt
46
47# The rs6000 backend doesn't cause warnings in these files.
48insn-conditions.o-warn =
49
50MD_INCLUDES = $(srcdir)/config/rs6000/rs64.md \
51	$(srcdir)/config/rs6000/mpc.md \
52	$(srcdir)/config/rs6000/40x.md \
53	$(srcdir)/config/rs6000/440.md \
54	$(srcdir)/config/rs6000/601.md \
55	$(srcdir)/config/rs6000/603.md \
56	$(srcdir)/config/rs6000/6xx.md \
57	$(srcdir)/config/rs6000/7xx.md \
58	$(srcdir)/config/rs6000/7450.md \
59	$(srcdir)/config/rs6000/8540.md \
60	$(srcdir)/config/rs6000/e300c2c3.md \
61	$(srcdir)/config/rs6000/e500mc.md \
62	$(srcdir)/config/rs6000/power4.md \
63	$(srcdir)/config/rs6000/power5.md \
64	$(srcdir)/config/rs6000/power6.md \
65	$(srcdir)/config/rs6000/power7.md \
66	$(srcdir)/config/rs6000/power8.md \
67	$(srcdir)/config/rs6000/power9.md \
68	$(srcdir)/config/rs6000/cell.md \
69	$(srcdir)/config/rs6000/a2.md \
70	$(srcdir)/config/rs6000/predicates.md \
71	$(srcdir)/config/rs6000/constraints.md \
72	$(srcdir)/config/rs6000/darwin.md \
73	$(srcdir)/config/rs6000/sync.md \
74	$(srcdir)/config/rs6000/vector.md \
75	$(srcdir)/config/rs6000/vsx.md \
76	$(srcdir)/config/rs6000/altivec.md \
77	$(srcdir)/config/rs6000/crypto.md \
78	$(srcdir)/config/rs6000/htm.md \
79	$(srcdir)/config/rs6000/dfp.md
80