3 ## Copyright (C) 1996-2022 Free Software Foundation, Inc.
4 ## Written by Cygnus Support.
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
%_BUILT_SRC_FROM_IGEN
= \
36 $(%C
%_BUILT_SRC_FROM_IGEN
) \
39 ## This makes sure build tools are available before building the arch-subdirs.
40 SIM_ALL_RECURSIVE_DEPS
+= $(%C
%_BUILD_OUTPUTS
)
42 $(%C
%_BUILT_SRC_FROM_IGEN
): %D
%/stamp-igen
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
%/v850.igen
46 %C
%_IGEN_DC
= $(srcdir)/%D
%/v850-dc
47 %D
%/stamp-igen
: $(%C
%_IGEN_INSN
) $(%C
%_IGEN_DC
) $(IGEN
)
48 $(AM_V_GEN
)$(IGEN_RUN
) \
50 -G gen-direct-access \
55 -n icache.h
-hc
%D
%/tmp-icache.h \
56 -n icache.c
-c
%D
%/tmp-icache.c \
57 -n semantics.h
-hs
%D
%/tmp-semantics.h \
58 -n semantics.c
-s
%D
%/tmp-semantics.c \
59 -n idecode.h
-hd
%D
%/tmp-idecode.h \
60 -n idecode.c
-d
%D
%/tmp-idecode.c \
61 -n model.h
-hm
%D
%/tmp-model.h \
62 -n model.c
-m
%D
%/tmp-model.c \
63 -n support.h
-hf
%D
%/tmp-support.h \
64 -n support.c
-f
%D
%/tmp-support.c \
65 -n itable.h
-ht
%D
%/tmp-itable.h \
66 -n itable.c
-t
%D
%/tmp-itable.c \
67 -n engine.h
-he
%D
%/tmp-engine.h \
68 -n engine.c
-e
%D
%/tmp-engine.c \
69 -n irun.c
-r
%D
%/tmp-irun.c
70 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
%D
%/tmp-icache.h
%D
%/icache.h
71 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
%D
%/tmp-icache.c
%D
%/icache.c
72 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
%D
%/tmp-idecode.h
%D
%/idecode.h
73 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
%D
%/tmp-idecode.c
%D
%/idecode.c
74 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
%D
%/tmp-semantics.h
%D
%/semantics.h
75 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
%D
%/tmp-semantics.c
%D
%/semantics.c
76 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
%D
%/tmp-model.h
%D
%/model.h
77 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
%D
%/tmp-model.c
%D
%/model.c
78 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
%D
%/tmp-support.h
%D
%/support.h
79 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
%D
%/tmp-support.c
%D
%/support.c
80 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
%D
%/tmp-itable.h
%D
%/itable.h
81 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
%D
%/tmp-itable.c
%D
%/itable.c
82 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
%D
%/tmp-engine.h
%D
%/engine.h
83 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
%D
%/tmp-engine.c
%D
%/engine.c
84 $(AM_V_at
)$(SHELL
) $(srcroot
)/move-if-change
%D
%/tmp-irun.c
%D
%/irun.c
87 MOSTLYCLEANFILES
+= $(%C
%_BUILD_OUTPUTS
)