Automatic Copyright Year update after running gdb/copyright.py
[binutils-gdb.git] / sim / frv / local.mk
blob687fb4a86667a87aba458ce226e212ea411f073c
1 ## See sim/Makefile.am
2 ##
3 ## Copyright (C) 1998-2022 Free Software Foundation, Inc.
4 ## Contributed by Red Hat.
5 ##
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 3 of the License, or
9 ## (at your option) any later version.
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
19 %C%docdir = $(docdir)/%C%
20 %C%doc_DATA = %D%/README
22 %C%_BUILD_OUTPUTS = \
23 %D%/eng.h \
24 %D%/mloop.c \
25 %D%/stamp-mloop
27 ## This makes sure build tools are available before building the arch-subdirs.
28 SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
30 ## FIXME: Use of `mono' is wip.
31 %D%/mloop.c %D%/eng.h: %D%/stamp-mloop ; @true
32 %D%/stamp-mloop: $(srccom)/genmloop.sh %D%/mloop.in
33 $(AM_V_GEN)$(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \
34 -mono -scache -parallel-generic-write -parallel-only \
35 -cpu frvbf \
36 -infile $(srcdir)/%D%/mloop.in -outfile-prefix %D%/
37 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/eng.hin %D%/eng.h
38 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/mloop.cin %D%/mloop.c
39 $(AM_V_at)touch $@
41 MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS)