]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/iq2000/local.mk
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / sim / iq2000 / local.mk
CommitLineData
de8a2781
MF
1## See sim/Makefile.am
2##
1d506c26 3## Copyright (C) 1998-2024 Free Software Foundation, Inc.
de8a2781
MF
4## Contributed by Red Hat.
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/>.
0a129eb1 18
72be276f
MF
19nodist_%C%_libsim_a_SOURCES = \
20 %D%/modules.c
eac2fbdc
MF
21%C%_libsim_a_SOURCES = \
22 $(common_libcommon_a_SOURCES)
1486f22b 23%C%_libsim_a_LIBADD = \
1486f22b
MF
24 $(patsubst %,%D%/%,$(SIM_NEW_COMMON_OBJS)) \
25 $(patsubst %,%D%/dv-%.o,$(SIM_HW_DEVICES)) \
1486f22b
MF
26 \
27 %D%/cgen-run.o \
28 %D%/cgen-scache.o \
29 %D%/cgen-trace.o \
30 %D%/cgen-utils.o \
31 \
32 %D%/arch.o \
33 %D%/cpu.o \
34 %D%/decode.o \
35 %D%/iq2000.o \
36 %D%/sem.o \
37 %D%/mloop.o \
38 %D%/model.o \
39 \
40 %D%/sim-if.o
41$(%C%_libsim_a_OBJECTS) $(%C%_libsim_a_LIBADD): %D%/hw-config.h
42
43noinst_LIBRARIES += %D%/libsim.a
44
109a0a7e
MF
45## Override wildcards that trigger common/modules.c to be (incorrectly) used.
46%D%/modules.o: %D%/modules.c
47
b36a89d1
MF
48%D%/%.o: common/%.c ; $(SIM_COMPILE)
49-@am__include@ %D%/$(DEPDIR)/*.Po
1486f22b 50
c0c25232
MF
51%C%_run_SOURCES =
52%C%_run_LDADD = \
53 %D%/nrun.o \
54 %D%/libsim.a \
55 $(SIM_COMMON_LIBS)
56
57noinst_PROGRAMS += %D%/run
58
80636a54
MF
59## List all generated headers to help Automake dependency tracking.
60BUILT_SOURCES += %D%/eng.h
0a129eb1 61%C%_BUILD_OUTPUTS = \
0a129eb1
MF
62 %D%/mloop.c \
63 %D%/stamp-mloop
64
ee3134d0 65## Generating modules.c requires all sources to scan.
437eeee9 66%D%/modules.c: | $(%C%_BUILD_OUTPUTS)
0a129eb1 67
de8a2781 68## FIXME: Use of `mono' is wip.
0a129eb1 69%D%/mloop.c %D%/eng.h: %D%/stamp-mloop ; @true
09d4e6bb
MF
70%D%/stamp-mloop: %D%/mloop.in $(srccom)/genmloop.sh
71 $(AM_V_GEN)$(CGEN_GEN_MLOOP) \
0a129eb1 72 -mono -fast -pbb -switch sem-switch.c \
09d4e6bb 73 -cpu iq2000bf
0a129eb1
MF
74 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/eng.hin %D%/eng.h
75 $(AM_V_at)$(SHELL) $(srcroot)/move-if-change %D%/mloop.cin %D%/mloop.c
76 $(AM_V_at)touch $@
77
7531822f 78CLEANFILES += %D%/eng.h
0a129eb1 79MOSTLYCLEANFILES += $(%C%_BUILD_OUTPUTS)
d5dd8f5d
MF
80
81## Target that triggers all cgen targets that works when --disable-cgen-maint.
82%D%/cgen: %D%/cgen-arch %D%/cgen-cpu-decode
83
84%D%/cgen-arch:
85 $(AM_V_GEN)mach=iq2000 FLAGS="with-scache with-profile=fn"; $(CGEN_GEN_ARCH)
e7ad52cd 86$(srcdir)/%D%/arch.h $(srcdir)/%D%/arch.c $(srcdir)/%D%/cpuall.h: @CGEN_MAINT@ %D%/cgen-arch
d5dd8f5d
MF
87
88%D%/cgen-cpu-decode:
89 $(AM_V_GEN)cpu=iq2000bf mach=iq2000 FLAGS="with-scache with-profile=fn" EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"; $(CGEN_GEN_CPU_DECODE)
e7ad52cd 90$(srcdir)/%D%/cpu.h $(srcdir)/%D%/sem.c $(srcdir)/%D%/sem-switch.c $(srcdir)/%D%/model.c $(srcdir)/%D%/decode.c $(srcdir)/%D%/decode.h: @CGEN_MAINT@ %D%/cgen-cpu-decode