1 ## Process this file with automake to generate Makefile.in
3 # Copyright 2012 Free Software Foundation
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.
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.
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/>.
20 AUTOMAKE_OPTIONS = dejagnu no-dist foreign
21 ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
25 tooldir = $(exec_prefix)/$(target_alias)
27 ## These aren't set by automake, because they appear in
28 ## bfd/acinclude.m4, which is included by binutils/acinclude.m4, and
29 ## thus is not seen by automake.
30 CC_FOR_BUILD = @CC_FOR_BUILD@
31 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
33 YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
35 LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
37 # Automake 1.10+ disables lex and yacc output file regeneration if
38 # maintainer mode is disabled. Avoid this.
42 WARN_CFLAGS = @WARN_CFLAGS@
43 NO_WERROR = @NO_WERROR@
44 AM_CFLAGS = $(WARN_CFLAGS)
47 # these two are almost the same program
51 # objcopy and strip should be the same program
61 # These should all be the same program too.
66 # This is the demangler, as a standalone program.
67 # Note: This one is used as the installed name too, unlike the above.
68 DEMANGLER_PROG=cxxfilt
70 ADDR2LINE_PROG=addr2line
78 SRCONV_PROG=srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT)
80 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@
82 bin_SCRIPTS = @BUILD_INSTALL_MISC@
83 EXTRA_SCRIPTS = embedspu
86 BFDTEST1_PROG = bfdtest1
87 BFDTEST2_PROG = bfdtest2
89 TEST_PROGS = $(BFDTEST1_PROG) $(BFDTEST2_PROG)
91 ## We need a special rule to install the programs which are built with
92 ## -new, and to rename cxxfilt to c++filt.
93 RENAMED_PROGS = $(NM_PROG) $(STRIP_PROG) $(DEMANGLER_PROG)
94 noinst_PROGRAMS = $(RENAMED_PROGS) $(TEST_PROGS) @BUILD_MISC@
96 EXTRA_PROGRAMS = $(NLMCONV_PROG) srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(WINDMC_PROG) $(DLLWRAP_PROG)
98 # Stuff that goes in tooldir/ if appropriate.
99 TOOL_PROGS = nm-new strip-new ar ranlib dlltool objdump objcopy
101 BASEDIR = $(srcdir)/..
102 BFDDIR = $(BASEDIR)/bfd
103 INCDIR = $(BASEDIR)/include
105 AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \
108 -DLOCALEDIR="\"$(datadir)/locale\"" \
109 -Dbin_dummy_emulation=$(EMULATION_VECTOR)
112 arsup.h binemul.h bucomm.h budbg.h \
113 coffgrok.h debug.h dlltool.h dwarf.h elfcomm.h nlmconv.h \
114 objdump.h sysdep.h unwind-ia64.h windres.h winduni.h windint.h \
117 GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h mcparse.h
118 BUILT_SOURCES = $(GENERATED_HFILES)
121 addr2line.c ar.c arsup.c bin2c.c binemul.c bucomm.c \
122 coffdump.c coffgrok.c cxxfilt.c \
123 dwarf.c debug.c dlltool.c dllwrap.c \
124 elfcomm.c emul_aix.c emul_vanilla.c filemode.c \
125 ieee.c is-ranlib.c is-strip.c maybe-ranlib.c maybe-strip.c \
126 nlmconv.c nm.c not-ranlib.c not-strip.c \
127 objcopy.c objdump.c prdbg.c \
128 od-xcoff.c od-macho.c \
129 rclex.c rdcoff.c rddbg.c readelf.c rename.c \
130 resbin.c rescoff.c resrc.c resres.c \
131 size.c srconv.c stabs.c strings.c sysdump.c \
132 syslex_wrap.c unwind-ia64.c elfedit.c version.c \
133 windres.c winduni.c wrstabs.c \
137 arparse.c arlex.c sysroff.c sysinfo.c syslex.c \
138 defparse.c deflex.c nlmheader.c rcparse.c mcparse.c
140 DEBUG_SRCS = rddbg.c debug.c stabs.c ieee.c rdcoff.c
141 WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c
143 # Extra object files for objdump
144 OBJDUMP_PRIVATE_OFILES = @OBJDUMP_PRIVATE_OFILES@
146 # Code shared by all the binutils.
147 BULIBS = bucomm.c version.c filemode.c
149 # Code shared by the ELF related programs.
152 BFDLIB = ../bfd/libbfd.la
154 OPCODES = ../opcodes/libopcodes.la
156 LIBIBERTY = ../libiberty/libiberty.a
158 POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES)
159 po/POTFILES.in: @MAINT@ Makefile
160 for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
161 && mv tmp $(srcdir)/po/POTFILES.in
167 if [ -f $$r/../gcc/xgcc ] ; then \
168 if [ -f $$r/../newlib/Makefile ] ; then \
169 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
171 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
174 if [ "@host@" = "@target@" ] ; then \
177 echo gcc | sed '$(transform)'; \
181 check-DEJAGNU: site.exp
182 srcdir=`cd $(srcdir) && pwd`; export srcdir; \
184 LC_ALL=C; export LC_ALL; \
185 EXPECT=$(EXPECT); export EXPECT; \
186 runtest=$(RUNTEST); \
187 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
188 CC_FOR_TARGET="$(CC_FOR_TARGET)" CFLAGS_FOR_TARGET="$(CFLAGS)" \
189 $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
191 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
195 /bin/sh $(srcdir)/sanity.sh $(bindir)
197 # There's no global DEPENDENCIES. So, we must explicitly list everything
198 # which depends on libintl, since we don't know whether LIBINTL_DEP will be
199 # non-empty until configure time. Ugh!
200 size_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
201 objdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) $(OPCODES) $(OBJDUMP_PRIVATE_OFILES)
202 nm_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
203 ar_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
204 strings_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
205 strip_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
206 ranlib_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
207 cxxfilt_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
208 objcopy_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
209 nlmconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
210 srconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
211 sysdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
212 coffdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
213 dlltool_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
214 windres_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
215 windmc_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
216 addr2line_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
217 readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
218 elfedit_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
219 dllwrap_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
220 bfdtest1_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
221 bfdtest2_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
223 LDADD = $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
225 size_SOURCES = size.c $(BULIBS)
227 objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
229 strings_SOURCES = strings.c $(BULIBS)
231 readelf_SOURCES = readelf.c version.c unwind-ia64.c dwarf.c $(ELFLIBS)
232 readelf_LDADD = $(LIBINTL) $(LIBIBERTY)
234 elfedit_SOURCES = elfedit.c version.c $(ELFLIBS)
235 elfedit_LDADD = $(LIBINTL) $(LIBIBERTY)
237 strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
239 nm_new_SOURCES = nm.c $(BULIBS)
241 objdump_SOURCES = objdump.c dwarf.c prdbg.c $(DEBUG_SRCS) $(BULIBS) $(ELFLIBS)
242 EXTRA_objdump_SOURCES = od-xcoff.c
243 objdump_LDADD = $(OBJDUMP_PRIVATE_OFILES) $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
245 objdump.@OBJEXT@:objdump.c
247 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(OBJDUMP_DEFS) $(srcdir)/objdump.c
248 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
251 source='objdump.c' object='$@' libtool=no @AMDEPBACKSLASH@
252 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
254 $(COMPILE) -c $(OBJDUMP_DEFS) $(srcdir)/objdump.c
257 cxxfilt_SOURCES = cxxfilt.c $(BULIBS)
259 ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c binemul.c \
260 emul_$(EMULATION).c $(BULIBS)
261 EXTRA_ar_SOURCES = $(CFILES)
262 ar_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
264 ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c \
265 binemul.c emul_$(EMULATION).c $(BULIBS)
266 ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
268 addr2line_SOURCES = addr2line.c $(BULIBS)
270 # The following is commented out for the conversion to automake.
271 # This rule creates a single binary that switches between ar and ranlib
272 # by looking at argv[0]. Use this kludge to save some disk space.
273 # However, you have to install things by hand.
274 # (That is after 'make install', replace the installed ranlib by a link to ar.)
275 # Alternatively, you can install ranlib.sh as ranlib.
276 # ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o
277 # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS)
278 # -rm -f $(RANLIB_PROG)
279 # -ln $(AR_PROG) $(RANLIB_PROG)
281 # objcopy and strip in one binary that uses argv[0] to decide its action.
283 #objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o
284 # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS)
285 # -rm -f $(STRIP_PROG)
286 # -ln $(OBJCOPY_PROG) $(STRIP_PROG)
288 sysroff.c: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
289 ./sysinfo$(EXEEXT_FOR_BUILD) -c <$(srcdir)/sysroff.info >sysroff.c
290 ./sysinfo$(EXEEXT_FOR_BUILD) -i <$(srcdir)/sysroff.info >>sysroff.c
291 ./sysinfo$(EXEEXT_FOR_BUILD) -g <$(srcdir)/sysroff.info >>sysroff.c
293 sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
294 ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h
296 sysinfo$(EXEEXT_FOR_BUILD): sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
297 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
299 syslex_wrap.@OBJEXT@: syslex_wrap.c syslex.c sysinfo.h config.h
300 $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/syslex_wrap.c
302 sysinfo.@OBJEXT@: sysinfo.c
303 if [ -r sysinfo.c ]; then \
304 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) sysinfo.c ; \
306 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \
309 bin2c$(EXEEXT_FOR_BUILD): bin2c.c
310 $(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c
312 embedspu: embedspu.sh Makefile
313 awk '/^program_transform_name=/ {print "program_transform_name=\"$(program_transform_name)\""; next} {print}' < $< > $@
316 # We need these for parallel make.
319 # Disable -Werror, if it has been enabled, since old versions of bison/
320 # yacc will produce working code which contain compile time warnings.
321 arparse.@OBJEXT@: arparse.c
323 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
324 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
327 source='arparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
328 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
330 $(COMPILE) -c `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
333 arlex.@OBJEXT@: arlex.c
335 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
336 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
339 source='arlex.c' object='$@' libtool=no @AMDEPBACKSLASH@
340 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
342 $(COMPILE) -c `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
345 sysroff.@OBJEXT@: sysroff.c
347 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
348 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
351 source='sysroff.c' object='$@' libtool=no @AMDEPBACKSLASH@
352 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
354 $(COMPILE) -c `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
357 defparse.@OBJEXT@: defparse.c
359 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
360 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
363 source='defparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
364 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
366 $(COMPILE) -c `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
369 deflex.@OBJEXT@: deflex.c
371 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
372 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
375 source='deflex.c' object='$@' libtool=no @AMDEPBACKSLASH@
376 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
378 $(COMPILE) -c `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
381 nlmheader.@OBJEXT@: nlmheader.c
383 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
384 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
387 source='nlmheader.c' object='$@' libtool=no @AMDEPBACKSLASH@
388 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
390 $(COMPILE) -c `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
393 rcparse.@OBJEXT@: rcparse.c
395 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
396 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
399 source='rcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
400 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
402 $(COMPILE) -c `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
405 mcparse.@OBJEXT@: mcparse.c
407 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
408 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
411 source='mcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
412 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
414 $(COMPILE) -c `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
417 rclex.@OBJEXT@: rclex.c
419 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/rclex.c $(NO_WERROR)
420 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
423 source='rclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
424 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
426 $(COMPILE) -c $(srcdir)/rclex.c $(NO_WERROR)
429 mclex.@OBJEXT@: mclex.c
431 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/mclex.c $(NO_WERROR)
432 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
435 source='mclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
436 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
438 $(COMPILE) -c $(srcdir)/mclex.c $(NO_WERROR)
441 srconv_SOURCES = srconv.c coffgrok.c $(BULIBS)
442 srconv.@OBJEXT@: sysroff.c
444 dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS)
445 dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
449 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
450 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
453 source='dlltool.c' object='$@' libtool=no @AMDEPBACKSLASH@
454 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
456 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
461 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
462 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
465 source='rescoff.c' object='$@' libtool=no @AMDEPBACKSLASH@
466 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
468 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
471 coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
473 sysdump_SOURCES = sysdump.c $(BULIBS)
474 sysdump.@OBJEXT@: sysroff.c
476 # coff/sym.h and coff/ecoff.h won't be found by the automatic dependency
477 # scripts, since they are only included conditionally.
478 nlmconv.@OBJEXT@: nlmconv.c
480 ldname=`echo ld | sed '$(transform)'`; \
481 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ \
482 -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
483 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
486 source='nlmconv.c' object='$@' libtool=no @AMDEPBACKSLASH@
487 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
489 ldname=`echo ld | sed '$(transform)'`; \
490 $(COMPILE) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
493 nlmconv_SOURCES = nlmconv.c nlmheader.y $(BULIBS)
495 windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.c \
496 winduni.c resres.c $(BULIBS)
497 windres_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL) $(LIBICONV)
499 windmc_SOURCES = windmc.c mcparse.y mclex.c \
501 windmc_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL) $(LIBICONV)
503 dllwrap_SOURCES = dllwrap.c version.c
504 dllwrap_LDADD = $(LIBIBERTY) $(LIBINTL)
507 EXTRA_DIST = arparse.c arparse.h arlex.c nlmheader.c sysinfo.c sysinfo.h \
508 syslex.c deflex.c defparse.h defparse.c rcparse.h rcparse.c \
509 mcparse.h mcparse.c embedspu.sh
511 diststuff: $(EXTRA_DIST) info
514 # We extract version from bfd/configure.in, make sure to rerun configure
515 # when BFD's version changes.
516 CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in
518 DISTCLEANFILES = sysroff.c sysroff.h site.exp site.bak embedspu
520 MOSTLYCLEANFILES = sysinfo$(EXEEXT_FOR_BUILD) bin2c$(EXEEXT_FOR_BUILD) \
521 binutils.log binutils.sum abcdefgh*
525 .PHONY: install-exec-local
527 install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS)
528 @list='$(RENAMED_PROGS)'; for p in $$list; do \
529 if test -f $$p$(EXEEXT); then \
530 echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p$(EXEEXT) $(bindir)/`echo $$p|sed -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
531 $(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)/'`; \
534 $(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
535 for i in $(TOOL_PROGS); do \
536 if [ -f $$i$(EXEEXT) ]; then \
537 j=`echo $$i | sed -e 's/-new//'`; \
538 k=`echo $$j | sed '$(transform)'`; \
539 if [ "$(bindir)/$$k" != "$(tooldir)/bin/$$j" ]; then \
540 rm -f $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
541 ln $(DESTDIR)$(bindir)/$$k$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
542 || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \