3 ## Copyright (C) 1996-2023 Free Software Foundation, Inc.
4 ## Contributed by Cygnus Support.
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/>.
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)"
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 \
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
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 \
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
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 \
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
77 MOSTLYCLEANFILES
+= $(%C
%_BUILD_OUTPUTS
)