1 ## Process this file with automake to generate Makefile.in
3 AUTOMAKE_OPTIONS = cygnus
5 INCDIR = $(srcdir)/../include
6 BFDDIR = $(srcdir)/../bfd
9 lib_LTLIBRARIES = libopcodes.la
11 # This is where bfd.h lives.
23 # C source files that correspond to .o's.
77 $(start-sanitize-d30v) \
80 $(end-sanitize-d30v) \
106 $(start-sanitize-tic80) \
109 $(end-sanitize-tic80) \
110 $(start-sanitize-sky) \
113 $(end-sanitize-sky) \
119 OFILES = @BFD_MACHINES@
121 INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@
123 disassemble.lo: disassemble.c $(INCDIR)/dis-asm.h
124 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/disassemble.c
126 libopcodes_la_SOURCES = dis-buf.c disassemble.c
127 libopcodes_la_DEPENDENCIES = $(OFILES)
128 libopcodes_la_LIBADD = $(OFILES)
129 libopcodes_la_LDFLAGS = -release $(VERSION)
131 # libtool will build .libs/libopcodes.a. We create libopcodes.a in
132 # the build directory so that we don't have to convert all the
133 # programs that use libopcodes.a simultaneously. This is a hack which
134 # should be removed if everything else starts using libtool. FIXME.
136 noinst_LIBRARIES = libopcodes.a
138 stamp-lib: libopcodes.la
139 cp .libs/libopcodes.a libopcodes.tmp
140 $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a
143 libopcodes.a: stamp-lib ; @true
145 CLEANFILES = libopcodes.a stamp-lib dep.sed .dep .dep1
146 # start-sanitize-cygnus
147 CLEANFILES = libopcodes.a stamp-lib dep.sed .dep .dep1 stamp-m32r
148 # end-sanitize-cygnus
150 # start-sanitize-cygnus
151 # CGEN support is sanitized out of FSF releases for now.
152 # Sanitization must be split between assignments and rules because
153 # automake splits them that way.
157 CGENDIR = $(srcdir)/../cgen
160 CGENFILES = $(CGENDIR)/object.scm $(CGENDIR)/utils.scm \
161 $(CGENDIR)/utils-cgen.scm $(CGENDIR)/cpu.scm \
162 $(CGENDIR)/mode.scm $(CGENDIR)/mach.scm \
163 $(CGENDIR)/ifield.scm $(CGENDIR)/iformat.scm \
164 $(CGENDIR)/operand.scm $(CGENDIR)/insn.scm \
165 $(CGENDIR)/opcodes.scm $(CGENDIR)/cgen-opc.scm \
166 cgen-opc.in cgen-asm.in cgen-dis.in
167 # The end marker is written this way to pass through automake unscathed.
168 ENDSAN = end-sanitize-cygnus
170 # start-sanitize-cygnus
172 $(SHELL) $(srcdir)/cgen.sh opcodes $(srcdir) $(CGENDIR) $(CGENFLAGS) $(SCHEME) $(SCHEMEFLAGS) $(arch)
177 # For now, require developers to configure with --enable-maintainer-mode.
178 # ??? Do we need to use a different option?
179 m32r-opc.h m32r-opc.c m32r-asm.c m32r-dis.c: @MAINT@ stamp-m32r
181 stamp-m32r: $(CGENFILES) $(CGENDIR)/m32r.cpu $(CGENDIR)/m32r.opc
182 $(MAKE) cgen arch=m32r prefix=m32r
183 # end-sanitize-cygnus
185 # start-sanitize-tic80
186 tic80-dis.lo: tic80-dis.c $(INCDIR)/dis-asm.h ../bfd/bfd.h \
187 $(INCDIR)/opcode/tic80.h
188 tic80-opc.lo: tic80-opc.c $(INCDIR)/opcode/tic80.h
192 dvp-dis.lo: dvp-dis.c $(INCDIR)/dis-asm.h ../bfd/bfd.h \
193 $(INCDIR)/opcode/dvp.h
194 dvp-opc.lo: dvp-opc.c $(INCDIR)/opcode/dvp.h
196 mips-dis.lo: mips-dis.c
197 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/mips-dis.c
200 # This dependency stuff is copied from BFD.
202 .dep: dep.sed $(CFILES) $(HFILES) config.h
204 $(MAKE) DEP=$(DEP) .dep1
205 sed -f dep.sed < .dep1 > .dep
209 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
211 $(DEP) -f .dep2a $(INCLUDES) $(CFLAGS) $?
212 sed -e '/DO NOT DELETE/d' -e '/^$$/d' < .dep2a >> .dep2
214 $(srcdir)/../move-if-change .dep2 .dep1
216 dep.sed: dep-in.sed config.status
217 sed <$(srcdir)/dep-in.sed >dep.sed \
218 -e 's!@BFD_H@!$(BFD_H)!' \
219 -e 's!@INCDIR@!$(INCDIR)!' \
220 -e 's!@BFDDIR@!$(BFDDIR)!' \
221 -e 's!@SRCDIR@!$(srcdir)!'
224 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
225 cat .dep >> tmp-Makefile
226 $(srcdir)/../move-if-change tmp-Makefile Makefile
229 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
230 cat .dep >> tmp-Makefile.in
231 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
234 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
235 cat .dep >> tmp-Makefile.am
236 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
238 .PHONY: dep dep-in dep-am
240 # What appears below is generated by a hacked mkdep using gcc -MM.
242 # DO NOT DELETE THIS LINE -- mkdep uses it.
243 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
244 a29k-dis.lo: a29k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
245 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/a29k.h
246 alpha-dis.lo: alpha-dis.c $(INCDIR)/ansidecl.h sysdep.h \
247 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h
248 alpha-opc.lo: alpha-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/alpha.h \
250 arm-dis.lo: arm-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
251 $(INCDIR)/ansidecl.h arm-opc.h $(INCDIR)/coff/internal.h \
252 $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h
253 cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/libiberty.h \
254 $(BFD_H) $(INCDIR)/opcode/cgen.h
255 cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/libiberty.h \
256 $(BFD_H) $(INCDIR)/opcode/cgen.h
257 cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \
258 $(BFD_H) $(INCDIR)/opcode/cgen.h
259 d10v-dis.lo: d10v-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h \
260 $(INCDIR)/dis-asm.h $(BFD_H)
261 d10v-opc.lo: d10v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h
262 dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/dis-asm.h \
264 disassemble.lo: disassemble.c $(INCDIR)/ansidecl.h \
265 $(INCDIR)/dis-asm.h $(BFD_H)
266 h8300-dis.lo: h8300-dis.c $(INCDIR)/opcode/h8300.h \
267 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/ansidecl.h
268 h8500-dis.lo: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h \
269 $(BFD_H) $(INCDIR)/ansidecl.h
270 hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
271 $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h
272 i386-dis.lo: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
273 $(INCDIR)/ansidecl.h sysdep.h config.h
274 i960-dis.lo: i960-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
276 m32r-asm.lo: m32r-asm.c sysdep.h config.h $(BFD_H) \
277 m32r-opc.h $(INCDIR)/opcode/cgen.h
278 m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
279 $(BFD_H) m32r-opc.h $(INCDIR)/opcode/cgen.h
280 m32r-opc.lo: m32r-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \
281 $(BFD_H) m32r-opc.h $(INCDIR)/opcode/cgen.h
282 m68k-dis.lo: m68k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
283 $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h $(INCDIR)/opcode/m68k.h
284 m68k-opc.lo: m68k-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m68k.h
285 m88k-dis.lo: m88k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
286 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m88k.h
287 mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
288 $(BFD_H) $(INCDIR)/opcode/mips.h $(BFDDIR)/elf-bfd.h \
289 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
290 $(INCDIR)/bfdlink.h $(INCDIR)/elf/mips.h
291 mips-opc.lo: mips-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
292 mips16-opc.lo: mips16-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
293 m10200-dis.lo: m10200-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h \
294 $(INCDIR)/dis-asm.h $(BFD_H)
295 m10200-opc.lo: m10200-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h
296 m10300-dis.lo: m10300-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h \
297 $(INCDIR)/dis-asm.h $(BFD_H)
298 m10300-opc.lo: m10300-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h
299 ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \
300 sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h
301 ppc-dis.lo: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
302 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h
303 ppc-opc.lo: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h
304 sh-dis.lo: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H) \
306 sparc-dis.lo: sparc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
307 config.h $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h \
308 $(BFD_H) $(INCDIR)/libiberty.h
309 sparc-opc.lo: sparc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/sparc.h
310 tic30-dis.lo: tic30-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
311 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic30.h
312 w65-dis.lo: w65-dis.c w65-opc.h $(INCDIR)/dis-asm.h \
313 $(BFD_H) $(INCDIR)/ansidecl.h
314 z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
316 z8kgen.lo: z8kgen.c sysdep.h config.h
317 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY