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