1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 2012-2014 Free Software Foundation, Inc.
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`
38 # Automake 1.10+ disables lex and yacc output file regeneration if
39 # maintainer mode is disabled. Avoid this.
43 WARN_CFLAGS = @WARN_CFLAGS@
44 NO_WERROR = @NO_WERROR@
45 AM_CFLAGS = $(WARN_CFLAGS)
48 # these two are almost the same program
52 # objcopy and strip should be the same program
62 # These should all be the same program too.
67 # This is the demangler, as a standalone program.
68 # Note: This one is used as the installed name too, unlike the above.
69 DEMANGLER_PROG=cxxfilt
71 ADDR2LINE_PROG=addr2line
79 SRCONV_PROG=srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT)
81 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@
83 bin_SCRIPTS = @BUILD_INSTALL_MISC@
84 EXTRA_SCRIPTS = embedspu
87 BFDTEST1_PROG = bfdtest1
88 BFDTEST2_PROG = bfdtest2
90 TEST_PROGS = $(BFDTEST1_PROG) $(BFDTEST2_PROG)
92 ## We need a special rule to install the programs which are built with
93 ## -new, and to rename cxxfilt to c++filt.
94 RENAMED_PROGS = $(NM_PROG) $(STRIP_PROG) $(DEMANGLER_PROG)
95 noinst_PROGRAMS = $(RENAMED_PROGS) $(TEST_PROGS) @BUILD_MISC@
97 EXTRA_PROGRAMS = $(NLMCONV_PROG) srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(WINDMC_PROG) $(DLLWRAP_PROG)
99 # Stuff that goes in tooldir/ if appropriate.
100 TOOL_PROGS = nm-new strip-new ar ranlib dlltool objdump objcopy
102 BASEDIR = $(srcdir)/..
103 BFDDIR = $(BASEDIR)/bfd
104 INCDIR = $(BASEDIR)/include
106 AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \
109 -DLOCALEDIR="\"$(datadir)/locale\"" \
110 -Dbin_dummy_emulation=$(EMULATION_VECTOR)
113 arsup.h binemul.h bucomm.h budbg.h \
114 coffgrok.h debug.h dlltool.h dwarf.h elfcomm.h nlmconv.h \
115 objdump.h sysdep.h unwind-ia64.h windres.h winduni.h windint.h \
118 GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h mcparse.h
119 BUILT_SOURCES = $(GENERATED_HFILES)
122 addr2line.c ar.c arsup.c bin2c.c binemul.c bucomm.c \
123 coffdump.c coffgrok.c cxxfilt.c \
124 dwarf.c debug.c dlltool.c dllwrap.c \
125 elfcomm.c emul_aix.c emul_vanilla.c filemode.c \
126 ieee.c is-ranlib.c is-strip.c maybe-ranlib.c maybe-strip.c \
127 nlmconv.c nm.c not-ranlib.c not-strip.c \
128 objcopy.c objdump.c prdbg.c \
129 od-xcoff.c od-macho.c \
130 rclex.c rdcoff.c rddbg.c readelf.c rename.c \
131 resbin.c rescoff.c resrc.c resres.c \
132 size.c srconv.c stabs.c strings.c sysdump.c \
133 syslex_wrap.c unwind-ia64.c elfedit.c version.c \
134 windres.c winduni.c wrstabs.c \
138 arparse.c arlex.c sysroff.c sysinfo.c syslex.c \
139 defparse.c deflex.c nlmheader.c rcparse.c mcparse.c
141 DEBUG_SRCS = rddbg.c debug.c stabs.c ieee.c rdcoff.c
142 WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c
144 # Extra object files for objdump
145 OBJDUMP_PRIVATE_OFILES = @OBJDUMP_PRIVATE_OFILES@
147 # Code shared by all the binutils.
148 BULIBS = bucomm.c version.c filemode.c
150 # Code shared by the ELF related programs.
153 BFDLIB = ../bfd/libbfd.la
155 OPCODES = ../opcodes/libopcodes.la
157 LIBIBERTY = ../libiberty/libiberty.a
159 POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES)
160 po/POTFILES.in: @MAINT@ Makefile
161 for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
162 && mv tmp $(srcdir)/po/POTFILES.in
168 if [ -f $$r/../gcc/xgcc ] ; then \
169 if [ -f $$r/../newlib/Makefile ] ; then \
170 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
172 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
175 if [ "@host@" = "@target@" ] ; then \
178 echo gcc | sed '$(transform)'; \
182 check-DEJAGNU: site.exp
183 srcdir=`cd $(srcdir) && pwd`; export srcdir; \
185 LC_ALL=C; export LC_ALL; \
186 EXPECT=$(EXPECT); export EXPECT; \
187 runtest=$(RUNTEST); \
188 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
189 CC_FOR_TARGET="$(CC_FOR_TARGET)" CFLAGS_FOR_TARGET="$(CFLAGS)" \
190 $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
192 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
196 /bin/sh $(srcdir)/sanity.sh $(bindir)
198 # There's no global DEPENDENCIES. So, we must explicitly list everything
199 # which depends on libintl, since we don't know whether LIBINTL_DEP will be
200 # non-empty until configure time. Ugh!
201 size_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
202 objdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) $(OPCODES) $(OBJDUMP_PRIVATE_OFILES)
203 nm_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
204 ar_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
205 strings_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
206 strip_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
207 ranlib_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
208 cxxfilt_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
209 objcopy_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
210 nlmconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
211 srconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
212 sysdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
213 coffdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
214 dlltool_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
215 windres_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
216 windmc_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
217 addr2line_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
218 readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
219 elfedit_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
220 dllwrap_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
221 bfdtest1_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
222 bfdtest2_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
224 LDADD = $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
226 size_SOURCES = size.c $(BULIBS)
228 objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
230 strings_SOURCES = strings.c $(BULIBS)
232 readelf_SOURCES = readelf.c version.c unwind-ia64.c dwarf.c $(ELFLIBS)
233 readelf_LDADD = $(LIBINTL) $(LIBIBERTY)
235 elfedit_SOURCES = elfedit.c version.c $(ELFLIBS)
236 elfedit_LDADD = $(LIBINTL) $(LIBIBERTY)
238 strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
240 nm_new_SOURCES = nm.c $(BULIBS)
242 objdump_SOURCES = objdump.c dwarf.c prdbg.c $(DEBUG_SRCS) $(BULIBS) $(ELFLIBS)
243 EXTRA_objdump_SOURCES = od-xcoff.c
244 objdump_LDADD = $(OBJDUMP_PRIVATE_OFILES) $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
246 objdump.@OBJEXT@:objdump.c
248 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(OBJDUMP_DEFS) $(srcdir)/objdump.c
249 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
252 source='objdump.c' object='$@' libtool=no @AMDEPBACKSLASH@
253 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
255 $(COMPILE) -c $(OBJDUMP_DEFS) $(srcdir)/objdump.c
258 cxxfilt_SOURCES = cxxfilt.c $(BULIBS)
260 ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c binemul.c \
261 emul_$(EMULATION).c $(BULIBS)
262 EXTRA_ar_SOURCES = $(CFILES)
263 ar_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
265 ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c \
266 binemul.c emul_$(EMULATION).c $(BULIBS)
267 ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
269 addr2line_SOURCES = addr2line.c $(BULIBS)
271 # The following is commented out for the conversion to automake.
272 # This rule creates a single binary that switches between ar and ranlib
273 # by looking at argv[0]. Use this kludge to save some disk space.
274 # However, you have to install things by hand.
275 # (That is after 'make install', replace the installed ranlib by a link to ar.)
276 # Alternatively, you can install ranlib.sh as ranlib.
277 # ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o
278 # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS)
279 # -rm -f $(RANLIB_PROG)
280 # -ln $(AR_PROG) $(RANLIB_PROG)
282 # objcopy and strip in one binary that uses argv[0] to decide its action.
284 #objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o
285 # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS)
286 # -rm -f $(STRIP_PROG)
287 # -ln $(OBJCOPY_PROG) $(STRIP_PROG)
289 sysroff.c: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
290 ./sysinfo$(EXEEXT_FOR_BUILD) -c <$(srcdir)/sysroff.info >sysroff.c
291 ./sysinfo$(EXEEXT_FOR_BUILD) -i <$(srcdir)/sysroff.info >>sysroff.c
292 ./sysinfo$(EXEEXT_FOR_BUILD) -g <$(srcdir)/sysroff.info >>sysroff.c
294 sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
295 ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h
297 sysinfo$(EXEEXT_FOR_BUILD): sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
298 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
300 syslex_wrap.@OBJEXT@: syslex_wrap.c syslex.c sysinfo.h config.h
301 $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/syslex_wrap.c
303 sysinfo.@OBJEXT@: sysinfo.c
304 if [ -r sysinfo.c ]; then \
305 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) sysinfo.c ; \
307 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \
310 bin2c$(EXEEXT_FOR_BUILD): bin2c.c
311 $(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c
313 embedspu: embedspu.sh Makefile
314 awk '/^program_transform_name=/ {print "program_transform_name=\"$(program_transform_name)\""; next} {print}' < $< > $@
317 # We need these for parallel make.
320 # Disable -Werror, if it has been enabled, since old versions of bison/
321 # yacc will produce working code which contain compile time warnings.
322 arparse.@OBJEXT@: arparse.c
324 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
325 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
328 source='arparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
329 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
331 $(COMPILE) -c `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
334 arlex.@OBJEXT@: arlex.c
336 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
337 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
340 source='arlex.c' object='$@' libtool=no @AMDEPBACKSLASH@
341 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
343 $(COMPILE) -c `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
346 sysroff.@OBJEXT@: sysroff.c
348 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
349 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
352 source='sysroff.c' object='$@' libtool=no @AMDEPBACKSLASH@
353 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
355 $(COMPILE) -c `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
358 defparse.@OBJEXT@: defparse.c
360 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
361 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
364 source='defparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
365 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
367 $(COMPILE) -c `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
370 deflex.@OBJEXT@: deflex.c
372 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
373 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
376 source='deflex.c' object='$@' libtool=no @AMDEPBACKSLASH@
377 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
379 $(COMPILE) -c `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
382 nlmheader.@OBJEXT@: nlmheader.c
384 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
385 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
388 source='nlmheader.c' object='$@' libtool=no @AMDEPBACKSLASH@
389 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
391 $(COMPILE) -c `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
394 rcparse.@OBJEXT@: rcparse.c
396 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
397 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
400 source='rcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
401 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
403 $(COMPILE) -c `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
406 mcparse.@OBJEXT@: mcparse.c
408 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
409 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
412 source='mcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
413 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
415 $(COMPILE) -c `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
418 rclex.@OBJEXT@: rclex.c
420 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/rclex.c $(NO_WERROR)
421 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
424 source='rclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
425 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
427 $(COMPILE) -c $(srcdir)/rclex.c $(NO_WERROR)
430 mclex.@OBJEXT@: mclex.c
432 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/mclex.c $(NO_WERROR)
433 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
436 source='mclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
437 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
439 $(COMPILE) -c $(srcdir)/mclex.c $(NO_WERROR)
442 srconv_SOURCES = srconv.c coffgrok.c $(BULIBS)
443 srconv.@OBJEXT@: sysroff.c
445 dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS)
446 dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
450 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
451 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
454 source='dlltool.c' object='$@' libtool=no @AMDEPBACKSLASH@
455 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
457 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
462 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
463 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
466 source='rescoff.c' object='$@' libtool=no @AMDEPBACKSLASH@
467 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
469 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
472 coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
474 sysdump_SOURCES = sysdump.c $(BULIBS)
475 sysdump.@OBJEXT@: sysroff.c
477 # coff/sym.h and coff/ecoff.h won't be found by the automatic dependency
478 # scripts, since they are only included conditionally.
479 nlmconv.@OBJEXT@: nlmconv.c
481 ldname=`echo ld | sed '$(transform)'`; \
482 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ \
483 -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
484 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
487 source='nlmconv.c' object='$@' libtool=no @AMDEPBACKSLASH@
488 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
490 ldname=`echo ld | sed '$(transform)'`; \
491 $(COMPILE) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
494 nlmconv_SOURCES = nlmconv.c nlmheader.y $(BULIBS)
496 windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.c \
497 winduni.c resres.c $(BULIBS)
498 windres_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL) $(LIBICONV)
500 windmc_SOURCES = windmc.c mcparse.y mclex.c \
502 windmc_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL) $(LIBICONV)
504 dllwrap_SOURCES = dllwrap.c version.c
505 dllwrap_LDADD = $(LIBIBERTY) $(LIBINTL)
508 EXTRA_DIST = arparse.c arparse.h arlex.c nlmheader.c sysinfo.c sysinfo.h \
509 syslex.c deflex.c defparse.h defparse.c rcparse.h rcparse.c \
510 mcparse.h mcparse.c embedspu.sh
512 diststuff: $(EXTRA_DIST) info
515 # We extract version from bfd/configure.in, make sure to rerun configure
516 # when BFD's version changes.
517 CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in \
518 $(BFDDIR)/development.sh
520 DISTCLEANFILES = sysroff.c sysroff.h site.exp site.bak embedspu
522 MOSTLYCLEANFILES = sysinfo$(EXEEXT_FOR_BUILD) bin2c$(EXEEXT_FOR_BUILD) \
523 binutils.log binutils.sum abcdefgh*
527 .PHONY: install-exec-local
529 install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS)
530 @list='$(RENAMED_PROGS)'; for p in $$list; do \
531 if test -f $$p$(EXEEXT); then \
532 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)/'`"; \
533 $(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)/'`; \
536 $(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
537 for i in $(TOOL_PROGS); do \
538 if [ -f $$i$(EXEEXT) ]; then \
539 j=`echo $$i | sed -e 's/-new//'`; \
540 k=`echo $$j | sed '$(transform)'`; \
541 if [ "$(bindir)/$$k" != "$(tooldir)/bin/$$j" ]; then \
542 rm -f $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
543 ln $(DESTDIR)$(bindir)/$$k$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
544 || $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \