1 ## Process this file with automake to generate Makefile.in
3 INCDIR = $(srcdir)/../include
4 BFDDIR = $(srcdir)/../bfd
7 lib_LTLIBRARIES = libopcodes.la
9 # This is where bfd.h lives.
21 # C source files that correspond to .o's.
74 $(start-sanitize-d30v) \
77 $(end-sanitize-d30v) \
102 $(start-sanitize-tic80) \
105 $(end-sanitize-tic80) \
106 $(start-sanitize-sky) \
109 $(end-sanitize-sky) \
115 OFILES = @BFD_MACHINES@
117 INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@
119 disassemble.lo: disassemble.c $(INCDIR)/dis-asm.h
120 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/disassemble.c
122 libopcodes_la_SOURCES = dis-buf.c disassemble.c
123 libopcodes_la_DEPENDENCIES = $(OFILES)
124 libopcodes_la_LIBADD = $(OFILES)
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.
131 noinst_LIBRARIES = libopcodes.a
133 stamp-lib: libopcodes.la
134 cp .libs/libopcodes.a libopcodes.tmp
135 $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a
138 libopcodes.a: stamp-lib ; @true
140 CLEANFILES = libopcodes.a stamp-lib dep.sed .dep .dep1
141 # start-sanitize-cygnus
142 CLEANFILES = libopcodes.a stamp-lib dep.sed .dep .dep1 stamp-m32r
143 # end-sanitize-cygnus
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.
152 CGENDIR = $(srcdir)/../cgen
155 CGENFILES = $(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.
163 ENDSAN = end-sanitize-cygnus
165 # start-sanitize-cygnus
167 $(SHELL) $(srcdir)/cgen.sh opcodes $(srcdir) $(CGENDIR) $(CGENFLAGS) $(SCHEME) $(SCHEMEFLAGS) $(arch)
172 # For now, require developers to configure with --enable-maintainer-mode.
173 # ??? Do we need to use a different option?
174 m32r-opc.h m32r-opc.c m32r-asm.c m32r-dis.c: @MAINT@ stamp-m32r
176 stamp-m32r: $(CGENFILES) $(CGENDIR)/m32r.cpu $(CGENDIR)/m32r.opc
177 $(MAKE) cgen arch=m32r prefix=m32r
178 # end-sanitize-cygnus
180 # start-sanitize-tic80
181 tic80-dis.lo: tic80-dis.c $(INCDIR)/dis-asm.h ../bfd/bfd.h \
182 $(INCDIR)/opcode/tic80.h
183 tic80-opc.lo: tic80-opc.c $(INCDIR)/opcode/tic80.h
187 txvu-dis.lo: txvu-dis.c $(INCDIR)/dis-asm.h ../bfd/bfd.h \
188 $(INCDIR)/opcode/txvu.h
189 txvu-opc.lo: txvu-opc.c $(INCDIR)/opcode/txvu.h
192 # This dependency stuff is copied from BFD.
194 .dep: dep.sed $(CFILES) $(HFILES) config.h
196 $(MAKE) DEP=$(DEP) .dep1
197 sed -f dep.sed < .dep1 > .dep
201 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
203 $(DEP) -f .dep2a $(INCLUDES) $(CFLAGS) $?
204 sed -e '/DO NOT DELETE/d' -e '/^$$/d' < .dep2a >> .dep2
206 $(srcdir)/../move-if-change .dep2 .dep1
208 dep.sed: dep-in.sed config.status
209 sed <$(srcdir)/dep-in.sed >dep.sed \
210 -e 's!@BFD_H@!$(BFD_H)!' \
211 -e 's!@INCDIR@!$(INCDIR)!' \
212 -e 's!@BFDDIR@!$(BFDDIR)!' \
213 -e 's!@SRCDIR@!$(srcdir)!'
216 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
217 cat .dep >> tmp-Makefile
218 $(srcdir)/../move-if-change tmp-Makefile Makefile
221 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
222 cat .dep >> tmp-Makefile.in
223 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
226 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
227 cat .dep >> tmp-Makefile.am
228 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
230 .PHONY: dep dep-in dep-am
232 # What appears below is generated by a hacked mkdep using gcc -MM.
234 # DO NOT DELETE THIS LINE -- mkdep uses it.
235 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
236 a29k-dis.lo: a29k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
237 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/a29k.h
238 alpha-dis.lo: alpha-dis.c $(INCDIR)/ansidecl.h sysdep.h \
239 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h
240 alpha-opc.lo: alpha-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/alpha.h \
242 arm-dis.lo: arm-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
243 $(INCDIR)/ansidecl.h arm-opc.h
244 cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/libiberty.h \
245 $(BFD_H) $(INCDIR)/opcode/cgen.h
246 cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/libiberty.h \
247 $(BFD_H) $(INCDIR)/opcode/cgen.h
248 cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \
249 $(BFD_H) $(INCDIR)/opcode/cgen.h
250 d10v-dis.lo: d10v-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h \
251 $(INCDIR)/dis-asm.h $(BFD_H)
252 d10v-opc.lo: d10v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h
253 dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/dis-asm.h \
255 disassemble.lo: disassemble.c $(INCDIR)/ansidecl.h \
256 $(INCDIR)/dis-asm.h $(BFD_H)
257 h8300-dis.lo: h8300-dis.c $(INCDIR)/opcode/h8300.h \
258 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/ansidecl.h
259 h8500-dis.lo: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h \
260 $(BFD_H) $(INCDIR)/ansidecl.h
261 hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
262 $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h
263 i386-dis.lo: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
264 $(INCDIR)/ansidecl.h sysdep.h config.h
265 i960-dis.lo: i960-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
267 m32r-asm.lo: m32r-asm.c sysdep.h config.h $(BFD_H) \
268 m32r-opc.h $(INCDIR)/opcode/cgen.h
269 m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
270 $(BFD_H) m32r-opc.h $(INCDIR)/opcode/cgen.h
271 m32r-opc.lo: m32r-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \
272 $(BFD_H) m32r-opc.h $(INCDIR)/opcode/cgen.h
273 m68k-dis.lo: m68k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
274 $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h $(INCDIR)/opcode/m68k.h
275 m68k-opc.lo: m68k-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m68k.h
276 m88k-dis.lo: m88k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \
277 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m88k.h
278 mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
279 $(BFD_H) $(INCDIR)/opcode/mips.h $(BFDDIR)/elf-bfd.h \
280 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
281 $(INCDIR)/bfdlink.h $(INCDIR)/elf/mips.h
282 mips-opc.lo: mips-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
283 mips16-opc.lo: mips16-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h
284 m10200-dis.lo: m10200-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h \
285 $(INCDIR)/dis-asm.h $(BFD_H)
286 m10200-opc.lo: m10200-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h
287 m10300-dis.lo: m10300-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h \
288 $(INCDIR)/dis-asm.h $(BFD_H)
289 m10300-opc.lo: m10300-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h
290 ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \
291 sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h
292 ppc-dis.lo: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
293 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h
294 ppc-opc.lo: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h
295 sh-dis.lo: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H) \
297 sparc-dis.lo: sparc-dis.c $(INCDIR)/ansidecl.h sysdep.h \
298 config.h $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h \
299 $(BFD_H) $(INCDIR)/libiberty.h
300 sparc-opc.lo: sparc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/sparc.h
301 w65-dis.lo: w65-dis.c w65-opc.h $(INCDIR)/dis-asm.h \
302 $(BFD_H) $(INCDIR)/ansidecl.h
303 z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \
305 z8kgen.lo: z8kgen.c sysdep.h config.h
306 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY