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