]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/m32r/local.mk
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / sim / m32r / local.mk
CommitLineData
de8a2781
MF
1## See sim/Makefile.am
2##
213516ef 3## Copyright (C) 1996-2023 Free Software Foundation, Inc.
de8a2781
MF
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.
10##
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.
15##
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/>.
0a129eb1 18
c0c25232
MF
19%C%_run_SOURCES =
20%C%_run_LDADD = \
21 %D%/nrun.o \
22 %D%/libsim.a \
23 $(SIM_COMMON_LIBS)
24
25noinst_PROGRAMS += %D%/run
26
3d042117
MF
27%C%_SIM_EXTRA_HW_DEVICES = m32r_cache m32r_uart
28AM_MAKEFLAGS += %C%_SIM_EXTRA_HW_DEVICES="$(%C%_SIM_EXTRA_HW_DEVICES)"
29
0a129eb1
MF
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
40
de8a2781 41## This makes sure build tools are available before building the arch-subdirs.
0a129eb1
MF
42SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
43
de8a2781 44## FIXME: Use of `mono' is wip.
0a129eb1
MF
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 $@
54
de8a2781 55## FIXME: Use of `mono' is wip.
0a129eb1
MF
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 $@
65
de8a2781 66## FIXME: Use of `mono' is wip.
0a129eb1
MF
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 $@
76
77MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS)