2000-08-28 Dave Brolley <brolley@redhat.com>
[deliverable/binutils-gdb.git] / sim / fr30 / Makefile.in
CommitLineData
c906108c
SS
1# Makefile template for Configure for the fr30 simulator
2# Copyright (C) 1998 Free Software Foundation, Inc.
3# Contributed by Cygnus Support.
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License along
16# with this program; if not, write to the Free Software Foundation, Inc.,
17# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19## COMMON_PRE_CONFIG_FRAG
20
604259a0 21FR30_OBJS = fr30.o cpu.o decode.o sem.o model.o arch.o mloop.o
c906108c
SS
22
23CONFIG_DEVICES = dv-sockser.o
24CONFIG_DEVICES =
25
26SIM_OBJS = \
27 $(SIM_NEW_COMMON_OBJS) \
28 sim-cpu.o \
29 sim-hload.o \
30 sim-hrw.o \
31 sim-model.o \
32 sim-reg.o \
33 cgen-utils.o cgen-trace.o cgen-scache.o \
34 cgen-run.o sim-reason.o sim-engine.o sim-stop.o \
604259a0 35 sim-if.o \
c906108c
SS
36 $(FR30_OBJS) \
37 traps.o devices.o \
38 $(CONFIG_DEVICES)
39
40# Extra headers included by sim-main.h.
41SIM_EXTRA_DEPS = \
42 $(CGEN_INCLUDE_DEPS) \
43 arch.h cpuall.h fr30-sim.h $(srcdir)/../../opcodes/fr30-desc.h
44
45SIM_EXTRA_CFLAGS =
46
47SIM_RUN_OBJS = nrun.o
48SIM_EXTRA_CLEAN = fr30-clean
49
50# This selects the fr30 newlib/libgloss syscall definitions.
51NL_TARGET = -DNL_TARGET_fr30
52
53## COMMON_POST_CONFIG_FRAG
54
55arch = fr30
56
57sim-if.o: sim-if.c $(SIM_MAIN_DEPS) $(srcdir)/../common/sim-core.h
58
59arch.o: arch.c $(SIM_MAIN_DEPS)
60
61devices.o: devices.c $(SIM_MAIN_DEPS)
62
63# FR30 objs
64
65FR30BF_INCLUDE_DEPS = \
66 $(CGEN_MAIN_CPU_DEPS) \
67 cpu.h decode.h eng.h
68
69fr30.o: fr30.c $(FR30BF_INCLUDE_DEPS)
70
71# FIXME: Use of `mono' is wip.
72mloop.c eng.h: stamp-mloop
73stamp-mloop: $(srcdir)/../common/genmloop.sh mloop.in Makefile
74 $(SHELL) $(srccom)/genmloop.sh \
75 -mono -fast -pbb -switch sem-switch.c \
76 -cpu fr30bf -infile $(srcdir)/mloop.in
77 $(SHELL) $(srcroot)/move-if-change eng.hin eng.h
78 $(SHELL) $(srcroot)/move-if-change mloop.cin mloop.c
79 touch stamp-mloop
80mloop.o: mloop.c sem-switch.c $(FR30BF_INCLUDE_DEPS)
81
82cpu.o: cpu.c $(FR30BF_INCLUDE_DEPS)
83decode.o: decode.c $(FR30BF_INCLUDE_DEPS)
84sem.o: sem.c $(FR30BF_INCLUDE_DEPS)
85model.o: model.c $(FR30BF_INCLUDE_DEPS)
86
87fr30-clean:
88 rm -f mloop.c eng.h stamp-mloop
89 rm -f tmp-*
604259a0
FCE
90 rm -f stamp-arch stamp-cpu
91
92# cgen support, enable with --enable-cgen-maint
93CGEN_MAINT = ; @true
94# The following line is commented in or out depending upon --enable-cgen-maint.
95@CGEN_MAINT@CGEN_MAINT =
96
97stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(srccgen)/fr30.cpu
98 $(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=all \
99 FLAGS="with-scache with-profile=fn"
100 touch stamp-arch
101arch.h arch.c cpuall.h: $(CGEN_MAINT) stamp-arch
102# @true
103
104stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(srccgen)/fr30.cpu
105 $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
106 cpu=fr30bf mach=fr30 SUFFIX= FLAGS="with-scache with-profile=fn" EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)"
107 touch stamp-cpu
108cpu.h sem.c sem-switch.c model.c decode.c decode.h: $(CGEN_MAINT) stamp-cpu
109# @true
This page took 0.058108 seconds and 4 git commands to generate.