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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [or1ksim/] [cpu/] [or32/] [Makefile.am] - Blame information for rev 1775

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

Line No. Rev Author Line
1 54 lampret
# Makefile -- Makefile for OR32 dependent simulation
2 1744 jeremybenn
#
3 7 jrydberg
# Copyright (C) 1999 Damjan Lampret, lampret@opencores.org
4 1744 jeremybenn
# Copyright (C) 2008 Embecosm Limited
5 7 jrydberg
#
6 1744 jeremybenn
# Contributor Jeremy Bennett 
7
#
8 7 jrydberg
# This file is part of OpenRISC 1000 Architectural Simulator.
9
#
10 1744 jeremybenn
# 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 7 jrydberg
#
15 1744 jeremybenn
# 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 7 jrydberg
#
20 1744 jeremybenn
# You should have received a copy of the GNU General Public License along
21
# with this program.  If not, see .
22 7 jrydberg
 
23 1744 jeremybenn
 
24 1452 nogj
if DYNAMIC_EXECUTION
25 706 markom
 
26 1751 jeremybenn
noinst_LTLIBRARIES = libarch.la
27 1748 jeremybenn
 
28 1745 jeremybenn
noinst_PROGRAMS    = dyngen
29 1452 nogj
 
30 1751 jeremybenn
libarch_la_SOURCES = execute.c         \
31
                     or32.c            \
32
                     op.c              \
33
                     dyn-rec.c         \
34
                     op-support.c      \
35 1748 jeremybenn
                     common-i386.h     \
36
                     dyn32-defs.h      \
37 1745 jeremybenn
                     dyngen.h          \
38 1748 jeremybenn
                     dyn-rec.h         \
39 1751 jeremybenn
                     i386-regs.h       \
40 1748 jeremybenn
                     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 1452 nogj
 
55 1751 jeremybenn
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 1748 jeremybenn
                     common-i386.h     \
69
                     dyn32-defs.h      \
70 1745 jeremybenn
                     dyngen.h          \
71 1748 jeremybenn
                     dyn-rec.h         \
72 1751 jeremybenn
                     i386-regs.h       \
73 1748 jeremybenn
                     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 1751 jeremybenn
dyngen_CFLAGS      = $(AM_CFLAGS)
88 1452 nogj
 
89 1751 jeremybenn
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 1452 nogj
 
92 1751 jeremybenn
OP_CFLAGS          = -Wall -fomit-frame-pointer -fno-reorder-blocks -O2
93 1452 nogj
 
94 1751 jeremybenn
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 706 markom
else
99 1452 nogj
 
100 1748 jeremybenn
noinst_LTLIBRARIES = libarch.la
101
 
102
if GENERATE_NEEDED
103
 
104
EXTRA_DIST         = insnset.c
105
 
106 1745 jeremybenn
libarch_la_SOURCES = execute.c         \
107
                     or32.c            \
108 1748 jeremybenn
                     common-i386.h     \
109
                     dyn32-defs.h      \
110 1745 jeremybenn
                     dyngen.h          \
111 1748 jeremybenn
                     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 1452 nogj
 
128 1748 jeremybenn
BUILT_SOURCES      = execgen.c
129 1452 nogj
 
130 1748 jeremybenn
noinst_PROGRAMS    = generate$(EXEEXT)
131 706 markom
 
132 1745 jeremybenn
generate_SOURCES   = or32.c            \
133
                     generate.c        \
134 1748 jeremybenn
                     common-i386.h     \
135
                     dyn32-defs.h      \
136 1745 jeremybenn
                     dyngen.h          \
137 1748 jeremybenn
                     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 1745 jeremybenn
 
154
generate_CFLAGS    = $(AM_CFLAGS)
155
 
156 1748 jeremybenn
execgen.c: generate$(EXEEXT) insnset.c
157 1512 nogj
        ./generate$(EXEEXT) $(srcdir)/insnset.c execgen.c
158 1345 nogj
 
159 1452 nogj
else
160
 
161 1748 jeremybenn
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 1452 nogj
 
183 1751 jeremybenn
dist_EXTRA_libarch_la_SOURCES = insnset.c
184
 
185 706 markom
endif
186 1452 nogj
endif
187 1345 nogj
 
188
# If the simulator was first built without --enable-simple and then with it,
189
# then also remove these two files
190 1745 jeremybenn
 
191
CLEANFILES = execgen.c \
192
             generate \
193 1748 jeremybenn
             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.