* Makefile.in (XMLFILES): Add library-list.dtd.
[deliverable/binutils-gdb.git] / sim / frv / Makefile.in
CommitLineData
b34f6357 1# Makefile template for Configure for the frv simulator
6aba47ca
DJ
2# Copyright (C) 1998, 1999, 2000, 2001, 2003, 2007
3# Free Software Foundation, Inc.
b34f6357
DB
4# Contributed by Red Hat.
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License along
17# with this program; if not, write to the Free Software Foundation, Inc.,
18# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20## COMMON_PRE_CONFIG_FRAG
21
22FRV_OBJS = frv.o cpu.o decode.o sem.o model.o mloop.o cgen-par.o
23
24CONFIG_DEVICES = dv-sockser.o
25CONFIG_DEVICES =
26
27SIM_OBJS = \
28 $(SIM_NEW_COMMON_OBJS) \
29 sim-cpu.o \
30 sim-hload.o \
31 sim-hrw.o \
32 sim-model.o \
33 sim-reg.o \
34 cgen-utils.o cgen-trace.o cgen-scache.o cgen-fpu.o cgen-accfp.o \
35 cgen-run.o sim-reason.o sim-engine.o sim-stop.o \
36 sim-if.o arch.o \
37 $(FRV_OBJS) \
38 traps.o interrupts.o memory.o cache.o pipeline.o \
676a64f4 39 profile.o profile-fr400.o profile-fr450.o profile-fr500.o profile-fr550.o options.o \
b34f6357
DB
40 devices.o reset.o registers.o \
41 $(CONFIG_DEVICES)
42
43# Extra headers included by sim-main.h.
44SIM_EXTRA_DEPS = \
45 $(CGEN_INCLUDE_DEPS) \
46 arch.h cpuall.h frv-sim.h $(srcdir)/../../opcodes/frv-desc.h cache.h \
47 registers.h profile.h \
48 $(sim-options_h)
49
50SIM_EXTRA_CFLAGS = @sim_trapdump@
51
52SIM_RUN_OBJS = nrun.o
53SIM_EXTRA_CLEAN = frv-clean
54
55# This selects the frv newlib/libgloss syscall definitions.
56NL_TARGET = -DNL_TARGET_frv
57
58## COMMON_POST_CONFIG_FRAG
59
60arch = frv
61
62arch.o: arch.c $(SIM_MAIN_DEPS)
63
64devices.o: devices.c $(SIM_MAIN_DEPS)
65
66# FRV objs
67
68FRVBF_INCLUDE_DEPS = \
69 $(CGEN_MAIN_CPU_DEPS) \
70 $(SIM_EXTRA_DEPS) \
71 cpu.h decode.h eng.h
72
73frv.o: frv.c $(FRVBF_INCLUDE_DEPS)
74traps.o: traps.c $(FRVBF_INCLUDE_DEPS)
75pipeline.o: pipeline.c $(FRVBF_INCLUDE_DEPS)
76interrupts.o: interrupts.c $(FRVBF_INCLUDE_DEPS)
77memory.o: memory.c $(FRVBF_INCLUDE_DEPS)
78cache.o: cache.c $(FRVBF_INCLUDE_DEPS)
79options.o: options.c $(FRVBF_INCLUDE_DEPS)
80reset.o: reset.c $(FRVBF_INCLUDE_DEPS)
81registers.o: registers.c $(FRVBF_INCLUDE_DEPS)
e930b1f5 82profile.o: profile.c profile-fr400.h profile-fr500.h profile-fr550.h $(FRVBF_INCLUDE_DEPS)
b34f6357 83profile-fr400.o: profile-fr400.c profile-fr400.h $(FRVBF_INCLUDE_DEPS)
676a64f4 84profile-fr450.o: profile-fr450.c $(FRVBF_INCLUDE_DEPS)
b34f6357 85profile-fr500.o: profile-fr500.c profile-fr500.h $(FRVBF_INCLUDE_DEPS)
e930b1f5 86profile-fr550.o: profile-fr550.c profile-fr550.h $(FRVBF_INCLUDE_DEPS)
b34f6357
DB
87sim-if.o: sim-if.c $(FRVBF_INCLUDE_DEPS) $(srcdir)/../common/sim-core.h eng.h
88
89
90# FIXME: Use of `mono' is wip.
91mloop.c eng.h: stamp-mloop
92stamp-mloop: $(srcdir)/../common/genmloop.sh mloop.in Makefile
93 $(SHELL) $(srccom)/genmloop.sh \
94 -mono -scache -parallel-generic-write -parallel-only \
95 -cpu frvbf -infile $(srcdir)/mloop.in
96 $(SHELL) $(srcroot)/move-if-change eng.hin eng.h
97 $(SHELL) $(srcroot)/move-if-change mloop.cin mloop.c
98 touch stamp-mloop
99mloop.o: mloop.c $(FRVBF_INCLUDE_DEPS)
100
101cpu.o: cpu.c $(FRVBF_INCLUDE_DEPS)
102decode.o: decode.c $(FRVBF_INCLUDE_DEPS)
103sem.o: sem.c $(FRVBF_INCLUDE_DEPS)
104model.o: model.c $(FRVBF_INCLUDE_DEPS)
105
106frv-clean:
107 rm -f mloop.c eng.h stamp-mloop
108 rm -f tmp-*
109 rm -f stamp-arch stamp-cpu
110
111# cgen support, enable with --enable-cgen-maint
112CGEN_MAINT = ; @true
113# The following line is commented in or out depending upon --enable-cgen-maint.
114@CGEN_MAINT@CGEN_MAINT =
115
116stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(srcdir)/../../cpu/frv.cpu
b34f6357 117 $(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=all \
d89a78b6 118 archfile=$(srcdir)/../../cpu/frv.cpu \
b34f6357 119 FLAGS="with-scache"
b34f6357
DB
120 touch stamp-arch
121arch.h arch.c cpuall.h: $(CGEN_MAINT) stamp-arch
122# @true
123
b34f6357 124stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(srcdir)/../../cpu/frv.cpu
b34f6357 125 $(MAKE) cgen-cpu-decode $(CGEN_FLAGS_TO_PASS) \
676a64f4 126 cpu=frvbf mach=frv,fr550,fr500,fr450,fr400,tomcat,simple SUFFIX= \
d89a78b6 127 archfile=$(srcdir)/../../cpu/frv.cpu \
b34f6357
DB
128 FLAGS="with-scache with-profile=fn with-generic-write with-parallel-only" \
129 EXTRAFILES="$(CGEN_CPU_SEM)"
b34f6357
DB
130 touch stamp-cpu
131cpu.h sem.c model.c decode.c decode.h: $(CGEN_MAINT) stamp-cpu
132# @true
This page took 0.173755 seconds and 4 git commands to generate.