1 ## Process this file with automake to generate Makefile.in
3 AUTOMAKE_OPTIONS = dejagnu no-dist foreign
4 ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
8 tooldir = $(exec_prefix)/$(target_alias)
10 ## These aren't set by automake, because they appear in
11 ## bfd/acinclude.m4, which is included by binutils/acinclude.m4, and
12 ## thus is not seen by automake.
13 CC_FOR_BUILD = @CC_FOR_BUILD@
14 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
16 YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
18 LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
20 # Automake 1.10+ disables lex and yacc output file regeneration if
21 # maintainer mode is disabled. Avoid this.
25 WARN_CFLAGS = @WARN_CFLAGS@
26 NO_WERROR = @NO_WERROR@
27 AM_CFLAGS = $(WARN_CFLAGS)
30 # these two are almost the same program
34 # objcopy and strip should be the same program
44 # These should all be the same program too.
49 # This is the demangler, as a standalone program.
50 # Note: This one is used as the installed name too, unlike the above.
51 DEMANGLER_PROG=cxxfilt
53 ADDR2LINE_PROG=addr2line
61 SRCONV_PROG=srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT)
63 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@
65 bin_SCRIPTS = @BUILD_INSTALL_MISC@
66 EXTRA_SCRIPTS = embedspu
69 BFDTEST1_PROG = bfdtest1
71 TEST_PROGS = $(BFDTEST1_PROG)
73 ## We need a special rule to install the programs which are built with
74 ## -new, and to rename cxxfilt to c++filt.
75 RENAMED_PROGS = $(NM_PROG) $(STRIP_PROG) $(DEMANGLER_PROG)
76 noinst_PROGRAMS = $(RENAMED_PROGS) $(TEST_PROGS) @BUILD_MISC@
78 EXTRA_PROGRAMS = $(NLMCONV_PROG) srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(WINDMC_PROG) $(DLLWRAP_PROG)
80 # Stuff that goes in tooldir/ if appropriate.
81 TOOL_PROGS = nm-new strip-new ar ranlib dlltool objdump objcopy
83 BASEDIR = $(srcdir)/..
84 BFDDIR = $(BASEDIR)/bfd
85 INCDIR = $(BASEDIR)/include
87 AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \
90 -DLOCALEDIR="\"$(datadir)/locale\"" \
91 -Dbin_dummy_emulation=$(EMULATION_VECTOR)
94 arsup.h binemul.h bucomm.h budbg.h \
95 coffgrok.h debug.h dlltool.h dwarf.h elfcomm.h nlmconv.h \
96 objdump.h sysdep.h unwind-ia64.h windres.h winduni.h windint.h \
99 GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h mcparse.h
100 BUILT_SOURCES = $(GENERATED_HFILES)
103 addr2line.c ar.c arsup.c bin2c.c binemul.c bucomm.c \
104 coffdump.c coffgrok.c cxxfilt.c \
105 dwarf.c debug.c dlltool.c dllwrap.c \
106 elfcomm.c emul_aix.c emul_vanilla.c filemode.c \
107 ieee.c is-ranlib.c is-strip.c maybe-ranlib.c maybe-strip.c \
108 nlmconv.c nm.c not-ranlib.c not-strip.c \
109 objcopy.c objdump.c prdbg.c \
110 od-xcoff.c od-macho.c \
111 rclex.c rdcoff.c rddbg.c readelf.c rename.c \
112 resbin.c rescoff.c resrc.c resres.c \
113 size.c srconv.c stabs.c strings.c sysdump.c \
114 syslex_wrap.c unwind-ia64.c elfedit.c version.c \
115 windres.c winduni.c wrstabs.c \
119 arparse.c arlex.c sysroff.c sysinfo.c syslex.c \
120 defparse.c deflex.c nlmheader.c rcparse.c mcparse.c
122 DEBUG_SRCS = rddbg.c debug.c stabs.c ieee.c rdcoff.c
123 WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c
125 # Extra object files for objdump
126 OBJDUMP_PRIVATE_OFILES = @OBJDUMP_PRIVATE_OFILES@
128 # Code shared by all the binutils.
129 BULIBS = bucomm.c version.c filemode.c
131 # Code shared by the ELF related programs.
134 BFDLIB = ../bfd/libbfd.la
136 OPCODES = ../opcodes/libopcodes.la
138 LIBIBERTY = ../libiberty/libiberty.a
140 POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES)
141 po/POTFILES.in: @MAINT@ Makefile
142 for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
143 && mv tmp $(srcdir)/po/POTFILES.in
149 if [ -f $$r/../gcc/xgcc ] ; then \
150 if [ -f $$r/../newlib/Makefile ] ; then \
151 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
153 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
156 if [ "@host@" = "@target@" ] ; then \
159 echo gcc | sed '$(transform)'; \
163 check-DEJAGNU: site.exp
164 srcdir=`cd $(srcdir) && pwd`; export srcdir; \
166 LC_ALL=C; export LC_ALL; \
167 EXPECT=$(EXPECT); export EXPECT; \
168 runtest=$(RUNTEST); \
169 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
170 CC_FOR_TARGET="$(CC_FOR_TARGET)" CFLAGS_FOR_TARGET="$(CFLAGS)" \
171 $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
173 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
177 /bin/sh $(srcdir)/sanity.sh $(bindir)
179 # There's no global DEPENDENCIES. So, we must explicitly list everything
180 # which depends on libintl, since we don't know whether LIBINTL_DEP will be
181 # non-empty until configure time. Ugh!
182 size_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
183 objdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) $(OPCODES) $(OBJDUMP_PRIVATE_OFILES)
184 nm_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
185 ar_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
186 strings_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
187 strip_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
188 ranlib_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
189 cxxfilt_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
190 objcopy_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
191 nlmconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
192 srconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
193 sysdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
194 coffdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
195 dlltool_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
196 windres_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
197 windmc_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
198 addr2line_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
199 readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
200 elfedit_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
201 dllwrap_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY)
202 bfdtest1_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB)
204 LDADD = $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
206 size_SOURCES = size.c $(BULIBS)
208 objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
210 strings_SOURCES = strings.c $(BULIBS)
212 readelf_SOURCES = readelf.c version.c unwind-ia64.c dwarf.c $(ELFLIBS)
213 readelf_LDADD = $(LIBINTL) $(LIBIBERTY)
215 elfedit_SOURCES = elfedit.c version.c $(ELFLIBS)
216 elfedit_LDADD = $(LIBINTL) $(LIBIBERTY)
218 strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS)
220 nm_new_SOURCES = nm.c $(BULIBS)
222 objdump_SOURCES = objdump.c dwarf.c prdbg.c $(DEBUG_SRCS) $(BULIBS) $(ELFLIBS)
223 EXTRA_objdump_SOURCES = od-xcoff.c
224 objdump_LDADD = $(OBJDUMP_PRIVATE_OFILES) $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
226 objdump.@OBJEXT@:objdump.c
228 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(OBJDUMP_DEFS) $(srcdir)/objdump.c
229 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
232 source='objdump.c' object='$@' libtool=no @AMDEPBACKSLASH@
233 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
235 $(COMPILE) -c $(OBJDUMP_DEFS) $(srcdir)/objdump.c
238 cxxfilt_SOURCES = cxxfilt.c $(BULIBS)
240 ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c binemul.c \
241 emul_$(EMULATION).c $(BULIBS)
242 EXTRA_ar_SOURCES = $(CFILES)
243 ar_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
245 ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c \
246 binemul.c emul_$(EMULATION).c $(BULIBS)
247 ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
249 addr2line_SOURCES = addr2line.c $(BULIBS)
251 # The following is commented out for the conversion to automake.
252 # This rule creates a single binary that switches between ar and ranlib
253 # by looking at argv[0]. Use this kludge to save some disk space.
254 # However, you have to install things by hand.
255 # (That is after 'make install', replace the installed ranlib by a link to ar.)
256 # Alternatively, you can install ranlib.sh as ranlib.
257 # ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o
258 # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS)
259 # -rm -f $(RANLIB_PROG)
260 # -ln $(AR_PROG) $(RANLIB_PROG)
262 # objcopy and strip in one binary that uses argv[0] to decide its action.
264 #objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o
265 # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS)
266 # -rm -f $(STRIP_PROG)
267 # -ln $(OBJCOPY_PROG) $(STRIP_PROG)
269 sysroff.c: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
270 ./sysinfo$(EXEEXT_FOR_BUILD) -c <$(srcdir)/sysroff.info >sysroff.c
271 ./sysinfo$(EXEEXT_FOR_BUILD) -i <$(srcdir)/sysroff.info >>sysroff.c
272 ./sysinfo$(EXEEXT_FOR_BUILD) -g <$(srcdir)/sysroff.info >>sysroff.c
274 sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
275 ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h
277 sysinfo$(EXEEXT_FOR_BUILD): sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
278 $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@
280 syslex_wrap.@OBJEXT@: syslex_wrap.c syslex.c sysinfo.h config.h
281 $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/syslex_wrap.c
283 sysinfo.@OBJEXT@: sysinfo.c
284 if [ -r sysinfo.c ]; then \
285 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) sysinfo.c ; \
287 $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \
290 bin2c$(EXEEXT_FOR_BUILD): bin2c.c
291 $(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c
293 embedspu: embedspu.sh Makefile
294 awk '/^program_transform_name=/ {print "program_transform_name=\"$(program_transform_name)\""; next} {print}' < $< > $@
297 # We need these for parallel make.
300 # Disable -Werror, if it has been enabled, since old versions of bison/
301 # yacc will produce working code which contain compile time warnings.
302 arparse.@OBJEXT@: arparse.c
304 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
305 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
308 source='arparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
309 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
311 $(COMPILE) -c `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR)
314 arlex.@OBJEXT@: arlex.c
316 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
320 source='arlex.c' object='$@' libtool=no @AMDEPBACKSLASH@
321 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
323 $(COMPILE) -c `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR)
326 sysroff.@OBJEXT@: sysroff.c
328 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
329 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
332 source='sysroff.c' object='$@' libtool=no @AMDEPBACKSLASH@
333 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
335 $(COMPILE) -c `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR)
338 defparse.@OBJEXT@: defparse.c
340 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
341 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
344 source='defparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
345 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
347 $(COMPILE) -c `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR)
350 deflex.@OBJEXT@: deflex.c
352 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
353 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
356 source='deflex.c' object='$@' libtool=no @AMDEPBACKSLASH@
357 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
359 $(COMPILE) -c `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR)
362 nlmheader.@OBJEXT@: nlmheader.c
364 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
365 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
368 source='nlmheader.c' object='$@' libtool=no @AMDEPBACKSLASH@
369 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
371 $(COMPILE) -c `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR)
374 rcparse.@OBJEXT@: rcparse.c
376 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
377 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
380 source='rcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
381 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
383 $(COMPILE) -c `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR)
386 mcparse.@OBJEXT@: mcparse.c
388 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
389 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
392 source='mcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@
393 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
395 $(COMPILE) -c `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR)
398 rclex.@OBJEXT@: rclex.c
400 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/rclex.c $(NO_WERROR)
401 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
404 source='rclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
405 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
407 $(COMPILE) -c $(srcdir)/rclex.c $(NO_WERROR)
410 mclex.@OBJEXT@: mclex.c
412 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/mclex.c $(NO_WERROR)
413 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
416 source='mclex.c' object='$@' libtool=no @AMDEPBACKSLASH@
417 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
419 $(COMPILE) -c $(srcdir)/mclex.c $(NO_WERROR)
422 srconv_SOURCES = srconv.c coffgrok.c $(BULIBS)
423 srconv.@OBJEXT@: sysroff.c
425 dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS)
426 dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL)
430 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
431 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
434 source='dlltool.c' object='$@' libtool=no @AMDEPBACKSLASH@
435 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
437 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
442 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
443 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
446 source='rescoff.c' object='$@' libtool=no @AMDEPBACKSLASH@
447 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
449 $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c
452 coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
454 sysdump_SOURCES = sysdump.c $(BULIBS)
455 sysdump.@OBJEXT@: sysroff.c
457 # coff/sym.h and coff/ecoff.h won't be found by the automatic dependency
458 # scripts, since they are only included conditionally.
459 nlmconv.@OBJEXT@: nlmconv.c
461 ldname=`echo ld | sed '$(transform)'`; \
462 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ \
463 -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
464 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
467 source='nlmconv.c' object='$@' libtool=no @AMDEPBACKSLASH@
468 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
470 ldname=`echo ld | sed '$(transform)'`; \
471 $(COMPILE) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
474 nlmconv_SOURCES = nlmconv.c nlmheader.y $(BULIBS)
476 windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.c \
477 winduni.c resres.c $(BULIBS)
478 windres_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL) $(LIBICONV)
480 windmc_SOURCES = windmc.c mcparse.y mclex.c \
482 windmc_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL) $(LIBICONV)
484 dllwrap_SOURCES = dllwrap.c version.c
485 dllwrap_LDADD = $(LIBIBERTY) $(LIBINTL)
488 EXTRA_DIST = arparse.c arparse.h arlex.c nlmheader.c sysinfo.c sysinfo.h \
489 syslex.c deflex.c defparse.h defparse.c rcparse.h rcparse.c \
490 mcparse.h mcparse.c embedspu.sh
492 diststuff: $(EXTRA_DIST) info
495 # We extract version from bfd/configure.in, make sure to rerun configure
496 # when BFD's version changes.
497 CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in
499 DISTCLEANFILES = sysroff.c sysroff.h site.exp site.bak embedspu
501 MOSTLYCLEANFILES = sysinfo$(EXEEXT_FOR_BUILD) bin2c$(EXEEXT_FOR_BUILD) \
502 binutils.log binutils.sum abcdefgh*
506 .PHONY: install-exec-local
508 install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS)
509 @list='$(RENAMED_PROGS)'; for p in $$list; do \
510 if test -f $$p$(EXEEXT); then \
511 echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p$(EXEEXT) $(bindir)/`echo $$p|sed -e 's/-new//' -e 's/cxxfilt/$(DEMANGLER_NAME)/'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
512 $(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)/'`; \
515 $(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
516 for i in $(TOOL_PROGS); do \
517 if [ -f $$i$(EXEEXT) ]; then \
518 j=`echo $$i | sed -e 's/-new//'`; \
519 k=`echo $$j | sed '$(transform)'`; \
520 if [ "$(bindir)/$$k" != "$(tooldir)/bin/$$j" ]; then \
521 rm -f $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \
522 ln $(DESTDIR)$(bindir)/$$k$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
523 || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \