remove PARAMS from include/cgen
[deliverable/binutils-gdb.git] / sim / m32r / Makefile.in
CommitLineData
c906108c 1# Makefile template for Configure for the m32r simulator
ecd75fc8 2# Copyright (C) 1996-2014 Free Software Foundation, Inc.
c906108c
SS
3# Contributed by Cygnus Support.
4#
5# This file is part of GDB, the GNU debugger.
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
4744ac1b 9# the Free Software Foundation; either version 3 of the License, or
c906108c
SS
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
4744ac1b
JB
17# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
c906108c
SS
19
20## COMMON_PRE_CONFIG_FRAG
21
22M32R_OBJS = m32r.o cpu.o decode.o sem.o model.o mloop.o
2df3850c 23M32RX_OBJS = m32rx.o cpux.o decodex.o modelx.o mloopx.o
16b47b25 24M32R2_OBJS = m32r2.o cpu2.o decode2.o model2.o mloop2.o
6edf0760 25TRAPS_OBJ = @traps_obj@
c906108c 26
c906108c
SS
27SIM_OBJS = \
28 $(SIM_NEW_COMMON_OBJS) \
29 sim-cpu.o \
30 sim-hload.o \
31 sim-hrw.o \
32 sim-model.o \
33 sim-reg.o \
34 cgen-utils.o cgen-trace.o cgen-scache.o \
35 cgen-run.o sim-reason.o sim-engine.o sim-stop.o \
36 sim-if.o arch.o \
37 $(M32R_OBJS) \
2df3850c 38 $(M32RX_OBJS) \
16b47b25 39 $(M32R2_OBJS) \
6edf0760
NC
40 $(TRAPS_OBJ) \
41 devices.o \
73e76d20 42 $(m32r_extra_objs)
c906108c
SS
43
44# Extra headers included by sim-main.h.
45SIM_EXTRA_DEPS = \
46 $(CGEN_INCLUDE_DEPS) \
47 arch.h cpuall.h m32r-sim.h $(srcdir)/../../opcodes/m32r-desc.h
48
6edf0760 49SIM_EXTRA_CFLAGS = @sim_extra_cflags@
c906108c
SS
50
51SIM_RUN_OBJS = nrun.o
52SIM_EXTRA_CLEAN = m32r-clean
53
54# This selects the m32r newlib/libgloss syscall definitions.
55NL_TARGET = -DNL_TARGET_m32r
56
57## COMMON_POST_CONFIG_FRAG
58
59arch = m32r
60
61sim-if.o: sim-if.c $(SIM_MAIN_DEPS) $(srcdir)/../common/sim-core.h
62
63arch.o: arch.c $(SIM_MAIN_DEPS)
64
65traps.o: traps.c targ-vals.h $(SIM_MAIN_DEPS)
6edf0760 66traps-linux.o: traps.c syscall.h targ-vals.h $(SIM_MAIN_DEPS)
c906108c
SS
67devices.o: devices.c $(SIM_MAIN_DEPS)
68
69# M32R objs
70
71M32RBF_INCLUDE_DEPS = \
72 $(CGEN_MAIN_CPU_DEPS) \
73 cpu.h decode.h eng.h
74
75m32r.o: m32r.c $(M32RBF_INCLUDE_DEPS)
76
77# FIXME: Use of `mono' is wip.
894a1d7b 78mloop.c eng.h: stamp-mloop ; @true
c906108c 79stamp-mloop: $(srcdir)/../common/genmloop.sh mloop.in Makefile
086c6838 80 $(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \
c906108c
SS
81 -mono -fast -pbb -switch sem-switch.c \
82 -cpu m32rbf -infile $(srcdir)/mloop.in
83 $(SHELL) $(srcroot)/move-if-change eng.hin eng.h
84 $(SHELL) $(srcroot)/move-if-change mloop.cin mloop.c
85 touch stamp-mloop
86mloop.o: mloop.c sem-switch.c $(M32RBF_INCLUDE_DEPS)
87
88cpu.o: cpu.c $(M32RBF_INCLUDE_DEPS)
89decode.o: decode.c $(M32RBF_INCLUDE_DEPS)
90sem.o: sem.c $(M32RBF_INCLUDE_DEPS)
91model.o: model.c $(M32RBF_INCLUDE_DEPS)
92
2df3850c
JM
93# M32RX objs
94
95M32RXF_INCLUDE_DEPS = \
96 $(CGEN_MAIN_CPU_DEPS) \
97 cpux.h decodex.h engx.h
98
99m32rx.o: m32rx.c $(M32RXF_INCLUDE_DEPS)
100
101# FIXME: Use of `mono' is wip.
894a1d7b 102mloopx.c engx.h: stamp-xmloop ; @true
2df3850c 103stamp-xmloop: $(srcdir)/../common/genmloop.sh mloopx.in Makefile
086c6838 104 $(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \
2df3850c 105 -mono -no-fast -pbb -parallel-write -switch semx-switch.c \
4d06b60c
DJ
106 -cpu m32rxf -infile $(srcdir)/mloopx.in \
107 -outfile-suffix x
108 $(SHELL) $(srcroot)/move-if-change engx.hin engx.h
109 $(SHELL) $(srcroot)/move-if-change mloopx.cin mloopx.c
2df3850c
JM
110 touch stamp-xmloop
111mloopx.o: mloopx.c semx-switch.c $(M32RXF_INCLUDE_DEPS)
112
113cpux.o: cpux.c $(M32RXF_INCLUDE_DEPS)
114decodex.o: decodex.c $(M32RXF_INCLUDE_DEPS)
115semx.o: semx.c $(M32RXF_INCLUDE_DEPS)
116modelx.o: modelx.c $(M32RXF_INCLUDE_DEPS)
c906108c 117
16b47b25
NC
118# M32R2 objs
119
120M32R2F_INCLUDE_DEPS = \
121 $(CGEN_MAIN_CPU_DEPS) \
122 cpu2.h decode2.h eng2.h
123
124m32r2.o: m32r2.c $(M32R2F_INCLUDE_DEPS)
125
126# FIXME: Use of `mono' is wip.
894a1d7b 127mloop2.c eng2.h: stamp-2mloop ; @true
16b47b25 128stamp-2mloop: $(srcdir)/../common/genmloop.sh mloop2.in Makefile
086c6838 129 $(SHELL) $(srccom)/genmloop.sh -shell $(SHELL) \
16b47b25 130 -mono -no-fast -pbb -parallel-write -switch sem2-switch.c \
4d06b60c
DJ
131 -cpu m32r2f -infile $(srcdir)/mloop2.in \
132 -outfile-suffix 2
133 $(SHELL) $(srcroot)/move-if-change eng2.hin eng2.h
134 $(SHELL) $(srcroot)/move-if-change mloop2.cin mloop2.c
16b47b25
NC
135 touch stamp-2mloop
136
894a1d7b
DE
137mloop2.o: mloop2.c $(srcdir)/sem2-switch.c $(M32R2F_INCLUDE_DEPS)
138cpu2.o: cpu2.c $(M32R2F_INCLUDE_DEPS)
16b47b25 139decode2.o: decode2.c $(M32R2F_INCLUDE_DEPS)
894a1d7b
DE
140sem2.o: sem2.c $(M32R2F_INCLUDE_DEPS)
141model2.o: model2.c $(M32R2F_INCLUDE_DEPS)
16b47b25 142
c906108c
SS
143m32r-clean:
144 rm -f mloop.c eng.h stamp-mloop
2df3850c 145 rm -f mloopx.c engx.h stamp-xmloop
16b47b25
NC
146 rm -f mloop2.c eng2.h stamp-2mloop
147 rm -f stamp-arch stamp-cpu stamp-xcpu stamp-2cpu
c906108c
SS
148 rm -f tmp-*
149
604259a0
FCE
150# cgen support, enable with --enable-cgen-maint
151CGEN_MAINT = ; @true
152# The following line is commented in or out depending upon --enable-cgen-maint.
153@CGEN_MAINT@CGEN_MAINT =
154
894a1d7b
DE
155# NOTE: Generated source files are specified as full paths,
156# e.g. $(srcdir)/arch.c, because make may decide the files live
157# in objdir otherwise.
158
159stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(CPU_DIR)/m32r.cpu Makefile
604259a0 160 $(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=all \
6a8b8615 161 archfile=$(CPU_DIR)/m32r.cpu \
604259a0
FCE
162 FLAGS="with-scache with-profile=fn"
163 touch stamp-arch
894a1d7b
DE
164$(srcdir)/arch.h $(srcdir)/arch.c $(srcdir)/cpuall.h: $(CGEN_MAINT) stamp-arch
165 @true
604259a0 166
894a1d7b 167stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CPU_DIR)/m32r.cpu Makefile
604259a0
FCE
168 $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
169 cpu=m32rbf mach=m32r SUFFIX= \
6a8b8615 170 archfile=$(CPU_DIR)/m32r.cpu \
604259a0
FCE
171 FLAGS="with-scache with-profile=fn" \
172 EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"
173 touch stamp-cpu
894a1d7b
DE
174$(srcdir)/cpu.h $(srcdir)/sem.c $(srcdir)/sem-switch.c $(srcdir)/model.c $(srcdir)/decode.c $(srcdir)/decode.h: $(CGEN_MAINT) stamp-cpu
175 @true
604259a0 176
894a1d7b 177stamp-xcpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CPU_DIR)/m32r.cpu Makefile
604259a0 178 $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
a6fc1778 179 cpu=m32rxf mach=m32rx SUFFIX=x \
6a8b8615 180 archfile=$(CPU_DIR)/m32r.cpu \
a6fc1778
DB
181 FLAGS="with-scache with-profile=fn" \
182 EXTRAFILES="$(CGEN_CPU_SEMSW)"
604259a0 183 touch stamp-xcpu
894a1d7b
DE
184$(srcdir)/cpux.h $(srcdir)/semx-switch.c $(srcdir)/modelx.c $(srcdir)/decodex.c $(srcdir)/decodex.h: $(CGEN_MAINT) stamp-xcpu
185 @true
16b47b25 186
894a1d7b 187stamp-2cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CPU_DIR)/m32r.cpu Makefile
16b47b25
NC
188 $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
189 cpu=m32r2f mach=m32r2 SUFFIX=2 \
6a8b8615 190 archfile=$(CPU_DIR)/m32r.cpu \
16b47b25
NC
191 FLAGS="with-scache with-profile=fn" \
192 EXTRAFILES="$(CGEN_CPU_SEMSW)"
193 touch stamp-2cpu
894a1d7b
DE
194$(srcdir)/cpu2.h $(srcdir)/sem2-switch.c $(srcdir)/model2.c $(srcdir)/decode2.c $(srcdir)/decode2.h: $(CGEN_MAINT) stamp-2cpu
195 @true
This page took 0.598508 seconds and 4 git commands to generate.