Mon Feb 2 19:22:15 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
[deliverable/binutils-gdb.git] / opcodes / Makefile.am
CommitLineData
54cc8ed4
DE
1## Process this file with automake to generate Makefile.in
2
3INCDIR = $(srcdir)/../include
4BFDDIR = $(srcdir)/../bfd
5DEP = mkdep
6
7lib_LTLIBRARIES = libopcodes.la
8
9# This is where bfd.h lives.
10BFD_H = ../bfd/bfd.h
11
12# Header files.
13HFILES = \
14 arm-opc.h \
15 h8500-opc.h \
16 sh-opc.h \
17 sysdep.h \
18 w65-opc.h \
19 z8k-opc.h
20
21# C source files that correspond to .o's.
22CFILES = \
23 a29k-dis.c \
24 alpha-dis.c \
25 alpha-opc.c \
26 arm-dis.c \
27 cgen-asm.c \
28 cgen-dis.c \
29 cgen-opc.c \
30 d10v-dis.c \
31 d10v-opc.c \
32 dis-buf.c \
33 disassemble.c \
34 h8300-dis.c \
35 h8500-dis.c \
36 hppa-dis.c \
37 i386-dis.c \
38 i960-dis.c \
39 m32r-asm.c \
40 m32r-dis.c \
41 m32r-opc.c \
42 m68k-dis.c \
43 m68k-opc.c \
44 m88k-dis.c \
45 mips-dis.c \
46 mips-opc.c \
47 mips16-opc.c \
48 m10200-dis.c \
49 m10200-opc.c \
50 m10300-dis.c \
51 m10300-opc.c \
52 ns32k-dis.c \
53 ppc-dis.c \
54 ppc-opc.c \
55 sh-dis.c \
56 sparc-dis.c \
57 sparc-opc.c \
58 w65-dis.c \
59 z8k-dis.c \
60 z8kgen.c
61
62ALL_MACHINES = \
63 a29k-dis.lo \
64 alpha-dis.lo \
65 alpha-opc.lo \
66 arc-dis.lo \
67 arc-opc.lo \
68 arm-dis.lo \
69 cgen-asm.lo \
70 cgen-dis.lo \
71 cgen-opc.lo \
72 d10v-dis.lo \
73 d10v-opc.lo \
74 $(start-sanitize-d30v) \
75 d30v-dis.lo \
76 d30v-opc.lo \
77 $(end-sanitize-d30v) \
78 h8300-dis.lo \
79 h8500-dis.lo \
80 hppa-dis.lo \
81 i386-dis.lo \
82 i960-dis.lo \
83 m32r-asm.lo \
84 m32r-dis.lo \
85 m32r-opc.lo \
86 m68k-dis.lo \
87 m68k-opc.lo \
88 m88k-dis.lo \
89 m10200-dis.lo \
90 m10200-opc.lo \
91 m10300-dis.lo \
92 m10300-opc.lo \
93 mips-dis.lo \
94 mips-opc.lo \
95 mips16-opc.lo \
96 ppc-dis.lo \
97 ppc-opc.lo \
98 ns32k-dis.lo \
99 sh-dis.lo \
100 sparc-dis.lo \
101 sparc-opc.lo \
102 $(start-sanitize-tic80) \
103 tic80-dis.lo \
104 tic80-opc.lo \
105 $(end-sanitize-tic80) \
106 $(start-sanitize-sky) \
37130f11
DE
107 dvp-dis.lo \
108 dvp-opc.lo \
54cc8ed4
DE
109 $(end-sanitize-sky) \
110 v850-dis.lo \
111 v850-opc.lo \
112 w65-dis.lo \
113 z8k-dis.lo
114
115OFILES = @BFD_MACHINES@
116
117INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@
118
119disassemble.lo: disassemble.c $(INCDIR)/dis-asm.h
120 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/disassemble.c
121
122libopcodes_la_SOURCES = dis-buf.c disassemble.c
123libopcodes_la_DEPENDENCIES = $(OFILES)
124libopcodes_la_LIBADD = $(OFILES)
125
126# libtool will build .libs/libopcodes.a. We create libopcodes.a in
127# the build directory so that we don't have to convert all the
128# programs that use libopcodes.a simultaneously. This is a hack which
129# should be removed if everything else starts using libtool. FIXME.
130
131noinst_LIBRARIES = libopcodes.a
132
133stamp-lib: libopcodes.la
134 cp .libs/libopcodes.a libopcodes.tmp
135 $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a
136 touch stamp-lib
137
138libopcodes.a: stamp-lib ; @true
139
140CLEANFILES = libopcodes.a stamp-lib dep.sed .dep .dep1
bfc10abe
DE
141# start-sanitize-cygnus
142CLEANFILES = libopcodes.a stamp-lib dep.sed .dep .dep1 stamp-m32r
143# end-sanitize-cygnus
144
145# start-sanitize-cygnus
146# CGEN support is sanitized out of FSF releases for now.
147# Sanitization must be split between assignments and rules because
148# automake splits them that way.
149
150SCHEME = @SCHEME@
151SCHEMEFLAGS = -s
152CGENDIR = $(srcdir)/../cgen
153CGENFLAGS = -v
154
155CGENFILES = $(CGENDIR)/object.scm $(CGENDIR)/utils.scm \
156 $(CGENDIR)/utils-cgen.scm $(CGENDIR)/cpu.scm \
157 $(CGENDIR)/mode.scm $(CGENDIR)/mach.scm \
158 $(CGENDIR)/ifield.scm $(CGENDIR)/iformat.scm \
159 $(CGENDIR)/operand.scm $(CGENDIR)/insn.scm \
160 $(CGENDIR)/opcodes.scm $(CGENDIR)/cgen-opc.scm \
161 cgen-asm.in cgen-dis.in
162# The end marker is written this way to pass through automake unscathed.
163ENDSAN = end-sanitize-cygnus
164
165# start-sanitize-cygnus
166cgen:
3b7029b1 167 $(SHELL) $(srcdir)/cgen.sh opcodes $(srcdir) $(CGENDIR) $(CGENFLAGS) $(SCHEME) $(SCHEMEFLAGS) $(arch)
bfc10abe
DE
168 touch stamp-${arch}
169
170.PHONY: cgen
171
172# For now, require developers to configure with --enable-maintainer-mode.
173# ??? Do we need to use a different option?
174m32r-opc.h m32r-opc.c m32r-asm.c m32r-dis.c: @MAINT@ stamp-m32r
175 @true
176stamp-m32r: $(CGENFILES) $(CGENDIR)/m32r.cpu $(CGENDIR)/m32r.opc
177 $(MAKE) cgen arch=m32r prefix=m32r
178# end-sanitize-cygnus
54cc8ed4
DE
179
180# start-sanitize-tic80
181tic80-dis.lo: tic80-dis.c $(INCDIR)/dis-asm.h ../bfd/bfd.h \
182 $(INCDIR)/opcode/tic80.h
183tic80-opc.lo: tic80-opc.c $(INCDIR)/opcode/tic80.h
184# end-sanitize-tic80
185
186# start-sanitize-sky
a6616528 187dvp-dis.lo: dvp-dis.c $(INCDIR)/dis-asm.h ../bfd/bfd.h \
37130f11
DE
188 $(INCDIR)/opcode/dvp.h
189dvp-opc.lo: dvp-opc.c $(INCDIR)/opcode/dvp.h
190
191mips-dis.lo: mips-dis.c
192 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/mips-dis.c
54cc8ed4
DE
193# end-sanitize-sky
194
195# This dependency stuff is copied from BFD.
196
197.dep: dep.sed $(CFILES) $(HFILES) config.h
198 rm -f .dep1
199 $(MAKE) DEP=$(DEP) .dep1
200 sed -f dep.sed < .dep1 > .dep
201
202.dep1: $(CFILES)
203 rm -f .dep2 .dep2a
204 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
205 echo > .dep2a
206 $(DEP) -f .dep2a $(INCLUDES) $(CFLAGS) $?
207 sed -e '/DO NOT DELETE/d' -e '/^$$/d' < .dep2a >> .dep2
208 rm -f .dep2a
209 $(srcdir)/../move-if-change .dep2 .dep1
210
211dep.sed: dep-in.sed config.status
212 sed <$(srcdir)/dep-in.sed >dep.sed \
213 -e 's!@BFD_H@!$(BFD_H)!' \
214 -e 's!@INCDIR@!$(INCDIR)!' \
215 -e 's!@BFDDIR@!$(BFDDIR)!' \
216 -e 's!@SRCDIR@!$(srcdir)!'
217
218dep: .dep
219 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
220 cat .dep >> tmp-Makefile
221 $(srcdir)/../move-if-change tmp-Makefile Makefile
222
223dep-in: .dep
224 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
225 cat .dep >> tmp-Makefile.in
226 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
227
228dep-am: .dep
229 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
230 cat .dep >> tmp-Makefile.am
231 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
232
233.PHONY: dep dep-in dep-am
234
235# What appears below is generated by a hacked mkdep using gcc -MM.
236
237# DO NOT DELETE THIS LINE -- mkdep uses it.
238# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
239a29k-dis.lo: a29k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
240 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/a29k.h
241alpha-dis.lo: alpha-dis.c $(INCDIR)/ansidecl.h sysdep.h \
242 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h
243alpha-opc.lo: alpha-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/alpha.h \
244 $(BFD_H)
245arm-dis.lo: arm-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
246 $(INCDIR)/ansidecl.h arm-opc.h
247cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/libiberty.h \
248 $(BFD_H) $(INCDIR)/opcode/cgen.h
249cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/libiberty.h \
250 $(BFD_H) $(INCDIR)/opcode/cgen.h
251cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \
252 $(BFD_H) $(INCDIR)/opcode/cgen.h
253d10v-dis.lo: d10v-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h \
254 $(INCDIR)/dis-asm.h $(BFD_H)
255d10v-opc.lo: d10v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h
256dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/dis-asm.h \
257 $(BFD_H)
258disassemble.lo: disassemble.c $(INCDIR)/ansidecl.h \
259 $(INCDIR)/dis-asm.h $(BFD_H)
260h8300-dis.lo: h8300-dis.c $(INCDIR)/opcode/h8300.h \
261 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/ansidecl.h
262h8500-dis.lo: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h \
263 $(BFD_H) $(INCDIR)/ansidecl.h
264hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
265 $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h
266i386-dis.lo: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
267 $(INCDIR)/ansidecl.h sysdep.h config.h
268i960-dis.lo: i960-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
269 $(INCDIR)/ansidecl.h
270m32r-asm.lo: m32r-asm.c sysdep.h config.h $(BFD_H) \
271 m32r-opc.h $(INCDIR)/opcode/cgen.h
272m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
273 $(BFD_H) m32r-opc.h $(INCDIR)/opcode/cgen.h
274m32r-opc.lo: m32r-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \
275 $(BFD_H) m32r-opc.h $(INCDIR)/opcode/cgen.h
276m68k-dis.lo: m68k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
277 $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h $(INCDIR)/opcode/m68k.h
278m68k-opc.lo: m68k-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m68k.h
279m88k-dis.lo: m88k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
280 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m88k.h
281mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
282 $(BFD_H) $(INCDIR)/opcode/mips.h $(BFDDIR)/elf-bfd.h \
283 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
284 $(INCDIR)/bfdlink.h $(INCDIR)/elf/mips.h
285mips-opc.lo: mips-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
286mips16-opc.lo: mips16-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
287m10200-dis.lo: m10200-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h \
288 $(INCDIR)/dis-asm.h $(BFD_H)
289m10200-opc.lo: m10200-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h
290m10300-dis.lo: m10300-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h \
291 $(INCDIR)/dis-asm.h $(BFD_H)
292m10300-opc.lo: m10300-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h
293ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \
294 sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h
295ppc-dis.lo: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
296 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h
297ppc-opc.lo: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h
298sh-dis.lo: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H) \
299 $(INCDIR)/ansidecl.h
300sparc-dis.lo: sparc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
301 config.h $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h \
302 $(BFD_H) $(INCDIR)/libiberty.h
303sparc-opc.lo: sparc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/sparc.h
304w65-dis.lo: w65-dis.c w65-opc.h $(INCDIR)/dis-asm.h \
305 $(BFD_H) $(INCDIR)/ansidecl.h
306z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
307 $(BFD_H) z8k-opc.h
308z8kgen.lo: z8kgen.c sysdep.h config.h
309# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.036092 seconds and 4 git commands to generate.