3 ## Copyright (C) 1996-2024 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 AM_CPPFLAGS_
%C
% = -DWITH_TARGET_WORD_BITSIZE
=32 -DWITH_TARGET_WORD_MSB
=31
21 nodist_
%C
%_libsim_a_SOURCES
= \
23 %C
%_libsim_a_SOURCES
= \
24 $(common_libcommon_a_SOURCES
)
25 %C
%_libsim_a_LIBADD
= \
26 $(patsubst %,%D
%/%,$(SIM_NEW_COMMON_OBJS
)) \
27 $(patsubst %,%D
%/dv-
%.o
,$(SIM_HW_DEVICES
)) \
38 $(%C
%_libsim_a_OBJECTS
) $(%C
%_libsim_a_LIBADD
): %D
%/hw-config.h
40 noinst_LIBRARIES
+= %D
%/libsim.a
42 ## Override wildcards that trigger common/modules.c to be (incorrectly) used.
43 %D
%/modules.o
: %D
%/modules.c
45 %D
%/%.o
: common
/%.c
; $(SIM_COMPILE
)
46 -@am__include@
%D
%/$(DEPDIR
)/*.Po
54 noinst_PROGRAMS
+= %D
%/run
56 ## List all generated headers to help Automake dependency tracking.
65 %C
%_BUILT_SRC_FROM_IGEN
= \
82 $(%C
%_BUILT_SRC_FROM_IGEN
) \
85 ## Generating modules.c requires all sources to scan.
86 %D
%/modules.c
: |
$(%C
%_BUILD_OUTPUTS
)
88 $(%C
%_BUILT_SRC_FROM_IGEN
): %D
%/stamp-igen
90 %C
%_IGEN_TRACE
= # -G omit-line-numbers # -G trace-rule-selection -G trace-rule-rejection -G trace-entries
91 %C
%_IGEN_INSN
= $(srcdir)/%D
%/v850.igen
92 %C
%_IGEN_DC
= $(srcdir)/%D
%/v850.dc
93 %D
%/stamp-igen
: $(%C
%_IGEN_INSN
) $(%C
%_IGEN_DC
) $(IGEN
)
94 $(AM_V_GEN
)$(IGEN_RUN
) \
96 -G gen-direct-access \
101 -n icache.h
-hc
%D
%/icache.h \
102 -n icache.c
-c
%D
%/icache.c \
103 -n semantics.h
-hs
%D
%/semantics.h \
104 -n semantics.c
-s
%D
%/semantics.c \
105 -n idecode.h
-hd
%D
%/idecode.h \
106 -n idecode.c
-d
%D
%/idecode.c \
107 -n model.h
-hm
%D
%/model.h \
108 -n model.c
-m
%D
%/model.c \
109 -n support.h
-hf
%D
%/support.h \
110 -n support.c
-f
%D
%/support.c \
111 -n itable.h
-ht
%D
%/itable.h \
112 -n itable.c
-t
%D
%/itable.c \
113 -n engine.h
-he
%D
%/engine.h \
114 -n engine.c
-e
%D
%/engine.c \
115 -n irun.c
-r
%D
%/irun.c
118 MOSTLYCLEANFILES
+= $(%C
%_BUILD_OUTPUTS
)