Remove path name from test case
[binutils-gdb.git] / sim / v850 / local.mk
1 ## See sim/Makefile.am
2 ##
3 ## Copyright (C) 1996-2023 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 AM_CPPFLAGS_%C% = -DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31
20
21 nodist_%C%_libsim_a_SOURCES = \
22 %D%/modules.c
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)) \
28 %D%/simops.o \
29 %D%/interp.o \
30 %D%/itable.o \
31 %D%/semantics.o \
32 %D%/idecode.o \
33 %D%/icache.o \
34 %D%/engine.o \
35 %D%/irun.o \
36 %D%/support.o \
37 %D%/sim-resume.o
38 $(%C%_libsim_a_OBJECTS) $(%C%_libsim_a_LIBADD): %D%/hw-config.h
39
40 noinst_LIBRARIES += %D%/libsim.a
41
42 ## Override wildcards that trigger common/modules.c to be (incorrectly) used.
43 %D%/modules.o: %D%/modules.c
44
45 %D%/%.o: common/%.c ; $(SIM_COMPILE)
46 -@am__include@ %D%/$(DEPDIR)/*.Po
47
48 %C%_run_SOURCES =
49 %C%_run_LDADD = \
50 %D%/nrun.o \
51 %D%/libsim.a \
52 $(SIM_COMMON_LIBS)
53
54 noinst_PROGRAMS += %D%/run
55
56 ## List all generated headers to help Automake dependency tracking.
57 BUILT_SOURCES += \
58 %D%/icache.h \
59 %D%/idecode.h \
60 %D%/semantics.h \
61 %D%/model.h \
62 %D%/support.h \
63 %D%/itable.h \
64 %D%/engine.h
65 %C%_BUILT_SRC_FROM_IGEN = \
66 %D%/icache.h \
67 %D%/icache.c \
68 %D%/idecode.h \
69 %D%/idecode.c \
70 %D%/semantics.h \
71 %D%/semantics.c \
72 %D%/model.h \
73 %D%/model.c \
74 %D%/support.h \
75 %D%/support.c \
76 %D%/itable.h \
77 %D%/itable.c \
78 %D%/engine.h \
79 %D%/engine.c \
80 %D%/irun.c
81 %C%_BUILD_OUTPUTS = \
82 $(%C%_BUILT_SRC_FROM_IGEN) \
83 %D%/stamp-igen
84
85 ## Generating modules.c requires all sources to scan.
86 %D%/modules.c: | $(%C%_BUILD_OUTPUTS)
87
88 $(%C%_BUILT_SRC_FROM_IGEN): %D%/stamp-igen
89
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) \
95 $(%C%_IGEN_TRACE) \
96 -G gen-direct-access \
97 -G gen-zero-r0 \
98 -i $(%C%_IGEN_INSN) \
99 -o $(%C%_IGEN_DC) \
100 -x \
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
116 $(AM_V_at)touch $@
117
118 MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS)