]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/or1k/local.mk
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / sim / or1k / local.mk
1 ## See sim/Makefile.am
2 ##
3 ## Copyright (C) 2017-2023 Free Software Foundation, Inc.
4 ##
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.
9 ##
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.
14 ##
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/>.
17
18 %C%_run_SOURCES =
19 %C%_run_LDADD = \
20 %D%/nrun.o \
21 %D%/libsim.a \
22 $(SIM_COMMON_LIBS)
23
24 noinst_PROGRAMS += %D%/run
25
26 %C%docdir = $(docdir)/%C%
27 %C%doc_DATA = %D%/README
28
29 %C%_BUILD_OUTPUTS = \
30 %D%/eng.h \
31 %D%/mloop.c \
32 %D%/stamp-mloop
33
34 ## This makes sure build tools are available before building the arch-subdirs.
35 SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
36
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 \
42 -cpu or1k32bf \
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
46 $(AM_V_at)touch $@
47
48 MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS)