1 ## Process this file with automake to generate Makefile.in
3 AUTOMAKE_OPTIONS = cygnus
7 INCDIR = $(srcdir)/../include
8 BFDDIR = $(srcdir)/../bfd
11 lib_LTLIBRARIES = libopcodes.la
13 # This is where bfd.h lives.
25 # C source files that correspond to .o's.
79 $(start-sanitize-d30v) \
82 $(end-sanitize-d30v) \
108 $(start-sanitize-tic80) \
111 $(end-sanitize-tic80) \
112 $(start-sanitize-sky) \
115 $(end-sanitize-sky) \
121 OFILES = @BFD_MACHINES@
123 INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ -I$(srcdir)/../intl -I../intl
125 disassemble.lo: disassemble.c $(INCDIR)/dis-asm.h
126 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/disassemble.c
128 libopcodes_la_SOURCES = dis-buf.c disassemble.c
129 libopcodes_la_DEPENDENCIES = $(OFILES)
130 libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@
131 libopcodes_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
133 # libtool will build .libs/libopcodes.a. We create libopcodes.a in
134 # the build directory so that we don't have to convert all the
135 # programs that use libopcodes.a simultaneously. This is a hack which
136 # should be removed if everything else starts using libtool. FIXME.
138 noinst_LIBRARIES = libopcodes.a
140 stamp-lib: libopcodes.la
141 if [ -f .libs/libopcodes.a ]; then \
142 cp .libs/libopcodes.a libopcodes.tmp; \
143 $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a; \
147 libopcodes.a: stamp-lib ; @true
149 POTFILES = $(BFD_H) $(HFILES) $(CFILES)
150 po/POTFILES.in: @MAINT@ Makefile
151 for file in $(POTFILES); do echo $$file; done | sort > tmp \
152 && mv tmp $(srcdir)/po/POTFILES.in
154 CLEANFILES = libopcodes.a stamp-lib dep.sed .dep .dep1
155 # start-sanitize-cygnus
156 CLEANFILES = libopcodes.a stamp-lib dep.sed .dep .dep1 stamp-m32r
157 # end-sanitize-cygnus
159 # start-sanitize-cygnus
160 # CGEN support is sanitized out of FSF releases for now.
161 # Sanitization must be split between assignments and rules because
162 # automake splits them that way.
166 CGENDIR = $(srcdir)/../cgen
169 CGENFILES = $(CGENDIR)/object.scm $(CGENDIR)/utils.scm \
170 $(CGENDIR)/attr.scm $(CGENDIR)/enum.scm $(CGENDIR)/types.scm \
171 $(CGENDIR)/utils-cgen.scm $(CGENDIR)/cpu.scm \
172 $(CGENDIR)/mode.scm $(CGENDIR)/mach.scm \
173 $(CGENDIR)/model.scm $(CGENDIR)/hardware.scm \
174 $(CGENDIR)/ifield.scm $(CGENDIR)/iformat.scm \
175 $(CGENDIR)/operand.scm $(CGENDIR)/insn.scm \
176 $(CGENDIR)/opcodes.scm $(CGENDIR)/cdl-c.scm \
177 $(CGENDIR)/cgen-opc.scm cgen-opc.in cgen-asm.in cgen-dis.in
178 # The end marker is written this way to pass through automake unscathed.
179 ENDSAN = end-sanitize-cygnus
181 # start-sanitize-cygnus
183 $(SHELL) $(srcdir)/cgen.sh opcodes $(srcdir) $(CGENDIR) $(CGENFLAGS) $(SCHEME) $(SCHEMEFLAGS) $(arch)
188 # For now, require developers to configure with --enable-maintainer-mode.
189 # ??? Do we need to use a different option?
190 m32r-opc.h m32r-opc.c m32r-asm.c m32r-dis.c: @MAINT@ stamp-m32r
192 stamp-m32r: $(CGENFILES) $(CGENDIR)/m32r.cpu $(CGENDIR)/m32r.opc
193 $(MAKE) cgen arch=m32r prefix=m32r
194 # end-sanitize-cygnus
196 # start-sanitize-tic80
197 tic80-dis.lo: tic80-dis.c $(INCDIR)/dis-asm.h ../bfd/bfd.h \
198 $(INCDIR)/opcode/tic80.h
199 tic80-opc.lo: tic80-opc.c $(INCDIR)/opcode/tic80.h
203 dvp-dis.lo: dvp-dis.c $(INCDIR)/dis-asm.h ../bfd/bfd.h \
204 $(INCDIR)/opcode/dvp.h
205 dvp-opc.lo: dvp-opc.c $(INCDIR)/opcode/dvp.h
207 mips-dis.lo: mips-dis.c
208 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/mips-dis.c
211 # This dependency stuff is copied from BFD.
213 .dep: dep.sed $(CFILES) $(HFILES) config.h
215 $(MAKE) DEP=$(DEP) .dep1
216 sed -f dep.sed < .dep1 > .dep
220 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
222 $(DEP) -f .dep2a $(INCLUDES) $(CFLAGS) $?
223 sed -e '/DO NOT DELETE/d' -e '/^$$/d' < .dep2a >> .dep2
225 $(srcdir)/../move-if-change .dep2 .dep1
227 dep.sed: dep-in.sed config.status
228 sed <$(srcdir)/dep-in.sed >dep.sed \
229 -e 's!@BFD_H@!$(BFD_H)!' \
230 -e 's!@INCDIR@!$(INCDIR)!' \
231 -e 's!@BFDDIR@!$(BFDDIR)!' \
232 -e 's!@SRCDIR@!$(srcdir)!'
235 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
236 cat .dep >> tmp-Makefile
237 $(srcdir)/../move-if-change tmp-Makefile Makefile
240 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
241 cat .dep >> tmp-Makefile.in
242 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
245 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
246 cat .dep >> tmp-Makefile.am
247 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
249 .PHONY: dep dep-in dep-am
251 # What appears below is generated by a hacked mkdep using gcc -MM.
253 # DO NOT DELETE THIS LINE -- mkdep uses it.
254 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
255 a29k-dis.lo: a29k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
256 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/a29k.h
257 alpha-dis.lo: alpha-dis.c $(INCDIR)/ansidecl.h sysdep.h \
258 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h
259 alpha-opc.lo: alpha-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/alpha.h \
261 arm-dis.lo: arm-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
262 $(INCDIR)/ansidecl.h arm-opc.h $(INCDIR)/coff/internal.h \
263 $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h
264 cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/libiberty.h \
265 $(BFD_H) $(INCDIR)/opcode/cgen.h
266 cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/libiberty.h \
267 $(BFD_H) $(INCDIR)/opcode/cgen.h
268 cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \
269 $(BFD_H) $(INCDIR)/opcode/cgen.h
270 d10v-dis.lo: d10v-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h \
271 $(INCDIR)/dis-asm.h $(BFD_H)
272 d10v-opc.lo: d10v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h
273 dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/dis-asm.h \
275 disassemble.lo: disassemble.c $(INCDIR)/ansidecl.h \
276 $(INCDIR)/dis-asm.h $(BFD_H)
277 h8300-dis.lo: h8300-dis.c $(INCDIR)/opcode/h8300.h \
278 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/ansidecl.h
279 h8500-dis.lo: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h \
280 $(BFD_H) $(INCDIR)/ansidecl.h
281 hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
282 $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h
283 i386-dis.lo: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
284 $(INCDIR)/ansidecl.h sysdep.h config.h
285 i960-dis.lo: i960-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
287 m32r-asm.lo: m32r-asm.c sysdep.h config.h $(BFD_H) \
288 m32r-opc.h $(INCDIR)/opcode/cgen.h
289 m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
290 $(BFD_H) m32r-opc.h $(INCDIR)/opcode/cgen.h
291 m32r-opc.lo: m32r-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \
292 $(BFD_H) m32r-opc.h $(INCDIR)/opcode/cgen.h
293 m68k-dis.lo: m68k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
294 $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h $(INCDIR)/opcode/m68k.h
295 m68k-opc.lo: m68k-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m68k.h
296 m88k-dis.lo: m88k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
297 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m88k.h
298 mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
299 $(BFD_H) $(INCDIR)/opcode/mips.h $(BFDDIR)/elf-bfd.h \
300 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
301 $(INCDIR)/bfdlink.h $(INCDIR)/elf/mips.h
302 mips-opc.lo: mips-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
303 # start-sanitize-r5900
306 mips16-opc.lo: mips16-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
307 m10200-dis.lo: m10200-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h \
308 $(INCDIR)/dis-asm.h $(BFD_H)
309 m10200-opc.lo: m10200-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h
310 m10300-dis.lo: m10300-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h \
311 $(INCDIR)/dis-asm.h $(BFD_H)
312 m10300-opc.lo: m10300-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h
313 ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \
314 sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h
315 ppc-dis.lo: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
316 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h
317 ppc-opc.lo: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h
318 sh-dis.lo: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H) \
320 sparc-dis.lo: sparc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
321 config.h $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h \
322 $(BFD_H) $(INCDIR)/libiberty.h
323 sparc-opc.lo: sparc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/sparc.h
324 tic30-dis.lo: tic30-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
325 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic30.h
326 w65-dis.lo: w65-dis.c w65-opc.h $(INCDIR)/dis-asm.h \
327 $(BFD_H) $(INCDIR)/ansidecl.h
328 z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
330 z8kgen.lo: z8kgen.c sysdep.h config.h
331 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY