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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [sim/] [sh64/] [Makefile.in] - Blame information for rev 855

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

Line No. Rev Author Line
1 330 jeremybenn
# Makefile template for Configure for the SH64 simulator
2
# Copyright (C) 2000, 2008, 2009, 2010 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 sh-desc.h sh-opc.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
sh-desc.o: sh-desc.c $(SIM_MAIN_DEPS)
59
 
60
devices.o: devices.c $(SIM_MAIN_DEPS)
61
 
62
# SH64 objs
63
 
64
SH64_INCLUDE_DEPS = \
65
        $(CGEN_MAIN_CPU_DEPS) \
66
        cpu.h decode.h \
67
        decode-compact.h eng-compact.h defs-compact.h \
68
        decode-media.h eng-media.h defs-media.h
69
 
70
sh64.o: sh64.c $(SH64_INCLUDE_DEPS)
71
 
72
mloop-compact.o: mloop-compact.c sem-compact-switch.c $(SH64_INCLUDE_DEPS)
73
        $(CC) -c $(srcdir)/mloop-compact.c $(ALL_CFLAGS) -DWANT_ISA_COMPACT
74
 
75
mloop-media.o: mloop-media.c sem-media-switch.c $(SH64_INCLUDE_DEPS)
76
        $(CC) -c $(srcdir)/mloop-media.c $(ALL_CFLAGS) -DWANT_ISA_MEDIA
77
 
78
cpu.o: $(srcdir)/cpu.c $(SH64_INCLUDE_DEPS)
79
 
80
decode-compact.o: decode-compact.c $(SH64_INCLUDE_DEPS)
81
        $(CC) -c $(srcdir)/decode-compact.c $(ALL_CFLAGS) -DWANT_ISA_COMPACT
82
 
83
sem-compact.o: sem-compact.c $(SH64_INCLUDE_DEPS)
84
        $(CC) -c $(srcdir)/sem-compact.c $(ALL_CFLAGS) -DWANT_ISA_COMPACT
85
 
86
decode-media.o: decode-media.c $(SH64_INCLUDE_DEPS)
87
        $(CC) -c $(srcdir)/decode-media.c $(ALL_CFLAGS) -DWANT_ISA_MEDIA
88
 
89
sem-media.o: sem-media.c $(SH64_INCLUDE_DEPS)
90
        $(CC) -c $(srcdir)/sem-media.c $(ALL_CFLAGS) -DWANT_ISA_MEDIA
91
 
92
sh64-clean:
93
        rm -f tmp-*
94
        rm -f stamp-defs-{compact,media}
95
        rm -f stamp-arch stamp-desc stamp-cpu stamp-decode-{compact,media}
96
 
97
# cgen support, enable with --enable-cgen-maint
98
CGEN_MAINT = ; @true
99
# The following line is commented in or out depending upon --enable-cgen-maint.
100
@CGEN_MAINT@CGEN_MAINT =
101
 
102
# Utility rules for humans.
103
.PHONY: stamp-all stamp-decode stamp-defs
104
stamp-all: stamp-arch stamp-desc stamp-cpu stamp-decode stamp-defs
105
stamp-decode: stamp-decode-compact stamp-decode-media
106
stamp-defs: stamp-defs-compact stamp-defs-media
107
 
108
# NOTE: Generated source files are specified as full paths,
109
# e.g. $(srcdir)/arch.c, because make may decide the files live
110
# in objdir otherwise.
111
 
112
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
113
        $(MAKE) cgen-arch $(CGEN_FLAGS_TO_PASS) mach=all isa=compact,media archfile=$(CGEN_CPU_DIR)/sh.cpu \
114
          FLAGS="with-scache"
115
        touch $@
116
$(srcdir)/arch.h $(srcdir)/arch.c $(srcdir)/cpuall.h: $(CGEN_MAINT) stamp-arch
117
        @true
118
 
119
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
120
        $(MAKE) cgen-desc $(CGEN_FLAGS_TO_PASS) cpu=sh64 mach=all isa=compact,media archfile=$(CGEN_CPU_DIR)/sh.cpu
121
        touch $@
122
$(srcdir)/sh-desc.h $(srcdir)/sh-desc.c $(srcdir)/sh-opc.h: $(CGEN_MAINT) stamp-desc
123
        @true
124
 
125
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
126
        $(MAKE) cgen-cpu $(CGEN_FLAGS_TO_PASS) \
127
          cpu=sh64 mach=sh4,sh5 isa=compact,media FLAGS="with-multiple-isa with-scache" archfile=$(CGEN_CPU_DIR)/sh.cpu
128
        rm -f $(srcdir)/model.c
129
        touch $@
130
$(srcdir)/cpu.h $(srcdir)/cpu.c: $(CGEN_MAINT) stamp-cpu
131
        @true
132
 
133
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
134
        $(MAKE) cgen-defs $(CGEN_FLAGS_TO_PASS) \
135
          cpu=sh64 mach=sh5 isa=compact FLAGS="with-scache" SUFFIX="-compact" archfile=$(CGEN_CPU_DIR)/sh.cpu
136
        touch $@
137
$(srcdir)/defs-compact.h: $(CGEN_MAINT) stamp-defs-compact
138
        @true
139
 
140
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
141
        $(MAKE) cgen-defs $(CGEN_FLAGS_TO_PASS) \
142
          cpu=sh64 mach=sh5 isa=media FLAGS="with-scache" SUFFIX="-media" archfile=$(CGEN_CPU_DIR)/sh.cpu
143
        touch $@
144
$(srcdir)/defs-media.h: $(CGEN_MAINT) stamp-defs-media
145
 
146
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
147
        $(MAKE) cgen-decode $(CGEN_FLAGS_TO_PASS) \
148
          cpu=sh64 mach=sh5 isa=compact FLAGS="with-scache" SUFFIX="-compact" EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)" \
149
          archfile=$(CGEN_CPU_DIR)/sh.cpu
150
        touch $@
151
$(srcdir)/sem-compact.c $(srcdir)/sem-compact-switch.c $(srcdir)/decode-compact.c $(srcdir)/decode-compact.h: $(CGEN_MAINT) stamp-decode-compact
152
        @true
153
 
154
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
155
        $(MAKE) cgen-decode $(CGEN_FLAGS_TO_PASS) \
156
          cpu=sh64 mach=sh5 isa=media FLAGS="with-scache" SUFFIX="-media" EXTRAFILES="$(CGEN_CPU_SEM) $(CGEN_CPU_SEMSW)" \
157
          archfile=$(CGEN_CPU_DIR)/sh.cpu
158
        touch $@
159
$(srcdir)/sem-media.c $(srcdir)/sem-media-switch.c $(srcdir)/decode-media.c $(srcdir)/decode-media.h: $(CGEN_MAINT) stamp-decode-media
160
        @true

powered by: WebSVN 2.1.0

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