1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 2012-2019 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 subdir-objects
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 WARN_CFLAGS_FOR_BUILD = @WARN_CFLAGS_FOR_BUILD@
51 NO_WERROR = @NO_WERROR@
52 AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC)
53 AM_CFLAGS_FOR_BUILD = $(WARN_CFLAGS_FOR_BUILD) $(ZLIBINC)
56 # these two are almost the same program
60 # objcopy and strip should be the same program
70 # These should all be the same program too.
75 # This is the demangler, as a standalone program.
76 # Note: This one is used as the installed name too, unlike the above.
77 DEMANGLER_PROG=cxxfilt
79 ADDR2LINE_PROG=addr2line
86 SRCONV_PROG=srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT)
88 bin_PROGRAMS = $(SIZE_PROG) $(OBJDUMP_PROG) $(AR_PROG) $(STRINGS_PROG) $(RANLIB_PROG) $(OBJCOPY_PROG) @BUILD_SRCONV@ @BUILD_DLLTOOL@ @BUILD_WINDRES@ @BUILD_WINDMC@ $(ADDR2LINE_PROG) $(READELF_PROG) $(ELFEDIT_PROG) @BUILD_DLLWRAP@
90 bin_SCRIPTS = @BUILD_INSTALL_MISC@
91 EXTRA_SCRIPTS = embedspu
94 BFDTEST1_PROG = bfdtest1
95 BFDTEST2_PROG = bfdtest2
96 GENTESTDLLS_PROG = testsuite/gentestdlls
98 TEST_PROGS = $(BFDTEST1_PROG) $(BFDTEST2_PROG) $(GENTESTDLLS_PROG)
100 ## We need a special rule to install the programs which are built with
101 ## -new, and to rename cxxfilt to c++filt.
102 RENAMED_PROGS = $(NM_PROG) $(STRIP_PROG) $(DEMANGLER_PROG)
103 noinst_PROGRAMS = $(RENAMED_PROGS) $(TEST_PROGS) @BUILD_MISC@
105 EXTRA_PROGRAMS = srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(WINDMC_PROG) $(DLLWRAP_PROG)
107 # Stuff that goes in tooldir/ if appropriate.
108 TOOL_PROGS = nm-new strip-new ar ranlib dlltool objdump objcopy readelf
110 BASEDIR = $(srcdir)/..
111 BFDDIR = $(BASEDIR)/bfd
112 INCDIR = $(BASEDIR)/include
114 AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \
117 -DLOCALEDIR="\"$(datadir)/locale\"" \
118 -Dbin_dummy_emulation=$(EMULATION_VECTOR)
121 arsup.h binemul.h bucomm.h budbg.h \
122 coffgrok.h debug.h dlltool.h dwarf.h elfcomm.h \
123 objdump.h sysdep.h unwind-ia64.h windres.h winduni.h windint.h \
126 GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h mcparse.h
127 BUILT_SOURCES = $(GENERATED_HFILES)
130 addr2line.c ar.c arsup.c bin2c.c binemul.c bucomm.c \
131 coffdump.c coffgrok.c cxxfilt.c \
132 dwarf.c debug.c dlltool.c dllwrap.c \
133 elfcomm.c emul_aix.c emul_vanilla.c filemode.c \
134 is-ranlib.c is-strip.c maybe-ranlib.c maybe-strip.c \
135 nm.c not-ranlib.c not-strip.c \
136 objcopy.c objdump.c prdbg.c \
137 od-xcoff.c od-macho.c \
138 rclex.c rdcoff.c rddbg.c readelf.c rename.c \
139 resbin.c rescoff.c resrc.c resres.c \
140 size.c srconv.c stabs.c strings.c sysdump.c \
141 syslex_wrap.c unwind-ia64.c elfedit.c version.c \
142 windres.c winduni.c wrstabs.c \
146 arparse.c arlex.c sysroff.c sysinfo.c syslex.c \
147 defparse.c deflex.c rcparse.c mcparse.c
149 DEBUG_SRCS = rddbg.c debug.c stabs.c rdcoff.c
150 WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c
152 # Extra object files for objdump
153 OBJDUMP_PRIVATE_OFILES = @OBJDUMP_PRIVATE_OFILES@
155 # Code shared by all the binutils.
156 BULIBS = bucomm.c version.c filemode.c
158 # Code shared by the ELF related programs.
161 BFDLIB = ../bfd/libbfd.la
163 OPCODES = ../opcodes/libopcodes.la
165 LIBCTF = ../libctf/libctf.la
166 LIBCTF_NOBFD = ../libctf/libctf-nobfd.la
168 LIBIBERTY = ../libiberty/libiberty.a
170 POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES)
171 po/POTFILES.in: @MAINT@ Makefile
172 for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
173 && mv tmp $(srcdir)/po/POTFILES.in
179 if [ -f $$r/../gcc/xgcc ] ; then \
180 if [ -f $$r/../newlib/Makefile ] ; then \
181 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
183 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
186 if [ "@host@" = "@target@" ] ; then \
189 echo gcc | sed '$(transform)'; \
193 check-DEJAGNU: site.exp
194 srcdir=`cd $(srcdir) && pwd`; export srcdir; \
196 LC_ALL=C; export LC_ALL; \
197 EXPECT=$(EXPECT); export EXPECT; \
198 runtest=$(RUNTEST); \
199 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
200 CC="$(CC)" CC_FOR_BUILD="$(CC_FOR_BUILD)" \
201 CC_FOR_TARGET="$(CC_FOR_TARGET)" CFLAGS_FOR_TARGET="$(CFLAGS)" \
202 $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
204 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
207 development.exp: $(BFDDIR)/development.sh
208 $(EGREP) "[development|experimental]=" $(BFDDIR)/development.sh \
209 | $(AWK) -F= '{ print "set " $$1 " " $$2 }' > $@
212 /bin/sh $(srcdir)/sanity.sh $(bindir)
214 # There's no global DEPENDENCIES. So, we must explicitly list everything
215 # which depends on libintl, since we don't know whether LIBINTL_DEP will be
216 # non-empty until configure time. Ugh!
217 size_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
218 objdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) $(OPCODES) $(LIBCTF) $(OBJDUMP_PRIVATE_OFILES)
219 nm_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
220 ar_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
221 strings_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
222 strip_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
223 ranlib_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
224 cxxfilt_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
225 objcopy_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
226 srconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
227 sysdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
228 coffdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
229 dlltool_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
230 windres_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
231 windmc_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
232 addr2line_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
233 readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(LIBCTF_NOBFD)
234 elfedit_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
235 dllwrap_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
236 bfdtest1_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
237 bfdtest2_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
239 LDADD = $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
241 size_SOURCES = size.c $(BULIBS)
243 objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
245 strings_SOURCES = strings.c $(BULIBS)
247 readelf_SOURCES = readelf.c version.c unwind-ia64.c dwarf.c $(ELFLIBS)
248 readelf_LDADD = $(LIBINTL) $(LIBCTF_NOBFD) $(LIBIBERTY) $(ZLIB)
250 elfedit_SOURCES = elfedit.c version.c $(ELFLIBS)
251 elfedit_LDADD = $(LIBINTL) $(LIBIBERTY)
253 strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
255 nm_new_SOURCES = nm.c $(BULIBS)
257 objdump_SOURCES = objdump.c dwarf.c prdbg.c $(DEBUG_SRCS) $(BULIBS) $(ELFLIBS)
258 EXTRA_objdump_SOURCES = od-xcoff.c
259 objdump_LDADD = $(OBJDUMP_PRIVATE_OFILES) $(OPCODES) $(LIBCTF) $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
261 objdump.@OBJEXT@:objdump.c
263 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(OBJDUMP_DEFS) $(srcdir)/objdump.c
264 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
267 source='objdump.c' object='$@' libtool=no @AMDEPBACKSLASH@
268 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
270 $(COMPILE) -c $(OBJDUMP_DEFS) $(srcdir)/objdump.c
273 cxxfilt_SOURCES = cxxfilt.c $(BULIBS)
275 ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c binemul.c \
276 emul_$(EMULATION).c $(BULIBS)
277 EXTRA_ar_SOURCES = $(CFILES)
278 ar_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
280 ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c \
281 binemul.c emul_$(EMULATION).c $(BULIBS)
282 ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
284 addr2line_SOURCES = addr2line.c $(BULIBS)
286 # The following is commented out for the conversion to automake.
287 # This rule creates a single binary that switches between ar and ranlib
288 # by looking at argv[0]. Use this kludge to save some disk space.
289 # However, you have to install things by hand.
290 # (That is after 'make install', replace the installed ranlib by a link to ar.)
291 # Alternatively, you can install ranlib.sh as ranlib.
292 # ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o
293 # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS)
294 # -rm -f $(RANLIB_PROG)
295 # -ln $(AR_PROG) $(RANLIB_PROG)
297 # objcopy and strip in one binary that uses argv[0] to decide its action.
299 #objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o
300 # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS)
301 # -rm -f $(STRIP_PROG)
302 # -ln $(OBJCOPY_PROG) $(STRIP_PROG)
304 sysroff.c: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
305 ./sysinfo$(EXEEXT_FOR_BUILD) -c <$(srcdir)/sysroff.info >sysroff.c
306 ./sysinfo$(EXEEXT_FOR_BUILD) -i <$(srcdir)/sysroff.info >>sysroff.c
307 ./sysinfo$(EXEEXT_FOR_BUILD) -g <$(srcdir)/sysroff.info >>sysroff.c
309 sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
310 ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h
312 sysinfo$(EXEEXT_FOR_BUILD): sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
313 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
315 syslex_wrap.@OBJEXT@: syslex_wrap.c syslex.c sysinfo.h config.h
316 $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/syslex_wrap.c
318 sysinfo.@OBJEXT@: sysinfo.c
319 if [ -r sysinfo.c ]; then \
320 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(NO_WERROR) sysinfo.c ; \
322 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \
325 bin2c$(EXEEXT_FOR_BUILD): bin2c.c
326 $(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c
328 embedspu: embedspu.sh Makefile
329 awk '/^program_transform_name=/ {print "program_transform_name=\"$(program_transform_name)\""; next} {print}' < $< > $@
332 # We need these for parallel make.
335 # Disable -Werror, if it has been enabled, since old versions of bison/
336 # yacc will produce working code which contain compile time warnings.
337 arparse.@OBJEXT@: arparse.c
339 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
340 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
343 source='arparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
344 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
346 $(COMPILE) -c `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
349 arlex.@OBJEXT@: arlex.c
351 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
352 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
355 source='arlex.c' object='$@' libtool=no @AMDEPBACKSLASH@
356 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
358 $(COMPILE) -c `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
361 sysroff.@OBJEXT@: sysroff.c
363 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
364 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
367 source='sysroff.c' object='$@' libtool=no @AMDEPBACKSLASH@
368 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
370 $(COMPILE) -c `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
373 defparse.@OBJEXT@: defparse.c
375 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
376 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
379 source='defparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
380 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
382 $(COMPILE) -c `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
385 deflex.@OBJEXT@: deflex.c
387 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
388 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
391 source='deflex.c' object='$@' libtool=no @AMDEPBACKSLASH@
392 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
394 $(COMPILE) -c `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
397 rcparse.@OBJEXT@: rcparse.c
399 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
400 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
403 source='rcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
404 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
406 $(COMPILE) -c `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
409 mcparse.@OBJEXT@: mcparse.c
411 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
412 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
415 source='mcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
416 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
418 $(COMPILE) -c `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
421 rclex.@OBJEXT@: rclex.c
423 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/rclex.c $(NO_WERROR)
424 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
427 source='rclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
428 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
430 $(COMPILE) -c $(srcdir)/rclex.c $(NO_WERROR)
433 mclex.@OBJEXT@: mclex.c
435 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/mclex.c $(NO_WERROR)
436 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
439 source='mclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
440 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
442 $(COMPILE) -c $(srcdir)/mclex.c $(NO_WERROR)
445 srconv_SOURCES = srconv.c coffgrok.c $(BULIBS)
446 srconv.@OBJEXT@: sysroff.c
448 dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS)
449 dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
453 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
454 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
457 source='dlltool.c' object='$@' libtool=no @AMDEPBACKSLASH@
458 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
460 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
465 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
466 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
469 source='rescoff.c' object='$@' libtool=no @AMDEPBACKSLASH@
470 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
472 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
475 coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
477 sysdump_SOURCES = sysdump.c $(BULIBS)
478 sysdump.@OBJEXT@: sysroff.c
480 windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.c \
481 winduni.c resres.c $(BULIBS)
482 windres_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL) $(LIBICONV)
484 windmc_SOURCES = windmc.c mcparse.y mclex.c \
486 windmc_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL) $(LIBICONV)
488 dllwrap_SOURCES = dllwrap.c version.c
489 dllwrap_LDADD = $(LIBIBERTY) $(LIBINTL)
492 EXTRA_DIST = arparse.c arparse.h arlex.c sysinfo.c sysinfo.h \
493 syslex.c deflex.c defparse.h defparse.c rcparse.h rcparse.c \
494 mcparse.h mcparse.c embedspu.sh
496 diststuff: $(EXTRA_DIST) info
499 # development.sh is used to determine -Werror default.
500 CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh
502 EXTRA_DEJAGNU_SITE_CONFIG = development.exp
504 DISTCLEANFILES = sysroff.c sysroff.h site.exp development.exp \
507 MOSTLYCLEANFILES = sysinfo$(EXEEXT_FOR_BUILD) bin2c$(EXEEXT_FOR_BUILD) \
508 binutils.log binutils.sum abcdefgh*
512 .PHONY: install-exec-local
514 install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS)
515 @list='$(RENAMED_PROGS)'; for p in $$list; do \
516 if test -f $$p$(EXEEXT); then \
517 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)/'`"; \
518 $(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)/'`; \
521 $(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
522 for i in $(TOOL_PROGS); do \
523 if [ -f $$i$(EXEEXT) ]; then \
524 j=`echo $$i | sed -e 's/-new//'`; \
525 k=`echo $$j | sed '$(transform)'`; \
526 if [ "$(bindir)/$$k" != "$(tooldir)/bin/$$j" ]; then \
527 rm -f $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
528 ln $(DESTDIR)$(bindir)/$$k$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
529 || $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \