1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 2012-2024 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 info-in-builddir no-texinfo.tex
21 ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
25 tooldir = $(exec_prefix)/$(target_alias)
27 MAINTAINERCLEANFILES =
29 ## These aren't set by automake, because they appear in
30 ## bfd/acinclude.m4, which is included by binutils/acinclude.m4, and
31 ## thus is not seen by automake.
32 CC_FOR_BUILD = @CC_FOR_BUILD@
33 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
35 YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
37 LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
40 # Automake 1.10+ disables lex and yacc output file regeneration if
41 # maintainer mode is disabled. Avoid this.
45 # This is where we get zlib from. zlibdir is -L../zlib and zlibinc is
46 # -I../zlib, unless we were configured with --with-system-zlib, in which
47 # case both are empty.
51 DEBUGINFOD_CFLAGS = @DEBUGINFOD_CFLAGS@
52 DEBUGINFOD_LIBS = @DEBUGINFOD_LIBS@
54 WARN_CFLAGS = @WARN_CFLAGS@
55 WARN_CFLAGS_FOR_BUILD = @WARN_CFLAGS_FOR_BUILD@
56 NO_WERROR = @NO_WERROR@
57 AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) $(ZSTD_CFLAGS)
58 AM_CFLAGS_FOR_BUILD = $(WARN_CFLAGS_FOR_BUILD) $(ZLIBINC) $(ZSTD_CFLAGS)
61 # these two are almost the same program
65 # objcopy and strip should be the same program
75 # These should all be the same program too.
80 # This is the demangler, as a standalone program.
81 # Note: This one is used as the installed name too, unlike the above.
82 DEMANGLER_PROG=cxxfilt
84 ADDR2LINE_PROG=addr2line
91 SRCONV_PROG=srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT)
93 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@
95 bin_SCRIPTS = @BUILD_INSTALL_MISC@
96 EXTRA_SCRIPTS = embedspu
99 BFDTEST1_PROG = bfdtest1
100 BFDTEST2_PROG = bfdtest2
101 GENTESTDLLS_PROG = testsuite/gentestdlls
103 TEST_PROGS = $(BFDTEST1_PROG) $(BFDTEST2_PROG) $(GENTESTDLLS_PROG)
105 ## We need a special rule to install the programs which are built with
106 ## -new, and to rename cxxfilt to c++filt.
107 RENAMED_PROGS = $(NM_PROG) $(STRIP_PROG) $(DEMANGLER_PROG)
108 noinst_PROGRAMS = $(RENAMED_PROGS) $(TEST_PROGS) @BUILD_MISC@
110 EXTRA_PROGRAMS = srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(WINDMC_PROG) $(DLLWRAP_PROG)
112 # Stuff that goes in tooldir/ if appropriate.
113 TOOL_PROGS = nm-new strip-new ar ranlib dlltool objdump objcopy readelf
115 BASEDIR = $(srcdir)/..
116 BFDDIR = $(BASEDIR)/bfd
117 INCDIR = $(BASEDIR)/include
119 AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \
122 @LARGEFILE_CPPFLAGS@ \
123 -DLOCALEDIR="\"$(datadir)/locale\"" \
124 -Dbin_dummy_emulation=$(EMULATION_VECTOR)
127 arsup.h binemul.h bucomm.h budbg.h \
128 coffgrok.h debug.h demanguse.h dlltool.h dwarf.h elfcomm.h \
129 objdump.h sysdep.h unwind-ia64.h windres.h winduni.h windint.h \
132 GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h mcparse.h
133 BUILT_SOURCES = $(GENERATED_HFILES)
136 addr2line.c ar.c arsup.c bin2c.c binemul.c bucomm.c \
137 coffdump.c coffgrok.c cxxfilt.c \
138 dwarf.c debug.c demanguse.c dlltool.c dllwrap.c \
139 elfcomm.c emul_aix.c emul_vanilla.c filemode.c \
140 is-ranlib.c is-strip.c maybe-ranlib.c maybe-strip.c \
141 nm.c not-ranlib.c not-strip.c \
142 objcopy.c objdump.c prdbg.c \
143 od-elf32_avr.c od-macho.c od-pe.c od-xcoff.c \
144 rclex.c rdcoff.c rddbg.c readelf.c rename.c \
145 resbin.c rescoff.c resrc.c resres.c \
146 size.c srconv.c stabs.c strings.c sysdump.c \
147 syslex_wrap.c unwind-ia64.c elfedit.c version.c \
148 windres.c winduni.c wrstabs.c \
152 arparse.c arlex.c sysroff.c sysinfo.c syslex.c \
153 defparse.c deflex.c rcparse.c mcparse.c
155 DEBUG_SRCS = rddbg.c debug.c stabs.c rdcoff.c
156 WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c
158 # Extra object files for objdump
159 OBJDUMP_PRIVATE_OFILES = @OBJDUMP_PRIVATE_OFILES@
161 # Code shared by all the binutils.
162 BULIBS = bucomm.c version.c filemode.c
164 # Code shared by the ELF related programs.
167 BFDLIB = ../bfd/libbfd.la
169 OPCODES = ../opcodes/libopcodes.la
172 LIBCTF = ../libctf/libctf.la
173 LIBCTF_NOBFD = ../libctf/libctf-nobfd.la
179 LIBSFRAME = ../libsframe/libsframe.la
181 LIBIBERTY = ../libiberty/libiberty.a
183 POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES)
184 po/POTFILES.in: @MAINT@ Makefile
185 for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
186 && mv tmp $(srcdir)/po/POTFILES.in
192 if [ -f $$r/../gcc/xgcc ] ; then \
193 if [ -f $$r/../newlib/Makefile ] ; then \
194 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
196 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
199 if [ "@host@" = "@target@" ] ; then \
202 echo gcc | sed '$(transform)'; \
206 check-DEJAGNU: site.exp
207 srcdir=`cd $(srcdir) && pwd`; export srcdir; \
209 LC_ALL=C; export LC_ALL; \
210 EXPECT=$(EXPECT); export EXPECT; \
211 runtest=$(RUNTEST); \
212 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
213 $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
214 CC="$(CC)" CFLAGS="$(CFLAGS)" \
215 CC_FOR_BUILD="$(CC_FOR_BUILD)" \
216 CC_FOR_TARGET="$(CC_FOR_TARGET)" \
217 CFLAGS_FOR_TARGET="$(filter-out -ffile-prefix-map=%,$(CFLAGS_FOR_TARGET)) -O0" \
219 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
222 development.exp: $(BFDDIR)/development.sh
223 $(AM_V_GEN)$(EGREP) "(development|experimental)=" $(BFDDIR)/development.sh \
224 | $(AWK) -F= '{ print "set " $$1 " " $$2 }' > $@
227 /bin/sh $(srcdir)/sanity.sh $(bindir)
229 # There's no global DEPENDENCIES. So, we must explicitly list everything
230 # which depends on libintl, since we don't know whether LIBINTL_DEP will be
231 # non-empty until configure time. Ugh!
232 size_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
233 objdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) $(OPCODES) $(LIBCTF) $(OBJDUMP_PRIVATE_OFILES) $(LIBSFRAME)
234 nm_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
235 ar_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
236 strings_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
237 strip_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
238 ranlib_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
239 cxxfilt_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
240 objcopy_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
241 srconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
242 sysdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
243 coffdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
244 dlltool_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
245 windres_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
246 windmc_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
247 addr2line_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
248 readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(LIBCTF_NOBFD) $(LIBSFRAME)
249 elfedit_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
250 dllwrap_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
251 bfdtest1_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
252 bfdtest2_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
254 LDADD = $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
256 size_SOURCES = size.c $(BULIBS)
258 objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
260 strings_SOURCES = strings.c $(BULIBS)
262 readelf_SOURCES = readelf.c version.c unwind-ia64.c dwarf.c demanguse.c $(ELFLIBS)
263 readelf_LDADD = $(LIBCTF_NOBFD) $(LIBINTL) $(LIBIBERTY) $(ZLIB) $(ZSTD_LIBS) $(DEBUGINFOD_LIBS) $(MSGPACK_LIBS) $(LIBSFRAME)
265 elfedit_SOURCES = elfedit.c version.c $(ELFLIBS)
266 elfedit_LDADD = $(LIBINTL) $(LIBIBERTY)
268 strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
270 nm_new_SOURCES = nm.c demanguse.c $(BULIBS)
272 objdump_SOURCES = objdump.c dwarf.c prdbg.c demanguse.c $(DEBUG_SRCS) $(BULIBS) $(ELFLIBS)
273 EXTRA_objdump_SOURCES = od-elf32_avr.c od-macho.c od-xcoff.c od-pe.c
274 objdump_LDADD = $(OBJDUMP_PRIVATE_OFILES) $(OPCODES) $(LIBCTF) $(BFDLIB) $(LIBIBERTY) $(LIBINTL) $(DEBUGINFOD_LIBS) $(LIBSFRAME)
276 objdump.@OBJEXT@:objdump.c
278 $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(OBJDUMP_DEFS) $(srcdir)/objdump.c
279 $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
282 source='objdump.c' object='$@' libtool=no @AMDEPBACKSLASH@
283 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
285 $(AM_V_CC)$(COMPILE) -c $(OBJDUMP_DEFS) $(srcdir)/objdump.c
288 cxxfilt_SOURCES = cxxfilt.c $(BULIBS)
290 ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c binemul.c \
291 emul_$(EMULATION).c $(BULIBS)
292 EXTRA_ar_SOURCES = $(CFILES)
293 ar_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
295 ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c \
296 binemul.c emul_$(EMULATION).c $(BULIBS)
297 ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
299 addr2line_SOURCES = addr2line.c $(BULIBS)
301 # The following is commented out for the conversion to automake.
302 # This rule creates a single binary that switches between ar and ranlib
303 # by looking at argv[0]. Use this kludge to save some disk space.
304 # However, you have to install things by hand.
305 # (That is after 'make install', replace the installed ranlib by a link to ar.)
306 # Alternatively, you can install ranlib.sh as ranlib.
307 # ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o
308 # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS)
309 # -rm -f $(RANLIB_PROG)
310 # -ln $(AR_PROG) $(RANLIB_PROG)
312 # objcopy and strip in one binary that uses argv[0] to decide its action.
314 #objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o
315 # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS)
316 # -rm -f $(STRIP_PROG)
317 # -ln $(OBJCOPY_PROG) $(STRIP_PROG)
319 sysroff.c: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
320 $(AM_V_GEN)./sysinfo$(EXEEXT_FOR_BUILD) -c <$(srcdir)/sysroff.info >sysroff.c
321 $(AM_V_at)./sysinfo$(EXEEXT_FOR_BUILD) -i <$(srcdir)/sysroff.info >>sysroff.c
322 $(AM_V_at)./sysinfo$(EXEEXT_FOR_BUILD) -g <$(srcdir)/sysroff.info >>sysroff.c
324 sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
325 $(AM_V_GEN)./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h
327 sysinfo$(EXEEXT_FOR_BUILD): sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
328 $(AM_V_CCLD)$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
330 syslex_wrap.@OBJEXT@: syslex_wrap.c syslex.c sysinfo.h config.h
331 $(AM_V_CC)$(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/syslex_wrap.c
333 sysinfo.@OBJEXT@: sysinfo.c
334 $(AM_V_CC)if [ -r sysinfo.c ]; then \
335 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(NO_WERROR) sysinfo.c ; \
337 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \
340 bin2c$(EXEEXT_FOR_BUILD): bin2c.c
341 $(AM_V_CCLD)$(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c
343 embedspu: embedspu.sh Makefile
344 $(AM_V_GEN)awk '/^program_transform_name=/ {print "program_transform_name=\"$(program_transform_name)\""; next} {print}' < $< > $@
345 $(AM_V_at)chmod a+x $@
347 # We need these for parallel make.
350 # Disable -Werror, if it has been enabled, since old versions of bison/
351 # yacc will produce working code which contain compile time warnings.
352 arparse.@OBJEXT@: arparse.c
354 $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
355 $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
358 source='arparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
359 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
361 $(AM_V_CC)$(COMPILE) -c `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
364 arlex.@OBJEXT@: arlex.c
366 $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
367 $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
370 source='arlex.c' object='$@' libtool=no @AMDEPBACKSLASH@
371 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
373 $(AM_V_CC)$(COMPILE) -c `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
376 dwarf.@OBJEXT@: dwarf.c
378 $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo $(DEBUGINFOD_CFLAGS) -c -o $@ $(srcdir)/dwarf.c
379 $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
382 source='dwarf.c' object='$@' libtool=no @AMDEPBACKSLASH@
383 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
385 $(AM_V_CC)$(COMPILE) $(DEBUGINFOD_CFLAGS) -c -o $@ $(srcdir)/dwarf.c
388 readelf.@OBJEXT@: readelf.c
390 $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo $(MSGPACK_CFLAGS) -c -o $@ $(srcdir)/readelf.c
391 $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
394 source='readelf.c' object='$@' libtool=no @AMDEPBACKSLASH@
395 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
397 $(AM_V_CC)$(COMPILE) $(MSGPACK_CFLAGS) -c -o $@ $(srcdir)/readelf.c
400 sysroff.@OBJEXT@: sysroff.c
402 $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
403 $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
406 source='sysroff.c' object='$@' libtool=no @AMDEPBACKSLASH@
407 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
409 $(AM_V_CC)$(COMPILE) -c `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
412 defparse.@OBJEXT@: defparse.c
414 $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
415 $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
418 source='defparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
419 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
421 $(AM_V_CC)$(COMPILE) -c `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
424 deflex.@OBJEXT@: deflex.c
426 $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
427 $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
430 source='deflex.c' object='$@' libtool=no @AMDEPBACKSLASH@
431 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
433 $(AM_V_CC)$(COMPILE) -c `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
436 rcparse.@OBJEXT@: rcparse.c
438 $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
439 $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
442 source='rcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
443 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
445 $(AM_V_CC)$(COMPILE) -c `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
448 mcparse.@OBJEXT@: mcparse.c
450 $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
451 $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
454 source='mcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
455 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
457 $(AM_V_CC)$(COMPILE) -c `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
460 rclex.@OBJEXT@: rclex.c
462 $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/rclex.c $(NO_WERROR)
463 $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
466 source='rclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
467 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
469 $(AM_V_CC)$(COMPILE) -c $(srcdir)/rclex.c $(NO_WERROR)
472 mclex.@OBJEXT@: mclex.c
474 $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/mclex.c $(NO_WERROR)
475 $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
478 source='mclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
479 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
481 $(AM_V_CC)$(COMPILE) -c $(srcdir)/mclex.c $(NO_WERROR)
484 srconv_SOURCES = srconv.c coffgrok.c $(BULIBS)
485 srconv.@OBJEXT@: sysroff.c
487 dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS)
488 dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
492 $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
493 $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
496 source='dlltool.c' object='$@' libtool=no @AMDEPBACKSLASH@
497 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
499 $(AM_V_CC)$(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
504 $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
505 $(AM_V_at)mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
508 source='rescoff.c' object='$@' libtool=no @AMDEPBACKSLASH@
509 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
511 $(AM_V_CC)$(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
514 coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
516 sysdump_SOURCES = sysdump.c $(BULIBS)
517 sysdump.@OBJEXT@: sysroff.c
519 windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.c \
520 winduni.c resres.c $(BULIBS)
521 windres_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL) $(LIBICONV)
523 windmc_SOURCES = windmc.c mcparse.y mclex.c \
525 windmc_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL) $(LIBICONV)
527 dllwrap_SOURCES = dllwrap.c version.c
528 dllwrap_LDADD = $(LIBIBERTY) $(LIBINTL)
531 EXTRA_DIST = arparse.c arparse.h arlex.c sysinfo.c sysinfo.h \
532 syslex.c deflex.c defparse.h defparse.c rcparse.h rcparse.c \
533 mcparse.h mcparse.c embedspu.sh
535 diststuff: $(EXTRA_DIST) info
538 # development.sh is used to determine -Werror default.
539 CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh
541 EXTRA_DEJAGNU_SITE_CONFIG = development.exp
543 DISTCLEANFILES = sysroff.c sysroff.h site.exp development.exp \
546 MOSTLYCLEANFILES = sysinfo$(EXEEXT_FOR_BUILD) bin2c$(EXEEXT_FOR_BUILD) \
547 binutils.log binutils.sum abcdefgh*
551 .PHONY: install-exec-local
553 install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS)
554 @list='$(RENAMED_PROGS)'; for p in $$list; do \
555 if test -f $$p$(EXEEXT); then \
556 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)/'`"; \
557 $(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)/'`; \
560 $(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
561 for i in $(TOOL_PROGS); do \
562 if [ -f $$i$(EXEEXT) ]; then \
563 j=`echo $$i | sed -e 's/-new//'`; \
564 k=`echo $$j | sed '$(transform)'`; \
565 if [ "$(bindir)/$$k" != "$(tooldir)/bin/$$j" ]; then \
566 rm -f $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
567 ln $(DESTDIR)$(bindir)/$$k$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
568 || $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \