2003-08-30 00:35:47 +08:00
|
|
|
# Makefile template for Configure for the frv simulator
|
2022-01-01 22:56:03 +08:00
|
|
|
# Copyright (C) 1998-2022 Free Software Foundation, Inc.
|
2003-08-30 00:35:47 +08:00
|
|
|
# Contributed by Red Hat.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
2007-08-24 22:30:15 +08:00
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
2003-08-30 00:35:47 +08:00
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
2007-08-24 22:30:15 +08:00
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2003-08-30 00:35:47 +08:00
|
|
|
|
|
|
|
## COMMON_PRE_CONFIG_FRAG
|
|
|
|
|
|
|
|
FRV_OBJS = frv.o cpu.o decode.o sem.o model.o mloop.o cgen-par.o
|
|
|
|
|
|
|
|
SIM_OBJS = \
|
|
|
|
$(SIM_NEW_COMMON_OBJS) \
|
|
|
|
cgen-utils.o cgen-trace.o cgen-scache.o cgen-fpu.o cgen-accfp.o \
|
2015-11-16 12:06:42 +08:00
|
|
|
cgen-run.o \
|
2003-08-30 00:35:47 +08:00
|
|
|
sim-if.o arch.o \
|
|
|
|
$(FRV_OBJS) \
|
|
|
|
traps.o interrupts.o memory.o cache.o pipeline.o \
|
2004-03-01 18:11:46 +08:00
|
|
|
profile.o profile-fr400.o profile-fr450.o profile-fr500.o profile-fr550.o options.o \
|
2015-12-26 02:19:07 +08:00
|
|
|
reset.o registers.o
|
2003-08-30 00:35:47 +08:00
|
|
|
|
|
|
|
# Extra headers included by sim-main.h.
|
|
|
|
SIM_EXTRA_DEPS = \
|
|
|
|
$(CGEN_INCLUDE_DEPS) \
|
|
|
|
arch.h cpuall.h frv-sim.h $(srcdir)/../../opcodes/frv-desc.h cache.h \
|
Remove and modernize dependencies in sim
Some spots in the sim build used manual dependencies, and some spots
did a compilation by hand but did not use the automatic dependency
tracking code. This patch fixes these spots.
I didn't touch ppc, because it doesn't use the common Makefile code.
I also didn't touch objects that are for the build machine, because
automatic dependencies don't work for those.
sim/arm/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (armemu26.o, armemu32.o): Use COMPILE and
POSTCOMPILE.
sim/bpf/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (arch.o, cpu.o, sim-if.o, traps.o): Remove.
(mloop-le.o, mloop-be.o, decode-le.o, decode-be.o, sim-le.o)
(sim-be.o): Use COMPILE and POSTCOMPILE.
(SIM_EXTRA_DEPS): Add eng-le.h, eng-be.h.
sim/cr16/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (SIM_EXTRA_DEPS): New variable.
(simops.o): Remove.
sim/cris/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (sim-if.o, dv-cris.o, dv-rv.o, arch.o, traps.o)
(devices.o, crisv10f.o, mloopv10f.o, cpuv10.o, decodev10.o)
(modelv10.o, crisv32f.o, mloopv32f.o, cpuv32.o, decodev32.o)
(modelv32.o): Remove.
(SIM_EXTRA_DEPS): Add engv10.h.
sim/d10v/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (SIM_EXTRA_DEPS): New variable.
(simops.o): Remove.
sim/frv/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (arch.o, devices.o, frv.o, traps.o, pipeline.o)
(interrupts.o, memory.o, cache.o, options.o, reset.o)
(registers.o, profile.o, profile-fr400.o, profile-fr450.o)
(profile-fr500.o, profile-fr550.o, sim-if.o, mloop.o, cpu.o)
(decode.o, sem.o, model.o): Remove.
(SIM_EXTRA_DEPS): Add eng.h.
sim/iq2000/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (sim-if.o): Remove.
(arch.o): Use COMPILE and POSTCOMPILE.
(devices.o, iq2000.o, mloop.o, cpu.o, decode.o, sem.o, model.o):
Remove.
(SIM_EXTRA_DEPS): Add eng.h.
sim/lm32/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (arch.o, traps.o, sim-if.o, lm32.o, mloop.o)
(cpu.o, decode.o, sem.o, model.o): Remove.
(SIM_EXTRA_DEPS): Add eng.h.
sim/m32r/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (sim-if.o, arch.o, traps.o, traps-linux.o)
(devices.o, m32r.o, mloop.o, cpu.o, decode.o, sem.o, model.o)
(m32rx.o, mloopx.o, cpux.o, decodex.o, semx.o, modelx.o)
(m32r2.o, mloop2.o, cpu2.o, decode2.o, sem2.o, model2.o): Remove.
(SIM_EXTRA_DEPS): Add eng.h, engx.h, eng2.h.
sim/m68hc11/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (interp.o): Remove.
sim/mips/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (interp.o, m16run.o, micromipsrun.o, multi-run.o):
Remove.
(SIM_EXTRA_DEPS): New variable.
sim/mn10300/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (interp.o): Remove.
(idecode.o op_utils.o semantics.o): Remove.
sim/or1k/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (mloop.o, arch.o, cpu.o, decode.o, sem.o)
(sem-switch.o, model.o): Remove.
sim/rl78/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (err.o, fpu.o, gdb-if.o, load.o, main.o, mem.o)
(reg.o, rl78.o): Remove.
sim/rx/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (err.o, fpu.o, gdb-if.o, load.o, main.o, mem.o)
(misc.o, reg.o, rx.o, syscalls.o, trace.o): Remove.
sim/sh/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (SIM_EXTRA_DEPS): New variable.
(interp.o): Remove.
sim/v850/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* Makefile.in (interp.o, simops.o, semantics.o): Remove.
2021-04-23 09:51:54 +08:00
|
|
|
registers.h profile.h eng.h \
|
2003-08-30 00:35:47 +08:00
|
|
|
$(sim-options_h)
|
|
|
|
|
2021-06-29 10:23:37 +08:00
|
|
|
SIM_EXTRA_CFLAGS = @SIM_FRV_TRAPDUMP_FLAGS@
|
2003-08-30 00:35:47 +08:00
|
|
|
|
|
|
|
SIM_EXTRA_CLEAN = frv-clean
|
|
|
|
|
2021-11-01 12:56:35 +08:00
|
|
|
# Some modules don't build cleanly yet.
|
|
|
|
memory.o sem.o: SIM_WERROR_CFLAGS =
|
2021-06-18 14:14:52 +08:00
|
|
|
|
2003-08-30 00:35:47 +08:00
|
|
|
## COMMON_POST_CONFIG_FRAG
|
|
|
|
|
|
|
|
arch = frv
|
|
|
|
|
|
|
|
# FRV objs
|
|
|
|
|
|
|
|
FRVBF_INCLUDE_DEPS = \
|
|
|
|
$(CGEN_MAIN_CPU_DEPS) \
|
|
|
|
$(SIM_EXTRA_DEPS) \
|
|
|
|
cpu.h decode.h eng.h
|
|
|
|
|
|
|
|
frv-clean:
|
|
|
|
rm -f tmp-*
|
|
|
|
rm -f stamp-arch stamp-cpu
|
|
|
|
|
|
|
|
stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(srcdir)/../../cpu/frv.cpu
|
|
|
|
$(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=all \
|
2003-09-09 01:25:35 +08:00
|
|
|
archfile=$(srcdir)/../../cpu/frv.cpu \
|
2003-08-30 00:35:47 +08:00
|
|
|
FLAGS="with-scache"
|
2021-10-31 12:42:35 +08:00
|
|
|
$(SILENCE) touch $@
|
2003-08-30 00:35:47 +08:00
|
|
|
arch.h arch.c cpuall.h: $(CGEN_MAINT) stamp-arch
|
|
|
|
# @true
|
|
|
|
|
|
|
|
stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(srcdir)/../../cpu/frv.cpu
|
|
|
|
$(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
|
2004-03-01 18:11:46 +08:00
|
|
|
cpu=frvbf mach=frv,fr550,fr500,fr450,fr400,tomcat,simple SUFFIX= \
|
2003-09-09 01:25:35 +08:00
|
|
|
archfile=$(srcdir)/../../cpu/frv.cpu \
|
2003-08-30 00:35:47 +08:00
|
|
|
FLAGS="with-scache with-profile=fn with-generic-write with-parallel-only" \
|
|
|
|
EXTRAFILES="$(CGEN_CPU_SEM)"
|
2021-10-31 12:42:35 +08:00
|
|
|
$(SILENCE) touch $@
|
2003-08-30 00:35:47 +08:00
|
|
|
cpu.h sem.c model.c decode.c decode.h: $(CGEN_MAINT) stamp-cpu
|
|
|
|
# @true
|