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