Makefile.am 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  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 = dejagnu no-dist foreign
  20. ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
  21. SUBDIRS = doc po
  22. tooldir = $(exec_prefix)/$(target_alias)
  23. ## These aren't set by automake, because they appear in
  24. ## bfd/acinclude.m4, which is included by binutils/acinclude.m4, and
  25. ## thus is not seen by automake.
  26. CC_FOR_BUILD = @CC_FOR_BUILD@
  27. EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
  28. YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
  29. YFLAGS = -d
  30. LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
  31. LEXLIB = @LEXLIB@
  32. # Automake 1.10+ disables lex and yacc output file regeneration if
  33. # maintainer mode is disabled. Avoid this.
  34. am__skiplex =
  35. am__skipyacc =
  36. # This is where we get zlib from. zlibdir is -L../zlib and zlibinc is
  37. # -I../zlib, unless we were configured with --with-system-zlib, in which
  38. # case both are empty.
  39. ZLIB = @zlibdir@ -lz
  40. ZLIBINC = @zlibinc@
  41. WARN_CFLAGS = @WARN_CFLAGS@
  42. NO_WERROR = @NO_WERROR@
  43. AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC)
  44. LIBICONV = @LIBICONV@
  45. # these two are almost the same program
  46. AR_PROG=ar
  47. RANLIB_PROG=ranlib
  48. # objcopy and strip should be the same program
  49. OBJCOPY_PROG=objcopy
  50. STRIP_PROG=strip-new
  51. STRINGS_PROG=strings
  52. READELF_PROG=readelf
  53. ELFEDIT_PROG=elfedit
  54. # These should all be the same program too.
  55. SIZE_PROG=size
  56. NM_PROG=nm-new
  57. OBJDUMP_PROG=objdump
  58. # This is the demangler, as a standalone program.
  59. # Note: This one is used as the installed name too, unlike the above.
  60. DEMANGLER_PROG=cxxfilt
  61. ADDR2LINE_PROG=addr2line
  62. NLMCONV_PROG=nlmconv
  63. DLLTOOL_PROG=dlltool
  64. WINDRES_PROG=windres
  65. WINDMC_PROG=windmc
  66. DLLWRAP_PROG=dllwrap
  67. SRCONV_PROG=srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT)
  68. bin_PROGRAMS = $(SIZE_PROG) $(OBJDUMP_PROG) $(AR_PROG) $(STRINGS_PROG) $(RANLIB_PROG) $(OBJCOPY_PROG) @BUILD_NLMCONV@ @BUILD_SRCONV@ @BUILD_DLLTOOL@ @BUILD_WINDRES@ @BUILD_WINDMC@ $(ADDR2LINE_PROG) $(READELF_PROG) $(ELFEDIT_PROG) @BUILD_DLLWRAP@
  69. bin_SCRIPTS = @BUILD_INSTALL_MISC@
  70. EXTRA_SCRIPTS = embedspu
  71. ## Test programs.
  72. BFDTEST1_PROG = bfdtest1
  73. BFDTEST2_PROG = bfdtest2
  74. TEST_PROGS = $(BFDTEST1_PROG) $(BFDTEST2_PROG)
  75. ## We need a special rule to install the programs which are built with
  76. ## -new, and to rename cxxfilt to c++filt.
  77. RENAMED_PROGS = $(NM_PROG) $(STRIP_PROG) $(DEMANGLER_PROG)
  78. noinst_PROGRAMS = $(RENAMED_PROGS) $(TEST_PROGS) @BUILD_MISC@
  79. EXTRA_PROGRAMS = $(NLMCONV_PROG) srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(WINDMC_PROG) $(DLLWRAP_PROG)
  80. # Stuff that goes in tooldir/ if appropriate.
  81. TOOL_PROGS = nm-new strip-new ar ranlib dlltool objdump objcopy readelf
  82. BASEDIR = $(srcdir)/..
  83. BFDDIR = $(BASEDIR)/bfd
  84. INCDIR = $(BASEDIR)/include
  85. AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \
  86. @HDEFINES@ \
  87. @INCINTL@ \
  88. -DLOCALEDIR="\"$(datadir)/locale\"" \
  89. -Dbin_dummy_emulation=$(EMULATION_VECTOR)
  90. HFILES = \
  91. arsup.h binemul.h bucomm.h budbg.h \
  92. coffgrok.h debug.h dlltool.h dwarf.h elfcomm.h nlmconv.h \
  93. objdump.h sysdep.h unwind-ia64.h windres.h winduni.h windint.h \
  94. windmc.h
  95. GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h mcparse.h
  96. BUILT_SOURCES = $(GENERATED_HFILES)
  97. CFILES = \
  98. addr2line.c ar.c arsup.c bin2c.c binemul.c bucomm.c \
  99. coffdump.c coffgrok.c cxxfilt.c \
  100. dwarf.c debug.c dlltool.c dllwrap.c \
  101. elfcomm.c emul_aix.c emul_vanilla.c filemode.c \
  102. ieee.c is-ranlib.c is-strip.c maybe-ranlib.c maybe-strip.c \
  103. nlmconv.c nm.c not-ranlib.c not-strip.c \
  104. objcopy.c objdump.c prdbg.c \
  105. od-xcoff.c od-macho.c \
  106. rclex.c rdcoff.c rddbg.c readelf.c rename.c \
  107. resbin.c rescoff.c resrc.c resres.c \
  108. size.c srconv.c stabs.c strings.c sysdump.c \
  109. syslex_wrap.c unwind-ia64.c elfedit.c version.c \
  110. windres.c winduni.c wrstabs.c \
  111. windmc.c mclex.c
  112. GENERATED_CFILES = \
  113. arparse.c arlex.c sysroff.c sysinfo.c syslex.c \
  114. defparse.c deflex.c nlmheader.c rcparse.c mcparse.c
  115. DEBUG_SRCS = rddbg.c debug.c stabs.c ieee.c rdcoff.c
  116. WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c
  117. # Extra object files for objdump
  118. OBJDUMP_PRIVATE_OFILES = @OBJDUMP_PRIVATE_OFILES@
  119. # Code shared by all the binutils.
  120. BULIBS = bucomm.c version.c filemode.c
  121. # Code shared by the ELF related programs.
  122. ELFLIBS = elfcomm.c
  123. BFDLIB = ../bfd/libbfd.la
  124. OPCODES = ../opcodes/libopcodes.la
  125. LIBIBERTY = ../libiberty/libiberty.a
  126. POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES)
  127. po/POTFILES.in: @MAINT@ Makefile
  128. for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
  129. && mv tmp $(srcdir)/po/POTFILES.in
  130. EXPECT = expect
  131. RUNTEST = runtest
  132. CC_FOR_TARGET = ` \
  133. if [ -f $$r/../gcc/xgcc ] ; then \
  134. if [ -f $$r/../newlib/Makefile ] ; then \
  135. echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
  136. else \
  137. echo $$r/../gcc/xgcc -B$$r/../gcc/; \
  138. fi; \
  139. else \
  140. if [ "@host@" = "@target@" ] ; then \
  141. echo $(CC); \
  142. else \
  143. echo gcc | sed '$(transform)'; \
  144. fi; \
  145. fi`
  146. check-DEJAGNU: site.exp
  147. srcdir=`cd $(srcdir) && pwd`; export srcdir; \
  148. r=`pwd`; export r; \
  149. LC_ALL=C; export LC_ALL; \
  150. EXPECT=$(EXPECT); export EXPECT; \
  151. runtest=$(RUNTEST); \
  152. if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
  153. CC_FOR_TARGET="$(CC_FOR_TARGET)" CFLAGS_FOR_TARGET="$(CFLAGS)" \
  154. $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
  155. $(RUNTESTFLAGS); \
  156. else echo "WARNING: could not find \`runtest'" 1>&2; :;\
  157. fi
  158. installcheck-local:
  159. /bin/sh $(srcdir)/sanity.sh $(bindir)
  160. # There's no global DEPENDENCIES. So, we must explicitly list everything
  161. # which depends on libintl, since we don't know whether LIBINTL_DEP will be
  162. # non-empty until configure time. Ugh!
  163. size_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
  164. objdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) $(OPCODES) $(OBJDUMP_PRIVATE_OFILES)
  165. nm_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
  166. ar_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
  167. strings_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
  168. strip_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
  169. ranlib_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
  170. cxxfilt_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
  171. objcopy_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
  172. nlmconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
  173. srconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
  174. sysdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
  175. coffdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
  176. dlltool_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
  177. windres_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
  178. windmc_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
  179. addr2line_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
  180. readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
  181. elfedit_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
  182. dllwrap_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
  183. bfdtest1_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
  184. bfdtest2_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
  185. LDADD = $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
  186. size_SOURCES = size.c $(BULIBS)
  187. objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
  188. strings_SOURCES = strings.c $(BULIBS)
  189. readelf_SOURCES = readelf.c version.c unwind-ia64.c dwarf.c $(ELFLIBS)
  190. readelf_LDADD = $(LIBINTL) $(LIBIBERTY) $(ZLIB)
  191. elfedit_SOURCES = elfedit.c version.c $(ELFLIBS)
  192. elfedit_LDADD = $(LIBINTL) $(LIBIBERTY)
  193. strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
  194. nm_new_SOURCES = nm.c $(BULIBS)
  195. objdump_SOURCES = objdump.c dwarf.c prdbg.c $(DEBUG_SRCS) $(BULIBS) $(ELFLIBS)
  196. EXTRA_objdump_SOURCES = od-xcoff.c
  197. objdump_LDADD = $(OBJDUMP_PRIVATE_OFILES) $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
  198. objdump.@OBJEXT@:objdump.c
  199. if am__fastdepCC
  200. $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(OBJDUMP_DEFS) $(srcdir)/objdump.c
  201. mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  202. else
  203. if AMDEP
  204. source='objdump.c' object='$@' libtool=no @AMDEPBACKSLASH@
  205. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  206. endif
  207. $(COMPILE) -c $(OBJDUMP_DEFS) $(srcdir)/objdump.c
  208. endif
  209. cxxfilt_SOURCES = cxxfilt.c $(BULIBS)
  210. ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c binemul.c \
  211. emul_$(EMULATION).c $(BULIBS)
  212. EXTRA_ar_SOURCES = $(CFILES)
  213. ar_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
  214. ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c \
  215. binemul.c emul_$(EMULATION).c $(BULIBS)
  216. ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
  217. addr2line_SOURCES = addr2line.c $(BULIBS)
  218. # The following is commented out for the conversion to automake.
  219. # This rule creates a single binary that switches between ar and ranlib
  220. # by looking at argv[0]. Use this kludge to save some disk space.
  221. # However, you have to install things by hand.
  222. # (That is after 'make install', replace the installed ranlib by a link to ar.)
  223. # Alternatively, you can install ranlib.sh as ranlib.
  224. # ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o
  225. # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS)
  226. # -rm -f $(RANLIB_PROG)
  227. # -ln $(AR_PROG) $(RANLIB_PROG)
  228. #
  229. # objcopy and strip in one binary that uses argv[0] to decide its action.
  230. #
  231. #objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o
  232. # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS)
  233. # -rm -f $(STRIP_PROG)
  234. # -ln $(OBJCOPY_PROG) $(STRIP_PROG)
  235. sysroff.c: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
  236. ./sysinfo$(EXEEXT_FOR_BUILD) -c <$(srcdir)/sysroff.info >sysroff.c
  237. ./sysinfo$(EXEEXT_FOR_BUILD) -i <$(srcdir)/sysroff.info >>sysroff.c
  238. ./sysinfo$(EXEEXT_FOR_BUILD) -g <$(srcdir)/sysroff.info >>sysroff.c
  239. sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
  240. ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h
  241. sysinfo$(EXEEXT_FOR_BUILD): sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
  242. $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
  243. syslex_wrap.@OBJEXT@: syslex_wrap.c syslex.c sysinfo.h config.h
  244. $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/syslex_wrap.c
  245. sysinfo.@OBJEXT@: sysinfo.c
  246. if [ -r sysinfo.c ]; then \
  247. $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) sysinfo.c ; \
  248. else \
  249. $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \
  250. fi
  251. bin2c$(EXEEXT_FOR_BUILD): bin2c.c
  252. $(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c
  253. embedspu: embedspu.sh Makefile
  254. awk '/^program_transform_name=/ {print "program_transform_name=\"$(program_transform_name)\""; next} {print}' < $< > $@
  255. chmod a+x $@
  256. # We need these for parallel make.
  257. sysinfo.h: sysinfo.c
  258. # Disable -Werror, if it has been enabled, since old versions of bison/
  259. # yacc will produce working code which contain compile time warnings.
  260. arparse.@OBJEXT@: arparse.c
  261. if am__fastdepCC
  262. $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
  263. mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  264. else
  265. if AMDEP
  266. source='arparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
  267. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  268. endif
  269. $(COMPILE) -c `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
  270. endif
  271. arlex.@OBJEXT@: arlex.c
  272. if am__fastdepCC
  273. $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
  274. mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  275. else
  276. if AMDEP
  277. source='arlex.c' object='$@' libtool=no @AMDEPBACKSLASH@
  278. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  279. endif
  280. $(COMPILE) -c `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
  281. endif
  282. sysroff.@OBJEXT@: sysroff.c
  283. if am__fastdepCC
  284. $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
  285. mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  286. else
  287. if AMDEP
  288. source='sysroff.c' object='$@' libtool=no @AMDEPBACKSLASH@
  289. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  290. endif
  291. $(COMPILE) -c `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
  292. endif
  293. defparse.@OBJEXT@: defparse.c
  294. if am__fastdepCC
  295. $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
  296. mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  297. else
  298. if AMDEP
  299. source='defparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
  300. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  301. endif
  302. $(COMPILE) -c `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
  303. endif
  304. deflex.@OBJEXT@: deflex.c
  305. if am__fastdepCC
  306. $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
  307. mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  308. else
  309. if AMDEP
  310. source='deflex.c' object='$@' libtool=no @AMDEPBACKSLASH@
  311. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  312. endif
  313. $(COMPILE) -c `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
  314. endif
  315. nlmheader.@OBJEXT@: nlmheader.c
  316. if am__fastdepCC
  317. $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
  318. mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  319. else
  320. if AMDEP
  321. source='nlmheader.c' object='$@' libtool=no @AMDEPBACKSLASH@
  322. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  323. endif
  324. $(COMPILE) -c `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
  325. endif
  326. rcparse.@OBJEXT@: rcparse.c
  327. if am__fastdepCC
  328. $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
  329. mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  330. else
  331. if AMDEP
  332. source='rcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
  333. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  334. endif
  335. $(COMPILE) -c `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
  336. endif
  337. mcparse.@OBJEXT@: mcparse.c
  338. if am__fastdepCC
  339. $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
  340. mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  341. else
  342. if AMDEP
  343. source='mcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
  344. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  345. endif
  346. $(COMPILE) -c `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
  347. endif
  348. rclex.@OBJEXT@: rclex.c
  349. if am__fastdepCC
  350. $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/rclex.c $(NO_WERROR)
  351. mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  352. else
  353. if AMDEP
  354. source='rclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
  355. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  356. endif
  357. $(COMPILE) -c $(srcdir)/rclex.c $(NO_WERROR)
  358. endif
  359. mclex.@OBJEXT@: mclex.c
  360. if am__fastdepCC
  361. $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/mclex.c $(NO_WERROR)
  362. mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  363. else
  364. if AMDEP
  365. source='mclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
  366. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  367. endif
  368. $(COMPILE) -c $(srcdir)/mclex.c $(NO_WERROR)
  369. endif
  370. srconv_SOURCES = srconv.c coffgrok.c $(BULIBS)
  371. srconv.@OBJEXT@: sysroff.c
  372. dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS)
  373. dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
  374. dlltool.@OBJEXT@:
  375. if am__fastdepCC
  376. $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
  377. mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  378. else
  379. if AMDEP
  380. source='dlltool.c' object='$@' libtool=no @AMDEPBACKSLASH@
  381. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  382. endif
  383. $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
  384. endif
  385. rescoff.@OBJEXT@:
  386. if am__fastdepCC
  387. $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
  388. mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  389. else
  390. if AMDEP
  391. source='rescoff.c' object='$@' libtool=no @AMDEPBACKSLASH@
  392. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  393. endif
  394. $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
  395. endif
  396. coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
  397. sysdump_SOURCES = sysdump.c $(BULIBS)
  398. sysdump.@OBJEXT@: sysroff.c
  399. # coff/sym.h and coff/ecoff.h won't be found by the automatic dependency
  400. # scripts, since they are only included conditionally.
  401. nlmconv.@OBJEXT@: nlmconv.c
  402. if am__fastdepCC
  403. ldname=`echo ld | sed '$(transform)'`; \
  404. $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ \
  405. -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
  406. mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  407. else
  408. if AMDEP
  409. source='nlmconv.c' object='$@' libtool=no @AMDEPBACKSLASH@
  410. DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  411. endif
  412. ldname=`echo ld | sed '$(transform)'`; \
  413. $(COMPILE) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
  414. endif
  415. nlmconv_SOURCES = nlmconv.c nlmheader.y $(BULIBS)
  416. windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.c \
  417. winduni.c resres.c $(BULIBS)
  418. windres_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL) $(LIBICONV)
  419. windmc_SOURCES = windmc.c mcparse.y mclex.c \
  420. winduni.c $(BULIBS)
  421. windmc_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL) $(LIBICONV)
  422. dllwrap_SOURCES = dllwrap.c version.c
  423. dllwrap_LDADD = $(LIBIBERTY) $(LIBINTL)
  424. EXTRA_DIST = arparse.c arparse.h arlex.c nlmheader.c sysinfo.c sysinfo.h \
  425. syslex.c deflex.c defparse.h defparse.c rcparse.h rcparse.c \
  426. mcparse.h mcparse.c embedspu.sh
  427. diststuff: $(EXTRA_DIST) info
  428. all: info
  429. # development.sh is used to determine -Werror default.
  430. CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh
  431. DISTCLEANFILES = sysroff.c sysroff.h site.exp site.bak embedspu
  432. MOSTLYCLEANFILES = sysinfo$(EXEEXT_FOR_BUILD) bin2c$(EXEEXT_FOR_BUILD) \
  433. binutils.log binutils.sum abcdefgh*
  434. mostlyclean-local:
  435. -rm -rf tmpdir
  436. .PHONY: install-exec-local
  437. install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS)
  438. @list='$(RENAMED_PROGS)'; for p in $$list; do \
  439. if test -f $$p$(EXEEXT); then \
  440. echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p$(EXEEXT) $(bindir)/`echo $$p|sed -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
  441. $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p$(EXEEXT) $(DESTDIR)$(bindir)/`echo $$p|sed -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  442. else :; fi; \
  443. done
  444. $(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
  445. for i in $(TOOL_PROGS); do \
  446. if [ -f $$i$(EXEEXT) ]; then \
  447. j=`echo $$i | sed -e 's/-new//'`; \
  448. k=`echo $$j | sed '$(transform)'`; \
  449. if [ "$(bindir)/$$k" != "$(tooldir)/bin/$$j" ]; then \
  450. rm -f $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
  451. ln $(DESTDIR)$(bindir)/$$k$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
  452. || $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
  453. fi; \
  454. else true; \
  455. fi; \
  456. done