OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [sh64/] [Makefile.in] - Blame information for rev 301

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 131 jeremybenn
# Makefile template for Configure for the SH64 simulator
2
# Copyright (C) 2000, 2008 Free Software Foundation, Inc.
3
# Contributed by Red Hat, Inc.
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 3 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
16
# along with this program.  If not, see .
17
 
18
## COMMON_PRE_CONFIG_FRAG
19
 
20
SH64_OBJS = sh64.o cpu.o sh-desc.o \
21
        decode-compact.o sem-compact.o mloop-compact.o \
22
        decode-media.o sem-media.o mloop-media.o
23
 
24
CONFIG_DEVICES = dv-sockser.o
25
CONFIG_DEVICES =
26
 
27
SIM_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 \
35
        cgen-run.o sim-reason.o sim-engine.o sim-stop.o \
36
        sim-if.o arch.o \
37
        $(SH64_OBJS) \
38
        $(CONFIG_DEVICES)
39
 
40
# Extra headers included by sim-main.h.
41
SIM_EXTRA_DEPS = \
42
        $(CGEN_INCLUDE_DEPS) \
43
        arch.h cpuall.h sh64-sim.h
44
 
45
SIM_EXTRA_CFLAGS =
46
 
47
SIM_RUN_OBJS = nrun.o
48
SIM_EXTRA_CLEAN = sh64-clean
49
 
50
## COMMON_POST_CONFIG_FRAG
51
 
52
arch = sh
53
 
54
sim-if.o: sim-if.c $(SIM_MAIN_DEPS) $(srcdir)/../common/sim-core.h
55
 
56
arch.o: arch.c $(SIM_MAIN_DEPS)
57
 
58
devices.o: devices.c $(SIM_MAIN_DEPS)
59
 
60
# SH64 objs
61
 
62
SH64_INCLUDE_DEPS = \
63
        $(CGEN_MAIN_CPU_DEPS) \
64
        cpu.h decode.h \
65
        decode-compact.h eng-compact.h defs-compact.h \
66
        decode-media.h eng-media.h defs-media.h
67
 
68
sh64.o: sh64.c $(SH64_INCLUDE_DEPS)
69
 
70
mloop-compact.o: mloop-compact.c sem-compact-switch.c $(SH64_INCLUDE_DEPS)
71
        $(CC) -c $(srcdir)/mloop-compact.c $(ALL_CFLAGS) -DWANT_ISA_COMPACT
72
 
73
mloop-media.o: mloop-media.c sem-media-switch.c $(SH64_INCLUDE_DEPS)
74
        $(CC) -c $(srcdir)/mloop-media.c $(ALL_CFLAGS) -DWANT_ISA_MEDIA
75
 
76
cpu.o: cpu.c $(SH64_INCLUDE_DEPS)
77
 
78
decode-compact.o: decode-compact.c $(SH64_INCLUDE_DEPS)
79
        $(CC) -c $(srcdir)/decode-compact.c $(ALL_CFLAGS) -DWANT_ISA_COMPACT
80
 
81
sem-compact.o: sem-compact.c $(SH64_INCLUDE_DEPS)
82
        $(CC) -c $(srcdir)/sem-compact.c $(ALL_CFLAGS) -DWANT_ISA_COMPACT
83
 
84
decode-media.o: decode-media.c $(SH64_INCLUDE_DEPS)
85
        $(CC) -c $(srcdir)/decode-media.c $(ALL_CFLAGS) -DWANT_ISA_MEDIA
86
 
87
sem-media.o: sem-media.c $(SH64_INCLUDE_DEPS)
88
        $(CC) -c $(srcdir)/sem-media.c $(ALL_CFLAGS) -DWANT_ISA_MEDIA
89
 
90
sh64-clean:
91
        rm -f tmp-*
92
        rm -f stamp-defs-{compact,media}
93
        rm -f stamp-arch stamp-desc stamp-cpu stamp-decode-{compact,media}
94
 
95
# cgen support, enable with --enable-cgen-maint
96
CGEN_MAINT = ; @true
97
# The following line is commented in or out depending upon --enable-cgen-maint.
98
@CGEN_MAINT@CGEN_MAINT =
99
 
100
.PHONY: stamp-all stamp-decode stamp-defs
101
 
102
stamp-all: stamp-arch stamp-desc stamp-cpu stamp-decode stamp-defs
103
stamp-decode: stamp-decode-compact stamp-decode-media
104
stamp-defs: stamp-defs-compact stamp-defs-media
105
 
