* cpu.c,model.c,sem-switch.c,sem.c: Regenerated. Mostly comment
[deliverable/binutils-gdb.git] / sim / m32r / Makefile.in
CommitLineData
fafce69a 1# Makefile template for Configure for the m32r simulator
369fba30 2# Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
fafce69a
AC
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
0e701ac3 23M32R_OBJS = m32r.o cpu.o decode.o extract.o sem.o model.o mloop.o
369fba30 24# start-sanitize-m32rx
0e701ac3 25M32RX_OBJS = m32rx.o cpux.o decodex.o semx.o modelx.o mloopx.o
369fba30
DE
26# end-sanitize-m32rx
27
28SIM_OBJS = \
29 $(SIM_NEW_COMMON_OBJS) \
0e701ac3
AC
30 sim-engine.o \
31 sim-hload.o \
32 sim-hrw.o \
33 sim-model.o \
34 sim-reason.o \
369fba30
DE
35 cgen-utils.o cgen-trace.o cgen-scache.o \
36 sim-if.o arch.o \
8e420152
DE
37 $(start-sanitize-m32rx) \
38 $(M32RX_OBJS) \
39 $(end-sanitize-m32rx) \
369fba30 40 $(M32R_OBJS)
fafce69a
AC
41
42# Extra headers included by sim-main.h.
43SIM_EXTRA_DEPS = \
44 $(srcdir)/../common/cgen-types.h \
45 $(srcdir)/../common/cgen-sim.h \
46 $(srcdir)/../common/cgen-trace.h \
599bae21 47 arch.h cpuall.h m32r-sim.h cpu-opc.h
fafce69a 48
369fba30 49SIM_EXTRA_CFLAGS =
fafce69a
AC
50
51SIM_RUN_OBJS = nrun.o
52SIM_EXTRA_CLEAN = m32r-clean
53
0e701ac3
AC
54# This selects the m32r newlib/libgloss syscall definitions.
55NL_TARGET = -DNL_TARGET_m32r
56
fafce69a
AC
57## COMMON_POST_CONFIG_FRAG
58
369fba30
DE
59arch = m32r
60
fafce69a
AC
61MAIN_INCLUDE_DEPS = \
62 sim-main.h \
63 $(srcdir)/../common/sim-config.h \
64 $(srcdir)/../common/sim-base.h \
65 $(srcdir)/../common/sim-basics.h \
66 $(srcdir)/../common/sim-module.h \
67 $(srcdir)/../common/sim-trace.h \
68 $(srcdir)/../common/sim-profile.h \
69 tconfig.h
70INCLUDE_DEPS = $(MAIN_INCLUDE_DEPS) $(SIM_EXTRA_DEPS) cpu-sim.h
369fba30
DE
71OPS_INCLUDE_DEPS = \
72 $(srcdir)/../common/cgen-mem.h \
73 $(srcdir)/../common/cgen-ops.h
fafce69a
AC
74
75sim-if.o: sim-if.c $(INCLUDE_DEPS) $(srcdir)/../common/sim-core.h
fafce69a 76
599bae21 77arch.o: arch.c $(INCLUDE_DEPS)
369fba30
DE
78
79# M32R objs
80
b8a9943d
DE
81m32r.o: m32r.c $(INCLUDE_DEPS) $(OPS_INCLUDE_DEPS) cpu.h
82
369fba30
DE
83# FIXME: Use of `mono' is wip.
84mloop.c: $(srcdir)/../common/genmloop.sh mloop.in Makefile
85 rm -f mloop.c
b8a9943d
DE
86 $(SHELL) $(srcdir)/../common/genmloop.sh $(SHELL) \
87 -mono -scache -fast m32r $(srcdir)/mloop.in \
88 | sed -e 's/@cpu@/m32r/' -e 's/@CPU@/M32R/' >mloop.c
369fba30
DE
89mloop.o: mloop.c sem-switch.c $(INCLUDE_DEPS) $(OPS_INCLUDE_DEPS) cpu.h
90
0e701ac3 91cpu.o: cpu.c $(INCLUDE_DEPS) $(OPS_INCLUDE_DEPS) cpu.h
599bae21 92decode.o: decode.c decode.h $(INCLUDE_DEPS) $(OPS_INCLUDE_DEPS) cpu.h
369fba30 93extract.o: extract.c decode.h $(INCLUDE_DEPS) $(OPS_INCLUDE_DEPS) cpu.h
b8a9943d 94 $(CC) -c $(srcdir)/extract.c $(ALL_CFLAGS) -DSCACHE_P
369fba30 95sem.o: sem.c decode.h $(INCLUDE_DEPS) $(OPS_INCLUDE_DEPS) cpu.h
0e701ac3 96 $(CC) -c $(srcdir)/sem.c $(ALL_CFLAGS) -DSCACHE_P
599bae21 97model.o: model.c $(INCLUDE_DEPS) cpu.h
369fba30 98
b8a9943d
DE
99#sem-cache.o: sem.c decode.h $(INCLUDE_DEPS) $(OPS_INCLUDE_DEPS) cpu.h
100# $(CC) -c $(srcdir)/sem.c -o sem-cache.o -DSCACHE_P $(ALL_CFLAGS)
369fba30
DE
101
102# start-sanitize-m32rx
103# M32RX objs
104
b8a9943d
DE
105m32rx.o: m32rx.c $(INCLUDE_DEPS) $(OPS_INCLUDE_DEPS) cpux.h
106
fafce69a 107# FIXME: Use of `mono' is wip.
369fba30
DE
108mloopx.c: $(srcdir)/../common/genmloop.sh mloopx.in Makefile
109 rm -f mloopx.c
b8a9943d 110 $(SHELL) $(srcdir)/../common/genmloop.sh $(SHELL) \
0e701ac3 111 -mono -no-scache -no-fast -parallel \
b8a9943d
DE
112 m32r $(srcdir)/mloopx.in \
113 | sed -e 's/@cpu@/m32rx/' -e 's/@CPU@/M32RX/' >mloopx.c
8e420152 114mloopx.o: mloopx.c readx.c $(INCLUDE_DEPS) $(OPS_INCLUDE_DEPS) cpux.h
fafce69a 115
0e701ac3 116cpux.o: cpux.c $(INCLUDE_DEPS) $(OPS_INCLUDE_DEPS) cpux.h
599bae21 117decodex.o: decodex.c decodex.h $(INCLUDE_DEPS) $(OPS_INCLUDE_DEPS) cpux.h
369fba30 118semx.o: semx.c decodex.h $(INCLUDE_DEPS) $(OPS_INCLUDE_DEPS) cpux.h
599bae21 119modelx.o: modelx.c $(INCLUDE_DEPS) cpux.h
369fba30 120# end-sanitize-m32rx
fafce69a
AC
121
122m32r-clean:
369fba30
DE
123 rm -f mloop.c stamp-arch stamp-cpu stamp-decode
124# start-sanitize-m32rx
125 rm -f mloopx.c stamp-xcpu stamp-xdecode
126# end-sanitize-m32rx
127 rm -f tmp-*
128
129# start-sanitize-cygnus
130# cgen support
131# For now, require developers to configure with --enable-maintainer-mode.
132# ??? Do we need to use a different option?
133
134stamp-arch: $(CGEN_MAIN_SCM) $(srccgen)/m32r.cpu
135 $(MAKE) cgen-arch
136 touch stamp-arch
137arch.h arch.c cpuall.h: @MAINT@ stamp-arch
138 @true
139
140stamp-cpu: $(CGEN_MAIN_SCM) $(CGEN_CPU_SCM) $(srccgen)/m32r.cpu
141 $(MAKE) cgen-cpu cpu=m32r mach=m32r SUFFIX= FLAGS="with-scache,with-profile fn" EXTRAFILES="$(CGEN_CPU_EXTR) $(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"
142 touch stamp-cpu
143cpu.h extract.c sem.c sem-switch.c model.c: @MAINT@ stamp-cpu
144 @true
145
146stamp-decode: $(CGEN_MAIN_SCM) $(CGEN_DECODE_SCM) $(srccgen)/m32r.cpu
147 $(MAKE) cgen-decode cpu=m32r mach=m32r SUFFIX= FLAGS="with-scache,with-profile fn"
148 touch stamp-decode
149decode.h decode.c: @MAINT@ stamp-decode
150 @true
151# start-sanitize-cygnus
152
153# start-sanitize-m32rx
154stamp-xcpu: $(CGEN_MAIN_SCM) $(CGEN_CPU_SCM) $(srccgen)/m32r.cpu
8e420152 155 $(MAKE) cgen-cpu cpu=m32rx mach=m32rx SUFFIX=x FLAGS="" EXTRAFILES="$(CGEN_CPU_READ) $(CGEN_CPU_SEM)"
369fba30 156 touch stamp-xcpu
8e420152 157cpux.h readx.c semx.c modelx.c: @MAINT@ stamp-xcpu
369fba30
DE
158 @true
159
160stamp-xdecode: $(CGEN_MAIN_SCM) $(CGEN_DECODE_SCM) $(srccgen)/m32r.cpu
161 $(MAKE) cgen-decode cpu=m32rx mach=m32rx SUFFIX=x
162 touch stamp-xdecode
163decodex.h decodex.c: @MAINT@ stamp-xdecode
164 @true
165# end-sanitize-m32rx
This page took 0.055196 seconds and 4 git commands to generate.