]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/bpf/local.mk
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / sim / bpf / local.mk
1 ## See sim/Makefile.am
2 ##
3 ## Copyright (C) 2020-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%_BUILD_OUTPUTS = \
27 %D%/eng-le.h \
28 %D%/mloop-le.c \
29 %D%/stamp-mloop-le \
30 %D%/eng-be.h \
31 %D%/mloop-be.c \
32 %D%/stamp-mloop-be
33
34 ## This makes sure build tools are available before building the arch-subdirs.
35 SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
36
37 %D%/mloop-le.c %D%/eng-le.h: %D%/stamp-mloop-le ; @true
38 %D%/stamp-mloop-le: $(srccom)/genmloop.sh %D%/mloop.in
39 $(AM_V_GEN)$(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \
40 -mono -scache -prefix bpfbf_ebpfle -cpu bpfbf \
41 -infile $(srcdir)/%D%/mloop.in \
42 -outfile-prefix %D%/ -outfile-suffix -le
43 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/eng-le.hin %D%/eng-le.h
44 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/mloop-le.cin %D%/mloop-le.c
45 $(AM_V_at)touch $@
46
47 %D%/mloop-be.c %D%/eng-be.h: %D%/stamp-mloop-be ; @true
48 %D%/stamp-mloop-be: $(srccom)/genmloop.sh %D%/mloop.in
49 $(AM_V_GEN)$(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \
50 -mono -scache -prefix bpfbf_ebpfbe -cpu bpfbf \
51 -infile $(srcdir)/%D%/mloop.in \
52 -outfile-prefix %D%/ -outfile-suffix -be
53 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/eng-be.hin %D%/eng-be.h
54 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/mloop-be.cin %D%/mloop-be.c
55 $(AM_V_at)touch $@
56
57 MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS)