1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 2012-2016 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 # This is where we get zlib from. zlibdir is -L../zlib and zlibinc is
44 # -I../zlib, unless we were configured with --with-system-zlib, in which
45 # case both are empty.
49 WARN_CFLAGS = @WARN_CFLAGS@
50 NO_WERROR = @NO_WERROR@
51 AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC)
54 # these two are almost the same program
58 # objcopy and strip should be the same program
68 # These should all be the same program too.
73 # This is the demangler, as a standalone program.
74 # Note: This one is used as the installed name too, unlike the above.
75 DEMANGLER_PROG=cxxfilt
77 ADDR2LINE_PROG=addr2line
85 SRCONV_PROG=srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT)
87 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@
89 bin_SCRIPTS = @BUILD_INSTALL_MISC@
90 EXTRA_SCRIPTS = embedspu
93 BFDTEST1_PROG = bfdtest1
94 BFDTEST2_PROG = bfdtest2
96 TEST_PROGS = $(BFDTEST1_PROG) $(BFDTEST2_PROG)
98 ## We need a special rule to install the programs which are built with
99 ## -new, and to rename cxxfilt to c++filt.
100 RENAMED_PROGS = $(NM_PROG) $(STRIP_PROG) $(DEMANGLER_PROG)
101 noinst_PROGRAMS = $(RENAMED_PROGS) $(TEST_PROGS) @BUILD_MISC@
103 EXTRA_PROGRAMS = $(NLMCONV_PROG) srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(WINDMC_PROG) $(DLLWRAP_PROG)
105 # Stuff that goes in tooldir/ if appropriate.
106 TOOL_PROGS = nm-new strip-new ar ranlib dlltool objdump objcopy readelf
108 BASEDIR = $(srcdir)/..
109 BFDDIR = $(BASEDIR)/bfd
110 INCDIR = $(BASEDIR)/include
112 AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \
115 -DLOCALEDIR="\"$(datadir)/locale\"" \
116 -Dbin_dummy_emulation=$(EMULATION_VECTOR)
119 arsup.h binemul.h bucomm.h budbg.h \
120 coffgrok.h debug.h dlltool.h dwarf.h elfcomm.h nlmconv.h \
121 objdump.h sysdep.h unwind-ia64.h windres.h winduni.h windint.h \
124 GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h mcparse.h
125 BUILT_SOURCES = $(GENERATED_HFILES)
128 addr2line.c ar.c arsup.c bin2c.c binemul.c bucomm.c \
129 coffdump.c coffgrok.c cxxfilt.c \
130 dwarf.c debug.c dlltool.c dllwrap.c \
131 elfcomm.c emul_aix.c emul_vanilla.c filemode.c \
132 ieee.c is-ranlib.c is-strip.c maybe-ranlib.c maybe-strip.c \
133 nlmconv.c nm.c not-ranlib.c not-strip.c \
134 objcopy.c objdump.c prdbg.c \
135 od-xcoff.c od-macho.c \
136 rclex.c rdcoff.c rddbg.c readelf.c rename.c \
137 resbin.c rescoff.c resrc.c resres.c \
138 size.c srconv.c stabs.c strings.c sysdump.c \
139 syslex_wrap.c unwind-ia64.c elfedit.c version.c \
140 windres.c winduni.c wrstabs.c \
144 arparse.c arlex.c sysroff.c sysinfo.c syslex.c \
145 defparse.c deflex.c nlmheader.c rcparse.c mcparse.c
147 DEBUG_SRCS = rddbg.c debug.c stabs.c ieee.c rdcoff.c
148 WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c
150 # Extra object files for objdump
151 OBJDUMP_PRIVATE_OFILES = @OBJDUMP_PRIVATE_OFILES@
153 # Code shared by all the binutils.
154 BULIBS = bucomm.c version.c filemode.c
156 # Code shared by the ELF related programs.
159 BFDLIB = ../bfd/libbfd.la
161 OPCODES = ../opcodes/libopcodes.la
163 LIBIBERTY = ../libiberty/libiberty.a
165 POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES)
166 po/POTFILES.in: @MAINT@ Makefile
167 for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
168 && mv tmp $(srcdir)/po/POTFILES.in
174 if [ -f $$r/../gcc/xgcc ] ; then \
175 if [ -f $$r/../newlib/Makefile ] ; then \
176 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
178 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
181 if [ "@host@" = "@target@" ] ; then \
184 echo gcc | sed '$(transform)'; \
188 check-DEJAGNU: site.exp
189 srcdir=`cd $(srcdir) && pwd`; export srcdir; \
191 LC_ALL=C; export LC_ALL; \
192 EXPECT=$(EXPECT); export EXPECT; \
193 runtest=$(RUNTEST); \
194 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
195 CC="$(CC)" CC_FOR_BUILD="$(CC_FOR_BUILD)" \
196 CC_FOR_TARGET="$(CC_FOR_TARGET)" CFLAGS_FOR_TARGET="$(CFLAGS)" \
197 $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
199 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
203 /bin/sh $(srcdir)/sanity.sh $(bindir)
205 # There's no global DEPENDENCIES. So, we must explicitly list everything
206 # which depends on libintl, since we don't know whether LIBINTL_DEP will be
207 # non-empty until configure time. Ugh!
208 size_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
209 objdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) $(OPCODES) $(OBJDUMP_PRIVATE_OFILES)
210 nm_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
211 ar_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
212 strings_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
213 strip_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
214 ranlib_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
215 cxxfilt_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
216 objcopy_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
217 nlmconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
218 srconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
219 sysdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
220 coffdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
221 dlltool_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
222 windres_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
223 windmc_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
224 addr2line_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
225 readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
226 elfedit_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
227 dllwrap_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
228 bfdtest1_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
229 bfdtest2_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
231 LDADD = $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
233 size_SOURCES = size.c $(BULIBS)
235 objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
237 strings_SOURCES = strings.c $(BULIBS)
239 readelf_SOURCES = readelf.c version.c unwind-ia64.c dwarf.c $(ELFLIBS)
240 readelf_LDADD = $(LIBINTL) $(LIBIBERTY) $(ZLIB)
242 elfedit_SOURCES = elfedit.c version.c $(ELFLIBS)
243 elfedit_LDADD = $(LIBINTL) $(LIBIBERTY)
245 strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
247 nm_new_SOURCES = nm.c $(BULIBS)
249 objdump_SOURCES = objdump.c dwarf.c prdbg.c $(DEBUG_SRCS) $(BULIBS) $(ELFLIBS)
250 EXTRA_objdump_SOURCES = od-xcoff.c
251 objdump_LDADD = $(OBJDUMP_PRIVATE_OFILES) $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
253 objdump.@OBJEXT@:objdump.c
255 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(OBJDUMP_DEFS) $(srcdir)/objdump.c
256 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
259 source='objdump.c' object='$@' libtool=no @AMDEPBACKSLASH@
260 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
262 $(COMPILE) -c $(OBJDUMP_DEFS) $(srcdir)/objdump.c
265 cxxfilt_SOURCES = cxxfilt.c $(BULIBS)
267 ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c binemul.c \
268 emul_$(EMULATION).c $(BULIBS)
269 EXTRA_ar_SOURCES = $(CFILES)
270 ar_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
272 ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c \
273 binemul.c emul_$(EMULATION).c $(BULIBS)
274 ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
276 addr2line_SOURCES = addr2line.c $(BULIBS)
278 # The following is commented out for the conversion to automake.
279 # This rule creates a single binary that switches between ar and ranlib
280 # by looking at argv[0]. Use this kludge to save some disk space.
281 # However, you have to install things by hand.
282 # (That is after 'make install', replace the installed ranlib by a link to ar.)
283 # Alternatively, you can install ranlib.sh as ranlib.
284 # ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o
285 # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS)
286 # -rm -f $(RANLIB_PROG)
287 # -ln $(AR_PROG) $(RANLIB_PROG)
289 # objcopy and strip in one binary that uses argv[0] to decide its action.
291 #objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o
292 # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS)
293 # -rm -f $(STRIP_PROG)
294 # -ln $(OBJCOPY_PROG) $(STRIP_PROG)
296 sysroff.c: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
297 ./sysinfo$(EXEEXT_FOR_BUILD) -c <$(srcdir)/sysroff.info >sysroff.c
298 ./sysinfo$(EXEEXT_FOR_BUILD) -i <$(srcdir)/sysroff.info >>sysroff.c
299 ./sysinfo$(EXEEXT_FOR_BUILD) -g <$(srcdir)/sysroff.info >>sysroff.c
301 sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
302 ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h
304 sysinfo$(EXEEXT_FOR_BUILD): sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
305 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
307 syslex_wrap.@OBJEXT@: syslex_wrap.c syslex.c sysinfo.h config.h
308 $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/syslex_wrap.c
310 sysinfo.@OBJEXT@: sysinfo.c
311 if [ -r sysinfo.c ]; then \
312 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) sysinfo.c ; \
314 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \
317 bin2c$(EXEEXT_FOR_BUILD): bin2c.c
318 $(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c
320 embedspu: embedspu.sh Makefile
321 awk '/^program_transform_name=/ {print "program_transform_name=\"$(program_transform_name)\""; next} {print}' < $< > $@
324 # We need these for parallel make.
327 # Disable -Werror, if it has been enabled, since old versions of bison/
328 # yacc will produce working code which contain compile time warnings.
329 arparse.@OBJEXT@: arparse.c
331 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
332 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
335 source='arparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
336 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
338 $(COMPILE) -c `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
341 arlex.@OBJEXT@: arlex.c
343 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
344 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
347 source='arlex.c' object='$@' libtool=no @AMDEPBACKSLASH@
348 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
350 $(COMPILE) -c `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
353 sysroff.@OBJEXT@: sysroff.c
355 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
356 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
359 source='sysroff.c' object='$@' libtool=no @AMDEPBACKSLASH@
360 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
362 $(COMPILE) -c `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
365 defparse.@OBJEXT@: defparse.c
367 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
368 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
371 source='defparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
372 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
374 $(COMPILE) -c `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
377 deflex.@OBJEXT@: deflex.c
379 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
380 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
383 source='deflex.c' object='$@' libtool=no @AMDEPBACKSLASH@
384 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
386 $(COMPILE) -c `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
389 nlmheader.@OBJEXT@: nlmheader.c
391 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
392 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
395 source='nlmheader.c' object='$@' libtool=no @AMDEPBACKSLASH@
396 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
398 $(COMPILE) -c `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
401 rcparse.@OBJEXT@: rcparse.c
403 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
404 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
407 source='rcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
408 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
410 $(COMPILE) -c `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
413 mcparse.@OBJEXT@: mcparse.c
415 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
416 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
419 source='mcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
420 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
422 $(COMPILE) -c `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
425 rclex.@OBJEXT@: rclex.c
427 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/rclex.c $(NO_WERROR)
428 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
431 source='rclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
432 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
434 $(COMPILE) -c $(srcdir)/rclex.c $(NO_WERROR)
437 mclex.@OBJEXT@: mclex.c
439 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/mclex.c $(NO_WERROR)
440 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
443 source='mclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
444 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
446 $(COMPILE) -c $(srcdir)/mclex.c $(NO_WERROR)
449 srconv_SOURCES = srconv.c coffgrok.c $(BULIBS)
450 srconv.@OBJEXT@: sysroff.c
452 dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS)
453 dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
457 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
458 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
461 source='dlltool.c' object='$@' libtool=no @AMDEPBACKSLASH@
462 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
464 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
469 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
470 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
473 source='rescoff.c' object='$@' libtool=no @AMDEPBACKSLASH@
474 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
476 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
479 coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
481 sysdump_SOURCES = sysdump.c $(BULIBS)
482 sysdump.@OBJEXT@: sysroff.c
484 # coff/sym.h and coff/ecoff.h won't be found by the automatic dependency
485 # scripts, since they are only included conditionally.
486 nlmconv.@OBJEXT@: nlmconv.c
488 ldname=`echo ld | sed '$(transform)'`; \
489 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ \
490 -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
491 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
494 source='nlmconv.c' object='$@' libtool=no @AMDEPBACKSLASH@
495 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
497 ldname=`echo ld | sed '$(transform)'`; \
498 $(COMPILE) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
501 nlmconv_SOURCES = nlmconv.c nlmheader.y $(BULIBS)
503 windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.c \
504 winduni.c resres.c $(BULIBS)
505 windres_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL) $(LIBICONV)
507 windmc_SOURCES = windmc.c mcparse.y mclex.c \
509 windmc_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL) $(LIBICONV)
511 dllwrap_SOURCES = dllwrap.c version.c
512 dllwrap_LDADD = $(LIBIBERTY) $(LIBINTL)
515 EXTRA_DIST = arparse.c arparse.h arlex.c nlmheader.c sysinfo.c sysinfo.h \
516 syslex.c deflex.c defparse.h defparse.c rcparse.h rcparse.c \
517 mcparse.h mcparse.c embedspu.sh
519 diststuff: $(EXTRA_DIST) info
522 # development.sh is used to determine -Werror default.
523 CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh
525 DISTCLEANFILES = sysroff.c sysroff.h site.exp site.bak embedspu
527 MOSTLYCLEANFILES = sysinfo$(EXEEXT_FOR_BUILD) bin2c$(EXEEXT_FOR_BUILD) \
528 binutils.log binutils.sum abcdefgh*
532 .PHONY: install-exec-local
534 install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS)
535 @list='$(RENAMED_PROGS)'; for p in $$list; do \
536 if test -f $$p$(EXEEXT); then \
537 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)/'`"; \
538 $(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)/'`; \
541 $(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
542 for i in $(TOOL_PROGS); do \
543 if [ -f $$i$(EXEEXT) ]; then \
544 j=`echo $$i | sed -e 's/-new//'`; \
545 k=`echo $$j | sed '$(transform)'`; \
546 if [ "$(bindir)/$$k" != "$(tooldir)/bin/$$j" ]; then \
547 rm -f $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
548 ln $(DESTDIR)$(bindir)/$$k$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
549 || $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \