Tidy up formatting.
[deliverable/binutils-gdb.git] / sim / m32r / Makefile.in
CommitLineData
c906108c
SS
1# Makefile template for Configure for the m32r simulator
2# Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
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
9# the Free Software Foundation; either version 2 of the License, or
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#
17# You should have received a copy of the GNU General Public License along
18# with this program; if not, write to the Free Software Foundation, Inc.,
19# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
21## COMMON_PRE_CONFIG_FRAG
22
23M32R_OBJS = m32r.o cpu.o decode.o sem.o model.o mloop.o
2df3850c 24M32RX_OBJS = m32rx.o cpux.o decodex.o modelx.o mloopx.o
c906108c
SS
25
26CONFIG_DEVICES = dv-sockser.o
27CONFIG_DEVICES =
28
29SIM_OBJS = \
30 $(SIM_NEW_COMMON_OBJS) \
31 sim-cpu.o \
32 sim-hload.o \
33 sim-hrw.o \
34 sim-model.o \
35 sim-reg.o \
36 cgen-utils.o cgen-trace.o cgen-scache.o \
37 cgen-run.o sim-reason.o sim-engine.o sim-stop.o \
38 sim-if.o arch.o \
39 $(M32R_OBJS) \
2df3850c 40 $(M32RX_OBJS) \
c906108c
SS
41 traps.o devices.o \
42 $(CONFIG_DEVICES)
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
49SIM_EXTRA_CFLAGS =
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)
66devices.o: devices.c $(SIM_MAIN_DEPS)
67
68# M32R objs
69
70M32RBF_INCLUDE_DEPS = \
71 $(CGEN_MAIN_CPU_DEPS) \
72 cpu.h decode.h eng.h
73
74m32r.o: m32r.c $(M32RBF_INCLUDE_DEPS)
75
76# FIXME: Use of `mono' is wip.
77mloop.c eng.h: stamp-mloop
78stamp-mloop: $(srcdir)/../common/genmloop.sh mloop.in Makefile
79 $(SHELL) $(srccom)/genmloop.sh \
80 -mono -fast -pbb -switch sem-switch.c \
81 -cpu m32rbf -infile $(srcdir)/mloop.in
82 $(SHELL) $(srcroot)/move-if-change eng.hin eng.h
83 $(SHELL) $(srcroot)/move-if-change mloop.cin mloop.c
84 touch stamp-mloop
85mloop.o: mloop.c sem-switch.c $(M32RBF_INCLUDE_DEPS)
86
87cpu.o: cpu.c $(M32RBF_INCLUDE_DEPS)
88decode.o: decode.c $(M32RBF_INCLUDE_DEPS)
89sem.o: sem.c $(M32RBF_INCLUDE_DEPS)
90model.o: model.c $(M32RBF_INCLUDE_DEPS)
91
2df3850c
JM
92# M32RX objs
93
94M32RXF_INCLUDE_DEPS = \
95 $(CGEN_MAIN_CPU_DEPS) \
96 cpux.h decodex.h engx.h
97
98m32rx.o: m32rx.c $(M32RXF_INCLUDE_DEPS)
99
100# FIXME: Use of `mono' is wip.
101mloopx.c engx.h: stamp-xmloop
102stamp-xmloop: $(srcdir)/../common/genmloop.sh mloopx.in Makefile
103 $(SHELL) $(srccom)/genmloop.sh \
104 -mono -no-fast -pbb -parallel-write -switch semx-switch.c \
105 -cpu m32rxf -infile $(srcdir)/mloopx.in
106 $(SHELL) $(srcroot)/move-if-change eng.hin engx.h
107 $(SHELL) $(srcroot)/move-if-change mloop.cin mloopx.c
108 touch stamp-xmloop
109mloopx.o: mloopx.c semx-switch.c $(M32RXF_INCLUDE_DEPS)
110
111cpux.o: cpux.c $(M32RXF_INCLUDE_DEPS)
112decodex.o: decodex.c $(M32RXF_INCLUDE_DEPS)
113semx.o: semx.c $(M32RXF_INCLUDE_DEPS)
114modelx.o: modelx.c $(M32RXF_INCLUDE_DEPS)
c906108c
SS
115
116m32r-clean:
117 rm -f mloop.c eng.h stamp-mloop
2df3850c 118 rm -f mloopx.c engx.h stamp-xmloop
c906108c
SS
119 rm -f tmp-*
120
This page took 0.068491 seconds and 4 git commands to generate.