Commit | Line | Data |
---|---|---|
54cc8ed4 DE |
1 | ## Process this file with automake to generate Makefile.in |
2 | ||
25161728 ILT |
3 | AUTOMAKE_OPTIONS = cygnus |
4 | ||
54cc8ed4 DE |
5 | INCDIR = $(srcdir)/../include |
6 | BFDDIR = $(srcdir)/../bfd | |
7 | DEP = mkdep | |
8 | ||
9 | lib_LTLIBRARIES = libopcodes.la | |
10 | ||
11 | # This is where bfd.h lives. | |
12 | BFD_H = ../bfd/bfd.h | |
13 | ||
14 | # Header files. | |
15 | HFILES = \ | |
16 | arm-opc.h \ | |
17 | h8500-opc.h \ | |
18 | sh-opc.h \ | |
19 | sysdep.h \ | |
20 | w65-opc.h \ | |
21 | z8k-opc.h | |
22 | ||
23 | # C source files that correspond to .o's. | |
24 | CFILES = \ | |
25 | a29k-dis.c \ | |
26 | alpha-dis.c \ | |
27 | alpha-opc.c \ | |
28 | arm-dis.c \ | |
29 | cgen-asm.c \ | |
30 | cgen-dis.c \ | |
31 | cgen-opc.c \ | |
32 | d10v-dis.c \ | |
33 | d10v-opc.c \ | |
34 | dis-buf.c \ | |
35 | disassemble.c \ | |
36 | h8300-dis.c \ | |
37 | h8500-dis.c \ | |
38 | hppa-dis.c \ | |
39 | i386-dis.c \ | |
40 | i960-dis.c \ | |
41 | m32r-asm.c \ | |
42 | m32r-dis.c \ | |
43 | m32r-opc.c \ | |
44 | m68k-dis.c \ | |
45 | m68k-opc.c \ | |
46 | m88k-dis.c \ | |
47 | mips-dis.c \ | |
48 | mips-opc.c \ | |
49 | mips16-opc.c \ | |
50 | m10200-dis.c \ | |
51 | m10200-opc.c \ | |
52 | m10300-dis.c \ | |
53 | m10300-opc.c \ | |
54 | ns32k-dis.c \ | |
55 | ppc-dis.c \ | |
56 | ppc-opc.c \ | |
57 | sh-dis.c \ | |
58 | sparc-dis.c \ | |
59 | sparc-opc.c \ | |
ab0bd049 | 60 | tic30-dis.c \ |
54cc8ed4 DE |
61 | w65-dis.c \ |
62 | z8k-dis.c \ | |
63 | z8kgen.c | |
64 | ||
65 | ALL_MACHINES = \ | |
66 | a29k-dis.lo \ | |
67 | alpha-dis.lo \ | |
68 | alpha-opc.lo \ | |
69 | arc-dis.lo \ | |
70 | arc-opc.lo \ | |
71 | arm-dis.lo \ | |
72 | cgen-asm.lo \ | |
73 | cgen-dis.lo \ | |
74 | cgen-opc.lo \ | |
75 | d10v-dis.lo \ | |
76 | d10v-opc.lo \ | |
77 | $(start-sanitize-d30v) \ | |
78 | d30v-dis.lo \ | |
79 | d30v-opc.lo \ | |
80 | $(end-sanitize-d30v) \ | |
81 | h8300-dis.lo \ | |
82 | h8500-dis.lo \ | |
83 | hppa-dis.lo \ | |
84 | i386-dis.lo \ | |
85 | i960-dis.lo \ | |
86 | m32r-asm.lo \ | |
87 | m32r-dis.lo \ | |
88 | m32r-opc.lo \ | |
89 | m68k-dis.lo \ | |
90 | m68k-opc.lo \ | |
91 | m88k-dis.lo \ | |
92 | m10200-dis.lo \ | |
93 | m10200-opc.lo \ | |
94 | m10300-dis.lo \ | |
95 | m10300-opc.lo \ | |
96 | mips-dis.lo \ | |
97 | mips-opc.lo \ | |
98 | mips16-opc.lo \ | |
99 | ppc-dis.lo \ | |
100 | ppc-opc.lo \ | |
101 | ns32k-dis.lo \ | |
102 | sh-dis.lo \ | |
103 | sparc-dis.lo \ | |
104 | sparc-opc.lo \ | |
ab0bd049 | 105 | tic30-dis.lo \ |
54cc8ed4 DE |
106 | $(start-sanitize-tic80) \ |
107 | tic80-dis.lo \ | |
108 | tic80-opc.lo \ | |
109 | $(end-sanitize-tic80) \ | |
110 | $(start-sanitize-sky) \ | |
37130f11 DE |
111 | dvp-dis.lo \ |
112 | dvp-opc.lo \ | |
54cc8ed4 DE |
113 | $(end-sanitize-sky) \ |
114 | v850-dis.lo \ | |
115 | v850-opc.lo \ | |
116 | w65-dis.lo \ | |
117 | z8k-dis.lo | |
118 | ||
119 | OFILES = @BFD_MACHINES@ | |
120 | ||
121 | INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ | |
122 | ||
123 | disassemble.lo: disassemble.c $(INCDIR)/dis-asm.h | |
124 | $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/disassemble.c | |
125 | ||
126 | libopcodes_la_SOURCES = dis-buf.c disassemble.c | |
127 | libopcodes_la_DEPENDENCIES = $(OFILES) | |
128 | libopcodes_la_LIBADD = $(OFILES) | |
3a994653 | 129 | libopcodes_la_LDFLAGS = -release $(VERSION) |
54cc8ed4 DE |
130 | |
131 | # libtool will build .libs/libopcodes.a. We create libopcodes.a in | |
132 | # the build directory so that we don't have to convert all the | |
133 | # programs that use libopcodes.a simultaneously. This is a hack which | |
134 | # should be removed if everything else starts using libtool. FIXME. | |
135 | ||
136 | noinst_LIBRARIES = libopcodes.a | |
137 | ||
138 | stamp-lib: libopcodes.la | |
139 | cp .libs/libopcodes.a libopcodes.tmp | |
140 | $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a | |
141 | touch stamp-lib | |
142 | ||
143 | libopcodes.a: stamp-lib ; @true | |
144 | ||
145 | CLEANFILES = libopcodes.a stamp-lib dep.sed .dep .dep1 | |
bfc10abe DE |
146 | # start-sanitize-cygnus |
147 | CLEANFILES = libopcodes.a stamp-lib dep.sed .dep .dep1 stamp-m32r | |
148 | # end-sanitize-cygnus | |
149 | ||
150 | # start-sanitize-cygnus | |
151 | # CGEN support is sanitized out of FSF releases for now. | |
152 | # Sanitization must be split between assignments and rules because | |
153 | # automake splits them that way. | |
154 | ||
155 | SCHEME = @SCHEME@ | |
156 | SCHEMEFLAGS = -s | |
157 | CGENDIR = $(srcdir)/../cgen | |
158 | CGENFLAGS = -v | |
159 | ||
160 | CGENFILES = $(CGENDIR)/object.scm $(CGENDIR)/utils.scm \ | |
ffee80df | 161 | $(CGENDIR)/attr.scm $(CGENDIR)/enum.scm $(CGENDIR)/types.scm \ |
bfc10abe DE |
162 | $(CGENDIR)/utils-cgen.scm $(CGENDIR)/cpu.scm \ |
163 | $(CGENDIR)/mode.scm $(CGENDIR)/mach.scm \ | |
ffee80df | 164 | $(CGENDIR)/model.scm $(CGENDIR)/hardware.scm \ |
bfc10abe DE |
165 | $(CGENDIR)/ifield.scm $(CGENDIR)/iformat.scm \ |
166 | $(CGENDIR)/operand.scm $(CGENDIR)/insn.scm \ | |
ffee80df JL |
167 | $(CGENDIR)/opcodes.scm $(CGENDIR)/cdl-c.scm \ |
168 | $(CGENDIR)/cgen-opc.scm cgen-opc.in cgen-asm.in cgen-dis.in | |
bfc10abe DE |
169 | # The end marker is written this way to pass through automake unscathed. |
170 | ENDSAN = end-sanitize-cygnus | |
171 | ||
172 | # start-sanitize-cygnus | |
173 | cgen: | |
3b7029b1 | 174 | $(SHELL) $(srcdir)/cgen.sh opcodes $(srcdir) $(CGENDIR) $(CGENFLAGS) $(SCHEME) $(SCHEMEFLAGS) $(arch) |
bfc10abe DE |
175 | touch stamp-${arch} |
176 | ||
177 | .PHONY: cgen | |
178 | ||
179 | # For now, require developers to configure with --enable-maintainer-mode. | |
180 | # ??? Do we need to use a different option? | |
181 | m32r-opc.h m32r-opc.c m32r-asm.c m32r-dis.c: @MAINT@ stamp-m32r | |
182 | @true | |
183 | stamp-m32r: $(CGENFILES) $(CGENDIR)/m32r.cpu $(CGENDIR)/m32r.opc | |
184 | $(MAKE) cgen arch=m32r prefix=m32r | |
185 | # end-sanitize-cygnus | |
54cc8ed4 DE |
186 | |
187 | # start-sanitize-tic80 | |
188 | tic80-dis.lo: tic80-dis.c $(INCDIR)/dis-asm.h ../bfd/bfd.h \ | |
189 | $(INCDIR)/opcode/tic80.h | |
190 | tic80-opc.lo: tic80-opc.c $(INCDIR)/opcode/tic80.h | |
191 | # end-sanitize-tic80 | |
192 | ||
193 | # start-sanitize-sky | |
a6616528 | 194 | dvp-dis.lo: dvp-dis.c $(INCDIR)/dis-asm.h ../bfd/bfd.h \ |
37130f11 DE |
195 | $(INCDIR)/opcode/dvp.h |
196 | dvp-opc.lo: dvp-opc.c $(INCDIR)/opcode/dvp.h | |
197 | ||
198 | mips-dis.lo: mips-dis.c | |
199 | $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/mips-dis.c | |
54cc8ed4 DE |
200 | # end-sanitize-sky |
201 | ||
202 | # This dependency stuff is copied from BFD. | |
203 | ||
204 | .dep: dep.sed $(CFILES) $(HFILES) config.h | |
205 | rm -f .dep1 | |
206 | $(MAKE) DEP=$(DEP) .dep1 | |
207 | sed -f dep.sed < .dep1 > .dep | |
208 | ||
209 | .dep1: $(CFILES) | |
210 | rm -f .dep2 .dep2a | |
211 | echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2 | |
212 | echo > .dep2a | |
213 | $(DEP) -f .dep2a $(INCLUDES) $(CFLAGS) $? | |
214 | sed -e '/DO NOT DELETE/d' -e '/^$$/d' < .dep2a >> .dep2 | |
215 | rm -f .dep2a | |
216 | $(srcdir)/../move-if-change .dep2 .dep1 | |
217 | ||
218 | dep.sed: dep-in.sed config.status | |
219 | sed <$(srcdir)/dep-in.sed >dep.sed \ | |
220 | -e 's!@BFD_H@!$(BFD_H)!' \ | |
221 | -e 's!@INCDIR@!$(INCDIR)!' \ | |
222 | -e 's!@BFDDIR@!$(BFDDIR)!' \ | |
223 | -e 's!@SRCDIR@!$(srcdir)!' | |
224 | ||
225 | dep: .dep | |
226 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile | |
227 | cat .dep >> tmp-Makefile | |
228 | $(srcdir)/../move-if-change tmp-Makefile Makefile | |
229 | ||
230 | dep-in: .dep | |
231 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in | |
232 | cat .dep >> tmp-Makefile.in | |
233 | $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in | |
234 | ||
235 | dep-am: .dep | |
236 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am | |
237 | cat .dep >> tmp-Makefile.am | |
238 | $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am | |
239 | ||
240 | .PHONY: dep dep-in dep-am | |
241 | ||
242 | # What appears below is generated by a hacked mkdep using gcc -MM. | |
243 | ||
244 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
245 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
246 | a29k-dis.lo: a29k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ | |
247 | $(INCDIR)/ansidecl.h $(INCDIR)/opcode/a29k.h | |
248 | alpha-dis.lo: alpha-dis.c $(INCDIR)/ansidecl.h sysdep.h \ | |
249 | config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h | |
250 | alpha-opc.lo: alpha-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/alpha.h \ | |
251 | $(BFD_H) | |
252 | arm-dis.lo: arm-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ | |
ab0bd049 DE |
253 | $(INCDIR)/ansidecl.h arm-opc.h $(INCDIR)/coff/internal.h \ |
254 | $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h | |
54cc8ed4 DE |
255 | cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/libiberty.h \ |
256 | $(BFD_H) $(INCDIR)/opcode/cgen.h | |
257 | cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/libiberty.h \ | |
258 | $(BFD_H) $(INCDIR)/opcode/cgen.h | |
259 | cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \ | |
260 | $(BFD_H) $(INCDIR)/opcode/cgen.h | |
261 | d10v-dis.lo: d10v-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h \ | |
262 | $(INCDIR)/dis-asm.h $(BFD_H) | |
263 | d10v-opc.lo: d10v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h | |
264 | dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/dis-asm.h \ | |
265 | $(BFD_H) | |
266 | disassemble.lo: disassemble.c $(INCDIR)/ansidecl.h \ | |
267 | $(INCDIR)/dis-asm.h $(BFD_H) | |
268 | h8300-dis.lo: h8300-dis.c $(INCDIR)/opcode/h8300.h \ | |
269 | $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/ansidecl.h | |
270 | h8500-dis.lo: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h \ | |
271 | $(BFD_H) $(INCDIR)/ansidecl.h | |
272 | hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ | |
273 | $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h | |
274 | i386-dis.lo: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ | |
275 | $(INCDIR)/ansidecl.h sysdep.h config.h | |
276 | i960-dis.lo: i960-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ | |
277 | $(INCDIR)/ansidecl.h | |
278 | m32r-asm.lo: m32r-asm.c sysdep.h config.h $(BFD_H) \ | |
279 | m32r-opc.h $(INCDIR)/opcode/cgen.h | |
280 | m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ | |
281 | $(BFD_H) m32r-opc.h $(INCDIR)/opcode/cgen.h | |
282 | m32r-opc.lo: m32r-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \ | |
283 | $(BFD_H) m32r-opc.h $(INCDIR)/opcode/cgen.h | |
284 | m68k-dis.lo: m68k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ | |
285 | $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h $(INCDIR)/opcode/m68k.h | |
286 | m68k-opc.lo: m68k-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m68k.h | |
287 | m88k-dis.lo: m88k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ | |
288 | $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m88k.h | |
289 | mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ | |
290 | $(BFD_H) $(INCDIR)/opcode/mips.h $(BFDDIR)/elf-bfd.h \ | |
291 | $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ | |
292 | $(INCDIR)/bfdlink.h $(INCDIR)/elf/mips.h | |
293 | mips-opc.lo: mips-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h | |
25957cb0 | 294 | start-sanitize-r5900 |
ffee80df | 295 | mips-opc.lo: vu0.h |
25957cb0 | 296 | end-sanitize-r5900 |
54cc8ed4 DE |
297 | mips16-opc.lo: mips16-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h |
298 | m10200-dis.lo: m10200-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h \ | |
299 | $(INCDIR)/dis-asm.h $(BFD_H) | |
300 | m10200-opc.lo: m10200-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h | |
301 | m10300-dis.lo: m10300-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h \ | |
302 | $(INCDIR)/dis-asm.h $(BFD_H) | |
303 | m10300-opc.lo: m10300-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h | |
304 | ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \ | |
305 | sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h | |
306 | ppc-dis.lo: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \ | |
307 | config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h | |
308 | ppc-opc.lo: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h | |
309 | sh-dis.lo: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H) \ | |
310 | $(INCDIR)/ansidecl.h | |
311 | sparc-dis.lo: sparc-dis.c $(INCDIR)/ansidecl.h sysdep.h \ | |
312 | config.h $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h \ | |
313 | $(BFD_H) $(INCDIR)/libiberty.h | |
314 | sparc-opc.lo: sparc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/sparc.h | |
ab0bd049 DE |
315 | tic30-dis.lo: tic30-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ |
316 | $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic30.h | |
54cc8ed4 DE |
317 | w65-dis.lo: w65-dis.c w65-opc.h $(INCDIR)/dis-asm.h \ |
318 | $(BFD_H) $(INCDIR)/ansidecl.h | |
319 | z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ | |
320 | $(BFD_H) z8k-opc.h | |
321 | z8kgen.lo: z8kgen.c sysdep.h config.h | |
322 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |