1## Process this file with automake to generate Makefile.in 2# 3# Copyright (C) 2012-2024 Free Software Foundation, Inc. 4# 5# This file is free software; you can redistribute it and/or modify 6# it under the terms of the GNU General Public License as published by 7# the Free Software Foundation; either version 3 of the License, or 8# (at your option) any later version. 9# 10# This program is distributed in the hope that it will be useful, 11# but WITHOUT ANY WARRANTY; without even the implied warranty of 12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13# GNU General Public License for more details. 14# 15# You should have received a copy of the GNU General Public License 16# along with this program; see the file COPYING3. If not see 17# <http://www.gnu.org/licenses/>. 18# 19 20AUTOMAKE_OPTIONS = foreign no-dist 21ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd 22 23# Build '.' first so all generated files exist. 24SUBDIRS = . po 25 26INCDIR = $(srcdir)/../include 27BFDDIR = $(srcdir)/../bfd 28 29WARN_CFLAGS = @WARN_CFLAGS@ 30NO_WERROR = @NO_WERROR@ 31AM_CFLAGS = $(WARN_CFLAGS) 32 33COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(INCLUDES) $(AM_CPPFLAGS) \ 34 $(CFLAGS_FOR_BUILD) 35LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) \ 36 $(LDFLAGS_FOR_BUILD) -o $@ 37 38libopcodes_la_LDFLAGS = 39if INSTALL_LIBBFD 40bfdlibdir = @bfdlibdir@ 41bfdincludedir = @bfdincludedir@ 42bfdlib_LTLIBRARIES = libopcodes.la 43bfdinclude_DATA = $(INCDIR)/dis-asm.h 44else 45# Empty these so that the respective installation directories will not be created. 46bfdlibdir = 47bfdincludedir = 48rpath_bfdlibdir = @bfdlibdir@ 49noinst_LTLIBRARIES = libopcodes.la 50libopcodes_la_LDFLAGS += -rpath $(rpath_bfdlibdir) 51endif 52 53# This is where bfd.h lives. 54BFD_H = ../bfd/bfd.h 55 56BUILD_LIBS = @BUILD_LIBS@ 57BUILD_LIB_DEPS = @BUILD_LIB_DEPS@ 58 59# Header files. 60HFILES = \ 61 aarch64-asm.h aarch64-dis.h aarch64-opc.h aarch64-tbl.h \ 62 cris-desc.h cris-opc.h \ 63 epiphany-desc.h epiphany-opc.h \ 64 fr30-desc.h fr30-opc.h \ 65 frv-desc.h frv-opc.h \ 66 i386-opc.h \ 67 ia64-asmtab.h \ 68 ia64-opc.h \ 69 ip2k-desc.h ip2k-opc.h \ 70 iq2000-desc.h iq2000-opc.h \ 71 lm32-desc.h \ 72 lm32-opc.h \ 73 m32c-desc.h m32c-opc.h \ 74 m32r-desc.h m32r-opc.h \ 75 mcore-opc.h \ 76 mep-desc.h mep-opc.h \ 77 microblaze-opc.h \ 78 mt-desc.h mt-opc.h \ 79 or1k-desc.h or1k-opc.h \ 80 score-opc.h \ 81 sh-opc.h \ 82 sysdep.h \ 83 xstormy16-desc.h xstormy16-opc.h \ 84 z8k-opc.h 85 86# C source files that correspond to .o's ending up in libopcodes 87# for all machines. 88TARGET64_LIBOPCODES_CFILES = \ 89 aarch64-asm.c \ 90 aarch64-asm-2.c \ 91 aarch64-dis.c \ 92 aarch64-dis-2.c \ 93 aarch64-opc.c \ 94 aarch64-opc-2.c \ 95 alpha-dis.c \ 96 alpha-opc.c \ 97 bpf-dis.c \ 98 bpf-opc.c \ 99 ia64-dis.c \ 100 ia64-opc.c \ 101 loongarch-opc.c \ 102 loongarch-dis.c \ 103 loongarch-coder.c \ 104 mips-dis.c \ 105 mips-opc.c \ 106 mips16-opc.c \ 107 micromips-opc.c \ 108 mmix-dis.c \ 109 mmix-opc.c \ 110 nfp-dis.c \ 111 riscv-dis.c \ 112 riscv-opc.c \ 113 tilegx-dis.c \ 114 tilegx-opc.c 115 116TARGET32_LIBOPCODES_CFILES = \ 117 arc-dis.c \ 118 arc-ext.c \ 119 arc-opc.c \ 120 arm-dis.c \ 121 avr-dis.c \ 122 bfin-dis.c \ 123 cgen-asm.c \ 124 cgen-bitset.c \ 125 cgen-dis.c \ 126 cgen-opc.c \ 127 cr16-dis.c \ 128 cr16-opc.c \ 129 cris-desc.c \ 130 cris-dis.c \ 131 cris-opc.c \ 132 crx-dis.c \ 133 crx-opc.c \ 134 csky-dis.c \ 135 d10v-dis.c \ 136 d10v-opc.c \ 137 d30v-dis.c \ 138 d30v-opc.c \ 139 dlx-dis.c \ 140 epiphany-asm.c \ 141 epiphany-desc.c \ 142 epiphany-dis.c \ 143 epiphany-ibld.c \ 144 epiphany-opc.c \ 145 fr30-asm.c \ 146 fr30-desc.c \ 147 fr30-dis.c \ 148 fr30-ibld.c \ 149 fr30-opc.c \ 150 frv-asm.c \ 151 frv-desc.c \ 152 frv-dis.c \ 153 frv-ibld.c \ 154 frv-opc.c \ 155 ft32-dis.c \ 156 ft32-opc.c \ 157 h8300-dis.c \ 158 hppa-dis.c \ 159 i386-dis.c \ 160 ip2k-asm.c \ 161 ip2k-desc.c \ 162 ip2k-dis.c \ 163 ip2k-ibld.c \ 164 ip2k-opc.c \ 165 iq2000-asm.c \ 166 iq2000-desc.c \ 167 iq2000-dis.c \ 168 iq2000-ibld.c \ 169 iq2000-opc.c \ 170 kvx-opc.c \ 171 kvx-dis.c \ 172 lm32-asm.c \ 173 lm32-desc.c \ 174 lm32-dis.c \ 175 lm32-ibld.c \ 176 lm32-opc.c \ 177 lm32-opinst.c \ 178 m10200-dis.c \ 179 m10200-opc.c \ 180 m10300-dis.c \ 181 m10300-opc.c \ 182 m32c-asm.c \ 183 m32c-desc.c \ 184 m32c-dis.c \ 185 m32c-ibld.c \ 186 m32c-opc.c \ 187 m32r-asm.c \ 188 m32r-desc.c \ 189 m32r-dis.c \ 190 m32r-ibld.c \ 191 m32r-opc.c \ 192 m32r-opinst.c \ 193 m68hc11-dis.c \ 194 m68hc11-opc.c \ 195 m68k-dis.c \ 196 m68k-opc.c \ 197 s12z-dis.c \ 198 s12z-opc.c \ 199 mcore-dis.c \ 200 mep-asm.c \ 201 mep-desc.c \ 202 mep-dis.c \ 203 mep-ibld.c \ 204 mep-opc.c \ 205 metag-dis.c \ 206 microblaze-dis.c \ 207 moxie-dis.c \ 208 moxie-opc.c \ 209 msp430-decode.c \ 210 msp430-dis.c \ 211 mt-asm.c \ 212 mt-desc.c \ 213 mt-dis.c \ 214 mt-ibld.c \ 215 mt-opc.c \ 216 nds32-asm.c \ 217 nds32-dis.c \ 218 nios2-dis.c \ 219 nios2-opc.c \ 220 ns32k-dis.c \ 221 or1k-asm.c \ 222 or1k-desc.c \ 223 or1k-dis.c \ 224 or1k-ibld.c \ 225 or1k-opc.c \ 226 pdp11-dis.c \ 227 pdp11-opc.c \ 228 pj-dis.c \ 229 pj-opc.c \ 230 ppc-dis.c \ 231 ppc-opc.c \ 232 pru-dis.c \ 233 pru-opc.c \ 234 rl78-decode.c \ 235 rl78-dis.c \ 236 rx-decode.c \ 237 rx-dis.c \ 238 s390-dis.c \ 239 s390-opc.c \ 240 score-dis.c \ 241 score7-dis.c \ 242 sh-dis.c \ 243 sparc-dis.c \ 244 sparc-opc.c \ 245 spu-dis.c \ 246 spu-opc.c \ 247 tic30-dis.c \ 248 tic4x-dis.c \ 249 tic54x-dis.c \ 250 tic54x-opc.c \ 251 tic6x-dis.c \ 252 tilepro-dis.c \ 253 tilepro-opc.c \ 254 v850-dis.c \ 255 v850-opc.c \ 256 vax-dis.c \ 257 visium-dis.c \ 258 visium-opc.c \ 259 wasm32-dis.c \ 260 xstormy16-asm.c \ 261 xstormy16-desc.c \ 262 xstormy16-dis.c \ 263 xstormy16-ibld.c \ 264 xstormy16-opc.c \ 265 xtensa-dis.c \ 266 xgate-dis.c \ 267 xgate-opc.c \ 268 z80-dis.c \ 269 z8k-dis.c 270 271# C source files that correspond to .o's ending up in libopcodes. 272LIBOPCODES_CFILES = \ 273 $(TARGET32_LIBOPCODES_CFILES) \ 274 $(TARGET64_LIBOPCODES_CFILES) \ 275 dis-buf.c \ 276 dis-init.c \ 277 disassemble.c 278 279ALL32_MACHINES = $(TARGET32_LIBOPCODES_CFILES:.c=.lo) 280ALL64_MACHINES = $(TARGET64_LIBOPCODES_CFILES:.c=.lo) 281 282OFILES = @BFD_MACHINES@ 283 284# development.sh is used to determine -Werror default. 285CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh 286 287AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ @INCINTL@ 288 289disassemble.lo: disassemble.c 290if am__fastdepCC 291 $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ @archdefs@ $(srcdir)/disassemble.c 292 $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo 293else 294if AMDEP 295 source='disassemble.c' object='$@' libtool=yes @AMDEPBACKSLASH@ 296 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 297endif 298 $(AM_V_CC)$(LTCOMPILE) -c -o $@ @archdefs@ $(srcdir)/disassemble.c 299endif 300 301libopcodes_la_SOURCES = dis-buf.c disassemble.c dis-init.c 302libopcodes_la_DEPENDENCIES = $(OFILES) @SHARED_DEPENDENCIES@ 303libopcodes_la_LIBADD = $(OFILES) @SHARED_LIBADD@ 304libopcodes_la_LDFLAGS += -release `cat ../bfd/libtool-soversion` @SHARED_LDFLAGS@ 305# Allow dependency tracking to work on all the source files. 306EXTRA_libopcodes_la_SOURCES = $(LIBOPCODES_CFILES) 307 308# libtool will build .libs/libopcodes.a. We create libopcodes.a in 309# the build directory so that we don't have to convert all the 310# programs that use libopcodes.a simultaneously. This is a hack which 311# should be removed if everything else starts using libtool. FIXME. 312 313noinst_LIBRARIES = libopcodes.a 314libopcodes_a_SOURCES = 315 316stamp-lib: libopcodes.la 317 libtooldir=`$(LIBTOOL) --config | sed -n -e 's/^objdir=//p'`; \ 318 if [ -f $$libtooldir/libopcodes.a ]; then \ 319 cp $$libtooldir/libopcodes.a libopcodes.tmp; \ 320 $(RANLIB) libopcodes.tmp; \ 321 $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a; \ 322 else true; fi 323 touch stamp-lib 324 325libopcodes.a: stamp-lib ; @true 326 327POTFILES = $(HFILES) $(LIBOPCODES_CFILES) 328po/POTFILES.in: @MAINT@ Makefile 329 for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \ 330 && mv tmp $(srcdir)/po/POTFILES.in 331 332CLEANFILES = \ 333 stamp-epiphany stamp-fr30 stamp-frv stamp-ip2k stamp-iq2000 stamp-lm32 \ 334 stamp-m32c stamp-m32r stamp-mep stamp-mt stamp-or1k stamp-xstormy16 \ 335 libopcodes.a stamp-lib 336 337 338CGENDIR = @cgendir@ 339CPUDIR = $(srcdir)/../cpu 340GUILE = guile 341CGEN = "$(GUILE) -l ${cgendir}/guile.scm -s" 342CGENFLAGS = -v 343 344CGENDEPS = \ 345 $(CGENDIR)/desc.scm $(CGENDIR)/desc-cpu.scm \ 346 $(CGENDIR)/opcodes.scm $(CGENDIR)/opc-asmdis.scm \ 347 $(CGENDIR)/opc-ibld.scm $(CGENDIR)/opc-itab.scm \ 348 $(CGENDIR)/opc-opinst.scm \ 349 cgen-asm.in cgen-dis.in cgen-ibld.in 350 351CGEN_CPUS = cris epiphany fr30 frv ip2k iq2000 lm32 m32c m32r mep mt or1k xstormy16 352 353if CGEN_MAINT 354CRIS_DEPS = stamp-cris 355EPIPHANY_DEPS = stamp-epiphany 356FR30_DEPS = stamp-fr30 357FRV_DEPS = stamp-frv 358IP2K_DEPS = stamp-ip2k 359IQ2000_DEPS = stamp-iq2000 360LM32_DEPS = stamp-lm32 361M32C_DEPS = stamp-m32c 362M32R_DEPS = stamp-m32r 363MEP_DEPS = stamp-mep 364MT_DEPS = stamp-mt 365OR1K_DEPS = stamp-or1k 366XSTORMY16_DEPS = stamp-xstormy16 367else 368CRIS_DEPS = 369EPIPHANY_DEPS = 370FR30_DEPS = 371FRV_DEPS = 372IP2K_DEPS = 373IQ2000_DEPS = 374LM32_DEPS = 375M32C_DEPS = 376M32R_DEPS = 377MEP_DEPS = 378MT_DEPS = 379OR1K_DEPS = 380XSTORMY16_DEPS = 381endif 382 383run-cgen: 384 $(SHELL) $(srcdir)/cgen.sh opcodes $(srcdir) $(CGEN) \ 385 $(CGENDIR) "$(CGENFLAGS)" $(arch) $(prefix) $(archfile) $(opcfile) \ 386 "$(options)" "$(extrafiles)" 387 touch stamp-${prefix} 388.PHONY: run-cgen 389 390# Maintainer utility rule to regenerate all cgen files. 391run-cgen-all: 392 for c in $(CGEN_CPUS) ; \ 393 do \ 394 $(MAKE) stamp-$$c || exit 1 ; \ 395 done 396.PHONY: run-cgen-all 397 398# For now, require developers to configure with --enable-cgen-maint. 399 400$(srcdir)/cris-desc.h $(srcdir)/cris-desc.c $(srcdir)/cris-opc.h: $(CRIS_DEPS) 401 @true 402 403stamp-cris: $(CGENDEPS) $(CPUDIR)/cris.cpu 404 $(SHELL) $(srcdir)/cgen.sh desc $(srcdir) $(CGEN) \ 405 $(CGENDIR) "$(CGENFLAGS)" cris cris $(CPUDIR)/cris.cpu /dev/null \ 406 "$(options)" "$(extrafiles)" 407 touch $@ 408 409$(srcdir)/epiphany-desc.h $(srcdir)/epiphany-desc.c $(srcdir)/epiphany-opc.h \ 410 $(srcdir)/epiphany-opc.c $(srcdir)/epiphany-ibld.c \ 411 $(srcdir)/epiphany-opinst.c $(srcdir)/epiphany-asm.c \ 412 $(srcdir)/epiphany-dis.c: $(EPIPHANY_DEPS) 413 @true 414 415stamp-epiphany: $(CGENDEPS) $(CPUDIR)/epiphany.cpu $(CPUDIR)/epiphany.opc 416 $(MAKE) run-cgen arch=epiphany prefix=epiphany options= \ 417 archfile=$(CPUDIR)/epiphany.cpu opcfile=$(CPUDIR)/epiphany.opc extrafiles= 418 419$(srcdir)/fr30-desc.h $(srcdir)/fr30-desc.c $(srcdir)/fr30-opc.h $(srcdir)/fr30-opc.c $(srcdir)/fr30-ibld.c $(srcdir)/fr30-asm.c $(srcdir)/fr30-dis.c: $(FR30_DEPS) 420 @true 421stamp-fr30: $(CGENDEPS) $(CPUDIR)/fr30.cpu $(CPUDIR)/fr30.opc 422 $(MAKE) run-cgen arch=fr30 prefix=fr30 options= \ 423 archfile=$(CPUDIR)/fr30.cpu opcfile=$(CPUDIR)/fr30.opc extrafiles= 424 425$(srcdir)/frv-desc.h $(srcdir)/frv-desc.c $(srcdir)/frv-opc.h $(srcdir)/frv-opc.c $(srcdir)/frv-ibld.c $(srcdir)/frv-asm.c $(srcdir)/frv-dis.c: $(FRV_DEPS) 426 @true 427stamp-frv: $(CGENDEPS) $(CPUDIR)/frv.cpu $(CPUDIR)/frv.opc 428 $(MAKE) run-cgen arch=frv prefix=frv options= \ 429 archfile=$(CPUDIR)/frv.cpu opcfile=$(CPUDIR)/frv.opc extrafiles= 430 431$(srcdir)/ip2k-desc.h $(srcdir)/ip2k-desc.c $(srcdir)/ip2k-opc.h $(srcdir)/ip2k-opc.c $(srcdir)/ip2k-ibld.c $(srcdir)/ip2k-asm.c $(srcdir)/ip2k-dis.c: $(IP2K_DEPS) 432 @true 433stamp-ip2k: $(CGENDEPS) $(CPUDIR)/ip2k.cpu $(CPUDIR)/ip2k.opc 434 $(MAKE) run-cgen arch=ip2k prefix=ip2k options= \ 435 archfile=$(CPUDIR)/ip2k.cpu opcfile=$(CPUDIR)/ip2k.opc extrafiles= 436 437$(srcdir)/iq2000-desc.h $(srcdir)/iq2000-desc.c $(srcdir)/iq2000-opc.h $(srcdir)/iq2000-opc.c $(srcdir)/iq2000-ibld.c $(srcdir)/iq2000-asm.c $(srcdir)/iq2000-dis.c: $(IQ2000_DEPS) 438 @true 439stamp-iq2000: $(CGENDEPS) $(CPUDIR)/iq2000.cpu \ 440 $(CPUDIR)/iq2000.opc $(CPUDIR)/iq2000m.cpu \ 441 $(CPUDIR)/iq10.cpu 442 $(MAKE) run-cgen arch=iq2000 prefix=iq2000 options= \ 443 archfile=$(CPUDIR)/iq2000.cpu \ 444 opcfile=$(CPUDIR)/iq2000.opc extrafiles= 445 446$(srcdir)lm32-desc.h $(srcdir)/lm32-desc.c $(srcdir)/lm32-opc.h $(srcdir)/lm32-opc.c $(srcdir)/lm32-ibld.c $(srcdir)/lm32-opinst.c $(srcdir)/lm32-asm.c $(srcdir)/lm32-dis.c: $(LM32_DEPS) 447 @true 448stamp-lm32: $(CGENDEPS) $(CPUDIR)/lm32.cpu $(CPUDIR)/lm32.opc 449 $(MAKE) run-cgen arch=lm32 prefix=lm32 options=opinst \ 450 archfile=$(CPUDIR)/lm32.cpu \ 451 opcfile=$(CPUDIR)/lm32.opc \ 452 extrafiles=opinst 453 454$(srcdir)/m32c-desc.h $(srcdir)/m32c-desc.c $(srcdir)/m32c-opc.h $(srcdir)/m32c-opc.c $(srcdir)/m32c-ibld.c $(srcdir)/m32c-asm.c $(srcdir)/m32c-dis.c: $(M32C_DEPS) 455 @true 456stamp-m32c: $(CGENDEPS) $(CPUDIR)/m32c.cpu $(CPUDIR)/m32c.opc 457 $(MAKE) run-cgen arch=m32c prefix=m32c options= \ 458 archfile=$(CPUDIR)/m32c.cpu \ 459 opcfile=$(CPUDIR)/m32c.opc extrafiles= 460 461$(srcdir)/m32r-desc.h $(srcdir)/m32r-desc.c $(srcdir)/m32r-opc.h $(srcdir)/m32r-opc.c $(srcdir)/m32r-ibld.c $(srcdir)/m32r-opinst.c $(srcdir)/m32r-asm.c $(srcdir)/m32r-dis.c: $(M32R_DEPS) 462 @true 463stamp-m32r: $(CGENDEPS) $(CPUDIR)/m32r.cpu $(CPUDIR)/m32r.opc 464 $(MAKE) run-cgen arch=m32r prefix=m32r options=opinst \ 465 archfile=$(CPUDIR)/m32r.cpu \ 466 opcfile=$(CPUDIR)/m32r.opc extrafiles=opinst 467 468$(srcdir)/mep-desc.h $(srcdir)/mep-desc.c $(srcdir)/mep-opc.h $(srcdir)/mep-opc.c $(srcdir)/mep-ibld.c $(srcdir)/mep-asm.c $(srcdir)/mep-dis.c: $(MEP_DEPS) 469 @true 470stamp-mep: $(CGENDEPS) $(CPUDIR)/mep.cpu $(CPUDIR)/mep-default.cpu $(CPUDIR)/mep-core.cpu $(CPUDIR)/mep-h1.cpu $(CPUDIR)/mep-ext-cop.cpu $(CPUDIR)/mep-sample-ucidsp.cpu $(CPUDIR)/mep-rhcop.cpu $(CPUDIR)/mep-fmax.cpu $(CPUDIR)/mep.opc 471 $(MAKE) run-cgen arch=mep prefix=mep options= \ 472 archfile=$(CPUDIR)/mep.cpu opcfile=$(CPUDIR)/mep.opc extrafiles= 473 474$(srcdir)/mt-desc.h $(srcdir)/mt-desc.c $(srcdir)/mt-opc.h $(srcdir)/mt-opc.c $(srcdir)/mt-ibld.c $(srcdir)/mt-asm.c $(srcdir)/mt-dis.c: $(MT_DEPS) 475 @true 476stamp-mt: $(CGENDEPS) $(CPUDIR)/mt.cpu $(CPUDIR)/mt.opc 477 $(MAKE) run-cgen arch=mt prefix=mt options= \ 478 archfile=$(CPUDIR)/mt.cpu \ 479 opcfile=$(CPUDIR)/mt.opc extrafiles= 480 481$(srcdir)/or1k-desc.h $(srcdir)/or1k-desc.c $(srcdir)/or1k-opc.h $(srcdir)/or1k-opc.c $(srcdir)/or1k-ibld.c $(srcdir)/or1k-opinst.c $(srcdir)/or1k-asm.c $(srcdir)/or1k-dis.c: $(OR1K_DEPS) 482 @true 483stamp-or1k: $(CGENDEPS) $(CPUDIR)/or1k.cpu $(CPUDIR)/or1k.opc $(CPUDIR)/or1kcommon.cpu $(CPUDIR)/or1korbis.cpu $(CPUDIR)/or1korfpx.cpu 484 $(MAKE) run-cgen arch=or1k prefix=or1k options=opinst \ 485 archfile=$(CPUDIR)/or1k.cpu opcfile=$(CPUDIR)/or1k.opc extrafiles=opinst 486 487$(srcdir)/xstormy16-desc.h $(srcdir)/xstormy16-desc.c $(srcdir)/xstormy16-opc.h $(srcdir)/xstormy16-opc.c $(srcdir)/xstormy16-ibld.c $(srcdir)/xstormy16-asm.c $(srcdir)/xstormy16-dis.c: $(XSTORMY16_DEPS) 488 @true 489stamp-xstormy16: $(CGENDEPS) $(CPUDIR)/xstormy16.cpu $(CPUDIR)/xstormy16.opc 490 $(MAKE) run-cgen arch=xstormy16 prefix=xstormy16 options= \ 491 archfile=$(CPUDIR)/xstormy16.cpu opcfile=$(CPUDIR)/xstormy16.opc extrafiles= 492 493MOSTLYCLEANFILES = aarch64-gen$(EXEEXT_FOR_BUILD) i386-gen$(EXEEXT_FOR_BUILD) \ 494 ia64-gen$(EXEEXT_FOR_BUILD) s390-mkopc$(EXEEXT_FOR_BUILD) s390-opc.tab \ 495 z8kgen$(EXEEXT_FOR_BUILD) opc2c$(EXEEXT_FOR_BUILD) 496 497MAINTAINERCLEANFILES = $(srcdir)/aarch64-asm-2.c $(srcdir)/aarch64-dis-2.c \ 498 $(srcdir)/aarch64-opc-2.c \ 499 $(srcdir)/i386-tbl.h $(srcdir)/i386-init.h $(srcdir)/i386-mnem.h \ 500 $(srcdir)/ia64-asmtab.c $(srcdir)/z8k-opc.h \ 501 $(srcdir)/msp430-decode.c \ 502 $(srcdir)/rl78-decode.c \ 503 $(srcdir)/rx-decode.c 504 505aarch64-gen$(EXEEXT_FOR_BUILD): aarch64-gen.o $(BUILD_LIB_DEPS) 506 $(LINK_FOR_BUILD) aarch64-gen.o $(BUILD_LIBS) 507 508aarch64-gen.o: aarch64-gen.c $(BFD_H) $(INCDIR)/getopt.h $(INCDIR)/libiberty.h\ 509 $(INCDIR)/opcode/aarch64.h config.h aarch64-opc.h aarch64-tbl.h 510 $(AM_V_CC)$(COMPILE_FOR_BUILD) -c $(srcdir)/aarch64-gen.c 511 512$(srcdir)/aarch64-asm-2.c: @MAINT@ aarch64-gen$(exeext_for_build) 513 $(AM_V_GEN)./aarch64-gen$(exeext_for_build) --gen-asm > $@ 514$(srcdir)/aarch64-dis-2.c: @MAINT@ aarch64-gen$(exeext_for_build) 515 $(AM_V_GEN)./aarch64-gen$(exeext_for_build) --gen-dis > $@ 516$(srcdir)/aarch64-opc-2.c: @MAINT@ aarch64-gen$(exeext_for_build) 517 $(AM_V_GEN)./aarch64-gen$(exeext_for_build) --gen-opc > $@ 518 519i386-gen$(EXEEXT_FOR_BUILD): i386-gen.o $(BUILD_LIB_DEPS) 520 $(AM_V_CCLD)$(LINK_FOR_BUILD) i386-gen.o $(BUILD_LIBS) 521 522i386-gen.o: i386-gen.c i386-opc.h $(srcdir)/../include/opcode/i386.h \ 523 $(INCDIR)/ansidecl.h $(INCDIR)/getopt.h $(INCDIR)/hashtab.h \ 524 $(INCDIR)/libiberty.h $(INCDIR)/opcode/i386.h $(INCDIR)/safe-ctype.h \ 525 config.h sysdep.h 526 $(COMPILE_FOR_BUILD) -c $(srcdir)/i386-gen.c 527 528# i386-gen will generate all headers in one go. Use a pattern rule to properly 529# express this, with the inner dash ('-') arbitrarily chosen to be the stem. 530$(srcdir)/i386%tbl.h $(srcdir)/i386%init.h $(srcdir)/i386%mnem.h: \ 531 @MAINT@ i386-gen$(EXEEXT_FOR_BUILD) i386-opc.tbl i386-reg.tbl i386-opc.h 532 $(AM_V_GEN)$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) - \ 533 < $(srcdir)/i386-opc.tbl \ 534 | ./i386-gen$(EXEEXT_FOR_BUILD) --srcdir $(srcdir) 535 536# While not really dependencies, specify other generated i386-*.h here as well 537# to make sure they are re-generated as necessary. 538i386-dis.lo: $(srcdir)/i386-tbl.h $(srcdir)/i386-init.h $(srcdir)/i386-mnem.h 539 540ia64-gen$(EXEEXT_FOR_BUILD): ia64-gen.o $(BUILD_LIB_DEPS) 541 $(AM_V_CCLD)$(LINK_FOR_BUILD) ia64-gen.o $(BUILD_LIBS) 542 543ia64-gen.o: ia64-gen.c $(BFD_H) $(INCDIR)/ansidecl.h $(INCDIR)/getopt.h \ 544 $(INCDIR)/libiberty.h $(INCDIR)/opcode/ia64.h $(INCDIR)/safe-ctype.h \ 545 $(INCDIR)/symcat.h config.h ia64-opc-a.c ia64-opc-b.c \ 546 ia64-opc-d.c ia64-opc-f.c ia64-opc-i.c ia64-opc-m.c \ 547 ia64-opc-x.c ia64-opc.h sysdep.h 548 $(COMPILE_FOR_BUILD) -c $(srcdir)/ia64-gen.c 549 550# Use a helper variable for the dependencies to avoid 'make' issues 551# with continuations in comments, as @MAINT@ can be expanded to '#'. 552ia64_asmtab_deps = ia64-gen$(EXEEXT_FOR_BUILD) ia64-ic.tbl \ 553 ia64-raw.tbl ia64-waw.tbl ia64-war.tbl 554$(srcdir)/ia64-asmtab.c: @MAINT@ $(ia64_asmtab_deps) 555 $(AM_V_GEN)./ia64-gen$(EXEEXT_FOR_BUILD) --srcdir $(srcdir) > $@ 556 557ia64-opc.lo: $(srcdir)/ia64-asmtab.c 558 559$(srcdir)/msp430-decode.c: @MAINT@ $(srcdir)/msp430-decode.opc opc2c$(EXEEXT_FOR_BUILD) 560 $(AM_V_GEN)./opc2c$(EXEEXT_FOR_BUILD) $(srcdir)/msp430-decode.opc > $(srcdir)/msp430-decode.c 561 562$(srcdir)/rl78-decode.c: @MAINT@ $(srcdir)/rl78-decode.opc opc2c$(EXEEXT_FOR_BUILD) 563 $(AM_V_GEN)./opc2c$(EXEEXT_FOR_BUILD) $(srcdir)/rl78-decode.opc > $(srcdir)/rl78-decode.c 564 565$(srcdir)/rx-decode.c: @MAINT@ $(srcdir)/rx-decode.opc opc2c$(EXEEXT_FOR_BUILD) 566 $(AM_V_GEN)./opc2c$(EXEEXT_FOR_BUILD) $(srcdir)/rx-decode.opc > $(srcdir)/rx-decode.c 567 568opc2c$(EXEEXT_FOR_BUILD): opc2c.o $(BUILD_LIBS_DEPS) 569 $(AM_V_CCLD)$(LINK_FOR_BUILD) opc2c.o $(BUILD_LIBS) 570 571opc2c.o: opc2c.c $(INCDIR)/libiberty.h 572 $(AM_V_CC)$(COMPILE_FOR_BUILD) -c $(srcdir)/opc2c.c 573 574s390-mkopc$(EXEEXT_FOR_BUILD): s390-mkopc.o 575 $(AM_V_CCLD)$(LINK_FOR_BUILD) s390-mkopc.o 576 577s390-mkopc.o: s390-mkopc.c $(INCDIR)/opcode/s390.h 578 $(COMPILE_FOR_BUILD) -c $(srcdir)/s390-mkopc.c 579 580s390-opc.tab: s390-mkopc$(EXEEXT_FOR_BUILD) s390-opc.txt 581 $(AM_V_GEN)./s390-mkopc$(EXEEXT_FOR_BUILD) < $(srcdir)/s390-opc.txt > s390-opc.tab 582 583s390-opc.lo: s390-opc.tab 584 585z8kgen$(EXEEXT_FOR_BUILD): z8kgen.o $(BUILD_LIB_DEPS) 586 $(AM_V_CCLD)$(LINK_FOR_BUILD) z8kgen.o $(BUILD_LIBS) 587 588z8kgen.o: z8kgen.c 589 $(AM_V_CC)$(COMPILE_FOR_BUILD) -c $(srcdir)/z8kgen.c 590 591$(srcdir)/z8k-opc.h: @MAINT@ z8kgen$(EXEEXT_FOR_BUILD) 592 $(AM_V_GEN)./z8kgen$(EXEEXT_FOR_BUILD) -a > $@ 593 594z8k-dis.lo: $(srcdir)/z8k-opc.h 595 596MIPS_DEFS=`case \`cat ../bfd/ofiles\` in *elfxx-mips*) echo "-DHAVE_BFD_MIPS_ELF_GET_ABIFLAGS=1";; esac` 597mips-dis.lo: mips-dis.c 598if am__fastdepCC 599 $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(MIPS_DEFS) $< 600 $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo 601else 602if AMDEP 603 source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 604 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 605endif 606 $(AM_V_CC)$(LTCOMPILE) -c -o $@ $(MIPS_DEFS) $< 607endif 608 609sh-dis.lo: sh-dis.c 610if am__fastdepCC 611 $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ @archdefs@ $(srcdir)/sh-dis.c 612 $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo 613else 614if AMDEP 615 source='sh-dis.c' object='$@' libtool=yes @AMDEPBACKSLASH@ 616 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 617endif 618 $(AM_V_CC)$(LTCOMPILE) -c -o $@ @archdefs@ $(srcdir)/sh-dis.c 619endif 620