3 ## Copyright (C) 2017-2023 Free Software Foundation, Inc.
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; either version 3 of the License, or
8 ## (at your option) any later version.
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ## GNU General Public License for more details.
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
24 noinst_PROGRAMS
+= %D
%/run
26 %C
%docdir
= $(docdir
)/%C
%
27 %C
%doc_DATA
= %D
%/README
34 ## This makes sure build tools are available before building the arch-subdirs.
35 SIM_ALL_RECURSIVE_DEPS
+= $(%C
%_BUILD_OUTPUTS
)
37 ## FIXME: Use of `mono' is wip.
38 %D
%/mloop.c
%D
%/eng.h
: %D
%/stamp-mloop
; @true
39 %D
%/stamp-mloop
: $(srccom
)/genmloop.sh
%D
%/mloop.in
40 $(AM_V_GEN
)$(SHELL
) $(srccom
)/genmloop.sh
-shell $(SHELL
) \
41 -mono
-fast
-pbb
-switch sem-switch.c \
43 -infile
$(srcdir)/%D
%/mloop.in
-outfile-prefix
%D
%/
44 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
%D
%/eng.hin
%D
%/eng.h
45 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
%D
%/mloop.cin
%D
%/mloop.c
48 MOSTLYCLEANFILES
+= $(%C
%_BUILD_OUTPUTS
)