]> Git Repo - binutils.git/blob - sim/lm32/local.mk
Automatic date update in version.in
[binutils.git] / sim / lm32 / local.mk
1 ## See sim/Makefile.am
2 ##
3 ## Copyright (C) 2009-2022 Free Software Foundation, Inc.
4 ## Contributed by Jon Beniston <[email protected]>
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/>.
18
19 %C%_run_SOURCES =
20 %C%_run_LDADD = \
21         %D%/nrun.o \
22         %D%/libsim.a \
23         $(SIM_COMMON_LIBS)
24
25 noinst_PROGRAMS += %D%/run
26
27 %C%_BUILD_OUTPUTS = \
28         %D%/eng.h \
29         %D%/mloop.c \
30         %D%/stamp-mloop
31
32 ## This makes sure build tools are available before building the arch-subdirs.
33 SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
34
35 ## FIXME: Use of `mono' is wip.
36 %D%/mloop.c %D%/eng.h: %D%/stamp-mloop ; @true
37 %D%/stamp-mloop: $(srccom)/genmloop.sh %D%/mloop.in
38         $(AM_V_GEN)$(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \
39                 -mono -fast -pbb -switch sem-switch.c \
40                 -cpu lm32bf \
41                 -infile $(srcdir)/%D%/mloop.in -outfile-prefix %D%/
42         $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/eng.hin %D%/eng.h
43         $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/mloop.cin %D%/mloop.c
44         $(AM_V_at)touch $@
45
46 MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS)
This page took 0.02611 seconds and 4 git commands to generate.