Update copyright year range in header of all files managed by GDB
[binutils-gdb.git] / sim / m32r / local.mk
blob15585cd5253998dcb819701c180d2753798feb03
1 ## See sim/Makefile.am
2 ##
3 ## Copyright (C) 1996-2023 Free Software Foundation, Inc.
4 ## Contributed by Cygnus Support.
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%_run_SOURCES =
20 %C%_run_LDADD = \
21 %D%/nrun.o \
22 %D%/libsim.a \
23 $(SIM_COMMON_LIBS)
25 noinst_PROGRAMS += %D%/run
27 %C%_SIM_EXTRA_HW_DEVICES = m32r_cache m32r_uart
28 AM_MAKEFLAGS += %C%_SIM_EXTRA_HW_DEVICES="$(%C%_SIM_EXTRA_HW_DEVICES)"
30 %C%_BUILD_OUTPUTS = \
31 %D%/eng.h \
32 %D%/mloop.c \
33 %D%/stamp-mloop \
34 %D%/engx.h \
35 %D%/mloopx.c \
36 %D%/stamp-mloop-x \
37 %D%/eng2.h \
38 %D%/mloop2.c \
39 %D%/stamp-mloop-2
41 ## This makes sure build tools are available before building the arch-subdirs.
42 SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
44 ## FIXME: Use of `mono' is wip.
45 %D%/mloop.c %D%/eng.h: %D%/stamp-mloop ; @true
46 %D%/stamp-mloop: $(srccom)/genmloop.sh %D%/mloop.in
47 $(AM_V_GEN)$(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \
48 -mono -fast -pbb -switch sem-switch.c \
49 -cpu m32rbf \
50 -infile $(srcdir)/%D%/mloop.in -outfile-prefix %D%/
51 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/eng.hin %D%/eng.h
52 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/mloop.cin %D%/mloop.c
53 $(AM_V_at)touch $@
55 ## FIXME: Use of `mono' is wip.
56 %D%/mloopx.c %D%/engx.h: %D%/stamp-mloop ; @true
57 %D%/stamp-mloop-x: $(srccom)/genmloop.sh %D%/mloop.in
58 $(AM_V_GEN)$(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \
59 -mono -no-fast -pbb -parallel-write -switch semx-switch.c \
60 -cpu m32rxf \
61 -infile $(srcdir)/%D%/mloopx.in -outfile-prefix %D%/ -outfile-suffix x
62 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/engx.hin %D%/engx.h
63 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/mloopx.cin %D%/mloopx.c
64 $(AM_V_at)touch $@
66 ## FIXME: Use of `mono' is wip.
67 %D%/mloop2.c %D%/eng2.h: %D%/stamp-mloop ; @true
68 %D%/stamp-mloop-2: $(srccom)/genmloop.sh %D%/mloop.in
69 $(AM_V_GEN)$(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \
70 -mono -no-fast -pbb -parallel-write -switch sem2-switch.c \
71 -cpu m32r2f \
72 -infile $(srcdir)/%D%/mloop2.in -outfile-prefix %D%/ -outfile-suffix 2
73 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/eng2.hin %D%/eng2.h
74 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/mloop2.cin %D%/mloop2.c
75 $(AM_V_at)touch $@
77 MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS)