]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/m32r/Makefile.in
Initial creation of sourceware repository
[thirdparty/binutils-gdb.git] / sim / m32r / Makefile.in
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
23 M32R_OBJS = m32r.o cpu.o decode.o sem.o model.o mloop.o
24
25 CONFIG_DEVICES = dv-sockser.o
26 CONFIG_DEVICES =
27
28 SIM_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 $(M32R_OBJS) \
39 traps.o devices.o \
40 $(CONFIG_DEVICES)
41
42 # Extra headers included by sim-main.h.
43 SIM_EXTRA_DEPS = \
44 $(CGEN_INCLUDE_DEPS) \
45 arch.h cpuall.h m32r-sim.h $(srcdir)/../../opcodes/m32r-desc.h
46
47 SIM_EXTRA_CFLAGS =
48
49 SIM_RUN_OBJS = nrun.o
50 SIM_EXTRA_CLEAN = m32r-clean
51
52 # This selects the m32r newlib/libgloss syscall definitions.
53 NL_TARGET = -DNL_TARGET_m32r
54
55 ## COMMON_POST_CONFIG_FRAG
56
57 arch = m32r
58
59 sim-if.o: sim-if.c $(SIM_MAIN_DEPS) $(srcdir)/../common/sim-core.h
60
61 arch.o: arch.c $(SIM_MAIN_DEPS)
62
63 traps.o: traps.c targ-vals.h $(SIM_MAIN_DEPS)
64 devices.o: devices.c $(SIM_MAIN_DEPS)
65
66 # M32R objs
67
68 M32RBF_INCLUDE_DEPS = \
69 $(CGEN_MAIN_CPU_DEPS) \
70 cpu.h decode.h eng.h
71
72 m32r.o: m32r.c $(M32RBF_INCLUDE_DEPS)
73
74 # FIXME: Use of `mono' is wip.
75 mloop.c eng.h: stamp-mloop
76 stamp-mloop: $(srcdir)/../common/genmloop.sh mloop.in Makefile
77 $(SHELL) $(srccom)/genmloop.sh \
78 -mono -fast -pbb -switch sem-switch.c \
79 -cpu m32rbf -infile $(srcdir)/mloop.in
80 $(SHELL) $(srcroot)/move-if-change eng.hin eng.h
81 $(SHELL) $(srcroot)/move-if-change mloop.cin mloop.c
82 touch stamp-mloop
83 mloop.o: mloop.c sem-switch.c $(M32RBF_INCLUDE_DEPS)
84
85 cpu.o: cpu.c $(M32RBF_INCLUDE_DEPS)
86 decode.o: decode.c $(M32RBF_INCLUDE_DEPS)
87 sem.o: sem.c $(M32RBF_INCLUDE_DEPS)
88 model.o: model.c $(M32RBF_INCLUDE_DEPS)
89
90
91 m32r-clean:
92 rm -f mloop.c eng.h stamp-mloop
93 rm -f tmp-*
94
95