| 1 | ## Process this file with automake to generate Makefile.in |
| 2 | |
| 3 | AUTOMAKE_OPTIONS = dejagnu no-dist foreign |
| 4 | ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd |
| 5 | |
| 6 | SUBDIRS = doc po |
| 7 | |
| 8 | tooldir = $(exec_prefix)/$(target_alias) |
| 9 | |
| 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@ |
| 15 | |
| 16 | YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi` |
| 17 | YFLAGS = -d |
| 18 | LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi` |
| 19 | |
| 20 | # Automake 1.10+ disables lex and yacc output file regeneration if |
| 21 | # maintainer mode is disabled. Avoid this. |
| 22 | am__skiplex = |
| 23 | am__skipyacc = |
| 24 | |
| 25 | WARN_CFLAGS = @WARN_CFLAGS@ |
| 26 | NO_WERROR = @NO_WERROR@ |
| 27 | AM_CFLAGS = $(WARN_CFLAGS) |
| 28 | LIBICONV = @LIBICONV@ |
| 29 | |
| 30 | # these two are almost the same program |
| 31 | AR_PROG=ar |
| 32 | RANLIB_PROG=ranlib |
| 33 | |
| 34 | # objcopy and strip should be the same program |
| 35 | OBJCOPY_PROG=objcopy |
| 36 | STRIP_PROG=strip-new |
| 37 | |
| 38 | STRINGS_PROG=strings |
| 39 | |
| 40 | READELF_PROG=readelf |
| 41 | |
| 42 | ELFEDIT_PROG=elfedit |
| 43 | |
| 44 | # These should all be the same program too. |
| 45 | SIZE_PROG=size |
| 46 | NM_PROG=nm-new |
| 47 | OBJDUMP_PROG=objdump |
| 48 | |
| 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 |
| 52 | |
| 53 | ADDR2LINE_PROG=addr2line |
| 54 | |
| 55 | NLMCONV_PROG=nlmconv |
| 56 | DLLTOOL_PROG=dlltool |
| 57 | WINDRES_PROG=windres |
| 58 | WINDMC_PROG=windmc |
| 59 | DLLWRAP_PROG=dllwrap |
| 60 | |
| 61 | SRCONV_PROG=srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT) |
| 62 | |
| 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@ |
| 64 | |
| 65 | bin_SCRIPTS = @BUILD_INSTALL_MISC@ |
| 66 | EXTRA_SCRIPTS = embedspu |
| 67 | |
| 68 | ## We need a special rule to install the programs which are built with |
| 69 | ## -new, and to rename cxxfilt to c++filt. |
| 70 | RENAMED_PROGS = $(NM_PROG) $(STRIP_PROG) $(DEMANGLER_PROG) |
| 71 | noinst_PROGRAMS = $(RENAMED_PROGS) @BUILD_MISC@ |
| 72 | |
| 73 | EXTRA_PROGRAMS = $(NLMCONV_PROG) srconv sysdump coffdump $(DLLTOOL_PROG) $(WINDRES_PROG) $(WINDMC_PROG) $(DLLWRAP_PROG) |
| 74 | |
| 75 | # Stuff that goes in tooldir/ if appropriate. |
| 76 | TOOL_PROGS = nm-new strip-new ar ranlib dlltool objdump objcopy |
| 77 | |
| 78 | BASEDIR = $(srcdir)/.. |
| 79 | BFDDIR = $(BASEDIR)/bfd |
| 80 | INCDIR = $(BASEDIR)/include |
| 81 | |
| 82 | AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \ |
| 83 | @HDEFINES@ \ |
| 84 | @INCINTL@ \ |
| 85 | -DLOCALEDIR="\"$(datadir)/locale\"" \ |
| 86 | -Dbin_dummy_emulation=$(EMULATION_VECTOR) |
| 87 | |
| 88 | HFILES = \ |
| 89 | arsup.h binemul.h bucomm.h budbg.h \ |
| 90 | coffgrok.h debug.h dlltool.h dwarf.h elfcomm.h nlmconv.h \ |
| 91 | objdump.h sysdep.h unwind-ia64.h windres.h winduni.h windint.h \ |
| 92 | windmc.h |
| 93 | |
| 94 | GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h rcparse.h mcparse.h |
| 95 | BUILT_SOURCES = $(GENERATED_HFILES) |
| 96 | |
| 97 | CFILES = \ |
| 98 | addr2line.c ar.c arsup.c bin2c.c binemul.c bucomm.c \ |
| 99 | coffdump.c coffgrok.c cxxfilt.c \ |
| 100 | dwarf.c debug.c dlltool.c dllwrap.c \ |
| 101 | elfcomm.c emul_aix.c emul_vanilla.c filemode.c \ |
| 102 | ieee.c is-ranlib.c is-strip.c maybe-ranlib.c maybe-strip.c \ |
| 103 | nlmconv.c nm.c not-ranlib.c not-strip.c \ |
| 104 | objcopy.c objdump.c prdbg.c \ |
| 105 | od-xcoff.c od-macho.c \ |
| 106 | rclex.c rdcoff.c rddbg.c readelf.c rename.c \ |
| 107 | resbin.c rescoff.c resrc.c resres.c \ |
| 108 | size.c srconv.c stabs.c strings.c sysdump.c \ |
| 109 | syslex_wrap.c unwind-ia64.c elfedit.c version.c \ |
| 110 | windres.c winduni.c wrstabs.c \ |
| 111 | windmc.c mclex.c |
| 112 | |
| 113 | GENERATED_CFILES = \ |
| 114 | arparse.c arlex.c sysroff.c sysinfo.c syslex.c \ |
| 115 | defparse.c deflex.c nlmheader.c rcparse.c mcparse.c |
| 116 | |
| 117 | DEBUG_SRCS = rddbg.c debug.c stabs.c ieee.c rdcoff.c |
| 118 | WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c |
| 119 | |
| 120 | # Extra object files for objdump |
| 121 | OBJDUMP_PRIVATE_OFILES = @OBJDUMP_PRIVATE_OFILES@ |
| 122 | |
| 123 | # Code shared by all the binutils. |
| 124 | BULIBS = bucomm.c version.c filemode.c |
| 125 | |
| 126 | # Code shared by the ELF related programs. |
| 127 | ELFLIBS = elfcomm.c |
| 128 | |
| 129 | BFDLIB = ../bfd/libbfd.la |
| 130 | |
| 131 | OPCODES = ../opcodes/libopcodes.la |
| 132 | |
| 133 | LIBIBERTY = ../libiberty/libiberty.a |
| 134 | |
| 135 | POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES) |
| 136 | po/POTFILES.in: @MAINT@ Makefile |
| 137 | for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \ |
| 138 | && mv tmp $(srcdir)/po/POTFILES.in |
| 139 | |
| 140 | EXPECT = expect |
| 141 | RUNTEST = runtest |
| 142 | |
| 143 | CC_FOR_TARGET = ` \ |
| 144 | if [ -f $$r/../gcc/xgcc ] ; then \ |
| 145 | if [ -f $$r/../newlib/Makefile ] ; then \ |
| 146 | echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \ |
| 147 | else \ |
| 148 | echo $$r/../gcc/xgcc -B$$r/../gcc/; \ |
| 149 | fi; \ |
| 150 | else \ |
| 151 | if [ "@host@" = "@target@" ] ; then \ |
| 152 | echo $(CC); \ |
| 153 | else \ |
| 154 | echo gcc | sed '$(transform)'; \ |
| 155 | fi; \ |
| 156 | fi` |
| 157 | |
| 158 | check-DEJAGNU: site.exp |
| 159 | srcdir=`cd $(srcdir) && pwd`; export srcdir; \ |
| 160 | r=`pwd`; export r; \ |
| 161 | LC_ALL=C; export LC_ALL; \ |
| 162 | EXPECT=$(EXPECT); export EXPECT; \ |
| 163 | runtest=$(RUNTEST); \ |
| 164 | if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \ |
| 165 | CC_FOR_TARGET="$(CC_FOR_TARGET)" CFLAGS_FOR_TARGET="$(CFLAGS)" \ |
| 166 | $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \ |
| 167 | $(RUNTESTFLAGS); \ |
| 168 | else echo "WARNING: could not find \`runtest'" 1>&2; :;\ |
| 169 | fi |
| 170 | |
| 171 | installcheck-local: |
| 172 | /bin/sh $(srcdir)/sanity.sh $(bindir) |
| 173 | |
| 174 | # There's no global DEPENDENCIES. So, we must explicitly list everything |
| 175 | # which depends on libintl, since we don't know whether LIBINTL_DEP will be |
| 176 | # non-empty until configure time. Ugh! |
| 177 | size_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) |
| 178 | objdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) $(OPCODES) $(OBJDUMP_PRIVATE_OFILES) |
| 179 | nm_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) |
| 180 | ar_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) |
| 181 | strings_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) |
| 182 | strip_new_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) |
| 183 | ranlib_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) |
| 184 | cxxfilt_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) |
| 185 | objcopy_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) |
| 186 | nlmconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) |
| 187 | srconv_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) |
| 188 | sysdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) |
| 189 | coffdump_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) |
| 190 | dlltool_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) |
| 191 | windres_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) |
| 192 | windmc_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) |
| 193 | addr2line_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) $(BFDLIB) |
| 194 | readelf_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) |
| 195 | elfedit_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) |
| 196 | dllwrap_DEPENDENCIES = $(LIBINTL_DEP) $(LIBIBERTY) |
| 197 | |
| 198 | LDADD = $(BFDLIB) $(LIBIBERTY) $(LIBINTL) |
| 199 | |
| 200 | size_SOURCES = size.c $(BULIBS) |
| 201 | |
| 202 | objcopy_SOURCES = objcopy.c not-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS) |
| 203 | |
| 204 | strings_SOURCES = strings.c $(BULIBS) |
| 205 | |
| 206 | readelf_SOURCES = readelf.c version.c unwind-ia64.c dwarf.c $(ELFLIBS) |
| 207 | readelf_LDADD = $(LIBINTL) $(LIBIBERTY) |
| 208 | |
| 209 | elfedit_SOURCES = elfedit.c version.c $(ELFLIBS) |
| 210 | elfedit_LDADD = $(LIBINTL) $(LIBIBERTY) |
| 211 | |
| 212 | strip_new_SOURCES = objcopy.c is-strip.c rename.c $(WRITE_DEBUG_SRCS) $(BULIBS) |
| 213 | |
| 214 | nm_new_SOURCES = nm.c $(BULIBS) |
| 215 | |
| 216 | objdump_SOURCES = objdump.c dwarf.c prdbg.c $(DEBUG_SRCS) $(BULIBS) $(ELFLIBS) |
| 217 | EXTRA_objdump_SOURCES = od-xcoff.c |
| 218 | objdump_LDADD = $(OBJDUMP_PRIVATE_OFILES) $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(LIBINTL) |
| 219 | |
| 220 | objdump.@OBJEXT@:objdump.c |
| 221 | if am__fastdepCC |
| 222 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(OBJDUMP_DEFS) $(srcdir)/objdump.c |
| 223 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
| 224 | else |
| 225 | if AMDEP |
| 226 | source='objdump.c' object='$@' libtool=no @AMDEPBACKSLASH@ |
| 227 | DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
| 228 | endif |
| 229 | $(COMPILE) -c $(OBJDUMP_DEFS) $(srcdir)/objdump.c |
| 230 | endif |
| 231 | |
| 232 | cxxfilt_SOURCES = cxxfilt.c $(BULIBS) |
| 233 | |
| 234 | ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c rename.c binemul.c \ |
| 235 | emul_$(EMULATION).c $(BULIBS) |
| 236 | EXTRA_ar_SOURCES = $(CFILES) |
| 237 | ar_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL) |
| 238 | |
| 239 | ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c rename.c \ |
| 240 | binemul.c emul_$(EMULATION).c $(BULIBS) |
| 241 | ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL) |
| 242 | |
| 243 | addr2line_SOURCES = addr2line.c $(BULIBS) |
| 244 | |
| 245 | # The following is commented out for the conversion to automake. |
| 246 | # This rule creates a single binary that switches between ar and ranlib |
| 247 | # by looking at argv[0]. Use this kludge to save some disk space. |
| 248 | # However, you have to install things by hand. |
| 249 | # (That is after 'make install', replace the installed ranlib by a link to ar.) |
| 250 | # Alternatively, you can install ranlib.sh as ranlib. |
| 251 | # ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o |
| 252 | # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS) |
| 253 | # -rm -f $(RANLIB_PROG) |
| 254 | # -ln $(AR_PROG) $(RANLIB_PROG) |
| 255 | # |
| 256 | # objcopy and strip in one binary that uses argv[0] to decide its action. |
| 257 | # |
| 258 | #objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o |
| 259 | # $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS) |
| 260 | # -rm -f $(STRIP_PROG) |
| 261 | # -ln $(OBJCOPY_PROG) $(STRIP_PROG) |
| 262 | |
| 263 | sysroff.c: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info |
| 264 | ./sysinfo$(EXEEXT_FOR_BUILD) -c <$(srcdir)/sysroff.info >sysroff.c |
| 265 | ./sysinfo$(EXEEXT_FOR_BUILD) -i <$(srcdir)/sysroff.info >>sysroff.c |
| 266 | ./sysinfo$(EXEEXT_FOR_BUILD) -g <$(srcdir)/sysroff.info >>sysroff.c |
| 267 | |
| 268 | sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info |
| 269 | ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h |
| 270 | |
| 271 | sysinfo$(EXEEXT_FOR_BUILD): sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@ |
| 272 | $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@ |
| 273 | |
| 274 | syslex_wrap.@OBJEXT@: syslex_wrap.c syslex.c sysinfo.h config.h |
| 275 | $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/syslex_wrap.c |
| 276 | |
| 277 | sysinfo.@OBJEXT@: sysinfo.c |
| 278 | if [ -r sysinfo.c ]; then \ |
| 279 | $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) sysinfo.c ; \ |
| 280 | else \ |
| 281 | $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \ |
| 282 | fi |
| 283 | |
| 284 | bin2c$(EXEEXT_FOR_BUILD): bin2c.c |
| 285 | $(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c |
| 286 | |
| 287 | embedspu: embedspu.sh Makefile |
| 288 | awk '/^program_transform_name=/ {print "program_transform_name=\"$(program_transform_name)\""; next} {print}' < $< > $@ |
| 289 | chmod a+x $@ |
| 290 | |
| 291 | # We need these for parallel make. |
| 292 | sysinfo.h: sysinfo.c |
| 293 | |
| 294 | # Disable -Werror, if it has been enabled, since old versions of bison/ |
| 295 | # yacc will produce working code which contain compile time warnings. |
| 296 | arparse.@OBJEXT@: arparse.c |
| 297 | if am__fastdepCC |
| 298 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR) |
| 299 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
| 300 | else |
| 301 | if AMDEP |
| 302 | source='arparse.c' object='$@' libtool=no @AMDEPBACKSLASH@ |
| 303 | DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
| 304 | endif |
| 305 | $(COMPILE) -c `test -f arparse.c || echo $(srcdir)/`arparse.c $(NO_WERROR) |
| 306 | endif |
| 307 | |
| 308 | arlex.@OBJEXT@: arlex.c |
| 309 | if am__fastdepCC |
| 310 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR) |
| 311 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
| 312 | else |
| 313 | if AMDEP |
| 314 | source='arlex.c' object='$@' libtool=no @AMDEPBACKSLASH@ |
| 315 | DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
| 316 | endif |
| 317 | $(COMPILE) -c `test -f arlex.c || echo $(srcdir)/`arlex.c $(NO_WERROR) |
| 318 | endif |
| 319 | |
| 320 | sysroff.@OBJEXT@: sysroff.c |
| 321 | if am__fastdepCC |
| 322 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR) |
| 323 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
| 324 | else |
| 325 | if AMDEP |
| 326 | source='sysroff.c' object='$@' libtool=no @AMDEPBACKSLASH@ |
| 327 | DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
| 328 | endif |
| 329 | $(COMPILE) -c `test -f sysroff.c || echo $(srcdir)/`sysroff.c $(NO_WERROR) |
| 330 | endif |
| 331 | |
| 332 | defparse.@OBJEXT@: defparse.c |
| 333 | if am__fastdepCC |
| 334 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR) |
| 335 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
| 336 | else |
| 337 | if AMDEP |
| 338 | source='defparse.c' object='$@' libtool=no @AMDEPBACKSLASH@ |
| 339 | DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
| 340 | endif |
| 341 | $(COMPILE) -c `test -f defparse.c || echo $(srcdir)/`defparse.c $(NO_WERROR) |
| 342 | endif |
| 343 | |
| 344 | deflex.@OBJEXT@: deflex.c |
| 345 | if am__fastdepCC |
| 346 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR) |
| 347 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
| 348 | else |
| 349 | if AMDEP |
| 350 | source='deflex.c' object='$@' libtool=no @AMDEPBACKSLASH@ |
| 351 | DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
| 352 | endif |
| 353 | $(COMPILE) -c `test -f deflex.c || echo $(srcdir)/`deflex.c $(NO_WERROR) |
| 354 | endif |
| 355 | |
| 356 | nlmheader.@OBJEXT@: nlmheader.c |
| 357 | if am__fastdepCC |
| 358 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR) |
| 359 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
| 360 | else |
| 361 | if AMDEP |
| 362 | source='nlmheader.c' object='$@' libtool=no @AMDEPBACKSLASH@ |
| 363 | DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
| 364 | endif |
| 365 | $(COMPILE) -c `test -f nlmheader.c || echo $(srcdir)/`nlmheader.c $(NO_WERROR) |
| 366 | endif |
| 367 | |
| 368 | rcparse.@OBJEXT@: rcparse.c |
| 369 | if am__fastdepCC |
| 370 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR) |
| 371 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
| 372 | else |
| 373 | if AMDEP |
| 374 | source='rcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@ |
| 375 | DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
| 376 | endif |
| 377 | $(COMPILE) -c `test -f rcparse.c || echo $(srcdir)/`rcparse.c $(NO_WERROR) |
| 378 | endif |
| 379 | |
| 380 | mcparse.@OBJEXT@: mcparse.c |
| 381 | if am__fastdepCC |
| 382 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR) |
| 383 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
| 384 | else |
| 385 | if AMDEP |
| 386 | source='mcparse.c' object='$@' libtool=no @AMDEPBACKSLASH@ |
| 387 | DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
| 388 | endif |
| 389 | $(COMPILE) -c `test -f mcparse.c || echo $(srcdir)/`mcparse.c $(NO_WERROR) |
| 390 | endif |
| 391 | |
| 392 | rclex.@OBJEXT@: rclex.c |
| 393 | if am__fastdepCC |
| 394 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/rclex.c $(NO_WERROR) |
| 395 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
| 396 | else |
| 397 | if AMDEP |
| 398 | source='rclex.c' object='$@' libtool=no @AMDEPBACKSLASH@ |
| 399 | DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
| 400 | endif |
| 401 | $(COMPILE) -c $(srcdir)/rclex.c $(NO_WERROR) |
| 402 | endif |
| 403 | |
| 404 | mclex.@OBJEXT@: mclex.c |
| 405 | if am__fastdepCC |
| 406 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/mclex.c $(NO_WERROR) |
| 407 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
| 408 | else |
| 409 | if AMDEP |
| 410 | source='mclex.c' object='$@' libtool=no @AMDEPBACKSLASH@ |
| 411 | DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
| 412 | endif |
| 413 | $(COMPILE) -c $(srcdir)/mclex.c $(NO_WERROR) |
| 414 | endif |
| 415 | |
| 416 | srconv_SOURCES = srconv.c coffgrok.c $(BULIBS) |
| 417 | srconv.@OBJEXT@: sysroff.c |
| 418 | |
| 419 | dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS) |
| 420 | dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL) |
| 421 | |
| 422 | dlltool.@OBJEXT@: |
| 423 | if am__fastdepCC |
| 424 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/dlltool.c |
| 425 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
| 426 | else |
| 427 | if AMDEP |
| 428 | source='dlltool.c' object='$@' libtool=no @AMDEPBACKSLASH@ |
| 429 | DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
| 430 | endif |
| 431 | $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c |
| 432 | endif |
| 433 | |
| 434 | rescoff.@OBJEXT@: |
| 435 | if am__fastdepCC |
| 436 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(DLLTOOL_DEFS) $(srcdir)/rescoff.c |
| 437 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
| 438 | else |
| 439 | if AMDEP |
| 440 | source='rescoff.c' object='$@' libtool=no @AMDEPBACKSLASH@ |
| 441 | DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
| 442 | endif |
| 443 | $(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/rescoff.c |
| 444 | endif |
| 445 | |
| 446 | coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS) |
| 447 | |
| 448 | sysdump_SOURCES = sysdump.c $(BULIBS) |
| 449 | sysdump.@OBJEXT@: sysroff.c |
| 450 | |
| 451 | # coff/sym.h and coff/ecoff.h won't be found by the automatic dependency |
| 452 | # scripts, since they are only included conditionally. |
| 453 | nlmconv.@OBJEXT@: nlmconv.c |
| 454 | if am__fastdepCC |
| 455 | ldname=`echo ld | sed '$(transform)'`; \ |
| 456 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ \ |
| 457 | -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c |
| 458 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po |
| 459 | else |
| 460 | if AMDEP |
| 461 | source='nlmconv.c' object='$@' libtool=no @AMDEPBACKSLASH@ |
| 462 | DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
| 463 | endif |
| 464 | ldname=`echo ld | sed '$(transform)'`; \ |
| 465 | $(COMPILE) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c |
| 466 | endif |
| 467 | |
| 468 | nlmconv_SOURCES = nlmconv.c nlmheader.y $(BULIBS) |
| 469 | |
| 470 | windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.c \ |
| 471 | winduni.c resres.c $(BULIBS) |
| 472 | windres_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL) $(LIBICONV) |
| 473 | |
| 474 | windmc_SOURCES = windmc.c mcparse.y mclex.c \ |
| 475 | winduni.c $(BULIBS) |
| 476 | windmc_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(LIBINTL) $(LIBICONV) |
| 477 | |
| 478 | dllwrap_SOURCES = dllwrap.c version.c |
| 479 | dllwrap_LDADD = $(LIBIBERTY) $(LIBINTL) |
| 480 | |
| 481 | |
| 482 | EXTRA_DIST = arparse.c arparse.h arlex.c nlmheader.c sysinfo.c sysinfo.h \ |
| 483 | syslex.c deflex.c defparse.h defparse.c rcparse.h rcparse.c \ |
| 484 | mcparse.h mcparse.c embedspu.sh |
| 485 | |
| 486 | diststuff: $(EXTRA_DIST) info |
| 487 | all: info |
| 488 | |
| 489 | # We extract version from bfd/configure.in, make sure to rerun configure |
| 490 | # when BFD's version changes. |
| 491 | CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in |
| 492 | |
| 493 | DISTCLEANFILES = sysroff.c sysroff.h site.exp site.bak embedspu |
| 494 | |
| 495 | MOSTLYCLEANFILES = sysinfo$(EXEEXT_FOR_BUILD) bin2c$(EXEEXT_FOR_BUILD) \ |
| 496 | binutils.log binutils.sum abcdefgh* |
| 497 | mostlyclean-local: |
| 498 | -rm -rf tmpdir |
| 499 | |
| 500 | .PHONY: install-exec-local |
| 501 | |
| 502 | install-exec-local: install-binPROGRAMS $(bin_PROGRAMS) $(noinst_PROGRAMS) |
| 503 | @list='$(RENAMED_PROGS)'; for p in $$list; do \ |
| 504 | if test -f $$p$(EXEEXT); then \ |
| 505 | 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)/'`"; \ |
| 506 | $(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)/'`; \ |
| 507 | else :; fi; \ |
| 508 | done |
| 509 | $(mkinstalldirs) $(DESTDIR)$(tooldir)/bin |
| 510 | for i in $(TOOL_PROGS); do \ |
| 511 | if [ -f $$i$(EXEEXT) ]; then \ |
| 512 | j=`echo $$i | sed -e 's/-new//'`; \ |
| 513 | k=`echo $$j | sed '$(transform)'`; \ |
| 514 | if [ "$(bindir)/$$k" != "$(tooldir)/bin/$$j" ]; then \ |
| 515 | rm -f $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \ |
| 516 | ln $(DESTDIR)$(bindir)/$$k$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \ |
| 517 | || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$$j$(EXEEXT); \ |
| 518 | fi; \ |
| 519 | else true; \ |
| 520 | fi; \ |
| 521 | done |