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