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