Update copyright year range in header of all files managed by GDB
[binutils-gdb.git] / sim / lm32 / local.mk
blob510d34b2b9b07e129b6bc704cd5360f1ad075a63
1 ## See sim/Makefile.am
2 ##
3 ## Copyright (C) 2009-2023 Free Software Foundation, Inc.
4 ## Contributed by Jon Beniston <jon@beniston.com>
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 = lm32cpu lm32timer lm32uart
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
35 ## This makes sure build tools are available before building the arch-subdirs.
36 SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
38 ## FIXME: Use of `mono' is wip.
39 %D%/mloop.c %D%/eng.h: %D%/stamp-mloop ; @true
40 %D%/stamp-mloop: $(srccom)/genmloop.sh %D%/mloop.in
41 $(AM_V_GEN)$(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \
42 -mono -fast -pbb -switch sem-switch.c \
43 -cpu lm32bf \
44 -infile $(srcdir)/%D%/mloop.in -outfile-prefix %D%/
45 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/eng.hin %D%/eng.h
46 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/mloop.cin %D%/mloop.c
47 $(AM_V_at)touch $@
49 MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS)