* i960c-asm.c,i960c-dis.c,i960c-opc.c,i960c-opc.h: Delete.
[binutils-gdb.git] / opcodes / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2
3 AUTOMAKE_OPTIONS = cygnus
4
5 SUBDIRS = po
6
7 INCDIR = $(srcdir)/../include
8 BFDDIR = $(srcdir)/../bfd
9 DEP = mkdep
10
11 lib_LTLIBRARIES = libopcodes.la
12
13 # This is where bfd.h lives.
14 BFD_H = ../bfd/bfd.h
15
16 # Header files.
17 HFILES = \
18 arm-opc.h \
19 fr30-desc.h fr30-opc.h \
20 h8500-opc.h \
21 m32r-desc.h m32r-opc.h \
22 sh-opc.h \
23 sysdep.h \
24 w65-opc.h \
25 z8k-opc.h
26
27 # C source files that correspond to .o's.
28 CFILES = \
29 a29k-dis.c \
30 alpha-dis.c \
31 alpha-opc.c \
32 arm-dis.c \
33 cgen-asm.c \
34 cgen-dis.c \
35 cgen-opc.c \
36 d10v-dis.c \
37 d10v-opc.c \
38 d30v-dis.c \
39 d30v-opc.c \
40 dis-buf.c \
41 disassemble.c \
42 fr30-asm.c \
43 fr30-desc.c \
44 fr30-dis.c \
45 fr30-ibld.c \
46 fr30-opc.c \
47 h8300-dis.c \
48 h8500-dis.c \
49 hppa-dis.c \
50 i386-dis.c \
51 i960-dis.c \
52 m32r-asm.c \
53 m32r-desc.c \
54 m32r-dis.c \
55 m32r-ibld.c \
56 m32r-opc.c \
57 m32r-opinst.c \
58 m68k-dis.c \
59 m68k-opc.c \
60 m88k-dis.c \
61 mips-dis.c \
62 mips-opc.c \
63 mips16-opc.c \
64 m10200-dis.c \
65 m10200-opc.c \
66 m10300-dis.c \
67 m10300-opc.c \
68 ns32k-dis.c \
69 ppc-dis.c \
70 ppc-opc.c \
71 sh-dis.c \
72 sparc-dis.c \
73 sparc-opc.c \
74 tic30-dis.c \
75 vax-dis.c \
76 w65-dis.c \
77 z8k-dis.c \
78 z8kgen.c
79
80 ALL_MACHINES = \
81 a29k-dis.lo \
82 alpha-dis.lo \
83 alpha-opc.lo \
84 arc-dis.lo \
85 arc-opc.lo \
86 arm-dis.lo \
87 cgen-asm.lo \
88 cgen-dis.lo \
89 cgen-opc.lo \
90 d10v-dis.lo \
91 d10v-opc.lo \
92 d30v-dis.lo \
93 d30v-opc.lo \
94 fr30-asm.lo \
95 fr30-desc.lo \
96 fr30-dis.lo \
97 fr30-ibld.lo \
98 fr30-opc.lo \
99 h8300-dis.lo \
100 h8500-dis.lo \
101 hppa-dis.lo \
102 i386-dis.lo \
103 i960-dis.lo \
104 m32r-asm.lo \
105 m32r-desc.lo \
106 m32r-dis.lo \
107 m32r-ibld.lo \
108 m32r-opc.lo \
109 m32r-opinst.lo \
110 m68k-dis.lo \
111 m68k-opc.lo \
112 m88k-dis.lo \
113 m10200-dis.lo \
114 m10200-opc.lo \
115 m10300-dis.lo \
116 m10300-opc.lo \
117 mips-dis.lo \
118 mips-opc.lo \
119 mips16-opc.lo \
120 ppc-dis.lo \
121 ppc-opc.lo \
122 ns32k-dis.lo \
123 sh-dis.lo \
124 sparc-dis.lo \
125 sparc-opc.lo \
126 tic30-dis.lo \
127 $(start-sanitize-tic80) \
128 tic80-dis.lo \
129 tic80-opc.lo \
130 $(end-sanitize-tic80) \
131 $(start-sanitize-sky) \
132 dvp-dis.lo \
133 dvp-opc.lo \
134 $(end-sanitize-sky) \
135 v850-dis.lo \
136 v850-opc.lo \
137 vax-dis.lo \
138 w65-dis.lo \
139 z8k-dis.lo
140
141 OFILES = @BFD_MACHINES@
142
143 INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ -I$(srcdir)/../intl -I../intl
144
145 disassemble.lo: disassemble.c $(INCDIR)/dis-asm.h
146 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/disassemble.c
147
148 libopcodes_la_SOURCES = dis-buf.c disassemble.c
149 libopcodes_la_DEPENDENCIES = $(OFILES)
150 libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@
151 libopcodes_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
152
153 # libtool will build .libs/libopcodes.a. We create libopcodes.a in
154 # the build directory so that we don't have to convert all the
155 # programs that use libopcodes.a simultaneously. This is a hack which
156 # should be removed if everything else starts using libtool. FIXME.
157
158 noinst_LIBRARIES = libopcodes.a
159
160 stamp-lib: libopcodes.la
161 if [ -f .libs/libopcodes.a ]; then \
162 cp .libs/libopcodes.a libopcodes.tmp; \
163 $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a; \
164 else true; fi
165 touch stamp-lib
166
167 libopcodes.a: stamp-lib ; @true
168
169 POTFILES = $(HFILES) $(CFILES)
170 po/POTFILES.in: @MAINT@ Makefile
171 for file in $(POTFILES); do echo $$file; done | sort > tmp \
172 && mv tmp $(srcdir)/po/POTFILES.in
173
174 # We should reconfigure whenever bfd/configure.in changes, because
175 # that's where the version number comes from.
176 config.status: $(srcdir)/configure $(srcdir)/../bfd/configure.in
177 $(SHELL) ./config.status --recheck
178
179 CLEANFILES = libopcodes.a stamp-lib dep.sed .dep .dep1
180 # start-sanitize-cygnus
181 CLEANFILES = libopcodes.a stamp-lib dep.sed .dep .dep1 \
182 stamp-m32r stamp-fr30
183 # end-sanitize-cygnus
184
185 # start-sanitize-cygnus-never
186 # CGEN support is sanitized out of FSF releases for now.
187 # Sanitization must be split between assignments and rules because
188 # automake splits them that way.
189 # end-sanitize-cygnus-never
190
191 # start-sanitize-cygnus
192 CGENDIR = @cgendir@
193 CGEN = @cgen@
194 CGENFLAGS = -v
195
196 CGENFILES = $(CGENDIR)/cos.scm $(CGENDIR)/utils.scm \
197 $(CGENDIR)/attr.scm $(CGENDIR)/enum.scm $(CGENDIR)/types.scm \
198 $(CGENDIR)/utils-cgen.scm $(CGENDIR)/read.scm \
199 $(CGENDIR)/mode.scm $(CGENDIR)/mach.scm \
200 $(CGENDIR)/model.scm $(CGENDIR)/hardware.scm \
201 $(CGENDIR)/ifield.scm $(CGENDIR)/iformat.scm \
202 $(CGENDIR)/operand.scm $(CGENDIR)/insn.scm $(CGENDIR)/minsn.scm \
203 $(CGENDIR)/rtl.scm $(CGENDIR)/rtx-funcs.scm \
204 $(CGENDIR)/desc.scm $(CGENDIR)/desc-cpu.scm \
205 $(CGENDIR)/opc-asmdis.scm $(CGENDIR)/opc-ibld.scm \
206 $(CGENDIR)/opc-itab.scm $(CGENDIR)/opc-opinst.scm \
207 $(CGENDIR)/opcodes.scm $(CGENDIR)/cgen-opc.scm \
208 cgen-asm.in cgen-dis.in cgen-ibld.in
209 # The CGEN_MAINT conditional is put here so it ends up in Makefile.in
210 # properly sanitised.
211 if CGEN_MAINT
212 M32R_DEPS = stamp-m32r
213 FR30_DEPS = stamp-fr30
214 else
215 M32R_DEPS =
216 FR30_DEPS =
217 endif
218 # The end marker is written this way to pass through automake unscathed.
219 ENDSAN = end-sanitize-cygnus
220
221 # start-sanitize-cygnus
222 run-cgen:
223 $(SHELL) $(srcdir)/cgen.sh opcodes $(srcdir) $(CGEN) $(CGENDIR) $(CGENFLAGS) $(arch) $(prefix) $(options) $(extrafiles)
224 touch stamp-${prefix}
225 .PHONY: run-cgen
226
227 # For now, require developers to configure with --enable-cgen-maint.
228 m32r-desc.h m32r-desc.c m32r-opc.h m32r-opc.c m32r-ibld.c m32r-opinst.c m32r-asm.c m32r-dis.c: $(M32R_DEPS)
229 @true
230 stamp-m32r: $(CGENFILES) $(CGENDIR)/m32r.cpu $(CGENDIR)/m32r.opc
231 $(MAKE) run-cgen arch=m32r prefix=m32r options=opinst extrafiles=opinst
232
233 fr30-desc.h fr30-desc.c fr30-opc.h fr30-opc.c fr30-ibld.c fr30-asm.c fr30-dis.c: $(FR30_DEPS)
234 @true
235 stamp-fr30: $(CGENFILES) $(CGENDIR)/fr30.cpu $(CGENDIR)/fr30.opc
236 $(MAKE) run-cgen arch=fr30 prefix=fr30 options= extrafiles=
237 # end-sanitize-cygnus
238
239 # start-sanitize-tic80
240 tic80-dis.lo: tic80-dis.c $(INCDIR)/dis-asm.h ../bfd/bfd.h \
241 $(INCDIR)/opcode/tic80.h
242 tic80-opc.lo: tic80-opc.c $(INCDIR)/opcode/tic80.h
243 # end-sanitize-tic80
244
245 # start-sanitize-sky
246 dvp-dis.lo: dvp-dis.c $(INCDIR)/dis-asm.h ../bfd/bfd.h \
247 $(INCDIR)/opcode/dvp.h
248 dvp-opc.lo: dvp-opc.c $(INCDIR)/opcode/dvp.h
249
250 mips-dis.lo: mips-dis.c
251 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/mips-dis.c
252 # end-sanitize-sky
253
254 # This dependency stuff is copied from BFD.
255
256 .dep: dep.sed $(CFILES) $(HFILES) config.h
257 rm -f .dep1
258 $(MAKE) DEP=$(DEP) .dep1
259 sed -f dep.sed < .dep1 > .dep
260
261 .dep1: $(CFILES)
262 rm -f .dep2 .dep2a
263 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
264 echo > .dep2a
265 $(DEP) -f .dep2a $(INCLUDES) $(CFLAGS) $?
266 sed -e '/DO NOT DELETE/d' -e '/^$$/d' < .dep2a >> .dep2
267 rm -f .dep2a
268 $(srcdir)/../move-if-change .dep2 .dep1
269
270 dep.sed: dep-in.sed config.status
271 sed <$(srcdir)/dep-in.sed >dep.sed \
272 -e 's!@BFD_H@!$(BFD_H)!' \
273 -e 's!@INCDIR@!$(INCDIR)!' \
274 -e 's!@BFDDIR@!$(BFDDIR)!' \
275 -e 's!@SRCDIR@!$(srcdir)!'
276
277 dep: .dep
278 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
279 cat .dep >> tmp-Makefile
280 $(srcdir)/../move-if-change tmp-Makefile Makefile
281
282 dep-in: .dep
283 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
284 cat .dep >> tmp-Makefile.in
285 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
286
287 dep-am: .dep
288 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
289 cat .dep >> tmp-Makefile.am
290 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
291
292 .PHONY: dep dep-in dep-am
293
294 # What appears below is generated by a hacked mkdep using gcc -MM.
295
296 # DO NOT DELETE THIS LINE -- mkdep uses it.
297 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
298 a29k-dis.lo: a29k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
299 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/a29k.h
300 alpha-dis.lo: alpha-dis.c $(INCDIR)/ansidecl.h sysdep.h \
301 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h
302 alpha-opc.lo: alpha-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/alpha.h \
303 $(BFD_H) opintl.h
304 arm-dis.lo: arm-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
305 $(INCDIR)/ansidecl.h arm-opc.h $(INCDIR)/coff/internal.h \
306 $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h opintl.h $(BFDDIR)/elf-bfd.h \
307 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
308 $(INCDIR)/elf/arm.h $(INCDIR)/elf/reloc-macros.h
309 cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/libiberty.h \
310 $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h \
311 opintl.h
312 cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/libiberty.h \
313 $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h
314 cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \
315 $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h
316 d10v-dis.lo: d10v-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h \
317 $(INCDIR)/dis-asm.h $(BFD_H)
318 d10v-opc.lo: d10v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h
319 d30v-dis.lo: d30v-dis.c $(INCDIR)/opcode/d30v.h $(INCDIR)/dis-asm.h \
320 $(BFD_H) $(INCDIR)/ansidecl.h opintl.h
321 d30v-opc.lo: d30v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d30v.h
322 dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/dis-asm.h \
323 $(BFD_H) opintl.h
324 disassemble.lo: disassemble.c $(INCDIR)/ansidecl.h \
325 $(INCDIR)/dis-asm.h $(BFD_H)
326 fr30-asm.lo: fr30-asm.c sysdep.h config.h $(BFD_H) \
327 $(INCDIR)/symcat.h fr30-desc.h fr30-opc.h $(INCDIR)/opcode/cgen.h \
328 opintl.h
329 fr30-desc.lo: fr30-desc.c sysdep.h config.h $(BFD_H) \
330 $(INCDIR)/symcat.h fr30-desc.h fr30-opc.h $(INCDIR)/opcode/cgen.h \
331 opintl.h
332 fr30-dis.lo: fr30-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
333 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h fr30-opc.h $(INCDIR)/opcode/cgen.h \
334 opintl.h
335 fr30-ibld.lo: fr30-ibld.c sysdep.h config.h $(BFD_H) \
336 $(INCDIR)/symcat.h fr30-desc.h fr30-opc.h $(INCDIR)/opcode/cgen.h \
337 opintl.h
338 fr30-opc.lo: fr30-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \
339 $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h fr30-opc.h $(INCDIR)/opcode/cgen.h \
340 opintl.h
341 h8300-dis.lo: h8300-dis.c $(INCDIR)/opcode/h8300.h \
342 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/ansidecl.h opintl.h
343 h8500-dis.lo: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h \
344 $(BFD_H) $(INCDIR)/ansidecl.h opintl.h
345 hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
346 $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h
347 i386-dis.lo: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
348 $(INCDIR)/ansidecl.h sysdep.h config.h opintl.h
349 i960-dis.lo: i960-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
350 $(INCDIR)/ansidecl.h
351 m32r-asm.lo: m32r-asm.c sysdep.h config.h $(BFD_H) \
352 $(INCDIR)/symcat.h m32r-desc.h m32r-opc.h $(INCDIR)/opcode/cgen.h \
353 opintl.h
354 m32r-desc.lo: m32r-desc.c sysdep.h config.h $(BFD_H) \
355 $(INCDIR)/symcat.h m32r-desc.h m32r-opc.h $(INCDIR)/opcode/cgen.h \
356 opintl.h
357 m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
358 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h m32r-opc.h $(INCDIR)/opcode/cgen.h \
359 opintl.h
360 m32r-ibld.lo: m32r-ibld.c sysdep.h config.h $(BFD_H) \
361 $(INCDIR)/symcat.h m32r-desc.h m32r-opc.h $(INCDIR)/opcode/cgen.h \
362 opintl.h
363 m32r-opc.lo: m32r-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \
364 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h m32r-opc.h $(INCDIR)/opcode/cgen.h \
365 opintl.h
366 m32r-opinst.lo: m32r-opinst.c sysdep.h config.h $(INCDIR)/libiberty.h \
367 $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h m32r-opc.h $(INCDIR)/opcode/cgen.h \
368 opintl.h
369 m68k-dis.lo: m68k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
370 $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h opintl.h \
371 $(INCDIR)/opcode/m68k.h
372 m68k-opc.lo: m68k-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m68k.h
373 m88k-dis.lo: m88k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
374 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m88k.h opintl.h
375 mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
376 $(BFD_H) $(INCDIR)/opcode/mips.h opintl.h $(BFDDIR)/elf-bfd.h \
377 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
378 $(INCDIR)/bfdlink.h $(INCDIR)/elf/mips.h $(INCDIR)/elf/reloc-macros.h
379 mips-opc.lo: mips-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
380 mips16-opc.lo: mips16-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
381 m10200-dis.lo: m10200-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h \
382 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
383 m10200-opc.lo: m10200-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h
384 m10300-dis.lo: m10300-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h \
385 $(INCDIR)/dis-asm.h $(BFD_H) opintl.h
386 m10300-opc.lo: m10300-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h
387 ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \
388 sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h \
389 opintl.h
390 ppc-dis.lo: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
391 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h
392 ppc-opc.lo: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h \
393 opintl.h
394 sh-dis.lo: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H) \
395 $(INCDIR)/ansidecl.h
396 sparc-dis.lo: sparc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
397 config.h $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h \
398 $(BFD_H) $(INCDIR)/libiberty.h opintl.h
399 sparc-opc.lo: sparc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/sparc.h
400 tic30-dis.lo: tic30-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
401 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic30.h
402 vax-dis.lo: vax-dis.c $(INCDIR)/opcode/vax.h $(INCDIR)/dis-asm.h \
403 $(BFD_H) $(INCDIR)/ansidecl.h
404 w65-dis.lo: w65-dis.c w65-opc.h $(INCDIR)/dis-asm.h \
405 $(BFD_H) $(INCDIR)/ansidecl.h
406 z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
407 $(BFD_H) z8k-opc.h
408 z8kgen.lo: z8kgen.c sysdep.h config.h
409 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY