Makefile.am 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  1. ## Process this file with automake to generate Makefile.in
  2. #
  3. # Copyright (C) 2012-2015 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. AUTOMAKE_OPTIONS = 1.11 foreign no-dist
  20. ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
  21. # Build '.' first so all generated files exist.
  22. SUBDIRS = . po
  23. INCDIR = $(srcdir)/../include
  24. BFDDIR = $(srcdir)/../bfd
  25. WARN_CFLAGS = @WARN_CFLAGS@
  26. NO_WERROR = @NO_WERROR@
  27. NO_WMISSING_FIELD_INITIALIZERS = @NO_WMISSING_FIELD_INITIALIZERS@
  28. AM_CFLAGS = $(WARN_CFLAGS)
  29. COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(INCLUDES) $(AM_CPPFLAGS) \
  30. $(CFLAGS_FOR_BUILD)
  31. LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) \
  32. $(LDFLAGS_FOR_BUILD) -o $@
  33. libopcodes_la_LDFLAGS =
  34. if INSTALL_LIBBFD
  35. bfdlibdir = @bfdlibdir@
  36. bfdincludedir = @bfdincludedir@
  37. bfdlib_LTLIBRARIES = libopcodes.la
  38. bfdinclude_DATA = $(INCDIR)/dis-asm.h
  39. else
  40. # Empty these so that the respective installation directories will not be created.
  41. bfdlibdir =
  42. bfdincludedir =
  43. rpath_bfdlibdir = @bfdlibdir@
  44. noinst_LTLIBRARIES = libopcodes.la
  45. libopcodes_la_LDFLAGS += -rpath $(rpath_bfdlibdir)
  46. endif
  47. # This is where bfd.h lives.
  48. BFD_H = ../bfd/bfd.h
  49. BUILD_LIBS = @BUILD_LIBS@
  50. BUILD_LIB_DEPS = @BUILD_LIB_DEPS@
  51. # Header files.
  52. HFILES = \
  53. aarch64-asm.h aarch64-dis.h aarch64-opc.h aarch64-tbl.h \
  54. epiphany-desc.h epiphany-opc.h \
  55. fr30-desc.h fr30-opc.h \
  56. frv-desc.h frv-opc.h \
  57. h8500-opc.h \
  58. i386-init.h \
  59. i386-opc.h \
  60. i386-tbl.h \
  61. ia64-asmtab.h \
  62. ia64-opc.h \
  63. ip2k-desc.h ip2k-opc.h \
  64. iq2000-desc.h iq2000-opc.h \
  65. lm32-desc.h \
  66. lm32-opc.h \
  67. m32c-desc.h m32c-opc.h \
  68. m32r-desc.h m32r-opc.h \
  69. mcore-opc.h \
  70. mep-desc.h mep-opc.h \
  71. microblaze-opc.h \
  72. mt-desc.h mt-opc.h \
  73. score-opc.h \
  74. sh-opc.h \
  75. sh64-opc.h \
  76. sysdep.h \
  77. w65-opc.h \
  78. xc16x-desc.h xc16x-opc.h \
  79. xstormy16-desc.h xstormy16-opc.h \
  80. z8k-opc.h
  81. # C source files that correspond to .o's ending up in libopcodes
  82. # for all machines.
  83. TARGET_LIBOPCODES_CFILES = \
  84. aarch64-asm.c \
  85. aarch64-asm-2.c \
  86. aarch64-dis.c \
  87. aarch64-dis-2.c \
  88. aarch64-opc.c \
  89. aarch64-opc-2.c \
  90. alpha-dis.c \
  91. alpha-opc.c \
  92. arc-dis.c \
  93. arc-ext.c \
  94. arc-opc.c \
  95. arm-dis.c \
  96. avr-dis.c \
  97. bfin-dis.c \
  98. cgen-asm.c \
  99. cgen-bitset.c \
  100. cgen-dis.c \
  101. cgen-opc.c \
  102. cr16-dis.c \
  103. cr16-opc.c \
  104. cris-dis.c \
  105. cris-opc.c \
  106. crx-dis.c \
  107. crx-opc.c \
  108. d10v-dis.c \
  109. d10v-opc.c \
  110. d30v-dis.c \
  111. d30v-opc.c \
  112. dlx-dis.c \
  113. epiphany-asm.c \
  114. epiphany-desc.c \
  115. epiphany-dis.c \
  116. epiphany-ibld.c \
  117. epiphany-opc.c \
  118. fr30-asm.c \
  119. fr30-desc.c \
  120. fr30-dis.c \
  121. fr30-ibld.c \
  122. fr30-opc.c \
  123. frv-asm.c \
  124. frv-desc.c \
  125. frv-dis.c \
  126. frv-ibld.c \
  127. frv-opc.c \
  128. ft32-dis.c \
  129. ft32-opc.c \
  130. h8300-dis.c \
  131. h8500-dis.c \
  132. hppa-dis.c \
  133. i370-dis.c \
  134. i370-opc.c \
  135. i386-dis.c \
  136. i386-opc.c \
  137. i860-dis.c \
  138. i960-dis.c \
  139. ia64-dis.c \
  140. ia64-opc.c \
  141. ip2k-asm.c \
  142. ip2k-desc.c \
  143. ip2k-dis.c \
  144. ip2k-ibld.c \
  145. ip2k-opc.c \
  146. iq2000-asm.c \
  147. iq2000-desc.c \
  148. iq2000-dis.c \
  149. iq2000-ibld.c \
  150. iq2000-opc.c \
  151. lm32-asm.c \
  152. lm32-desc.c \
  153. lm32-dis.c \
  154. lm32-ibld.c \
  155. lm32-opc.c \
  156. lm32-opinst.c \
  157. m10200-dis.c \
  158. m10200-opc.c \
  159. m10300-dis.c \
  160. m10300-opc.c \
  161. m32c-asm.c \
  162. m32c-desc.c \
  163. m32c-dis.c \
  164. m32c-ibld.c \
  165. m32c-opc.c \
  166. m32r-asm.c \
  167. m32r-desc.c \
  168. m32r-dis.c \
  169. m32r-ibld.c \
  170. m32r-opc.c \
  171. m32r-opinst.c \
  172. m68hc11-dis.c \
  173. m68hc11-opc.c \
  174. m68k-dis.c \
  175. m68k-opc.c \
  176. m88k-dis.c \
  177. mcore-dis.c \
  178. mep-asm.c \
  179. mep-desc.c \
  180. mep-dis.c \
  181. mep-ibld.c \
  182. mep-opc.c \
  183. metag-dis.c \
  184. microblaze-dis.c \
  185. micromips-opc.c \
  186. mips-dis.c \
  187. mips-opc.c \
  188. mips16-opc.c \
  189. mmix-dis.c \
  190. mmix-opc.c \
  191. moxie-dis.c \
  192. moxie-opc.c \
  193. msp430-decode.c \
  194. msp430-dis.c \
  195. mt-asm.c \
  196. mt-desc.c \
  197. mt-dis.c \
  198. mt-ibld.c \
  199. mt-opc.c \
  200. nds32-asm.c \
  201. nds32-dis.c \
  202. nios2-dis.c \
  203. nios2-opc.c \
  204. ns32k-dis.c \
  205. or1k-asm.c \
  206. or1k-desc.c \
  207. or1k-dis.c \
  208. or1k-ibld.c \
  209. or1k-opc.c \
  210. pdp11-dis.c \
  211. pdp11-opc.c \
  212. pj-dis.c \
  213. pj-opc.c \
  214. ppc-dis.c \
  215. ppc-opc.c \
  216. rl78-decode.c \
  217. rl78-dis.c \
  218. rx-decode.c \
  219. rx-dis.c \
  220. s390-dis.c \
  221. s390-opc.c \
  222. score-dis.c \
  223. score7-dis.c \
  224. sh-dis.c \
  225. sh64-dis.c \
  226. sh64-opc.c \
  227. sparc-dis.c \
  228. sparc-opc.c \
  229. spu-dis.c \
  230. spu-opc.c \
  231. tic30-dis.c \
  232. tic4x-dis.c \
  233. tic54x-dis.c \
  234. tic54x-opc.c \
  235. tic6x-dis.c \
  236. tic80-dis.c \
  237. tic80-opc.c \
  238. tilegx-dis.c \
  239. tilegx-opc.c \
  240. tilepro-dis.c \
  241. tilepro-opc.c \
  242. v850-dis.c \
  243. v850-opc.c \
  244. vax-dis.c \
  245. visium-dis.c \
  246. visium-opc.c \
  247. w65-dis.c \
  248. xc16x-asm.c \
  249. xc16x-desc.c \
  250. xc16x-dis.c \
  251. xc16x-ibld.c \
  252. xc16x-opc.c \
  253. xstormy16-asm.c \
  254. xstormy16-desc.c \
  255. xstormy16-dis.c \
  256. xstormy16-ibld.c \
  257. xstormy16-opc.c \
  258. xtensa-dis.c \
  259. xgate-dis.c \
  260. xgate-opc.c \
  261. z80-dis.c \
  262. z8k-dis.c
  263. # C source files that correspond to .o's ending up in libopcodes.
  264. LIBOPCODES_CFILES = \
  265. $(TARGET_LIBOPCODES_CFILES) \
  266. dis-buf.c \
  267. dis-init.c \
  268. disassemble.c
  269. # C source files that correspond to .o's.
  270. CFILES = \
  271. $(LIBOPCODES_CFILES) \
  272. aarch64-gen.c \
  273. i386-gen.c \
  274. ia64-asmtab.c \
  275. ia64-gen.c \
  276. ia64-opc-a.c \
  277. ia64-opc-b.c \
  278. ia64-opc-f.c \
  279. ia64-opc-i.c \
  280. ia64-opc-m.c \
  281. ia64-opc-d.c \
  282. s390-mkopc.c \
  283. z8kgen.c
  284. ALL_MACHINES = $(TARGET_LIBOPCODES_CFILES:.c=.lo)
  285. OFILES = @BFD_MACHINES@
  286. # development.sh is used to determine -Werror default.
  287. CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh
  288. AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(INCDIR) -I$(BFDDIR) @HDEFINES@ @INCINTL@
  289. disassemble.lo: disassemble.c
  290. if am__fastdepCC
  291. $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ @archdefs@ $(srcdir)/disassemble.c
  292. mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  293. else
  294. if AMDEP
  295. source='disassemble.c' object='$@' libtool=yes @AMDEPBACKSLASH@
  296. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  297. endif
  298. $(LTCOMPILE) -c -o $@ @archdefs@ $(srcdir)/disassemble.c
  299. endif
  300. libopcodes_la_SOURCES = dis-buf.c disassemble.c dis-init.c
  301. # It's desirable to list ../bfd/libbfd.la in DEPENDENCIES and LIBADD.
  302. # Unfortunately this causes libtool to add -L$(libdir), referring to the
  303. # planned install directory of libbfd. This can cause us to pick up an
  304. # old version of libbfd, or to pick up libbfd for the wrong architecture
  305. # if host != build. So for building with shared libraries we use a
  306. # hardcoded path to libbfd.so instead of relying on the entries in libbfd.la.
  307. libopcodes_la_DEPENDENCIES = $(OFILES) @SHARED_DEPENDENCIES@
  308. libopcodes_la_LIBADD = $(OFILES) @SHARED_LIBADD@
  309. libopcodes_la_LDFLAGS += -release `cat ../bfd/libtool-soversion` @SHARED_LDFLAGS@
  310. # Allow dependency tracking to work on all the source files.
  311. EXTRA_libopcodes_la_SOURCES = $(LIBOPCODES_CFILES)
  312. # libtool will build .libs/libopcodes.a. We create libopcodes.a in
  313. # the build directory so that we don't have to convert all the
  314. # programs that use libopcodes.a simultaneously. This is a hack which
  315. # should be removed if everything else starts using libtool. FIXME.
  316. noinst_LIBRARIES = libopcodes.a
  317. libopcodes_a_SOURCES =
  318. stamp-lib: libopcodes.la
  319. libtooldir=`$(LIBTOOL) --config | sed -n -e 's/^objdir=//p'`; \
  320. if [ -f $$libtooldir/libopcodes.a ]; then \
  321. cp $$libtooldir/libopcodes.a libopcodes.tmp; \
  322. $(RANLIB) libopcodes.tmp; \
  323. $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a; \
  324. else true; fi
  325. touch stamp-lib
  326. libopcodes.a: stamp-lib ; @true
  327. POTFILES = $(HFILES) $(CFILES)
  328. po/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. CLEANFILES = \
  332. stamp-epiphany stamp-fr30 stamp-frv stamp-ip2k stamp-iq2000 stamp-lm32 \
  333. stamp-m32c stamp-m32r stamp-mep stamp-mt \
  334. stamp-or1k stamp-xc16x stamp-xstormy16 \
  335. libopcodes.a stamp-lib
  336. CGENDIR = @cgendir@
  337. CPUDIR = $(srcdir)/../cpu
  338. CGEN = "`if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi` -l ${cgendir}/guile.scm -s"
  339. CGENFLAGS = -v
  340. CGENDEPS = \
  341. $(CGENDIR)/desc.scm $(CGENDIR)/desc-cpu.scm \
  342. $(CGENDIR)/opcodes.scm $(CGENDIR)/opc-asmdis.scm \
  343. $(CGENDIR)/opc-ibld.scm $(CGENDIR)/opc-itab.scm \
  344. $(CGENDIR)/opc-opinst.scm \
  345. cgen-asm.in cgen-dis.in cgen-ibld.in
  346. CGEN_CPUS = epiphany fr30 frv ip2k iq2000 lm32 m32c m32r mep mt or1k xc16x xstormy16
  347. if CGEN_MAINT
  348. EPIPHANY_DEPS = stamp-epiphany
  349. FR30_DEPS = stamp-fr30
  350. FRV_DEPS = stamp-frv
  351. IP2K_DEPS = stamp-ip2k
  352. IQ2000_DEPS = stamp-iq2000
  353. LM32_DEPS = stamp-lm32
  354. M32C_DEPS = stamp-m32c
  355. M32R_DEPS = stamp-m32r
  356. MEP_DEPS = stamp-mep
  357. MT_DEPS = stamp-mt
  358. OR1K_DEPS = stamp-or1k
  359. XC16X_DEPS = stamp-xc16x
  360. XSTORMY16_DEPS = stamp-xstormy16
  361. else
  362. EPIPHANY_DEPS =
  363. FR30_DEPS =
  364. FRV_DEPS =
  365. IP2K_DEPS =
  366. IQ2000_DEPS =
  367. LM32_DEPS =
  368. M32C_DEPS =
  369. M32R_DEPS =
  370. MEP_DEPS =
  371. MT_DEPS =
  372. OR1K_DEPS =
  373. XC16X_DEPS =
  374. XSTORMY16_DEPS =
  375. endif
  376. run-cgen:
  377. $(SHELL) $(srcdir)/cgen.sh opcodes $(srcdir) $(CGEN) \
  378. $(CGENDIR) "$(CGENFLAGS)" $(arch) $(prefix) $(archfile) $(opcfile) \
  379. "$(options)" "$(extrafiles)"
  380. touch stamp-${prefix}
  381. .PHONY: run-cgen
  382. # Maintainer utility rule to regenerate all cgen files.
  383. run-cgen-all:
  384. for c in $(CGEN_CPUS) ; \
  385. do \
  386. $(MAKE) stamp-$$c || exit 1 ; \
  387. done
  388. .PHONY: run-cgen-all
  389. # For now, require developers to configure with --enable-cgen-maint.
  390. $(srcdir)/epiphany-desc.h $(srcdir)/epiphany-desc.c $(srcdir)/epiphany-opc.h \
  391. $(srcdir)/epiphany-opc.c $(srcdir)/epiphany-ibld.c \
  392. $(srcdir)/epiphany-opinst.c $(srcdir)/epiphany-asm.c \
  393. $(srcdir)/epiphany-dis.c: $(EPIPHANY_DEPS)
  394. @true
  395. stamp-epiphany: $(CGENDEPS) $(CPUDIR)/epiphany.cpu $(CPUDIR)/epiphany.opc
  396. $(MAKE) run-cgen arch=epiphany prefix=epiphany options= \
  397. archfile=$(CPUDIR)/epiphany.cpu opcfile=$(CPUDIR)/epiphany.opc extrafiles=
  398. $(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)
  399. @true
  400. stamp-fr30: $(CGENDEPS) $(CPUDIR)/fr30.cpu $(CPUDIR)/fr30.opc
  401. $(MAKE) run-cgen arch=fr30 prefix=fr30 options= \
  402. archfile=$(CPUDIR)/fr30.cpu opcfile=$(CPUDIR)/fr30.opc extrafiles=
  403. $(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)
  404. @true
  405. stamp-frv: $(CGENDEPS) $(CPUDIR)/frv.cpu $(CPUDIR)/frv.opc
  406. $(MAKE) run-cgen arch=frv prefix=frv options= \
  407. archfile=$(CPUDIR)/frv.cpu opcfile=$(CPUDIR)/frv.opc extrafiles=
  408. $(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)
  409. @true
  410. stamp-ip2k: $(CGENDEPS) $(CPUDIR)/ip2k.cpu $(CPUDIR)/ip2k.opc
  411. $(MAKE) run-cgen arch=ip2k prefix=ip2k options= \
  412. archfile=$(CPUDIR)/ip2k.cpu opcfile=$(CPUDIR)/ip2k.opc extrafiles=
  413. $(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)
  414. @true
  415. stamp-iq2000: $(CGENDEPS) $(CPUDIR)/iq2000.cpu \
  416. $(CPUDIR)/iq2000.opc $(CPUDIR)/iq2000m.cpu \
  417. $(CPUDIR)/iq10.cpu
  418. $(MAKE) run-cgen arch=iq2000 prefix=iq2000 options= \
  419. archfile=$(CPUDIR)/iq2000.cpu \
  420. opcfile=$(CPUDIR)/iq2000.opc extrafiles=
  421. $(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)
  422. @true
  423. stamp-lm32: $(CGENDEPS) $(CPUDIR)/lm32.cpu $(CPUDIR)/lm32.opc
  424. $(MAKE) run-cgen arch=lm32 prefix=lm32 options=opinst \
  425. archfile=$(CPUDIR)/lm32.cpu \
  426. opcfile=$(CPUDIR)/lm32.opc \
  427. extrafiles=opinst
  428. $(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)
  429. # @true
  430. stamp-m32c: $(CGENDEPS) $(CPUDIR)/m32c.cpu $(CPUDIR)/m32c.opc
  431. $(MAKE) run-cgen arch=m32c prefix=m32c options= \
  432. archfile=$(CPUDIR)/m32c.cpu \
  433. opcfile=$(CPUDIR)/m32c.opc extrafiles=
  434. $(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)
  435. @true
  436. stamp-m32r: $(CGENDEPS) $(CPUDIR)/m32r.cpu $(CPUDIR)/m32r.opc
  437. $(MAKE) run-cgen arch=m32r prefix=m32r options=opinst \
  438. archfile=$(CPUDIR)/m32r.cpu \
  439. opcfile=$(CPUDIR)/m32r.opc extrafiles=opinst
  440. $(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)
  441. @true
  442. stamp-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
  443. $(MAKE) run-cgen arch=mep prefix=mep options= \
  444. archfile=$(CPUDIR)/mep.cpu opcfile=$(CPUDIR)/mep.opc extrafiles=
  445. $(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)
  446. @true
  447. stamp-mt: $(CGENDEPS) $(CPUDIR)/mt.cpu $(CPUDIR)/mt.opc
  448. $(MAKE) run-cgen arch=mt prefix=mt options= \
  449. archfile=$(CPUDIR)/mt.cpu \
  450. opcfile=$(CPUDIR)/mt.opc extrafiles=
  451. $(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)
  452. @true
  453. stamp-or1k: $(CGENDEPS) $(CPUDIR)/or1k.cpu $(CPUDIR)/or1k.opc $(CPUDIR)/or1kcommon.cpu $(CPUDIR)/or1korbis.cpu $(CPUDIR)/or1korfpx.cpu
  454. $(MAKE) run-cgen arch=or1k prefix=or1k options=opinst \
  455. archfile=$(CPUDIR)/or1k.cpu opcfile=$(CPUDIR)/or1k.opc extrafiles=opinst
  456. $(srcdir)/xc16x-desc.h $(srcdir)/xc16x-desc.c $(srcdir)/xc16x-opc.h $(srcdir)/xc16x-opc.c $(srcdir)/xc16x-ibld.c $(srcdir)/xc16x-asm.c $(srcdir)/xc16x-dis.c: $(XC16X_DEPS)
  457. @true
  458. stamp-xc16x: $(CGENDEPS) $(CPUDIR)/xc16x.cpu $(CPUDIR)/xc16x.opc
  459. $(MAKE) run-cgen arch=xc16x prefix=xc16x options= \
  460. archfile=$(CPUDIR)/xc16x.cpu \
  461. opcfile=$(CPUDIR)/xc16x.opc \
  462. extrafiles=
  463. $(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)
  464. @true
  465. stamp-xstormy16: $(CGENDEPS) $(CPUDIR)/xstormy16.cpu $(CPUDIR)/xstormy16.opc
  466. $(MAKE) run-cgen arch=xstormy16 prefix=xstormy16 options= \
  467. archfile=$(CPUDIR)/xstormy16.cpu opcfile=$(CPUDIR)/xstormy16.opc extrafiles=
  468. MOSTLYCLEANFILES = aarch64-gen$(EXEEXT_FOR_BUILD) i386-gen$(EXEEXT_FOR_BUILD) \
  469. ia64-gen$(EXEEXT_FOR_BUILD) s390-mkopc$(EXEEXT_FOR_BUILD) s390-opc.tab \
  470. z8kgen$(EXEEXT_FOR_BUILD) opc2c$(EXEEXT_FOR_BUILD)
  471. MAINTAINERCLEANFILES = $(srcdir)/aarch64-asm-2.c $(srcdir)/aarch64-dis-2.c \
  472. $(srcdir)/aarch64-opc-2.c $(srcdir)/i386-tbl.h $(srcdir)/i386-init.h \
  473. $(srcdir)/ia64-asmtab.c $(srcdir)/z8k-opc.h \
  474. $(srcdir)/msp430-decode.c \
  475. $(srcdir)/rl78-decode.c \
  476. $(srcdir)/rx-decode.c
  477. aarch64-gen$(EXEEXT_FOR_BUILD): aarch64-gen.o $(BUILD_LIB_DEPS)
  478. $(LINK_FOR_BUILD) aarch64-gen.o $(BUILD_LIBS)
  479. aarch64-gen.o: aarch64-gen.c $(BFD_H) $(INCDIR)/getopt.h $(INCDIR)/libiberty.h\
  480. $(INCDIR)/opcode/aarch64.h config.h aarch64-opc.h aarch64-tbl.h
  481. $(COMPILE_FOR_BUILD) -c $(srcdir)/aarch64-gen.c
  482. $(srcdir)/aarch64-asm-2.c: @MAINT@ aarch64-gen$(exeext_for_build)
  483. ./aarch64-gen$(exeext_for_build) --gen-asm > $@
  484. $(srcdir)/aarch64-dis-2.c: @MAINT@ aarch64-gen$(exeext_for_build)
  485. ./aarch64-gen$(exeext_for_build) --gen-dis > $@
  486. $(srcdir)/aarch64-opc-2.c: @MAINT@ aarch64-gen$(exeext_for_build)
  487. ./aarch64-gen$(exeext_for_build) --gen-opc > $@
  488. i386-gen$(EXEEXT_FOR_BUILD): i386-gen.o $(BUILD_LIB_DEPS)
  489. $(LINK_FOR_BUILD) i386-gen.o $(BUILD_LIBS)
  490. i386-gen.o: i386-gen.c i386-opc.h $(srcdir)/../include/opcode/i386.h \
  491. $(INCDIR)/ansidecl.h $(INCDIR)/getopt.h $(INCDIR)/hashtab.h \
  492. $(INCDIR)/libiberty.h $(INCDIR)/opcode/i386.h $(INCDIR)/safe-ctype.h \
  493. config.h i386-opc.h sysdep.h
  494. $(COMPILE_FOR_BUILD) -c $(srcdir)/i386-gen.c
  495. $(srcdir)/i386-tbl.h: $(srcdir)/i386-init.h
  496. @echo $@
  497. $(srcdir)/i386-init.h: @MAINT@ i386-gen$(EXEEXT_FOR_BUILD) i386-opc.tbl i386-reg.tbl
  498. ./i386-gen$(EXEEXT_FOR_BUILD) --srcdir $(srcdir)
  499. i386-opc.lo: $(srcdir)/i386-tbl.h
  500. ia64-gen$(EXEEXT_FOR_BUILD): ia64-gen.o $(BUILD_LIB_DEPS)
  501. $(LINK_FOR_BUILD) ia64-gen.o $(BUILD_LIBS)
  502. ia64-gen.o: ia64-gen.c $(BFD_H) $(INCDIR)/ansidecl.h $(INCDIR)/getopt.h \
  503. $(INCDIR)/libiberty.h $(INCDIR)/opcode/ia64.h $(INCDIR)/safe-ctype.h \
  504. $(INCDIR)/symcat.h config.h ia64-opc-a.c ia64-opc-b.c \
  505. ia64-opc-d.c ia64-opc-f.c ia64-opc-i.c ia64-opc-m.c \
  506. ia64-opc-x.c ia64-opc.h sysdep.h
  507. $(COMPILE_FOR_BUILD) -c $(srcdir)/ia64-gen.c
  508. # Use a helper variable for the dependencies to avoid 'make' issues
  509. # with continuations in comments, as @MAINT@ can be expanded to '#'.
  510. ia64_asmtab_deps = ia64-gen$(EXEEXT_FOR_BUILD) ia64-ic.tbl \
  511. ia64-raw.tbl ia64-waw.tbl ia64-war.tbl
  512. $(srcdir)/ia64-asmtab.c: @MAINT@ $(ia64_asmtab_deps)
  513. ./ia64-gen$(EXEEXT_FOR_BUILD) --srcdir $(srcdir) > $@
  514. ia64-opc.lo: $(srcdir)/ia64-asmtab.c
  515. $(srcdir)/msp430-decode.c: @MAINT@ $(srcdir)/msp430-decode.opc opc2c$(EXEEXT_FOR_BUILD)
  516. ./opc2c$(EXEEXT_FOR_BUILD) $(srcdir)/msp430-decode.opc > $(srcdir)/msp430-decode.c
  517. $(srcdir)/rl78-decode.c: @MAINT@ $(srcdir)/rl78-decode.opc opc2c$(EXEEXT_FOR_BUILD)
  518. ./opc2c$(EXEEXT_FOR_BUILD) $(srcdir)/rl78-decode.opc > $(srcdir)/rl78-decode.c
  519. $(srcdir)/rx-decode.c: @MAINT@ $(srcdir)/rx-decode.opc opc2c$(EXEEXT_FOR_BUILD)
  520. ./opc2c$(EXEEXT_FOR_BUILD) $(srcdir)/rx-decode.opc > $(srcdir)/rx-decode.c
  521. opc2c$(EXEEXT_FOR_BUILD): opc2c.o $(BUILD_LIBS_DEPS)
  522. $(LINK_FOR_BUILD) opc2c.o $(BUILD_LIBS)
  523. opc2c.o: opc2c.c $(INCDIR)/libiberty.h
  524. $(COMPILE_FOR_BUILD) -c $(srcdir)/opc2c.c
  525. s390-mkopc$(EXEEXT_FOR_BUILD): s390-mkopc.c
  526. $(COMPILE_FOR_BUILD) -o s390-mkopc $(srcdir)/s390-mkopc.c
  527. s390-opc.tab: s390-mkopc$(EXEEXT_FOR_BUILD) s390-opc.txt
  528. ./s390-mkopc$(EXEEXT_FOR_BUILD) < $(srcdir)/s390-opc.txt > s390-opc.tab
  529. s390-opc.lo: s390-opc.tab
  530. z8kgen$(EXEEXT_FOR_BUILD): z8kgen.o $(BUILD_LIB_DEPS)
  531. $(LINK_FOR_BUILD) z8kgen.o $(BUILD_LIBS)
  532. z8kgen.o: z8kgen.c
  533. $(COMPILE_FOR_BUILD) -c $(srcdir)/z8kgen.c
  534. $(srcdir)/z8k-opc.h: @MAINT@ z8kgen$(EXEEXT_FOR_BUILD)
  535. ./z8kgen$(EXEEXT_FOR_BUILD) -a > $@
  536. z8k-dis.lo: $(srcdir)/z8k-opc.h
  537. sh-dis.lo: sh-dis.c
  538. if am__fastdepCC
  539. $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ @archdefs@ $(srcdir)/sh-dis.c
  540. mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  541. else
  542. if AMDEP
  543. source='sh-dis.c' object='$@' libtool=yes @AMDEPBACKSLASH@
  544. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  545. endif
  546. $(LTCOMPILE) -c -o $@ @archdefs@ $(srcdir)/sh-dis.c
  547. endif