106
stamp-arch: $(CGEN_READ_SCM) $(CGEN_ARCH_SCM) $(CGEN_CPU_DIR)/sh.cpu $(CGEN_CPU_DIR)/sh.opc $(CGEN_CPU_DIR)/sh64-media.cpu $(CGEN_CPU_DIR)/sh64-compact.cpu $(CGEN_CPU_DIR)/sh-sim.cpu Makefile
107
        $(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=all isa=compact,media archfile=$(CGEN_CPU_DIR)/sh.cpu \
108
          FLAGS="with-scache"
109
        touch $@
110
arch.h ${srcdir}/arch.c cpuall.h: $(CGEN_MAINT) stamp-arch
111
        @true
112
 
113
stamp-desc: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_CPU_DIR)/sh.cpu $(CGEN_CPU_DIR)/sh.opc $(CGEN_CPU_DIR)/sh64-compact.cpu $(CGEN_CPU_DIR)/sh64-media.cpu $(CGEN_CPU_DIR)/sh-sim.cpu Makefile
114
        $(MAKE) cgen-desc $(CGEN_FLAGS_TO_PASS) cpu=sh64 mach=all isa=compact,media archfile=$(CGEN_CPU_DIR)/sh.cpu
115
        touch $@
116
desc.h: $(CGEN_MAINT) stamp-desc
117
        @true
118
 
119
stamp-cpu: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_CPU_DIR)/sh.cpu $(CGEN_CPU_DIR)/sh.opc $(CGEN_CPU_DIR)/sh64-compact.cpu $(CGEN_CPU_DIR)/sh64-media.cpu $(CGEN_CPU_DIR)/sh-sim.cpu Makefile
120
        $(MAKE) cgen-cpu $(CGEN_FLAGS_TO_PASS) \
121
          cpu=sh64 mach=sh4,sh5 isa=compact,media FLAGS="with-multiple-isa with-scache" archfile=$(CGEN_CPU_DIR)/sh.cpu
122
        rm -f $(srcdir)/model.c
123
        touch $@
124
cpu.h: $(CGEN_MAINT) stamp-cpu
125
        @true
126
 
127
stamp-defs-compact: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_CPU_DIR)/sh.cpu $(CGEN_CPU_DIR)/sh.opc $(CGEN_CPU_DIR)/sh64-compact.cpu $(CGEN_CPU_DIR)/sh-sim.cpu Makefile
128
        $(MAKE) cgen-defs $(CGEN_FLAGS_TO_PASS) \
129
          cpu=sh64 mach=sh5 isa=compact FLAGS="with-scache" SUFFIX="-compact" archfile=$(CGEN_CPU_DIR)/sh.cpu
130
        touch $@
131
defs-compact.h: $(CGEN_MAINT) stamp-defs-compact
132
        @true
133
 
134
stamp-defs-media: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_CPU_DIR)/sh.cpu $(CGEN_CPU_DIR)/sh.opc $(CGEN_CPU_DIR)/sh64-media.cpu $(CGEN_CPU_DIR)/sh-sim.cpu Makefile
135
        $(MAKE) cgen-defs $(CGEN_FLAGS_TO_PASS) \
136
          cpu=sh64 mach=sh5 isa=media FLAGS="with-scache" SUFFIX="-media" archfile=$(CGEN_CPU_DIR)/sh.cpu
137
        touch $@
138
defs-media.h: $(CGEN_MAINT) stamp-defs-media
139
 
140
stamp-decode-compact: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CGEN_CPU_DIR)/sh.cpu $(CGEN_CPU_DIR)/sh.opc $(CGEN_CPU_DIR)/sh64-compact.cpu $(CGEN_CPU_DIR)/sh-sim.cpu Makefile
141
        $(MAKE) cgen-decode $(CGEN_FLAGS_TO_PASS) \
142
          cpu=sh64 mach=sh5 isa=compact FLAGS="with-scache" SUFFIX="-compact" EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)" \
143
          archfile=$(CGEN_CPU_DIR)/sh.cpu
144
        touch $@
145
sem-compact.c sem-compact-switch.c decode-compact.c decode-compact.h: $(CGEN_MAINT) stamp-decode-compact
146
        @true
147
 
148
stamp-decode-media: $(CGEN_READ_SCM) $(CGEN_CPU_SCM) $(CGEN_DECODE_SCM) $(CGEN_CPU_DIR)/sh.cpu $(CGEN_CPU_DIR)/sh.opc $(CGEN_CPU_DIR)/sh64-media.cpu $(CGEN_CPU_DIR)/sh-sim.cpu Makefile
149
        $(MAKE) cgen-decode $(CGEN_FLAGS_TO_PASS) \
150
          cpu=sh64 mach=sh5 isa=media FLAGS="with-scache" SUFFIX="-media" EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)" \
151
          archfile=$(CGEN_CPU_DIR)/sh.cpu
152
        touch $@
153
sem-media.c sem-media-switch.c decode-media.c decode-media.h: $(CGEN_MAINT) stamp-decode-media
154
        @true

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.