]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/mn10300/local.mk
Automatic Copyright Year update after running gdb/copyright.py
[thirdparty/binutils-gdb.git] / sim / mn10300 / local.mk
1 ## See sim/Makefile.am
2 ##
3 ## Copyright (C) 1996-2022 Free Software Foundation, Inc.
4 ## Written by Cygnus Support.
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%_BUILT_SRC_FROM_IGEN = \
20 %D%/icache.h \
21 %D%/icache.c \
22 %D%/idecode.h \
23 %D%/idecode.c \
24 %D%/semantics.h \
25 %D%/semantics.c \
26 %D%/model.h \
27 %D%/model.c \
28 %D%/support.h \
29 %D%/support.c \
30 %D%/itable.h \
31 %D%/itable.c \
32 %D%/engine.h \
33 %D%/engine.c \
34 %D%/irun.c
35 %C%_BUILD_OUTPUTS = \
36 $(%C%_BUILT_SRC_FROM_IGEN) \
37 %D%/stamp-igen
38
39 ## This makes sure build tools are available before building the arch-subdirs.
40 SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
41
42 $(%C%_BUILT_SRC_FROM_IGEN): %D%/stamp-igen
43
44 %C%_IGEN_TRACE = # -G omit-line-numbers # -G trace-rule-selection -G trace-rule-rejection -G trace-entries
45 %C%_IGEN_INSN = $(srcdir)/%D%/mn10300.igen
46 %C%_IGEN_INSN_INC = %D%/am33.igen %D%/am33-2.igen
47 %C%_IGEN_DC = $(srcdir)/%D%/mn10300.dc
48 %D%/stamp-igen: $(%C%_IGEN_INSN) $(%C%_IGEN_INSN_INC) $(%C%_IGEN_DC) $(IGEN)
49 $(AM_V_GEN)$(IGEN_RUN) \
50 $(%C%_IGEN_TRACE) \
51 -G gen-direct-access \
52 -M mn10300,am33 -G gen-multi-sim=am33 \
53 -M am33_2 \
54 -I $(srcdir)/%D% \
55 -i $(%C%_IGEN_INSN) \
56 -o $(%C%_IGEN_DC) \
57 -x \
58 -n icache.h -hc %D%/tmp-icache.h \
59 -n icache.c -c %D%/tmp-icache.c \
60 -n semantics.h -hs %D%/tmp-semantics.h \
61 -n semantics.c -s %D%/tmp-semantics.c \
62 -n idecode.h -hd %D%/tmp-idecode.h \
63 -n idecode.c -d %D%/tmp-idecode.c \
64 -n model.h -hm %D%/tmp-model.h \
65 -n model.c -m %D%/tmp-model.c \
66 -n support.h -hf %D%/tmp-support.h \
67 -n support.c -f %D%/tmp-support.c \
68 -n itable.h -ht %D%/tmp-itable.h \
69 -n itable.c -t %D%/tmp-itable.c \
70 -n engine.h -he %D%/tmp-engine.h \
71 -n engine.c -e %D%/tmp-engine.c \
72 -n irun.c -r %D%/tmp-irun.c
73 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-icache.h %D%/icache.h
74 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-icache.c %D%/icache.c
75 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-idecode.h %D%/idecode.h
76 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-idecode.c %D%/idecode.c
77 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-semantics.h %D%/semantics.h
78 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-semantics.c %D%/semantics.c
79 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-model.h %D%/model.h
80 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-model.c %D%/model.c
81 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-support.h %D%/support.h
82 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-support.c %D%/support.c
83 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-itable.h %D%/itable.h
84 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-itable.c %D%/itable.c
85 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-engine.h %D%/engine.h
86 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-engine.c %D%/engine.c
87 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-irun.c %D%/irun.c
88 $(AM_V_at)touch $@
89
90 MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS)