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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [cpu/] [or32/] [Makefile.am] - Blame information for rev 352

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

Line No. Rev Author Line
1 19 jeremybenn
# Makefile -- Makefile for OR32 dependent simulation
2
#
3
# Copyright (C) 1999 Damjan Lampret, lampret@opencores.org
4
# Copyright (C) 2008 Embecosm Limited
5
#
6
# Contributor Jeremy Bennett 
7
#
8
# This file is part of OpenRISC 1000 Architectural Simulator.
9
#
10
# This program is free software; you can redistribute it and/or modify it
11
# under the terms of the GNU General Public License as published by the Free
12
# Software Foundation; either version 3 of the License, or (at your option)
13
# any later version.
14
#
15
# This program is distributed in the hope that it will be useful, but WITHOUT
16
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
18
# more details.
19
#
20
# You should have received a copy of the GNU General Public License along
21
# with this program.  If not, see .
22
 
23
 
24
if DYNAMIC_EXECUTION
25
 
26
noinst_LTLIBRARIES = libarch.la
27
 
28
noinst_PROGRAMS    = dyngen
29
 
30
libarch_la_SOURCES = execute.c         \
31
                     or32.c            \
32
                     op.c              \
33
                     dyn-rec.c         \
34
                     op-support.c      \
35
                     common-i386.h     \
36
                     dyn32-defs.h      \
37
                     dyngen.h          \
38
                     dyn-rec.h         \
39
                     i386-regs.h       \
40
                     op-arith-op.h     \
41
                     op-comp-op.h      \
42
                     op-extend-op.h    \
43
                     op-ff1-op.h       \
44
                     op-i386.h         \
45
                     op-lwhb-op.h      \
46
                     op-mac-op.h       \
47
                     op-mftspr-op.h    \
48
                     op-support.h      \
49
                     op-swhb-op.h      \
50
                     op-t-reg-mov-op.h \
51
                     rec-i386.h        \
52
                     sched-i386.h      \
53
                     simpl32-defs.h
54
 
55
nodist_libarch_la_SOURCES = gen-ops.h     \
56
                            gen-ops.c     \
57
                            gen-ops-gen.c \
58
                            gen-ops-rel.c
59
 
60
BUILT_SOURCES      = gen-ops.h     \
61
                     gen-ops.c     \
62
                     gen-ops-gen.c \
63
                     gen-ops-rel.c
64
 
65
dyngen_SOURCES     = dyngen.c          \
66
                     dyngen-i386.c     \
67
                     dyngen-elf.c      \
68
                     common-i386.h     \
69
                     dyn32-defs.h      \
70
                     dyngen.h          \
71
                     dyn-rec.h         \
72
                     i386-regs.h       \
73
                     op-arith-op.h     \
74
                     op-comp-op.h      \
75
                     op-extend-op.h    \
76
                     op-ff1-op.h       \
77
                     op-i386.h         \
78
                     op-lwhb-op.h      \
79
                     op-mac-op.h       \
80
                     op-mftspr-op.h    \
81
                     op-support.h      \
82
                     op-swhb-op.h      \
83
                     op-t-reg-mov-op.h \
84
                     rec-i386.h        \
85
                     sched-i386.h      \
86
                     simpl32-defs.h
87
dyngen_CFLAGS      = $(AM_CFLAGS)
88
 
89
gen-ops.h gen-ops.c gen-ops-gen.c gen-ops-rel.c: dyngen$(EXEEXT) op-tmp.o
90
        ./dyngen$(EXEEXT) op-tmp.o gen-ops.c gen-ops-gen.c gen-ops-rel.c gen-ops.h
91
 
92
OP_CFLAGS          = -Wall -fomit-frame-pointer -fno-reorder-blocks -O2
93
 
94
op-tmp.o: op.c op-t-reg-mov-op.h op-i386.h op-arith-op.h op-comp-op.h \
95
      op-extend-op.h op-ff1-op.h op-mac-op.h op-mftspr-op.h op-lwhb-op.h \
96
      op-swhb-op.h
97
        $(CC) $(INCLUDES)  -I$(top_builddir) $(OP_CFLAGS) -o $@ -c $<
98
else
99
 
100
noinst_LTLIBRARIES = libarch.la
101
 
102
if GENERATE_NEEDED
103
 
104
EXTRA_DIST         = insnset.c
105
 
106
libarch_la_SOURCES = execute.c         \
107
                     or32.c            \
108
                     common-i386.h     \
109
                     dyn32-defs.h      \
110
                     dyngen.h          \
111
                     dyn-rec.h         \
112
                     i386-regs.h       \
113
                     op-arith-op.h     \
114
                     op-comp-op.h      \
115
                     op-extend-op.h    \
116
                     op-ff1-op.h       \
117
                     op-i386.h         \
118
                     op-lwhb-op.h      \
119
                     op-mac-op.h       \
120
                     op-mftspr-op.h    \
121
                     op-support.h      \
122
                     op-swhb-op.h      \
123
                     op-t-reg-mov-op.h \
124
                     rec-i386.h        \
125
                     sched-i386.h      \
126
                     simpl32-defs.h
127
 
128
BUILT_SOURCES      = execgen.c
129
 
130
noinst_PROGRAMS    = generate$(EXEEXT)
131
 
132
generate_SOURCES   = or32.c            \
133
                     generate.c        \
134
                     common-i386.h     \
135
                     dyn32-defs.h      \
136
                     dyngen.h          \
137
                     dyn-rec.h         \
138
                     i386-regs.h       \
139
                     op-arith-op.h     \
140
                     op-comp-op.h      \
141
                     op-extend-op.h    \
142
                     op-ff1-op.h       \
143
                     op-i386.h         \
144
                     op-lwhb-op.h      \
145
                     op-mac-op.h       \
146
                     op-mftspr-op.h    \
147
                     op-support.h      \
148
                     op-swhb-op.h      \
149
                     op-t-reg-mov-op.h \
150
                     rec-i386.h        \
151
                     sched-i386.h      \
152
                     simpl32-defs.h
153
 
154
generate_CFLAGS    = $(AM_CFLAGS)
155
 
156
execgen.c: generate$(EXEEXT) insnset.c
157
        ./generate$(EXEEXT) $(srcdir)/insnset.c execgen.c
158
 
159
else
160
 
161
libarch_la_SOURCES = execute.c         \
162
                     or32.c            \
163
                     common-i386.h     \
164
                     dyn32-defs.h      \
165
                     dyngen.h          \
166
                     dyn-rec.h         \
167
                     i386-regs.h       \
168
                     op-arith-op.h     \
169
                     op-comp-op.h      \
170
                     op-extend-op.h    \
171
                     op-ff1-op.h       \
172
                     op-i386.h         \
173
                     op-lwhb-op.h      \
174
                     op-mac-op.h       \
175
                     op-mftspr-op.h    \
176
                     op-support.h      \
177
                     op-swhb-op.h      \
178
                     op-t-reg-mov-op.h \
179
                     rec-i386.h        \
180
                     sched-i386.h      \
181
                     simpl32-defs.h
182
 
183
dist_EXTRA_libarch_la_SOURCES = insnset.c
184
 
185
endif
186
endif
187
 
188
# If the simulator was first built without --enable-simple and then with it,
189
# then also remove these two files
190
 
191
CLEANFILES = execgen.c \
192
             generate \
193
             gen-ops.c \
194
             gen-ops.h \
195
             gen-ops-rel.c \
196
             gen-ops-gen.c

powered by: WebSVN 2.1.0

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