]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/sh64/Makefile.in
sim: move sim-engine.o/sim-hrw.o to the common list
[thirdparty/binutils-gdb.git] / sim / sh64 / Makefile.in
CommitLineData
cbb38b47 1# Makefile template for Configure for the SH64 simulator
32d0add0 2# Copyright (C) 2000-2015 Free Software Foundation, Inc.
cbb38b47
BE
3# Contributed by Red Hat, Inc.
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
4744ac1b 7# the Free Software Foundation; either version 3 of the License, or
cbb38b47
BE
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
4744ac1b
JB
15# You should have received a copy of the GNU General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>.
cbb38b47
BE
17
18## COMMON_PRE_CONFIG_FRAG
19
20SH64_OBJS = sh64.o cpu.o sh-desc.o \
21 decode-compact.o sem-compact.o mloop-compact.o \
22 decode-media.o sem-media.o mloop-media.o
23
cbb38b47
BE
24SIM_OBJS = \
25 $(SIM_NEW_COMMON_OBJS) \
26 sim-cpu.o \
27 sim-hload.o \
cbb38b47
BE
28 sim-model.o \
29 sim-reg.o \
30 cgen-utils.o cgen-trace.o cgen-scache.o \
122bbfb5 31 cgen-run.o sim-reason.o sim-stop.o \
cbb38b47 32 sim-if.o arch.o \
8a863336 33 $(SH64_OBJS)
cbb38b47
BE
34
35# Extra headers included by sim-main.h.
36SIM_EXTRA_DEPS = \
37 $(CGEN_INCLUDE_DEPS) \
62d08856 38 arch.h cpuall.h sh64-sim.h sh-desc.h sh-opc.h
cbb38b47
BE
39
40SIM_EXTRA_CFLAGS =
41
cbb38b47
BE
42SIM_EXTRA_CLEAN = sh64-clean
43
44## COMMON_POST_CONFIG_FRAG
45
46arch = sh
47
48sim-if.o: sim-if.c $(SIM_MAIN_DEPS) $(srcdir)/../common/sim-core.h
49
50arch.o: arch.c $(SIM_MAIN_DEPS)
51
62d08856
DE
52sh-desc.o: sh-desc.c $(SIM_MAIN_DEPS)
53
cbb38b47
BE
54devices.o: devices.c $(SIM_MAIN_DEPS)
55
56# SH64 objs
57
58SH64_INCLUDE_DEPS = \
59 $(CGEN_MAIN_CPU_DEPS) \
60 cpu.h decode.h \
61 decode-compact.h eng-compact.h defs-compact.h \
62 decode-media.h eng-media.h defs-media.h
63
64sh64.o: sh64.c $(SH64_INCLUDE_DEPS)
65
66mloop-compact.o: mloop-compact.c sem-compact-switch.c $(SH64_INCLUDE_DEPS)
67 $(CC) -c $(srcdir)/mloop-compact.c $(ALL_CFLAGS) -DWANT_ISA_COMPACT
68
69mloop-media.o: mloop-media.c sem-media-switch.c $(SH64_INCLUDE_DEPS)
70 $(CC) -c $(srcdir)/mloop-media.c $(ALL_CFLAGS) -DWANT_ISA_MEDIA
71
62d08856 72cpu.o: $(srcdir)/cpu.c $(SH64_INCLUDE_DEPS)
cbb38b47
BE
73
74decode-compact.o: decode-compact.c $(SH64_INCLUDE_DEPS)
75 $(CC) -c $(srcdir)/decode-compact.c $(ALL_CFLAGS) -DWANT_ISA_COMPACT
76
77sem-compact.o: sem-compact.c $(SH64_INCLUDE_DEPS)
78 $(CC) -c $(srcdir)/sem-compact.c $(ALL_CFLAGS) -DWANT_ISA_COMPACT
79
80decode-media.o: decode-media.c $(SH64_INCLUDE_DEPS)
81 $(CC) -c $(srcdir)/decode-media.c $(ALL_CFLAGS) -DWANT_ISA_MEDIA
82
83sem-media.o: sem-media.c $(SH64_INCLUDE_DEPS)
84 $(CC) -c $(srcdir)/sem-media.c $(ALL_CFLAGS) -DWANT_ISA_MEDIA
85
86sh64-clean:
87 rm -f tmp-*
88 rm -f stamp-defs-{compact,media}
89 rm -f stamp-arch stamp-desc stamp-cpu stamp-decode-{compact,media}
90
91# cgen support, enable with --enable-cgen-maint
92CGEN_MAINT = ; @true
93# The following line is commented in or out depending upon --enable-cgen-maint.
94@CGEN_MAINT@CGEN_MAINT =
95
62d08856 96# Utility rules for humans.
cbb38b47 97.PHONY: stamp-all stamp-decode stamp-defs
cbb38b47
BE
98stamp-all: stamp-arch stamp-desc stamp-cpu stamp-decode stamp-defs
99stamp-decode: stamp-decode-compact stamp-decode-media
100stamp-defs: stamp-defs-compact stamp-defs-media
101
62d08856
DE
102# NOTE: Generated source files are specified as full paths,
103# e.g. $(srcdir)/arch.c, because make may decide the files live
104# in objdir otherwise.
105
c7e628df
DB
106stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(CGEN_CPU_DIR)/sh.cpu $(CGEN_CPU_DIR)/sh.opc $(CGEN_CPU_DIR)/sh64-media.cpu $(CGEN_CPU_DIR)/sh64-compact.cpu $(CGEN_CPU_DIR)/sh-sim.cpu Makefile
107 $(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=all isa=compact,media archfile=$(CGEN_CPU_DIR)/sh.cpu \
cbb38b47
BE
108 FLAGS="with-scache"
109 touch $@
62d08856 110$(srcdir)/arch.h $(srcdir)/arch.c $(srcdir)/cpuall.h: $(CGEN_MAINT) stamp-arch
cbb38b47
BE
111 @true
112
c7e628df
DB
113stamp-desc: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_CPU_DIR)/sh.cpu $(CGEN_CPU_DIR)/sh.opc $(CGEN_CPU_DIR)/sh64-compact.cpu $(CGEN_CPU_DIR)/sh64-media.cpu $(CGEN_CPU_DIR)/sh-sim.cpu Makefile
114 $(MAKE) cgen-desc $(CGEN_FLAGS_TO_PASS) cpu=sh64 mach=all isa=compact,media archfile=$(CGEN_CPU_DIR)/sh.cpu
cbb38b47 115 touch $@
62d08856 116$(srcdir)/sh-desc.h $(srcdir)/sh-desc.c $(srcdir)/sh-opc.h: $(CGEN_MAINT) stamp-desc
cbb38b47
BE
117 @true
118
c7e628df 119stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_CPU_DIR)/sh.cpu $(CGEN_CPU_DIR)/sh.opc $(CGEN_CPU_DIR)/sh64-compact.cpu $(CGEN_CPU_DIR)/sh64-media.cpu $(CGEN_CPU_DIR)/sh-sim.cpu Makefile
cbb38b47 120 $(MAKE) cgen-cpu $(CGEN_FLAGS_TO_PASS) \
c7e628df 121 cpu=sh64 mach=sh4,sh5 isa=compact,media FLAGS="with-multiple-isa with-scache" archfile=$(CGEN_CPU_DIR)/sh.cpu
cbb38b47
BE
122 rm -f $(srcdir)/model.c
123 touch $@
62d08856 124$(srcdir)/cpu.h $(srcdir)/cpu.c: $(CGEN_MAINT) stamp-cpu
cbb38b47
BE
125 @true
126
c7e628df 127stamp-defs-compact: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_CPU_DIR)/sh.cpu $(CGEN_CPU_DIR)/sh.opc $(CGEN_CPU_DIR)/sh64-compact.cpu $(CGEN_CPU_DIR)/sh-sim.cpu Makefile
cbb38b47 128 $(MAKE) cgen-defs $(CGEN_FLAGS_TO_PASS) \
c7e628df 129 cpu=sh64 mach=sh5 isa=compact FLAGS="with-scache" SUFFIX="-compact" archfile=$(CGEN_CPU_DIR)/sh.cpu
cbb38b47 130 touch $@
62d08856 131$(srcdir)/defs-compact.h: $(CGEN_MAINT) stamp-defs-compact
cbb38b47
BE
132 @true
133
c7e628df 134stamp-defs-media: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_CPU_DIR)/sh.cpu $(CGEN_CPU_DIR)/sh.opc $(CGEN_CPU_DIR)/sh64-media.cpu $(CGEN_CPU_DIR)/sh-sim.cpu Makefile
cbb38b47 135 $(MAKE) cgen-defs $(CGEN_FLAGS_TO_PASS) \
c7e628df 136 cpu=sh64 mach=sh5 isa=media FLAGS="with-scache" SUFFIX="-media" archfile=$(CGEN_CPU_DIR)/sh.cpu
cbb38b47 137 touch $@
62d08856 138$(srcdir)/defs-media.h: $(CGEN_MAINT) stamp-defs-media
cbb38b47 139
c7e628df 140stamp-decode-compact: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CGEN_CPU_DIR)/sh.cpu $(CGEN_CPU_DIR)/sh.opc $(CGEN_CPU_DIR)/sh64-compact.cpu $(CGEN_CPU_DIR)/sh-sim.cpu Makefile
cbb38b47 141 $(MAKE) cgen-decode $(CGEN_FLAGS_TO_PASS) \
c7e628df
DB
142 cpu=sh64 mach=sh5 isa=compact FLAGS="with-scache" SUFFIX="-compact" EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)" \
143 archfile=$(CGEN_CPU_DIR)/sh.cpu
cbb38b47 144 touch $@
62d08856 145$(srcdir)/sem-compact.c $(srcdir)/sem-compact-switch.c $(srcdir)/decode-compact.c $(srcdir)/decode-compact.h: $(CGEN_MAINT) stamp-decode-compact
cbb38b47
BE
146 @true
147
c7e628df 148stamp-decode-media: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CGEN_CPU_DIR)/sh.cpu $(CGEN_CPU_DIR)/sh.opc $(CGEN_CPU_DIR)/sh64-media.cpu $(CGEN_CPU_DIR)/sh-sim.cpu Makefile
cbb38b47 149 $(MAKE) cgen-decode $(CGEN_FLAGS_TO_PASS) \
c7e628df
DB
150 cpu=sh64 mach=sh5 isa=media FLAGS="with-scache" SUFFIX="-media" EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)" \
151 archfile=$(CGEN_CPU_DIR)/sh.cpu
cbb38b47 152 touch $@
62d08856 153$(srcdir)/sem-media.c $(srcdir)/sem-media-switch.c $(srcdir)/decode-media.c $(srcdir)/decode-media.h: $(CGEN_MAINT) stamp-decode-media
cbb38b47 154 @true