Makefile.am revision 38889
1## Process this file with automake to generate Makefile.in 2 3AUTOMAKE_OPTIONS = cygnus 4 5INCDIR = $(srcdir)/../include 6BFDDIR = $(srcdir)/../bfd 7DEP = mkdep 8 9lib_LTLIBRARIES = libopcodes.la 10 11# This is where bfd.h lives. 12BFD_H = ../bfd/bfd.h 13 14# Header files. 15HFILES = \ 16 arm-opc.h \ 17 h8500-opc.h \ 18 sh-opc.h \ 19 sysdep.h \ 20 w65-opc.h \ 21 z8k-opc.h 22 23# C source files that correspond to .o's. 24CFILES = \ 25 a29k-dis.c \ 26 alpha-dis.c \ 27 alpha-opc.c \ 28 arm-dis.c \ 29 cgen-asm.c \ 30 cgen-dis.c \ 31 cgen-opc.c \ 32 d10v-dis.c \ 33 d10v-opc.c \ 34 dis-buf.c \ 35 disassemble.c \ 36 h8300-dis.c \ 37 h8500-dis.c \ 38 hppa-dis.c \ 39 i386-dis.c \ 40 i960-dis.c \ 41 m32r-asm.c \ 42 m32r-dis.c \ 43 m32r-opc.c \ 44 m68k-dis.c \ 45 m68k-opc.c \ 46 m88k-dis.c \ 47 mips-dis.c \ 48 mips-opc.c \ 49 mips16-opc.c \ 50 m10200-dis.c \ 51 m10200-opc.c \ 52 m10300-dis.c \ 53 m10300-opc.c \ 54 ns32k-dis.c \ 55 ppc-dis.c \ 56 ppc-opc.c \ 57 sh-dis.c \ 58 sparc-dis.c \ 59 sparc-opc.c \ 60 tic30-dis.c \ 61 w65-dis.c \ 62 z8k-dis.c \ 63 z8kgen.c 64 65ALL_MACHINES = \ 66 a29k-dis.lo \ 67 alpha-dis.lo \ 68 alpha-opc.lo \ 69 arc-dis.lo \ 70 arc-opc.lo \ 71 arm-dis.lo \ 72 cgen-asm.lo \ 73 cgen-dis.lo \ 74 cgen-opc.lo \ 75 d10v-dis.lo \ 76 d10v-opc.lo \ 77 h8300-dis.lo \ 78 h8500-dis.lo \ 79 hppa-dis.lo \ 80 i386-dis.lo \ 81 i960-dis.lo \ 82 m32r-asm.lo \ 83 m32r-dis.lo \ 84 m32r-opc.lo \ 85 m68k-dis.lo \ 86 m68k-opc.lo \ 87 m88k-dis.lo \ 88 m10200-dis.lo \ 89 m10200-opc.lo \ 90 m10300-dis.lo \ 91 m10300-opc.lo \ 92 mips-dis.lo \ 93 mips-opc.lo \ 94 mips16-opc.lo \ 95 ppc-dis.lo \ 96 ppc-opc.lo \ 97 ns32k-dis.lo \ 98 sh-dis.lo \ 99 sparc-dis.lo \ 100 sparc-opc.lo \ 101 tic30-dis.lo \ 102 v850-dis.lo \ 103 v850-opc.lo \ 104 w65-dis.lo \ 105 z8k-dis.lo 106 107OFILES = @BFD_MACHINES@ 108 109INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ 110 111disassemble.lo: disassemble.c $(INCDIR)/dis-asm.h 112 $(LIBTOOL) --mode=compile $(COMPILE) -c @archdefs@ $(srcdir)/disassemble.c 113 114libopcodes_la_SOURCES = dis-buf.c disassemble.c 115libopcodes_la_DEPENDENCIES = $(OFILES) 116libopcodes_la_LIBADD = $(OFILES) 117libopcodes_la_LDFLAGS = -release $(VERSION) 118 119# libtool will build .libs/libopcodes.a. We create libopcodes.a in 120# the build directory so that we don't have to convert all the 121# programs that use libopcodes.a simultaneously. This is a hack which 122# should be removed if everything else starts using libtool. FIXME. 123 124noinst_LIBRARIES = libopcodes.a 125 126stamp-lib: libopcodes.la 127 if [ -f .libs/libopcodes.a ]; then \ 128 cp .libs/libopcodes.a libopcodes.tmp; \ 129 $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a; \ 130 else true; fi 131 touch stamp-lib 132 133libopcodes.a: stamp-lib ; @true 134 135CLEANFILES = libopcodes.a stamp-lib dep.sed .dep .dep1 136 137 138 139 140 141# This dependency stuff is copied from BFD. 142 143.dep: dep.sed $(CFILES) $(HFILES) config.h 144 rm -f .dep1 145 $(MAKE) DEP=$(DEP) .dep1 146 sed -f dep.sed < .dep1 > .dep 147 148.dep1: $(CFILES) 149 rm -f .dep2 .dep2a 150 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2 151 echo > .dep2a 152 $(DEP) -f .dep2a $(INCLUDES) $(CFLAGS) $? 153 sed -e '/DO NOT DELETE/d' -e '/^$$/d' < .dep2a >> .dep2 154 rm -f .dep2a 155 $(srcdir)/../move-if-change .dep2 .dep1 156 157dep.sed: dep-in.sed config.status 158 sed <$(srcdir)/dep-in.sed >dep.sed \ 159 -e 's!@BFD_H@!$(BFD_H)!' \ 160 -e 's!@INCDIR@!$(INCDIR)!' \ 161 -e 's!@BFDDIR@!$(BFDDIR)!' \ 162 -e 's!@SRCDIR@!$(srcdir)!' 163 164dep: .dep 165 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile 166 cat .dep >> tmp-Makefile 167 $(srcdir)/../move-if-change tmp-Makefile Makefile 168 169dep-in: .dep 170 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in 171 cat .dep >> tmp-Makefile.in 172 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in 173 174dep-am: .dep 175 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am 176 cat .dep >> tmp-Makefile.am 177 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am 178 179.PHONY: dep dep-in dep-am 180 181# What appears below is generated by a hacked mkdep using gcc -MM. 182 183# DO NOT DELETE THIS LINE -- mkdep uses it. 184# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 185a29k-dis.lo: a29k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ 186 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/a29k.h 187alpha-dis.lo: alpha-dis.c $(INCDIR)/ansidecl.h sysdep.h \ 188 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h 189alpha-opc.lo: alpha-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/alpha.h \ 190 $(BFD_H) 191arm-dis.lo: arm-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ 192 $(INCDIR)/ansidecl.h arm-opc.h $(INCDIR)/coff/internal.h \ 193 $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h 194cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/libiberty.h \ 195 $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h 196cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/libiberty.h \ 197 $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h 198cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \ 199 $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h 200d10v-dis.lo: d10v-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h \ 201 $(INCDIR)/dis-asm.h $(BFD_H) 202d10v-opc.lo: d10v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h 203dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/dis-asm.h \ 204 $(BFD_H) 205disassemble.lo: disassemble.c $(INCDIR)/ansidecl.h \ 206 $(INCDIR)/dis-asm.h $(BFD_H) 207h8300-dis.lo: h8300-dis.c $(INCDIR)/opcode/h8300.h \ 208 $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/ansidecl.h 209h8500-dis.lo: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h \ 210 $(BFD_H) $(INCDIR)/ansidecl.h 211hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ 212 $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h 213i386-dis.lo: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ 214 $(INCDIR)/ansidecl.h sysdep.h config.h 215i960-dis.lo: i960-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ 216 $(INCDIR)/ansidecl.h 217m32r-asm.lo: m32r-asm.c sysdep.h config.h $(BFD_H) \ 218 $(INCDIR)/symcat.h m32r-opc.h $(INCDIR)/opcode/cgen.h 219m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ 220 $(BFD_H) $(INCDIR)/symcat.h m32r-opc.h $(INCDIR)/opcode/cgen.h 221m32r-opc.lo: m32r-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \ 222 $(BFD_H) $(INCDIR)/symcat.h m32r-opc.h $(INCDIR)/opcode/cgen.h 223m68k-dis.lo: m68k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ 224 $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h $(INCDIR)/opcode/m68k.h 225m68k-opc.lo: m68k-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m68k.h 226m88k-dis.lo: m88k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ 227 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m88k.h 228mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ 229 $(BFD_H) $(INCDIR)/opcode/mips.h $(BFDDIR)/elf-bfd.h \ 230 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ 231 $(INCDIR)/bfdlink.h $(INCDIR)/elf/mips.h 232mips-opc.lo: mips-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h 233mips16-opc.lo: mips16-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h 234m10200-dis.lo: m10200-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h \ 235 $(INCDIR)/dis-asm.h $(BFD_H) 236m10200-opc.lo: m10200-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h 237m10300-dis.lo: m10300-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h \ 238 $(INCDIR)/dis-asm.h $(BFD_H) 239m10300-opc.lo: m10300-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h 240ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \ 241 sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h 242ppc-dis.lo: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \ 243 config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h 244ppc-opc.lo: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h 245sh-dis.lo: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H) \ 246 $(INCDIR)/ansidecl.h 247sparc-dis.lo: sparc-dis.c $(INCDIR)/ansidecl.h sysdep.h \ 248 config.h $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h \ 249 $(BFD_H) $(INCDIR)/libiberty.h 250sparc-opc.lo: sparc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/sparc.h 251tic30-dis.lo: tic30-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ 252 $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic30.h 253w65-dis.lo: w65-dis.c w65-opc.h $(INCDIR)/dis-asm.h \ 254 $(BFD_H) $(INCDIR)/ansidecl.h 255z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ 256 $(BFD_H) z8k-opc.h 257z8kgen.lo: z8kgen.c sysdep.h config.h 258# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 259