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