1# Target Makefile Fragment for TI C6X.
2# Copyright (C) 2010-2013 Free Software Foundation, Inc.
3# Contributed by CodeSourcery.
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
21MD_INCLUDES= 	$(srcdir)/config/c6x/constraints.md \
22		$(srcdir)/config/c6x/predicates.md \
23		$(srcdir)/config/c6x/c6x-mult.md \
24		$(srcdir)/config/c6x/c6x-sched.md
25
26s-config s-conditions s-flags s-codes s-constants s-emit s-recog s-preds \
27	s-opinit s-extract s-peep s-attr s-attrtab s-output: $(MD_INCLUDES)
28
29$(srcdir)/config/c6x/c6x-sched.md: $(srcdir)/config/c6x/gensched.sh \
30  $(srcdir)/config/c6x/c6x-sched.md.in
31	$(SHELL) $(srcdir)/config/c6x/gensched.sh \
32	$(srcdir)/config/c6x/c6x-sched.md.in > $@
33
34$(srcdir)/config/c6x/c6x-mult.md: $(srcdir)/config/c6x/genmult.sh \
35  $(srcdir)/config/c6x/c6x-mult.md.in
36	$(SHELL) $(srcdir)/config/c6x/genmult.sh \
37	$(srcdir)/config/c6x/c6x-mult.md.in > $@
38
39$(srcdir)/config/c6x/c6x-tables.opt: $(srcdir)/config/c6x/genopt.sh \
40  $(srcdir)/config/c6x/c6x-isas.def
41	$(SHELL) $(srcdir)/config/c6x/genopt.sh $(srcdir)/config/c6x > \
42		$(srcdir)/config/c6x/c6x-tables.opt
43