1 ## Process this file with automake to generate Makefile.in
3 # Copyright (C) 2012-2017 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 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
87 SRCONV_PROG=srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT)
89 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@
91 bin_SCRIPTS = @BUILD_INSTALL_MISC@
92 EXTRA_SCRIPTS = embedspu
95 BFDTEST1_PROG = bfdtest1
96 BFDTEST2_PROG = bfdtest2
98 TEST_PROGS = $(BFDTEST1_PROG) $(BFDTEST2_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 = $(NLMCONV_PROG) 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 nlmconv.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 ieee.c is-ranlib.c is-strip.c maybe-ranlib.c maybe-strip.c \
135 nlmconv.c 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 nlmheader.c rcparse.c mcparse.c
149 DEBUG_SRCS = rddbg.c debug.c stabs.c ieee.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 LIBIBERTY = ../libiberty/libiberty.a
167 POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES)
168 po/POTFILES.in: @MAINT@ Makefile
169 for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
170 && mv tmp $(srcdir)/po/POTFILES.in
176 if [ -f $$r/../gcc/xgcc ] ; then \
177 if [ -f $$r/../newlib/Makefile ] ; then \
178 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
180 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
183 if [ "@host@" = "@target@" ] ; then \
186 echo gcc | sed '$(transform)'; \
190 check-DEJAGNU: site.exp
191 srcdir=`cd $(srcdir) && pwd`; export srcdir; \
193 LC_ALL=C; export LC_ALL; \
194 EXPECT=$(EXPECT); export EXPECT; \
195 runtest=$(RUNTEST); \
196 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
197 CC="$(CC)" CC_FOR_BUILD="$(CC_FOR_BUILD)" \
198 CC_FOR_TARGET="$(CC_FOR_TARGET)" CFLAGS_FOR_TARGET="$(CFLAGS)" \
199 $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
201 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
205 /bin/sh $(srcdir)/sanity.sh $(bindir)
207 # There's no global DEPENDENCIES. So, we must explicitly list everything
208 # which depends on libintl, since we don't know whether LIBINTL_DEP will be
209 # non-empty until configure time. Ugh!
210 size_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
211 objdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) $(OPCODES) $(OBJDUMP_PRIVATE_OFILES)
212 nm_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
213 ar_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
214 strings_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
215 strip_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
216 ranlib_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
217 cxxfilt_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
218 objcopy_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
219 nlmconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
220 srconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
221 sysdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
222 coffdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
223 dlltool_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
224 windres_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
225 windmc_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
226 addr2line_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
227 readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
228 elfedit_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
229 dllwrap_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
230 bfdtest1_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
231 bfdtest2_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
233 LDADD = $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
235 size_SOURCES = size.c $(BULIBS)
237 objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
239 strings_SOURCES = strings.c $(BULIBS)
241 readelf_SOURCES = readelf.c version.c unwind-ia64.c dwarf.c $(ELFLIBS)
242 readelf_LDADD = $(LIBINTL) $(LIBIBERTY) $(ZLIB)
244 elfedit_SOURCES = elfedit.c version.c $(ELFLIBS)
245 elfedit_LDADD = $(LIBINTL) $(LIBIBERTY)
247 strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
249 nm_new_SOURCES = nm.c $(BULIBS)
251 objdump_SOURCES = objdump.c dwarf.c prdbg.c $(DEBUG_SRCS) $(BULIBS) $(ELFLIBS)
252 EXTRA_objdump_SOURCES = od-xcoff.c
253 objdump_LDADD = $(OBJDUMP_PRIVATE_OFILES) $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
255 objdump.@OBJEXT@:objdump.c
257 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(OBJDUMP_DEFS) $(srcdir)/objdump.c
258 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
261 source='objdump.c' object='$@' libtool=no @AMDEPBACKSLASH@
262 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
264 $(COMPILE) -c $(OBJDUMP_DEFS) $(srcdir)/objdump.c
267 cxxfilt_SOURCES = cxxfilt.c $(BULIBS)
269 ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c binemul.c \
270 emul_$(EMULATION).c $(BULIBS)
271 EXTRA_ar_SOURCES = $(CFILES)
272 ar_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
274 ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c \
275 binemul.c emul_$(EMULATION).c $(BULIBS)
276 ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
278 addr2line_SOURCES = addr2line.c $(BULIBS)
280 # The following is commented out for the conversion to automake.
281 # This rule creates a single binary that switches between ar and ranlib
282 # by looking at argv[0]. Use this kludge to save some disk space.
283 # However, you have to install things by hand.
284 # (That is after 'make install', replace the installed ranlib by a link to ar.)
285 # Alternatively, you can install ranlib.sh as ranlib.
286 # ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o
287 # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS)
288 # -rm -f $(RANLIB_PROG)
289 # -ln $(AR_PROG) $(RANLIB_PROG)
291 # objcopy and strip in one binary that uses argv[0] to decide its action.
293 #objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o
294 # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS)
295 # -rm -f $(STRIP_PROG)
296 # -ln $(OBJCOPY_PROG) $(STRIP_PROG)
298 sysroff.c: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
299 ./sysinfo$(EXEEXT_FOR_BUILD) -c <$(srcdir)/sysroff.info >sysroff.c
300 ./sysinfo$(EXEEXT_FOR_BUILD) -i <$(srcdir)/sysroff.info >>sysroff.c
301 ./sysinfo$(EXEEXT_FOR_BUILD) -g <$(srcdir)/sysroff.info >>sysroff.c
303 sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
304 ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h
306 sysinfo$(EXEEXT_FOR_BUILD): sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
307 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
309 syslex_wrap.@OBJEXT@: syslex_wrap.c syslex.c sysinfo.h config.h
310 $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/syslex_wrap.c
312 sysinfo.@OBJEXT@: sysinfo.c
313 if [ -r sysinfo.c ]; then \
314 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(NO_WERROR) sysinfo.c ; \
316 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \
319 bin2c$(EXEEXT_FOR_BUILD): bin2c.c
320 $(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c
322 embedspu: embedspu.sh Makefile
323 awk '/^program_transform_name=/ {print "program_transform_name=\"$(program_transform_name)\""; next} {print}' < $< > $@
326 # We need these for parallel make.
329 # Disable -Werror, if it has been enabled, since old versions of bison/
330 # yacc will produce working code which contain compile time warnings.
331 arparse.@OBJEXT@: arparse.c
333 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
334 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
337 source='arparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
338 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
340 $(COMPILE) -c `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
343 arlex.@OBJEXT@: arlex.c
345 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
346 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
349 source='arlex.c' object='$@' libtool=no @AMDEPBACKSLASH@
350 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
352 $(COMPILE) -c `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
355 sysroff.@OBJEXT@: sysroff.c
357 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
358 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
361 source='sysroff.c' object='$@' libtool=no @AMDEPBACKSLASH@
362 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
364 $(COMPILE) -c `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
367 defparse.@OBJEXT@: defparse.c
369 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
370 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
373 source='defparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
374 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
376 $(COMPILE) -c `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
379 deflex.@OBJEXT@: deflex.c
381 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
382 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
385 source='deflex.c' object='$@' libtool=no @AMDEPBACKSLASH@
386 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
388 $(COMPILE) -c `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
391 nlmheader.@OBJEXT@: nlmheader.c
393 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
394 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
397 source='nlmheader.c' object='$@' libtool=no @AMDEPBACKSLASH@
398 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
400 $(COMPILE) -c `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
403 rcparse.@OBJEXT@: rcparse.c
405 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
406 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
409 source='rcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
410 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
412 $(COMPILE) -c `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
415 mcparse.@OBJEXT@: mcparse.c
417 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
418 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
421 source='mcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
422 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
424 $(COMPILE) -c `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
427 rclex.@OBJEXT@: rclex.c
429 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/rclex.c $(NO_WERROR)
430 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
433 source='rclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
434 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
436 $(COMPILE) -c $(srcdir)/rclex.c $(NO_WERROR)
439 mclex.@OBJEXT@: mclex.c
441 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/mclex.c $(NO_WERROR)
442 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
445 source='mclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
446 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
448 $(COMPILE) -c $(srcdir)/mclex.c $(NO_WERROR)
451 srconv_SOURCES = srconv.c coffgrok.c $(BULIBS)
452 srconv.@OBJEXT@: sysroff.c
454 dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS)
455 dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL)
459 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
460 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
463 source='dlltool.c' object='$@' libtool=no @AMDEPBACKSLASH@
464 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
466 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
471 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
472 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
475 source='rescoff.c' object='$@' libtool=no @AMDEPBACKSLASH@
476 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
478 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
481 coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
483 sysdump_SOURCES = sysdump.c $(BULIBS)
484 sysdump.@OBJEXT@: sysroff.c
486 # coff/sym.h and coff/ecoff.h won't be found by the automatic dependency
487 # scripts, since they are only included conditionally.
488 nlmconv.@OBJEXT@: nlmconv.c
490 ldname=`echo ld | sed '$(transform)'`; \
491 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ \
492 -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
493 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
496 source='nlmconv.c' object='$@' libtool=no @AMDEPBACKSLASH@
497 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
499 ldname=`echo ld | sed '$(transform)'`; \
500 $(COMPILE) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
503 nlmconv_SOURCES = nlmconv.c nlmheader.y $(BULIBS)
505 windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.c \
506 winduni.c resres.c $(BULIBS)
507 windres_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL) $(LIBICONV)
509 windmc_SOURCES = windmc.c mcparse.y mclex.c \
511 windmc_LDADD = $(BFDLIB) $(LIBIBERTY) $(LEXLIB) $(LIBINTL) $(LIBICONV)
513 dllwrap_SOURCES = dllwrap.c version.c
514 dllwrap_LDADD = $(LIBIBERTY) $(LIBINTL)
517 EXTRA_DIST = arparse.c arparse.h arlex.c nlmheader.c sysinfo.c sysinfo.h \
518 syslex.c deflex.c defparse.h defparse.c rcparse.h rcparse.c \
519 mcparse.h mcparse.c embedspu.sh
521 diststuff: $(EXTRA_DIST) info
524 # development.sh is used to determine -Werror default.
525 CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh
527 DISTCLEANFILES = sysroff.c sysroff.h site.exp site.bak embedspu
529 MOSTLYCLEANFILES = sysinfo$(EXEEXT_FOR_BUILD) bin2c$(EXEEXT_FOR_BUILD) \
530 binutils.log binutils.sum abcdefgh*
534 .PHONY: install-exec-local
536 install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS)
537 @list='$(RENAMED_PROGS)'; for p in $$list; do \
538 if test -f $$p$(EXEEXT); then \
539 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)/'`"; \
540 $(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)/'`; \
543 $(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
544 for i in $(TOOL_PROGS); do \
545 if [ -f $$i$(EXEEXT) ]; then \
546 j=`echo $$i | sed -e 's/-new//'`; \
547 k=`echo $$j | sed '$(transform)'`; \
548 if [ "$(bindir)/$$k" != "$(tooldir)/bin/$$j" ]; then \
549 rm -f $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
550 ln $(DESTDIR)$(bindir)/$$k$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
551 || $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \