Makefile.am 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  1. ## Process this file with automake to generate Makefile.in
  2. #
  3. # Copyright (C) 2012-2022 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 = dejagnu foreign no-dist subdir-objects info-in-builddir no-texinfo.tex
  20. ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
  21. MAINTAINERCLEANFILES =
  22. SUBDIRS = po
  23. tooldir = $(exec_prefix)/$(target_alias)
  24. # This is where we get zlib from. zlibdir is -L../zlib and zlibinc is
  25. # -I../zlib, unless we were configured with --with-system-zlib, in which
  26. # case both are empty.
  27. ZLIB = @zlibdir@ -lz
  28. ZLIBINC = @zlibinc@
  29. YACC = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo @YACC@ ; fi`
  30. LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo @LEX@ ; fi`
  31. # Automake 1.10+ disables lex and yacc output file regeneration if
  32. # maintainer mode is disabled. Avoid this.
  33. am__skiplex =
  34. am__skipyacc =
  35. WARN_CFLAGS = @WARN_CFLAGS@ @WARN_WRITE_STRINGS@
  36. NO_WERROR = @NO_WERROR@
  37. AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC)
  38. TARG_CPU = @target_cpu_type@
  39. TARG_CPU_C = $(srcdir)/config/tc-@target_cpu_type@.c
  40. TARG_CPU_O = config/tc-@target_cpu_type@.@OBJEXT@
  41. TARG_CPU_H = $(srcdir)/config/tc-@target_cpu_type@.h
  42. OBJ_FORMAT_C = $(srcdir)/config/obj-@obj_format@.c
  43. OBJ_FORMAT_O = config/obj-@obj_format@.@OBJEXT@
  44. OBJ_FORMAT_H = $(srcdir)/config/obj-@obj_format@.h
  45. TARG_ENV_H = $(srcdir)/config/te-@te_file@.h
  46. ATOF_TARG_C = $(srcdir)/config/atof-@atof@.c
  47. ATOF_TARG_O = config/atof-@atof@.@OBJEXT@
  48. # use @target_cpu_type@ for refering to configured target name
  49. IT_HDRS=itbl-parse.h $(srcdir)/itbl-ops.h
  50. IT_SRCS=itbl-parse.c itbl-lex-wrapper.c $(srcdir)/itbl-ops.c
  51. IT_DEPS=$(srcdir)/itbl-parse.y $(srcdir)/itbl-lex.l $(srcdir)/config/itbl-@target_cpu_type@.h
  52. IT_OBJS=itbl-parse.@OBJEXT@ itbl-lex.@OBJEXT@ itbl-ops.@OBJEXT@
  53. # Regular source files.
  54. GAS_CFILES = \
  55. app.c \
  56. as.c \
  57. atof-generic.c \
  58. compress-debug.c \
  59. cond.c \
  60. depend.c \
  61. dwarf2dbg.c \
  62. dw2gencfi.c \
  63. ecoff.c \
  64. ehopt.c \
  65. expr.c \
  66. flonum-copy.c \
  67. flonum-konst.c \
  68. flonum-mult.c \
  69. frags.c \
  70. hash.c \
  71. input-file.c \
  72. input-scrub.c \
  73. listing.c \
  74. literal.c \
  75. macro.c \
  76. messages.c \
  77. output-file.c \
  78. read.c \
  79. remap.c \
  80. sb.c \
  81. stabs.c \
  82. subsegs.c \
  83. symbols.c \
  84. write.c
  85. CFILES = $(GAS_CFILES) itbl-ops.c cgen.c
  86. HFILES = \
  87. as.h \
  88. asintl.h \
  89. bignum.h \
  90. bit_fix.h \
  91. cgen.h \
  92. compress-debug.h \
  93. dwarf2dbg.h \
  94. dw2gencfi.h \
  95. ecoff.h \
  96. emul-target.h \
  97. emul.h \
  98. expr.h \
  99. flonum.h \
  100. frags.h \
  101. hash.h \
  102. input-file.h \
  103. itbl-lex.h \
  104. itbl-ops.h \
  105. listing.h \
  106. macro.h \
  107. obj.h \
  108. output-file.h \
  109. read.h \
  110. sb.h \
  111. subsegs.h \
  112. symbols.h \
  113. tc.h \
  114. write.h
  115. # CPU files in config.
  116. TARGET_CPU_CFILES = \
  117. config/tc-aarch64.c \
  118. config/tc-alpha.c \
  119. config/tc-arc.c \
  120. config/tc-arm.c \
  121. config/tc-avr.c \
  122. config/tc-bfin.c \
  123. config/tc-bpf.c \
  124. config/tc-cr16.c \
  125. config/tc-cris.c \
  126. config/tc-crx.c \
  127. config/tc-csky.c \
  128. config/tc-d10v.c \
  129. config/tc-d30v.c \
  130. config/tc-dlx.c \
  131. config/tc-epiphany.c \
  132. config/tc-fr30.c \
  133. config/tc-frv.c \
  134. config/tc-ft32.c \
  135. config/tc-h8300.c \
  136. config/tc-hppa.c \
  137. config/tc-ia64.c \
  138. config/tc-i386.c \
  139. config/tc-ip2k.c \
  140. config/tc-iq2000.c \
  141. config/tc-lm32.c \
  142. config/tc-loongarch.c \
  143. config/tc-m32c.c \
  144. config/tc-m32r.c \
  145. config/tc-m68hc11.c \
  146. config/tc-m68k.c \
  147. config/tc-s12z.c \
  148. config/tc-mcore.c \
  149. config/tc-mep.c \
  150. config/tc-metag.c \
  151. config/tc-microblaze.c \
  152. config/tc-mips.c \
  153. config/tc-mmix.c \
  154. config/tc-mn10200.c \
  155. config/tc-mn10300.c \
  156. config/tc-moxie.c \
  157. config/tc-msp430.c \
  158. config/tc-mt.c \
  159. config/tc-nds32.c \
  160. config/tc-nios2.c \
  161. config/tc-ns32k.c \
  162. config/tc-or1k.c \
  163. config/tc-pdp11.c \
  164. config/tc-pj.c \
  165. config/tc-ppc.c \
  166. config/tc-pru.c \
  167. config/tc-riscv.c \
  168. config/tc-rl78.c \
  169. config/tc-rx.c \
  170. config/tc-s390.c \
  171. config/tc-score.c \
  172. config/tc-sh.c \
  173. config/tc-sparc.c \
  174. config/tc-spu.c \
  175. config/tc-tic30.c \
  176. config/tc-tic4x.c \
  177. config/tc-tic54x.c \
  178. config/tc-tic6x.c \
  179. config/tc-tilegx.c \
  180. config/tc-tilepro.c \
  181. config/tc-v850.c \
  182. config/tc-vax.c \
  183. config/tc-visium.c \
  184. config/tc-wasm32.c \
  185. config/tc-xstormy16.c \
  186. config/tc-xc16x.c \
  187. config/tc-xgate.c \
  188. config/tc-xtensa.c \
  189. config/tc-z80.c \
  190. config/tc-z8k.c
  191. TARGET_CPU_HFILES = \
  192. config/tc-aarch64.h \
  193. config/tc-alpha.h \
  194. config/tc-arc.h \
  195. config/tc-arm.h \
  196. config/tc-avr.h \
  197. config/tc-bfin.h \
  198. config/tc-bpf.h \
  199. config/tc-cr16.h \
  200. config/tc-cris.h \
  201. config/tc-crx.h \
  202. config/tc-csky.h \
  203. config/tc-d10v.h \
  204. config/tc-d30v.h \
  205. config/tc-dlx.h \
  206. config/tc-epiphany.h \
  207. config/tc-fr30.h \
  208. config/tc-frv.h \
  209. config/tc-ft32.h \
  210. config/tc-h8300.h \
  211. config/tc-hppa.h \
  212. config/tc-ia64.h \
  213. config/tc-i386.h \
  214. config/tc-ip2k.h \
  215. config/tc-iq2000.h \
  216. config/tc-lm32.h \
  217. config/tc-m32c.h \
  218. config/tc-m32r.h \
  219. config/tc-m68hc11.h \
  220. config/tc-m68k.h \
  221. config/tc-s12z.h \
  222. config/tc-mcore.h \
  223. config/tc-mep.h \
  224. config/tc-metag.h \
  225. config/tc-microblaze.h \
  226. config/tc-mips.h \
  227. config/tc-mmix.h \
  228. config/tc-mn10200.h \
  229. config/tc-mn10300.h \
  230. config/tc-msp430.h \
  231. config/tc-mt.h \
  232. config/tc-nds32.h \
  233. config/tc-nios2.h \
  234. config/tc-ns32k.h \
  235. config/tc-or1k.h \
  236. config/tc-pdp11.h \
  237. config/tc-pj.h \
  238. config/tc-ppc.h \
  239. config/tc-pru.h \
  240. config/tc-riscv.h \
  241. config/tc-rl78.h \
  242. config/tc-rx.h \
  243. config/tc-s390.h \
  244. config/tc-score.h \
  245. config/tc-sh.h \
  246. config/tc-sparc.h \
  247. config/tc-spu.h \
  248. config/tc-tic30.h \
  249. config/tc-tic4x.h \
  250. config/tc-tic54x.h \
  251. config/tc-tic6x.h \
  252. config/tc-tilegx.h \
  253. config/tc-tilepro.h \
  254. config/tc-v850.h \
  255. config/tc-vax.h \
  256. config/tc-visium.h \
  257. config/tc-wasm32.h \
  258. config/tc-xstormy16.h \
  259. config/tc-xc16x.h \
  260. config/tc-xgate.h \
  261. config/tc-xtensa.h \
  262. config/tc-z80.h \
  263. config/tc-z8k.h
  264. TARGET_EXTRA_FILES = \
  265. config/bfin-lex-wrapper.c \
  266. config/xtensa-relax.c \
  267. config/xtensa-relax.h
  268. # OBJ files in config
  269. OBJ_FORMAT_CFILES = \
  270. config/obj-aout.c \
  271. config/obj-coff.c \
  272. config/obj-ecoff.c \
  273. config/obj-elf.c \
  274. config/obj-evax.c \
  275. config/obj-fdpicelf.c \
  276. config/obj-macho.c \
  277. config/obj-multi.c \
  278. config/obj-som.c
  279. OBJ_FORMAT_HFILES = \
  280. config/obj-aout.h \
  281. config/obj-coff.h \
  282. config/obj-ecoff.h \
  283. config/obj-elf.h \
  284. config/obj-evax.h \
  285. config/obj-fdpicelf.h \
  286. config/obj-macho.h \
  287. config/obj-multi.h \
  288. config/obj-som.h
  289. # Emulation header files in config
  290. TARG_ENV_HFILES = \
  291. config/te-386bsd.h \
  292. config/te-aix5.h \
  293. config/te-armeabi.h \
  294. config/te-armfbsdeabi.h \
  295. config/te-armfbsdvfp.h \
  296. config/te-armlinuxeabi.h \
  297. config/te-csky_abiv1.h \
  298. config/te-csky_abiv1_linux.h \
  299. config/te-csky_abiv2.h \
  300. config/te-csky_abiv2_linux.h \
  301. config/te-freebsd.h \
  302. config/te-generic.h \
  303. config/te-gnu.h \
  304. config/te-go32.h \
  305. config/te-hppa.h \
  306. config/te-hppa64.h \
  307. config/te-hppalinux64.h \
  308. config/te-ia64aix.h \
  309. config/te-interix.h \
  310. config/te-lynx.h \
  311. config/te-macos.h \
  312. config/te-nbsd.h \
  313. config/te-nbsd532.h \
  314. config/te-pc532mach.h \
  315. config/te-pe.h \
  316. config/te-solaris.h \
  317. config/te-svr4.h \
  318. config/te-tmips.h \
  319. config/te-vxworks.h \
  320. config/te-wince-pe.h
  321. TARG_ENV_CFILES = \
  322. config/te-vms.c
  323. # Multi files in config
  324. MULTI_CFILES = \
  325. config/e-crisaout.c \
  326. config/e-criself.c \
  327. config/e-i386aout.c \
  328. config/e-i386coff.c \
  329. config/e-i386elf.c \
  330. config/e-mipself.c
  331. CONFIG_ATOF_CFILES = \
  332. config/atof-ieee.c \
  333. config/atof-vax.c
  334. POTFILES = $(MULTI_CFILES) $(CONFIG_ATOF_CFILES) \
  335. $(TARG_ENV_HFILES) $(TARG_ENV_CFILES) $(OBJ_FORMAT_HFILES) \
  336. $(OBJ_FORMAT_CFILES) $(TARGET_CPU_HFILES) $(TARGET_CPU_CFILES) \
  337. $(TARGET_EXTRA_FILES) $(HFILES) $(CFILES)
  338. po/POTFILES.in: @MAINT@ Makefile
  339. for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
  340. && mv tmp $(srcdir)/po/POTFILES.in
  341. # Note: GASP is now deprecated and has been removed. It is still
  342. # available in the CVS archive or older binutils releases if it is needed.
  343. noinst_PROGRAMS = as-new
  344. noinst_SCRIPTS = $(GDBINIT)
  345. EXTRA_SCRIPTS = .gdbinit
  346. EXTRA_DIST = config/m68k-parse.c itbl-parse.c itbl-parse.h itbl-lex.c \
  347. config/bfin-parse.c config/bfin-parse.h config/bfin-lex.c \
  348. config/rl78-parse.c config/rl78-parse.h \
  349. config/rx-parse.c config/rx-parse.h \
  350. config/loongarch-parse.c config/loongarch-parse.h config/loongarch-lex.c
  351. diststuff: $(EXTRA_DIST) info
  352. DISTCLEANFILES = targ-cpu.h obj-format.h targ-env.h itbl-cpu.h cgen-desc.h
  353. # Now figure out from those variables how to compile and link.
  354. BASEDIR = $(srcdir)/..
  355. BFDDIR = $(BASEDIR)/bfd
  356. INCDIR = $(BASEDIR)/include
  357. # This is the variable actually used when we compile.
  358. # Specify the directories to be searched for header files.
  359. # Both . and srcdir are used, in that order,
  360. # so that tm.h and config.h will be found in the compilation
  361. # subdirectory rather than in the source directory.
  362. AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(srcdir)/config \
  363. -I$(INCDIR) -I$(srcdir)/.. -I$(BFDDIR) @INCINTL@ @LARGEFILE_CPPFLAGS@ \
  364. -DLOCALEDIR="\"$(datadir)/locale\""
  365. # How to link with both our special library facilities
  366. # and the system's installed libraries.
  367. GASLIBS = @OPCODES_LIB@ ../bfd/libbfd.la ../libiberty/libiberty.a
  368. # Files to be copied away after each stage in building.
  369. STAGESTUFF = *.@OBJEXT@ $(noinst_PROGRAMS)
  370. as_new_SOURCES = $(GAS_CFILES)
  371. as_new_LDADD = $(TARG_CPU_O) $(OBJ_FORMAT_O) $(ATOF_TARG_O) \
  372. $(extra_objects) $(GASLIBS) $(LIBINTL) $(LIBM) $(ZLIB)
  373. as_new_DEPENDENCIES = $(TARG_CPU_O) $(OBJ_FORMAT_O) $(ATOF_TARG_O) \
  374. $(extra_objects) $(GASLIBS) $(LIBINTL_DEP)
  375. EXTRA_as_new_SOURCES = $(CFILES) $(HFILES) $(TARGET_CPU_CFILES) \
  376. $(TARGET_CPU_HFILES) $(TARGET_EXTRA_FILES) $(TARG_ENV_CFILES) \
  377. $(OBJ_FORMAT_CFILES) $(OBJ_FORMAT_HFILES) \
  378. $(CONFIG_ATOF_CFILES) $(MULTI_CFILES)
  379. EXPECT = expect
  380. RUNTEST = runtest
  381. RUNTESTFLAGS=
  382. check-DEJAGNU: site.exp
  383. if [ -d testsuite ]; then \
  384. true; \
  385. else \
  386. mkdir testsuite; \
  387. fi
  388. rm -f testsuite/site.exp
  389. cp site.exp testsuite/site.exp
  390. rootme=`pwd`; export rootme; \
  391. srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
  392. LC_ALL=C; export LC_ALL; \
  393. EXPECT=${EXPECT} ; export EXPECT ; \
  394. runtest=$(RUNTEST); \
  395. cd testsuite; \
  396. if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
  397. $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
  398. $(RUNTESTFLAGS); \
  399. else echo "WARNING: could not find \`runtest'" 1>&2; :;\
  400. fi
  401. development.exp: $(BFDDIR)/development.sh
  402. $(EGREP) "(development|experimental)=" $(BFDDIR)/development.sh \
  403. | $(AWK) -F= '{ print "set " $$1 " " $$2 }' > $@
  404. EXTRA_as_new_SOURCES += config/m68k-parse.y
  405. config/m68k-parse.c: $(srcdir)/config/m68k-parse.y
  406. $(SHELL) $(YLWRAP) $(srcdir)/config/m68k-parse.y y.tab.c $@ -- $(YACCCOMPILE)
  407. config/m68k-parse.h: config/m68k-parse.c
  408. @true
  409. EXTRA_as_new_SOURCES += config/bfin-parse.y
  410. config/bfin-parse.c: $(srcdir)/config/bfin-parse.y
  411. $(SHELL) $(YLWRAP) $(srcdir)/config/bfin-parse.y y.tab.c $@ y.tab.h config/bfin-parse.h -- $(YACCCOMPILE) -d ;
  412. config/bfin-parse.h: config/bfin-parse.c
  413. @true
  414. EXTRA_as_new_SOURCES += config/bfin-lex.l
  415. config/bfin-lex.c: $(srcdir)/config/bfin-lex.l
  416. $(SHELL) $(YLWRAP) $(srcdir)/config/bfin-lex.l lex.yy.c $@ -- $(LEXCOMPILE)
  417. config/bfin-lex-wrapper.@OBJEXT@: config/bfin-lex.c config/bfin-parse.h
  418. EXTRA_as_new_SOURCES += config/rl78-parse.y
  419. config/rl78-parse.c: $(srcdir)/config/rl78-parse.y
  420. $(SHELL) $(YLWRAP) $(srcdir)/config/rl78-parse.y y.tab.c $@ y.tab.h config/rl78-parse.h -- $(YACCCOMPILE) -d ;
  421. config/rl78-parse.h: config/rl78-parse.c
  422. @true
  423. EXTRA_as_new_SOURCES += config/rx-parse.y
  424. config/rx-parse.c: $(srcdir)/config/rx-parse.y
  425. $(SHELL) $(YLWRAP) $(srcdir)/config/rx-parse.y y.tab.c $@ y.tab.h config/rx-parse.h -- $(YACCCOMPILE) -d ;
  426. config/rx-parse.h: config/rx-parse.c
  427. @true
  428. # The LoongArch lexical analyzer and parser.
  429. EXTRA_as_new_SOURCES += config/loongarch-parse.y
  430. config/loongarch-parse.c: $(srcdir)/config/loongarch-parse.y
  431. $(SHELL) $(YLWRAP) $(srcdir)/config/loongarch-parse.y y.tab.c $@ y.tab.h config/loongarch-parse.h -- $(YACCCOMPILE) -d ;
  432. config/loongarch-parse.h: config/loongarch-parse.c
  433. @true
  434. EXTRA_as_new_SOURCES += config/loongarch-lex.l
  435. config/loongarch-lex.c: $(srcdir)/config/loongarch-lex.l
  436. $(SHELL) $(YLWRAP) $(srcdir)/config/loongarch-lex.l lex.yy.c $@ -- $(LEXCOMPILE)
  437. config/loongarch-lex-wrapper.@OBJEXT@: config/loongarch-lex.c config/loongarch-parse.h
  438. # The mips instruction table specification lexical analyzer and parser.
  439. itbl-lex-wrapper.@OBJEXT@: itbl-lex.c itbl-parse.h
  440. itbl-parse.c: $(srcdir)/itbl-parse.y
  441. $(SHELL) $(YLWRAP) $(srcdir)/itbl-parse.y y.tab.c $@ y.tab.h itbl-parse.h -- $(YACCCOMPILE) -d
  442. itbl-parse.h: itbl-parse.c
  443. @true
  444. itbl-ops.@OBJEXT@: itbl-parse.h
  445. # stand-alone itbl assembler & disassembler
  446. EXTRA_PROGRAMS = itbl-test
  447. itbl_test_SOURCES = itbl-parse.y itbl-lex.l
  448. itbl_test_LDADD = itbl-tops.@OBJEXT@ itbl-test.@OBJEXT@ $(GASLIBS) @LEXLIB@
  449. itbl-tops.@OBJEXT@: itbl-ops.c itbl-parse.h
  450. if am__fastdepCC
  451. $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -o $@ -c -DSTAND_ALONE $(srcdir)/itbl-ops.c
  452. mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  453. else
  454. if AMDEP
  455. source='itbl-ops.c' object='$@' libtool=no @AMDEPBACKSLASH@
  456. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  457. endif
  458. $(COMPILE) -o $@ -DSTAND_ALONE -c $(srcdir)/itbl-ops.c
  459. endif
  460. itbl-test.@OBJEXT@: $(srcdir)/testsuite/gas/all/itbl-test.c
  461. if am__fastdepCC
  462. $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ -DSTAND_ALONE $(srcdir)/testsuite/gas/all/itbl-test.c
  463. mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  464. else
  465. if AMDEP
  466. source='itbl-test.c' object='$@' libtool=no @AMDEPBACKSLASH@
  467. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  468. endif
  469. $(COMPILE) -c -DSTAND_ALONE $(srcdir)/testsuite/gas/all/itbl-test.c
  470. endif
  471. # CGEN interface.
  472. CGEN_CPU_PREFIX = @cgen_cpu_prefix@
  473. cgen.@OBJEXT@: cgen.c cgen.h cgen-desc.h subsegs.h \
  474. $(INCDIR)/obstack.h $(INCDIR)/opcode/cgen.h \
  475. $(srcdir)/../opcodes/$(CGEN_CPU_PREFIX)-desc.h \
  476. $(srcdir)/../opcodes/$(CGEN_CPU_PREFIX)-opc.h
  477. # Remake the info files.
  478. MOSTLYCLEANFILES = $(STAGESTUFF) core \
  479. testsuite/*.@OBJEXT@ testsuite/*.out testsuite/gas.log testsuite/gas.sum \
  480. testsuite/site.exp site.bak site.exp development.exp stage stage1 stage2
  481. .PHONY: install-exec-local install-data-local
  482. .PHONY: install-exec-bindir install-exec-tooldir
  483. install-exec-local: install-exec-bindir @install_tooldir@
  484. install-exec-bindir: $(noinst_PROGRAMS)
  485. $(mkinstalldirs) $(DESTDIR)$(bindir)
  486. @list='$(noinst_PROGRAMS)'; for p in $$list; do \
  487. if test -f $$p; then \
  488. echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
  489. $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  490. else :; fi; \
  491. done
  492. install-exec-tooldir: install-exec-bindir $(noinst_PROGRAMS)
  493. $(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
  494. n=`echo as | sed '$(transform)'`; \
  495. if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/as$(EXEEXT)" ]; then \
  496. rm -f $(DESTDIR)$(tooldir)/bin/as$(EXEEXT); \
  497. ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/as$(EXEEXT) >/dev/null 2>/dev/null \
  498. || $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) as-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/as$(EXEEXT); \
  499. else \
  500. true ; \
  501. fi
  502. # These exist for maintenance purposes.
  503. .PHONY: bootstrap bootstrap2 bootstrap3 stage1 stage2 stage3 comparison
  504. bootstrap: as-new$(EXEEXT)
  505. $(MAKE) stage1
  506. rm -f stage && ln -s stage1 stage
  507. $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
  508. $(MAKE) stage2
  509. rm -f stage && ln -s stage2 stage
  510. $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
  511. $(MAKE) comparison against=stage2
  512. bootstrap2:
  513. rm -f stage && ln -s stage1 stage
  514. $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
  515. $(MAKE) stage2
  516. rm -f stage && ln -s stage2 stage
  517. $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
  518. $(MAKE) comparison against=stage2
  519. bootstrap3:
  520. rm -f stage && ln -s stage2 stage
  521. $(MAKE) CC="$(CC)" CFLAGS="-O -Bstage/ $(CFLAGS)" libdir=$(libdir) ALLOCA= $(noinst_PROGRAMS)
  522. $(MAKE) comparison against=stage2
  523. # Copy the object files from a particular stage into a subdirectory.
  524. stage1:
  525. -mkdir stage1
  526. -mv $(STAGESTUFF) stage1
  527. if [ -f stage1/as-new$(EXEEXT) -a ! -f stage1/as$(EXEEXT) ] ; then (cd stage1 ; ln -s as-new$(EXEEXT) as$(EXEEXT)) ; fi
  528. stage2:
  529. -mkdir stage2
  530. -mv $(STAGESTUFF) stage2
  531. if [ -f stage2/as-new$(EXEEXT) -a ! -f stage2/as$(EXEEXT) ] ; then (cd stage2 ; ln -s as-new$(EXEEXT) as$(EXEEXT)) ; fi
  532. stage3:
  533. -mkdir stage3
  534. -mv $(STAGESTUFF) stage3
  535. if [ -f stage3/as-new$(EXEEXT) -a ! -f stage3/as$(EXEEXT) ] ; then (cd stage3 ; ln -s as-new as$(EXEEXT)) ; fi
  536. against=stage2
  537. comparison:
  538. x=0 ; \
  539. for file in *.@OBJEXT@ ; do \
  540. f1=./$$file; f2=${against}/$$file; \
  541. $(do_compare) > /dev/null 2>&1; \
  542. if test $$? -ne 0; then \
  543. echo $$file differs ; \
  544. x=1 ; \
  545. fi ; \
  546. done ; \
  547. exit $$x
  548. -rm -f tmp-foo*
  549. .PHONY: de-stage1 de-stage2 de-stage3
  550. de-stage1:
  551. - (cd stage1 ; rm -f as$(EXEEXT) ; mv -f * ..)
  552. - rmdir stage1
  553. de-stage2:
  554. - (cd stage2 ; rm -f as$(EXEEXT) ; mv -f * ..)
  555. - rmdir stage2
  556. de-stage3:
  557. - (cd stage3 ; rm -f as$(EXEEXT) ; mv -f * ..)
  558. - rmdir stage3
  559. # Reconfigure if configure.tgt changes.
  560. # development.sh is used to determine -Werror default.
  561. CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.tgt $(BFDDIR)/development.sh
  562. EXTRA_DEJAGNU_SITE_CONFIG = development.exp
  563. include doc/local.mk