| 1 | ## Process this file with automake to generate Makefile.in |
| 2 | |
| 3 | AUTOMAKE_OPTIONS = cygnus |
| 4 | |
| 5 | SUBDIRS = po |
| 6 | |
| 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 \ |
| 62 | tic30-dis.c \ |
| 63 | w65-dis.c \ |
| 64 | z8k-dis.c \ |
| 65 | z8kgen.c |
| 66 | |
| 67 | ALL_MACHINES = \ |
| 68 | a29k-dis.lo \ |
| 69 | alpha-dis.lo \ |
| 70 | alpha-opc.lo \ |
| 71 | arc-dis.lo \ |
| 72 | arc-opc.lo \ |
| 73 | arm-dis.lo \ |
| 74 | cgen-asm.lo \ |
| 75 | cgen-dis.lo \ |
| 76 | cgen-opc.lo \ |
| 77 | d10v-dis.lo \ |
| 78 | d10v-opc.lo \ |
| 79 | $(start-sanitize-d30v) \ |
| 80 | d30v-dis.lo \ |
| 81 | d30v-opc.lo \ |
| 82 | $(end-sanitize-d30v) \ |
| 83 | h8300-dis.lo \ |
| 84 | h8500-dis.lo \ |
| 85 | hppa-dis.lo \ |
| 86 | i386-dis.lo \ |
| 87 | i960-dis.lo \ |
| 88 | m32r-asm.lo \ |
| 89 | m32r-dis.lo \ |
| 90 | m32r-opc.lo \ |
| 91 | m68k-dis.lo \ |
| 92 | m68k-opc.lo \ |
| 93 | m88k-dis.lo \ |
| 94 | m10200-dis.lo \ |
| 95 | m10200-opc.lo \ |
| 96 | m10300-dis.lo \ |
| 97 | m10300-opc.lo \ |
| 98 | mips-dis.lo \ |
| 99 | mips-opc.lo \ |
| 100 | mips16-opc.lo \ |
| 101 | ppc-dis.lo \ |
| 102 | ppc-opc.lo \ |
| 103 | ns32k-dis.lo \ |
| 104 | sh-dis.lo \ |
| 105 | sparc-dis.lo \ |
| 106 | sparc-opc.lo \ |
| 107 | tic30-dis.lo \ |
| 108 | $(start-sanitize-tic80) \ |
| 109 | tic80-dis.lo \ |
| 110 | tic80-opc.lo \ |
| 111 | $(end-sanitize-tic80) \ |
| 112 | $(start-sanitize-sky) \ |
| 113 | dvp-dis.lo \ |
| 114 | dvp-opc.lo \ |
| 115 | $(end-sanitize-sky) \ |
| 116 | v850-dis.lo \ |
| 117 | v850-opc.lo \ |
| 118 | w65-dis.lo \ |
| 119 | z8k-dis.lo |
| 120 | |
| 121 | OFILES = @BFD_MACHINES@ |
| 122 | |
| 123 | INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ -I$(srcdir)/../intl -I../intl |
| 124 | |
| 125 | disassemble.lo: disassemble.c $(INCDIR)/dis-asm.h |
| 126 | $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/disassemble.c |
| 127 | |
| 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@ |
| 132 | |
| 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. |
| 137 | |
| 138 | noinst_LIBRARIES = libopcodes.a |
| 139 | |
| 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; \ |
| 144 | else true; fi |
| 145 | touch stamp-lib |
| 146 | |
| 147 | libopcodes.a: stamp-lib ; @true |
| 148 | |
| 149 | POTFILES = $(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 |
| 153 | |
| 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 |
| 158 | |
| 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. |
| 163 | |
| 164 | SCHEME = @SCHEME@ |
| 165 | SCHEMEFLAGS = -s |
| 166 | CGENDIR = $(srcdir)/../cgen |
| 167 | CGENFLAGS = -v |
| 168 | |
| 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 $(CGENDIR)/minsn.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 CGEN_MAINT conditional is put here so it end up in Makefile.in |
| 179 | # properly sanitized. |
| 180 | if CGEN_MAINT |
| 181 | M32R_DEPS = stamp-m32r |
| 182 | else |
| 183 | M32R_DEPS = |
| 184 | endif |
| 185 | # The end marker is written this way to pass through automake unscathed. |
| 186 | ENDSAN = end-sanitize-cygnus |
| 187 | |
| 188 | # start-sanitize-cygnus |
| 189 | cgen: |
| 190 | $(SHELL) $(srcdir)/cgen.sh opcodes $(srcdir) $(CGENDIR) $(CGENFLAGS) $(SCHEME) $(SCHEMEFLAGS) $(arch) |
| 191 | touch stamp-${arch} |
| 192 | |
| 193 | .PHONY: cgen |
| 194 | |
| 195 | # For now, require developers to configure with --enable-cgen-maint. |
| 196 | m32r-opc.h m32r-opc.c m32r-asm.c m32r-dis.c: $(M32R_DEPS) |
| 197 | @true |
| 198 | stamp-m32r: $(CGENFILES) $(CGENDIR)/m32r.cpu $(CGENDIR)/m32r.opc |
| 199 | $(MAKE) cgen arch=m32r prefix=m32r |
| 200 | # end-sanitize-cygnus |
| 201 | |
| 202 | # start-sanitize-tic80 |
| 203 | tic80-dis.lo: tic80-dis.c $(INCDIR)/dis-asm.h ../bfd/bfd.h \ |
| 204 | $(INCDIR)/opcode/tic80.h |
| 205 | tic80-opc.lo: tic80-opc.c $(INCDIR)/opcode/tic80.h |
| 206 | # end-sanitize-tic80 |
| 207 | |
| 208 | # start-sanitize-sky |
| 209 | dvp-dis.lo: dvp-dis.c $(INCDIR)/dis-asm.h ../bfd/bfd.h \ |
| 210 | $(INCDIR)/opcode/dvp.h |
| 211 | dvp-opc.lo: dvp-opc.c $(INCDIR)/opcode/dvp.h |
| 212 | |
| 213 | mips-dis.lo: mips-dis.c |
| 214 | $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/mips-dis.c |
| 215 | # end-sanitize-sky |
| 216 | |
| 217 | # This dependency stuff is copied from BFD. |
| 218 | |
| 219 | .dep: dep.sed $(CFILES) $(HFILES) config.h |
| 220 | rm -f .dep1 |
| 221 | $(MAKE) DEP=$(DEP) .dep1 |
| 222 | sed -f dep.sed < .dep1 > .dep |
| 223 | |
| 224 | .dep1: $(CFILES) |
| 225 | rm -f .dep2 .dep2a |
| 226 | echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2 |
| 227 | echo > .dep2a |
| 228 | $(DEP) -f .dep2a $(INCLUDES) $(CFLAGS) $? |
| 229 | sed -e '/DO NOT DELETE/d' -e '/^$$/d' < .dep2a >> .dep2 |
| 230 | rm -f .dep2a |
| 231 | $(srcdir)/../move-if-change .dep2 .dep1 |
| 232 | |
| 233 | dep.sed: dep-in.sed config.status |
| 234 | sed <$(srcdir)/dep-in.sed >dep.sed \ |
| 235 | -e 's!@BFD_H@!$(BFD_H)!' \ |
| 236 | -e 's!@INCDIR@!$(INCDIR)!' \ |
| 237 | -e 's!@BFDDIR@!$(BFDDIR)!' \ |
| 238 | -e 's!@SRCDIR@!$(srcdir)!' |
| 239 | |
| 240 | dep: .dep |
| 241 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile |
| 242 | cat .dep >> tmp-Makefile |
| 243 | $(srcdir)/../move-if-change tmp-Makefile Makefile |
| 244 | |
| 245 | dep-in: .dep |
| 246 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in |
| 247 | cat .dep >> tmp-Makefile.in |
| 248 | $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in |
| 249 | |
| 250 | dep-am: .dep |
| 251 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am |
| 252 | cat .dep >> tmp-Makefile.am |
| 253 | $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am |
| 254 | |
| 255 | .PHONY: dep dep-in dep-am |
| 256 | |
| 257 | # What appears below is generated by a hacked mkdep using gcc -MM. |
| 258 | |
| 259 | # DO NOT DELETE THIS LINE -- mkdep uses it. |
| 260 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. |
| 261 | a29k-dis.lo: a29k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ |
| 262 | $(INCDIR)/ansidecl.h $(INCDIR)/opcode/a29k.h |
| 263 | alpha-dis.lo: alpha-dis.c $(INCDIR)/ansidecl.h sysdep.h \ |
| 264 | config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h |
| 265 | alpha-opc.lo: alpha-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/alpha.h \ |
| 266 | $(BFD_H) |
| 267 | arm-dis.lo: arm-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ |
| 268 | $(INCDIR)/ansidecl.h arm-opc.h $(INCDIR)/coff/internal.h \ |
| 269 | $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h |
| 270 | cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/libiberty.h \ |
| 271 | $(BFD_H) $(INCDIR)/opcode/cgen.h |
| 272 | cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/libiberty.h \ |
| 273 | $(BFD_H) $(INCDIR)/opcode/cgen.h |
| 274 | cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \ |
| 275 | $(BFD_H) $(INCDIR)/opcode/cgen.h |
| 276 | d10v-dis.lo: d10v-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h \ |
| 277 | $(INCDIR)/dis-asm.h $(BFD_H) |
| 278 | d10v-opc.lo: d10v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h |
| 279 | dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/dis-asm.h \ |
| 280 | $(BFD_H) |
| 281 | disassemble.lo: disassemble.c $(INCDIR)/ansidecl.h \ |
| 282 | $(INCDIR)/dis-asm.h $(BFD_H) |
| 283 | h8300-dis.lo: h8300-dis.c $(INCDIR)/opcode/h8300.h \ |
| 284 | $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/ansidecl.h |
| 285 | h8500-dis.lo: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h \ |
| 286 | $(BFD_H) $(INCDIR)/ansidecl.h |
| 287 | hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ |
| 288 | $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h |
| 289 | i386-dis.lo: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ |
| 290 | $(INCDIR)/ansidecl.h sysdep.h config.h |
| 291 | i960-dis.lo: i960-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ |
| 292 | $(INCDIR)/ansidecl.h |
| 293 | m32r-asm.lo: m32r-asm.c sysdep.h config.h $(BFD_H) \ |
| 294 | m32r-opc.h $(INCDIR)/opcode/cgen.h |
| 295 | m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ |
| 296 | $(BFD_H) m32r-opc.h $(INCDIR)/opcode/cgen.h |
| 297 | m32r-opc.lo: m32r-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \ |
| 298 | $(BFD_H) m32r-opc.h $(INCDIR)/opcode/cgen.h |
| 299 | m68k-dis.lo: m68k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ |
| 300 | $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h $(INCDIR)/opcode/m68k.h |
| 301 | m68k-opc.lo: m68k-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m68k.h |
| 302 | m88k-dis.lo: m88k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ |
| 303 | $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m88k.h |
| 304 | mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ |
| 305 | $(BFD_H) $(INCDIR)/opcode/mips.h $(BFDDIR)/elf-bfd.h \ |
| 306 | $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ |
| 307 | $(INCDIR)/bfdlink.h $(INCDIR)/elf/mips.h |
| 308 | mips-opc.lo: mips-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h |
| 309 | # start-sanitize-r5900 |
| 310 | mips-opc.lo: vu0.h |
| 311 | # end-sanitize-r5900 |
| 312 | mips16-opc.lo: mips16-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h |
| 313 | m10200-dis.lo: m10200-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h \ |
| 314 | $(INCDIR)/dis-asm.h $(BFD_H) |
| 315 | m10200-opc.lo: m10200-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h |
| 316 | m10300-dis.lo: m10300-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h \ |
| 317 | $(INCDIR)/dis-asm.h $(BFD_H) |
| 318 | m10300-opc.lo: m10300-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h |
| 319 | ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \ |
| 320 | sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h |
| 321 | ppc-dis.lo: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \ |
| 322 | config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h |
| 323 | ppc-opc.lo: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h |
| 324 | sh-dis.lo: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H) \ |
| 325 | $(INCDIR)/ansidecl.h |
| 326 | sparc-dis.lo: sparc-dis.c $(INCDIR)/ansidecl.h sysdep.h \ |
| 327 | config.h $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h \ |
| 328 | $(BFD_H) $(INCDIR)/libiberty.h |
| 329 | sparc-opc.lo: sparc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/sparc.h |
| 330 | tic30-dis.lo: tic30-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ |
| 331 | $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic30.h |
| 332 | w65-dis.lo: w65-dis.c w65-opc.h $(INCDIR)/dis-asm.h \ |
| 333 | $(BFD_H) $(INCDIR)/ansidecl.h |
| 334 | z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ |
| 335 | $(BFD_H) z8k-opc.h |
| 336 | z8kgen.lo: z8kgen.c sysdep.h config.h |
| 337 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |