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