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.
5 # This file is part of GDB, the GNU debugger.
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.
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.
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.
21 ## COMMON_PRE_CONFIG_FRAG
23 M32R_OBJS
= m32r.o cpu.o decode.o sem.o model.o mloop.o
25 CONFIG_DEVICES
= dv-sockser.o
29 $(SIM_NEW_COMMON_OBJS
) \
35 cgen-utils.o cgen-trace.o cgen-scache.o \
36 cgen-run.o sim-reason.o sim-engine.o sim-stop.o \
42 # Extra headers included by sim-main.h.
44 $(CGEN_INCLUDE_DEPS
) \
45 arch.h cpuall.h m32r-sim.h
$(srcdir)/..
/..
/opcodes
/m32r-desc.h
50 SIM_EXTRA_CLEAN
= m32r-clean
52 # This selects the m32r newlib/libgloss syscall definitions.
53 NL_TARGET
= -DNL_TARGET_m32r
55 ## COMMON_POST_CONFIG_FRAG
59 sim-if.o
: sim-if.c
$(SIM_MAIN_DEPS
) $(srcdir)/..
/common
/sim-core.h
61 arch.o
: arch.c
$(SIM_MAIN_DEPS
)
63 traps.o
: traps.c targ-vals.h
$(SIM_MAIN_DEPS
)
64 devices.o
: devices.c
$(SIM_MAIN_DEPS
)
68 M32RBF_INCLUDE_DEPS
= \
69 $(CGEN_MAIN_CPU_DEPS
) \
72 m32r.o
: m32r.c
$(M32RBF_INCLUDE_DEPS
)
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
83 mloop.o
: mloop.c sem-switch.c
$(M32RBF_INCLUDE_DEPS
)
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
)
92 rm -f mloop.c eng.h stamp-mloop