[ gas/testsuite/ChangeLog ]
[deliverable/binutils-gdb.git] / sim / sh64 / Makefile.in
CommitLineData
cbb38b47
BE
1# Makefile template for Configure for the SH64 simulator
2# Copyright (C) 2000 Free Software Foundation, Inc.
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
7# the Free Software Foundation; either version 2 of the License, or
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#
15# You should have received a copy of the GNU General Public License along
16# with this program; if not, write to the Free Software Foundation, Inc.,
17# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19## COMMON_PRE_CONFIG_FRAG
20
21SH64_OBJS = sh64.o cpu.o sh-desc.o \
22 decode-compact.o sem-compact.o mloop-compact.o \
23 decode-media.o sem-media.o mloop-media.o
24
25CONFIG_DEVICES = dv-sockser.o
26CONFIG_DEVICES =
27
28SIM_OBJS = \
29 $(SIM_NEW_COMMON_OBJS) \
30 sim-cpu.o \
31 sim-hload.o \
32 sim-hrw.o \
33 sim-model.o \
34 sim-reg.o \
35 cgen-utils.o cgen-trace.o cgen-scache.o \
36 cgen-run.o sim-reason.o sim-engine.o sim-stop.o \
37 sim-if.o arch.o \
38 $(SH64_OBJS) \
39 $(CONFIG_DEVICES)
40
41# Extra headers included by sim-main.h.
42SIM_EXTRA_DEPS = \
43 $(CGEN_INCLUDE_DEPS) \
44 arch.h cpuall.h sh64-sim.h
45
46SIM_EXTRA_CFLAGS =
47
48SIM_RUN_OBJS = nrun.o
49SIM_EXTRA_CLEAN = sh64-clean
50
51## COMMON_POST_CONFIG_FRAG
52
53arch = sh
54
55sim-if.o: sim-if.c $(SIM_MAIN_DEPS) $(srcdir)/../common/sim-core.h
56
57arch.o: arch.c $(SIM_MAIN_DEPS)
58
59devices.o: devices.c $(SIM_MAIN_DEPS)
60
61# SH64 objs
62
63SH64_INCLUDE_DEPS = \
64 $(CGEN_MAIN_CPU_DEPS) \
65 cpu.h decode.h \
66 decode-compact.h eng-compact.h defs-compact.h \
67 decode-media.h eng-media.h defs-media.h
68
69sh64.o: sh64.c $(SH64_INCLUDE_DEPS)
70
71mloop-compact.o: mloop-compact.c sem-compact-switch.c $(SH64_INCLUDE_DEPS)
72 $(CC) -c $(srcdir)/mloop-compact.c $(ALL_CFLAGS) -DWANT_ISA_COMPACT
73
74mloop-media.o: mloop-media.c sem-media-switch.c $(SH64_INCLUDE_DEPS)
75 $(CC) -c $(srcdir)/mloop-media.c $(ALL_CFLAGS) -DWANT_ISA_MEDIA
76
77cpu.o: cpu.c $(SH64_INCLUDE_DEPS)
78
79decode-compact.o: decode-compact.c $(SH64_INCLUDE_DEPS)
80 $(CC) -c $(srcdir)/decode-compact.c $(ALL_CFLAGS) -DWANT_ISA_COMPACT
81
82sem-compact.o: sem-compact.c $(SH64_INCLUDE_DEPS)
83 $(CC) -c $(srcdir)/sem-compact.c $(ALL_CFLAGS) -DWANT_ISA_COMPACT
84
85decode-media.o: decode-media.c $(SH64_INCLUDE_DEPS)
86 $(CC) -c $(srcdir)/decode-media.c $(ALL_CFLAGS) -DWANT_ISA_MEDIA
87
88sem-media.o: sem-media.c $(SH64_INCLUDE_DEPS)
89 $(CC) -c $(srcdir)/sem-media.c $(ALL_CFLAGS) -DWANT_ISA_MEDIA
90
91sh64-clean:
92 rm -f tmp-*
93 rm -f stamp-defs-{compact,media}
94 rm -f stamp-arch stamp-desc stamp-cpu stamp-decode-{compact,media}
95
96# cgen support, enable with --enable-cgen-maint
97CGEN_MAINT = ; @true
98# The following line is commented in or out depending upon --enable-cgen-maint.
99@CGEN_MAINT@CGEN_MAINT =
100
101.PHONY: stamp-all stamp-decode stamp-defs
102
103stamp-all: stamp-arch stamp-desc stamp-cpu stamp-decode stamp-defs
104stamp-decode: stamp-decode-compact stamp-decode-media
105stamp-defs: stamp-defs-compact stamp-defs-media
106
107stamp-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 Makefile
108 $(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=all isa=compact,media \
109 FLAGS="with-scache"
110 touch $@
111arch.h arch.c cpuall.h: $(CGEN_MAINT) stamp-arch
112 @true
113
114stamp-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 Makefile
115 $(MAKE) cgen-desc $(CGEN_FLAGS_TO_PASS) cpu=sh64 mach=all isa=compact,media
116 touch $@
117desc.h: $(CGEN_MAINT) stamp-desc
118 @true
119
120stamp-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 Makefile
121 $(MAKE) cgen-cpu $(CGEN_FLAGS_TO_PASS) \
122 cpu=sh64 mach=sh4,sh5 isa=compact,media FLAGS="with-multiple-isa with-scache"
123 rm -f $(srcdir)/model.c
124 touch $@
125cpu.h: $(CGEN_MAINT) stamp-cpu
126 @true
127
128stamp-defs-compact: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_CPU_DIR)/sh.cpu $(CGEN_CPU_DIR)/sh.opc $(CGEN_CPU_DIR)/sh64-compact.cpu Makefile
129 $(MAKE) cgen-defs $(CGEN_FLAGS_TO_PASS) \
130 cpu=sh64 mach=sh5 isa=compact FLAGS="with-scache" SUFFIX="-compact"
131 touch $@
132defs-compact.h: $(CGEN_MAINT) stamp-defs-compact
133 @true
134
135stamp-defs-media: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_CPU_DIR)/sh.cpu $(CGEN_CPU_DIR)/sh.opc $(CGEN_CPU_DIR)/sh64-media.cpu Makefile
136 $(MAKE) cgen-defs $(CGEN_FLAGS_TO_PASS) \
137 cpu=sh64 mach=sh5 isa=media FLAGS="with-scache" SUFFIX="-media"
138 touch $@
139defs-media.h: $(CGEN_MAINT) stamp-defs-media
140
141stamp-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 Makefile
142 $(MAKE) cgen-decode $(CGEN_FLAGS_TO_PASS) \
143 cpu=sh64 mach=sh5 isa=compact FLAGS="with-scache" SUFFIX="-compact" EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"
144 touch $@
145sem-compact.c sem-compact-switch.c decode-compact.c decode-compact.h: $(CGEN_MAINT) stamp-compact
146 @true
147
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 Makefile
149 $(MAKE) cgen-decode $(CGEN_FLAGS_TO_PASS) \
150 cpu=sh64 mach=sh5 isa=media FLAGS="with-scache" SUFFIX="-media" EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"
151 touch $@
152sem-media.c sem-media-switch.c decode-media.c decode-media.h: $(CGEN_MAINT) stamp-media
153 @true
This page took 0.05958 seconds and 4 git commands to generate.