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