1# Make rules for all C-SKY targets.
2#
3# Copyright (C) 2018-2021 Free Software Foundation, Inc.
4# Contributed by C-SKY Microsystems and Mentor Graphics.
5#
6# This file is part of GCC.
7#
8# GCC is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 3, or (at your option)
11# any later version.
12#
13# GCC is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with GCC; see the file COPYING3.  If not see
20# <http://www.gnu.org/licenses/>.
21
22TM_H += $(srcdir)/config/csky/csky_cores.def
23OPTIONS_H_EXTRA += $(srcdir)/config/csky/csky_cores.def
24
25
26$(srcdir)/config/csky/csky_tables.opt: $(srcdir)/config/csky/csky_genopt.sh \
27  $(srcdir)/config/csky/csky_cores.def
28	$(SHELL) $(srcdir)/config/csky/csky_genopt.sh $(srcdir)/config/csky > \
29		$(srcdir)/config/csky/csky_tables.opt
30