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