]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/mn10300/local.mk
sim: run: move linking into top-level
[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%_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%_BUILT_SRC_FROM_IGEN = \
28 %D%/icache.h \
29 %D%/icache.c \
30 %D%/idecode.h \
31 %D%/idecode.c \
32 %D%/semantics.h \
33 %D%/semantics.c \
34 %D%/model.h \
35 %D%/model.c \
36 %D%/support.h \
37 %D%/support.c \
38 %D%/itable.h \
39 %D%/itable.c \
40 %D%/engine.h \
41 %D%/engine.c \
42 %D%/irun.c
43 %C%_BUILD_OUTPUTS = \
44 $(%C%_BUILT_SRC_FROM_IGEN) \
45 %D%/stamp-igen
46
47 ## This makes sure build tools are available before building the arch-subdirs.
48 SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS)
49
50 $(%C%_BUILT_SRC_FROM_IGEN): %D%/stamp-igen
51
52 %C%_IGEN_TRACE = # -G omit-line-numbers # -G trace-rule-selection -G trace-rule-rejection -G trace-entries
53 %C%_IGEN_INSN = $(srcdir)/%D%/mn10300.igen
54 %C%_IGEN_INSN_INC = %D%/am33.igen %D%/am33-2.igen
55 %C%_IGEN_DC = $(srcdir)/%D%/mn10300.dc
56 %D%/stamp-igen: $(%C%_IGEN_INSN) $(%C%_IGEN_INSN_INC) $(%C%_IGEN_DC) $(IGEN)
57 $(AM_V_GEN)$(IGEN_RUN) \
58 $(%C%_IGEN_TRACE) \
59 -G gen-direct-access \
60 -M mn10300,am33 -G gen-multi-sim=am33 \
61 -M am33_2 \
62 -I $(srcdir)/%D% \
63 -i $(%C%_IGEN_INSN) \
64 -o $(%C%_IGEN_DC) \
65 -x \
66 -n icache.h -hc %D%/tmp-icache.h \
67 -n icache.c -c %D%/tmp-icache.c \
68 -n semantics.h -hs %D%/tmp-semantics.h \
69 -n semantics.c -s %D%/tmp-semantics.c \
70 -n idecode.h -hd %D%/tmp-idecode.h \
71 -n idecode.c -d %D%/tmp-idecode.c \
72 -n model.h -hm %D%/tmp-model.h \
73 -n model.c -m %D%/tmp-model.c \
74 -n support.h -hf %D%/tmp-support.h \
75 -n support.c -f %D%/tmp-support.c \
76 -n itable.h -ht %D%/tmp-itable.h \
77 -n itable.c -t %D%/tmp-itable.c \
78 -n engine.h -he %D%/tmp-engine.h \
79 -n engine.c -e %D%/tmp-engine.c \
80 -n irun.c -r %D%/tmp-irun.c
81 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-icache.h %D%/icache.h
82 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-icache.c %D%/icache.c
83 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-idecode.h %D%/idecode.h
84 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-idecode.c %D%/idecode.c
85 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-semantics.h %D%/semantics.h
86 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-semantics.c %D%/semantics.c
87 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-model.h %D%/model.h
88 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-model.c %D%/model.c
89 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-support.h %D%/support.h
90 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-support.c %D%/support.c
91 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-itable.h %D%/itable.h
92 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-itable.c %D%/itable.c
93 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-engine.h %D%/engine.h
94 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-engine.c %D%/engine.c
95 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/tmp-irun.c %D%/irun.c
96 $(AM_V_at)touch $@
97
98 MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS)