Home | History | Annotate | Download | only in ld
      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-texinfo.tex no-dist foreign
     21 ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
     22 TEXINFO_TEX = ../texinfo/texinfo.tex
     23 
     24 SUBDIRS = po
     25 
     26 tooldir = $(exec_prefix)/$(target_alias)
     27 
     28 YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
     29 YFLAGS = -d
     30 LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
     31 
     32 # Automake 1.10+ disables lex and yacc output file regeneration if
     33 # maintainer mode is disabled.  Avoid this.
     34 am__skiplex =
     35 am__skipyacc =
     36 
     37 WARN_CFLAGS = @WARN_CFLAGS@
     38 NO_WERROR = @NO_WERROR@
     39 AM_CFLAGS = $(WARN_CFLAGS)
     40 
     41 # Conditionally enable the plugin interface.
     42 if ENABLE_PLUGINS
     43 PLUGIN_C = plugin.c
     44 PLUGIN_H = plugin.h
     45 PLUGIN_OBJECT = plugin.@OBJEXT@
     46 PLUGIN_CFLAGS = -DENABLE_PLUGINS
     47 else
     48 PLUGIN_C =
     49 PLUGIN_H =
     50 PLUGIN_OBJECT =
     51 PLUGIN_CFLAGS =
     52 endif
     53 
     54 # We put the scripts in the directory $(scriptdir)/ldscripts.
     55 # We can't put the scripts in $(datadir) because the SEARCH_DIR
     56 # directives need to be different for native and cross linkers.
     57 scriptdir = $(tooldir)/lib
     58 
     59 EMUL = @EMUL@
     60 EMULATION_OFILES = @EMULATION_OFILES@
     61 EMUL_EXTRA_OFILES = @EMUL_EXTRA_OFILES@
     62 
     63 
     64 # Search path to override the default search path for -lfoo libraries.
     65 # If LIB_PATH is empty, the ones in the script (if any) are left alone.
     66 # (The default is usually /lib:/usr/lib:/usr/local/lib, unless building
     67 # a cross-linker, in which case the default is empty.  See genscripts.sh.)
     68 # Otherwise, they are replaced with the ones given in LIB_PATH,
     69 # which may have the form: LIB_PATH=/lib:/usr/local/lib.  This can be set
     70 # when the linker is configured via the --with-lib-path configure switch.
     71 LIB_PATH = @LIB_PATH@
     72 
     73 BASEDIR = $(srcdir)/..
     74 BFDDIR = $(BASEDIR)/bfd
     75 INCDIR	= $(BASEDIR)/include
     76 
     77 # What version of the manual to build
     78 DOCVER = gen
     79 
     80 # Options to extract the man page from ld.texinfo
     81 MANCONF = -Dman
     82 
     83 TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
     84 
     85 POD2MAN = pod2man --center="GNU Development Tools" \
     86 	--release="binutils-$(VERSION)" --section=1 --date=" "
     87 
     88 #stuff for self hosting (can be overridden in config file).
     89 HOSTING_CRT0 = @HOSTING_CRT0@
     90 HOSTING_SCRT0 = @HOSTING_SCRT0@
     91 HOSTING_LIBS = @HOSTING_LIBS@
     92 HOSTING_SLIBS = @HOSTING_SLIBS@
     93 HOSTING_EMU = -m $(EMUL)
     94 
     95 # Setup the testing framework, if you have one
     96 EXPECT = expect
     97 RUNTEST = runtest
     98 RUNTESTFLAGS =
     99 
    100 CC_FOR_TARGET = ` \
    101   if [ -f $$r/../gcc/xgcc ] ; then \
    102     if [ -f $$r/../newlib/Makefile ] ; then \
    103       echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
    104     else \
    105       echo $$r/../gcc/xgcc -B$$r/../gcc/; \
    106     fi; \
    107   else \
    108     if [ "@host@" = "@target@" ] ; then \
    109       echo $(CC); \
    110     else \
    111       echo gcc | sed '$(transform)'; \
    112     fi; \
    113   fi`
    114 
    115 CXX_FOR_TARGET = ` \
    116   if [ -f $$r/../gcc/g++ ] ; then \
    117     if [ -f $$r/../newlib/Makefile ] ; then \
    118       echo $$r/../gcc/g++ -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
    119     else \
    120       echo $$r/../gcc/g++ -B$$r/../gcc/; \
    121     fi; \
    122   else \
    123     if [ "@host@" = "@target@" ] ; then \
    124       echo $(CXX); \
    125     else \
    126       echo g++ | sed '$(transform)'; \
    127     fi; \
    128   fi`
    129 
    130 transform = s/^ld-new$$/$(installed_linker)/;@program_transform_name@
    131 bin_PROGRAMS = ld-new
    132 info_TEXINFOS = ld.texinfo
    133 ld_TEXINFOS = configdoc.texi
    134 noinst_TEXINFOS = ldint.texinfo
    135 man_MANS = ld.1
    136 
    137 AM_MAKEINFOFLAGS = -I $(srcdir) -I $(BFDDIR)/doc -I ../bfd/doc \
    138 		   -I $(top_srcdir)/../libiberty
    139 TEXI2DVI = texi2dvi -I $(srcdir) -I $(BFDDIR)/doc -I ../bfd/doc \
    140 		    -I $(top_srcdir)/../libiberty
    141 
    142 AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \
    143 	@INCINTL@ $(HDEFINES) $(CFLAGS) $(PLUGIN_CFLAGS) \
    144 	-DLOCALEDIR="\"$(datadir)/locale\""
    145 
    146 BFDLIB = ../bfd/libbfd.la
    147 LIBIBERTY = ../libiberty/libiberty.a
    148 
    149 ALL_EMULATION_SOURCES = \
    150 	eaix5ppc.c \
    151 	eaix5rs6.c \
    152 	eaixppc.c \
    153 	eaixrs6.c \
    154 	ealpha.c \
    155 	ealphavms.c \
    156 	earcelf.c \
    157 	earm_epoc_pe.c \
    158 	earm_wince_pe.c \
    159 	earmaoutb.c \
    160 	earmaoutl.c \
    161 	earmcoff.c \
    162 	earmelf.c \
    163 	earmelf_fbsd.c \
    164 	earmelf_linux.c \
    165 	earmelf_linux_eabi.c \
    166 	earmelf_nacl.c \
    167 	earmelf_nbsd.c \
    168 	earmelf_vxworks.c \
    169 	earmelfb.c \
    170 	earmelfb_fbsd.c \
    171 	earmelfb_linux.c \
    172 	earmelfb_linux_eabi.c \
    173 	earmelfb_nacl.c \
    174 	earmelfb_nbsd.c \
    175 	earmnbsd.c \
    176 	earmnto.c \
    177 	earmpe.c \
    178 	earmsymbian.c \
    179 	eavr1.c \
    180 	eavr2.c \
    181 	eavr25.c \
    182 	eavr3.c \
    183 	eavr31.c \
    184 	eavr35.c \
    185 	eavr4.c \
    186 	eavr5.c \
    187 	eavr51.c \
    188 	eavr6.c \
    189 	eavrxmega1.c \
    190 	eavrxmega2.c \
    191 	eavrxmega3.c \
    192 	eavrxmega4.c \
    193 	eavrxmega5.c \
    194 	eavrxmega6.c \
    195 	eavrxmega7.c \
    196 	eavrtiny.c   \
    197 	ecoff_i860.c \
    198 	ecoff_sparc.c \
    199 	ecrisaout.c \
    200 	ecriself.c \
    201 	ecrislinux.c \
    202 	ed10velf.c \
    203 	ed30v_e.c \
    204 	ed30v_o.c \
    205 	ed30velf.c \
    206 	edelta68.c \
    207 	eelf32_dlx.c \
    208 	eelf32_i860.c \
    209 	eelf32_i960.c \
    210 	eelf32_sparc.c \
    211 	eelf32_sparc_sol2.c \
    212 	eelf32_sparc_vxworks.c \
    213 	eelf32_spu.c \
    214 	eelf32_tic6x_be.c \
    215 	eelf32_tic6x_le.c \
    216 	eelf32_tic6x_linux_be.c \
    217 	eelf32_tic6x_linux_le.c \
    218 	eelf32_tic6x_elf_be.c \
    219 	eelf32_tic6x_elf_le.c \
    220 	eelf32am33lin.c \
    221 	eelf32bfin.c \
    222 	eelf32bfinfd.c \
    223 	eelf32cr16.c \
    224 	eelf32cr16c.c \
    225 	eelf32crx.c \
    226 	eelf32epiphany.c \
    227 	eelf32epiphany_4x4.c \
    228 	eelf32fr30.c \
    229 	eelf32frv.c \
    230 	eelf32frvfd.c \
    231 	eelf32i370.c \
    232 	eelf32ip2k.c \
    233 	eelf32iq10.c \
    234 	eelf32iq2000.c \
    235 	eelf32lm32.c \
    236 	eelf32lm32fd.c \
    237 	eelf32lppc.c \
    238 	eelf32lppclinux.c \
    239 	eelf32lppcnto.c \
    240 	eelf32lppcsim.c \
    241 	eelf32m32c.c \
    242 	eelf32mb_linux.c \
    243 	eelf32mbel_linux.c \
    244 	eelf32mcore.c \
    245 	eelf32mep.c \
    246 	eelf32metag.c \
    247 	eelf32microblazeel.c \
    248 	eelf32microblaze.c \
    249 	eelf32moxie.c \
    250 	emoxiebox.c \
    251 	eelf32mt.c \
    252 	eelf32or1k.c \
    253 	eelf32or1k_linux.c \
    254 	eelf32ppc.c \
    255 	eelf32ppc_fbsd.c \
    256 	eelf32ppclinux.c \
    257 	eelf32ppcnto.c \
    258 	eelf32ppcsim.c \
    259 	eelf32ppcvxworks.c \
    260 	eelf32ppcwindiss.c \
    261 	eelf32rl78.c \
    262 	eelf32rx.c \
    263 	eelf32tilegx.c \
    264 	eelf32tilegx_be.c \
    265 	eelf32tilepro.c \
    266 	eelf32vax.c \
    267 	eelf32xc16x.c \
    268 	eelf32xc16xl.c \
    269 	eelf32xc16xs.c \
    270 	eelf32xstormy16.c \
    271 	eelf32xtensa.c \
    272 	eelf_i386.c \
    273 	eelf_i386_be.c \
    274 	eelf_i386_chaos.c \
    275 	eelf_i386_fbsd.c \
    276 	eelf_i386_ldso.c \
    277 	eelf_i386_nacl.c \
    278 	eelf_i386_sol2.c \
    279 	eelf_i386_vxworks.c \
    280 	eelf_s390.c \
    281 	egld960.c \
    282 	egld960coff.c \
    283 	eh8300.c \
    284 	eh8300elf.c \
    285 	eh8300h.c \
    286 	eh8300helf.c \
    287 	eh8300hn.c \
    288 	eh8300hnelf.c \
    289 	eh8300s.c \
    290 	eh8300self.c \
    291 	eh8300sn.c \
    292 	eh8300snelf.c \
    293 	eh8300sx.c \
    294 	eh8300sxelf.c \
    295 	eh8300sxn.c \
    296 	eh8300sxnelf.c \
    297 	eh8500.c \
    298 	eh8500b.c \
    299 	eh8500c.c \
    300 	eh8500m.c \
    301 	eh8500s.c \
    302 	ehp300bsd.c \
    303 	ehp3hpux.c \
    304 	ehppaelf.c \
    305 	ehppalinux.c \
    306 	ehppanbsd.c \
    307 	ehppaobsd.c \
    308 	ei386aout.c \
    309 	ei386beos.c \
    310 	ei386bsd.c \
    311 	ei386coff.c \
    312 	ei386go32.c \
    313 	ei386linux.c \
    314 	ei386lynx.c \
    315 	ei386mach.c \
    316 	ei386moss.c \
    317 	ei386msdos.c \
    318 	ei386nbsd.c \
    319 	ei386nto.c \
    320 	ei386nw.c \
    321 	ei386pe.c \
    322 	ei386pe_posix.c \
    323 	elnk960.c \
    324 	em32relf.c \
    325 	em32relf_linux.c \
    326 	em32rlelf.c \
    327 	em32rlelf_linux.c \
    328 	em68hc11elf.c \
    329 	em68hc11elfb.c \
    330 	em68hc12elf.c \
    331 	em68hc12elfb.c \
    332 	em68k4knbsd.c \
    333 	em68kaout.c \
    334 	em68kaux.c \
    335 	em68kcoff.c \
    336 	em68kelf.c \
    337 	em68kelfnbsd.c \
    338 	em68klinux.c \
    339 	em68knbsd.c \
    340 	em68kpsos.c \
    341 	em88kbcs.c \
    342 	emcorepe.c \
    343 	emn10200.c \
    344 	emn10300.c \
    345 	emsp430.c \
    346 	emsp430X.c \
    347 	ends32elf.c \
    348 	ends32elf16m.c \
    349 	ends32elf_linux.c \
    350 	ends32belf.c \
    351 	ends32belf16m.c \
    352 	ends32belf_linux.c \
    353 	enews.c \
    354 	ens32knbsd.c \
    355 	enios2elf.c \
    356 	enios2linux.c \
    357 	epc532macha.c \
    358 	epdp11.c \
    359 	epjelf.c \
    360 	epjlelf.c \
    361 	eppclynx.c \
    362 	eppcmacos.c \
    363 	eppcnw.c \
    364 	eppcpe.c \
    365 	eriscix.c \
    366 	escore3_elf.c \
    367 	escore7_elf.c \
    368 	esh.c \
    369 	eshelf.c \
    370 	eshelf32.c \
    371 	eshelf32_linux.c \
    372 	eshelf32_nbsd.c \
    373 	eshelf_fd.c \
    374 	eshelf_linux.c \
    375 	eshelf_nbsd.c \
    376 	eshelf_nto.c \
    377 	eshelf_uclinux.c \
    378 	eshelf_vxworks.c \
    379 	eshl.c \
    380 	eshlelf.c \
    381 	eshlelf32.c \
    382 	eshlelf32_linux.c \
    383 	eshlelf32_nbsd.c \
    384 	eshlelf_fd.c \
    385 	eshlelf_linux.c \
    386 	eshlelf_nbsd.c \
    387 	eshlelf_nto.c \
    388 	eshlelf_vxworks.c \
    389 	eshlsymbian.c \
    390 	eshpe.c \
    391 	esparcaout.c \
    392 	esparclinux.c \
    393 	esparcnbsd.c \
    394 	est2000.c \
    395 	esun3.c \
    396 	esun4.c \
    397 	etic30aout.c \
    398 	etic30coff.c \
    399 	etic3xcoff.c \
    400 	etic3xcoff_onchip.c \
    401 	etic4xcoff.c \
    402 	etic54xcoff.c \
    403 	etic80coff.c \
    404 	ev850.c \
    405 	ev850_rh850.c \
    406 	evanilla.c \
    407 	evax.c \
    408 	evaxnbsd.c \
    409 	evsta.c \
    410 	ew65.c \
    411 	exgateelf.c \
    412 	ez80.c \
    413 	ez8001.c \
    414 	ez8002.c
    415 
    416 ALL_EMULATIONS = $(ALL_EMULATION_SOURCES:.c=.@OBJEXT@)
    417 
    418 ALL_64_EMULATION_SOURCES = \
    419 	eaarch64elf.c \
    420 	eaarch64elf32.c \
    421 	eaarch64elfb.c \
    422 	eaarch64elf32b.c \
    423 	eaarch64linux.c \
    424 	eaarch64linuxb.c \
    425 	eaarch64linux32.c \
    426 	eaarch64linux32b.c \
    427 	eelf32_x86_64.c \
    428 	eelf32_x86_64_nacl.c \
    429 	eelf32b4300.c \
    430 	eelf32bmip.c \
    431 	eelf32bmipn32.c \
    432 	eelf32bsmip.c \
    433 	eelf32btsmip.c \
    434 	eelf32btsmip_fbsd.c \
    435 	eelf32btsmipn32.c \
    436 	eelf32btsmipn32_fbsd.c \
    437 	eelf32ebmip.c \
    438 	eelf32ebmipvxworks.c \
    439 	eelf32elmip.c \
    440 	eelf32elmipvxworks.c \
    441 	eelf32l4300.c \
    442 	eelf32lmip.c \
    443 	eelf32lr5900.c \
    444 	eelf32lr5900n32.c \
    445 	eelf32lsmip.c \
    446 	eelf32ltsmip.c \
    447 	eelf32ltsmip_fbsd.c \
    448 	eelf32ltsmipn32.c \
    449 	eelf32ltsmipn32_fbsd.c \
    450 	eelf32mipswindiss.c \
    451 	eelf64_aix.c \
    452 	eelf64_ia64.c \
    453 	eelf64_ia64_fbsd.c \
    454 	eelf64_ia64_vms.c \
    455 	eelf64_s390.c \
    456 	eelf64_sparc.c \
    457 	eelf64_sparc_fbsd.c \
    458 	eelf64_sparc_sol2.c \
    459 	eelf64alpha.c \
    460 	eelf64alpha_fbsd.c \
    461 	eelf64alpha_nbsd.c \
    462 	eelf64bmip.c \
    463 	eelf64btsmip.c \
    464 	eelf64btsmip_fbsd.c \
    465 	eelf64hppa.c \
    466 	eelf64lppc.c \
    467 	eelf64ltsmip.c \
    468 	eelf64ltsmip_fbsd.c \
    469 	eelf64mmix.c \
    470 	eelf64ppc.c \
    471 	eelf64ppc_fbsd.c \
    472 	eelf64rdos.c \
    473 	eelf64tilegx.c \
    474 	eelf64tilegx_be.c \
    475 	eelf_l1om.c \
    476 	eelf_l1om_fbsd.c \
    477 	eelf_k1om.c \
    478 	eelf_k1om_fbsd.c \
    479 	eelf_x86_64.c \
    480 	eelf_x86_64_fbsd.c \
    481 	eelf_x86_64_nacl.c \
    482 	eelf_x86_64_sol2.c \
    483 	ehppa64linux.c \
    484 	ei386pep.c \
    485 	emmo.c \
    486 	eshelf64.c \
    487 	eshelf64_nbsd.c \
    488 	eshlelf64.c \
    489 	eshlelf64_nbsd.c
    490 
    491 ALL_64_EMULATIONS = $(ALL_64_EMULATION_SOURCES:.c=.@OBJEXT@)
    492 
    493 ALL_EMUL_EXTRA_OFILES = \
    494 	deffilep.@OBJEXT@ \
    495 	pe-dll.@OBJEXT@
    496 
    497 ALL_64_EMUL_EXTRA_OFILES = \
    498 	pep-dll.@OBJEXT@
    499 
    500 CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
    501 	ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
    502 	mri.c ldcref.c pe-dll.c pep-dll.c ldlex-wrapper.c \
    503 	$(PLUGIN_C) ldbuildid.c
    504 
    505 HFILES = ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
    506 	ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
    507 	ldwrite.h mri.h deffile.h pe-dll.h pep-dll.h \
    508 	elf-hints-local.h $(PLUGIN_H) ldbuildid.h
    509 
    510 GENERATED_CFILES = ldgram.c ldlex.c deffilep.c
    511 GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h
    512 
    513 # Require an early dependency on the generated headers, as the dependency
    514 # tracking will not cause them to be built beforehand.
    515 BUILT_SOURCES = $(GENERATED_HFILES)
    516 
    517 OFILES = ldgram.@OBJEXT@ ldlex-wrapper.@OBJEXT@ lexsup.@OBJEXT@ ldlang.@OBJEXT@ \
    518 	mri.@OBJEXT@ ldctor.@OBJEXT@ ldmain.@OBJEXT@ $(PLUGIN_OBJECT) \
    519 	ldwrite.@OBJEXT@ ldexp.@OBJEXT@  ldemul.@OBJEXT@ ldver.@OBJEXT@ ldmisc.@OBJEXT@ \
    520 	ldfile.@OBJEXT@ ldcref.@OBJEXT@ ${EMULATION_OFILES} ${EMUL_EXTRA_OFILES} \
    521 	ldbuildid.@OBJEXT@
    522 
    523 STAGESTUFF = *.@OBJEXT@ ldscripts/* e*.c
    524 
    525 # Disable -Werror, if it has been enabled, since old versions of bison/
    526 # yacc will produce working code which contain compile time warnings.
    527 ldgram.@OBJEXT@: ldgram.c
    528 if am__fastdepCC
    529 	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f ldgram.c || echo $(srcdir)/`ldgram.c $(NO_WERROR)
    530 	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
    531 else
    532 if AMDEP
    533 	source='ldgram.c' object='$@' libtool=no @AMDEPBACKSLASH@
    534 	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    535 endif
    536 	$(COMPILE) -c `test -f ldgram.c || echo $(srcdir)/`ldgram.c $(NO_WERROR)
    537 endif
    538 
    539 ldlex-wrapper.@OBJEXT@: ldlex-wrapper.c ldlex.c
    540 if am__fastdepCC
    541 	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/ldlex-wrapper.c $(NO_WERROR)
    542 	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
    543 else
    544 if AMDEP
    545 	source='ldlex-wrapper.c' object='$@' libtool=no @AMDEPBACKSLASH@
    546 	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    547 endif
    548 	$(COMPILE) -c $(srcdir)/ldlex-wrapper.c $(NO_WERROR)
    549 endif
    550 
    551 deffilep.@OBJEXT@: deffilep.c
    552 if am__fastdepCC
    553 	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f deffilep.c || echo $(srcdir)/`deffilep.c $(NO_WERROR)
    554 	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
    555 else
    556 if AMDEP
    557 	source='deffilep.c' object='$@' libtool=no @AMDEPBACKSLASH@
    558 	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    559 endif
    560 	$(COMPILE) -c `test -f deffilep.c || echo $(srcdir)/`deffilep.c $(NO_WERROR)
    561 endif
    562 
    563 # At the moment this is just a list of those emulation template files
    564 # that contain internationalised strings.
    565 EMULATION_FILES = emultempl/pe.em emultempl/armcoff.em
    566 
    567 POTFILES = $(CFILES) $(HFILES) $(EMULATION_FILES)
    568 
    569 po/POTFILES.in: @MAINT@ Makefile
    570 	for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
    571 	  && mv tmp $(srcdir)/po/POTFILES.in
    572 
    573 ldmain.@OBJEXT@: ldmain.c config.status
    574 if am__fastdepCC
    575 	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ \
    576 	  -DDEFAULT_EMULATION='"$(EMUL)"' \
    577 	  -DBINDIR='"$(bindir)"' -DTOOLBINDIR='"$(tooldir)/bin"' \
    578 	  -DTARGET='"@target@"' @TARGET_SYSTEM_ROOT_DEFINE@ \
    579 	  $(srcdir)/ldmain.c
    580 	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
    581 else
    582 if AMDEP
    583 	source='ldmain.c' object='$@' libtool=no @AMDEPBACKSLASH@
    584 	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    585 endif
    586 	$(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' \
    587 	  -DBINDIR='"$(bindir)"' -DTOOLBINDIR='"$(tooldir)/bin"' \
    588 	  -DTARGET='"@target@"' @TARGET_SYSTEM_ROOT_DEFINE@ \
    589 	  $(srcdir)/ldmain.c
    590 endif
    591 
    592 ldfile.@OBJEXT@: ldfile.c config.status
    593 if am__fastdepCC
    594 	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ \
    595 	-DSCRIPTDIR='"$(scriptdir)"' -DBINDIR='"$(bindir)"' -DTOOLBINDIR='"$(tooldir)/bin"' \
    596 	 $(srcdir)/ldfile.c
    597 	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
    598 else
    599 if AMDEP
    600 	source='ldfile.c' object='$@' libtool=no @AMDEPBACKSLASH@
    601 	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    602 endif
    603 	$(COMPILE) -c -DSCRIPTDIR='"$(scriptdir)"' -DBINDIR='"$(bindir)"' \
    604 	  -DTOOLBINDIR='"$(tooldir)/bin"' \
    605 	  $(srcdir)/ldfile.c
    606 endif
    607 
    608 eelf32_spu.@OBJEXT@: eelf32_spu.c
    609 if am__fastdepCC
    610 	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ \
    611 	  -DEMBEDSPU="\"`echo embedspu | sed '$(transform)'`\"" eelf32_spu.c
    612 	mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
    613 else
    614 if AMDEP
    615 	source='eelf32_spu.c' object='$@' libtool=no @AMDEPBACKSLASH@
    616 	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    617 endif
    618 	$(COMPILE) -c -DEMBEDSPU="\"`echo embedspu | sed '$(transform)'`\"" \
    619 	  eelf32_spu.c
    620 endif
    621 
    622 ldemul-list.h: Makefile
    623 	(echo "/* This file is automatically generated.  DO NOT EDIT! */";\
    624 	for f in `echo " " ${EMULATION_OFILES} "" \
    625 	 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
    626 	    echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
    627 	done;\
    628 	echo "";\
    629 	echo "#define EMULATION_LIST \\";\
    630 	for f in `echo " " ${EMULATION_OFILES} "" \
    631 	 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
    632 	    echo "  &ld_$${f}_emulation, \\"; \
    633 	done;\
    634 	echo "  0") >ldemul-tmp.h
    635 	mv ldemul-tmp.h ldemul-list.h
    636 
    637 stringify.sed: ${srcdir}/emultempl/$(STRINGIFY)
    638 	  cp ${srcdir}/emultempl/$(STRINGIFY) stringify.sed
    639 
    640 # These all start with e so 'make clean' can find them.
    641 
    642 GENSCRIPTS = LIB_PATH='${LIB_PATH}' $(SHELL) $(srcdir)/genscripts.sh "${srcdir}" "${libdir}" "${prefix}" "${exec_prefix}" @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@" @use_sysroot@ @enable_initfini_array@
    643 GEN_DEPENDS = $(srcdir)/genscripts.sh stringify.sed
    644 ELF_DEPS = $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/elf-generic.em $(srcdir)/scripttempl/DWARF.sc
    645 ELF_GEN_DEPS = $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/elf-generic.em $(srcdir)/emultempl/genelf.em $(srcdir)/scripttempl/DWARF.sc
    646 
    647 @TDIRS@
    648 
    649 # We can't use pattern rules as we don't want to depend on GNU
    650 # make, or else these rules could have been expressed in one
    651 # two-liner: 'e%.c:' and '	${GENSCRIPTS} $* "$(tdir_$*)"'.
    652 # (The recursive variable expansion is portable.)
    653 
    654 run-genscripts:
    655 	${GENSCRIPTS} $(script_target) "$($(script_tdirname))"
    656 
    657 .PHONY: run-genscripts
    658 
    659 $(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES):
    660 	base=`echo $@ | sed -e 's,e\(.*\).c,\1,'`; \
    661 	$(MAKE) run-genscripts "script_target=$$base" "script_tdirname=tdir_$$base"
    662 
    663 eaix5ppc.c: $(srcdir)/emulparams/aix5ppc.sh \
    664   $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
    665 
    666 eaix5rs6.c: $(srcdir)/emulparams/aix5rs6.sh \
    667   $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
    668 
    669 eaixppc.c: $(srcdir)/emulparams/aixppc.sh \
    670   $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
    671 
    672 eaixrs6.c: $(srcdir)/emulparams/aixrs6.sh \
    673   $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
    674 
    675 ealpha.c: $(srcdir)/emulparams/alpha.sh \
    676   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
    677 
    678 ealphavms.c: $(srcdir)/emulparams/alphavms.sh \
    679   $(srcdir)/emultempl/vms.em $(srcdir)/scripttempl/alphavms.sc \
    680   ${GEN_DEPENDS}
    681 
    682 earcelf.c: $(srcdir)/emulparams/arcelf.sh \
    683   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    684 
    685 earm_epoc_pe.c: $(srcdir)/emulparams/arm_epoc_pe.sh \
    686   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/epocpe.sc ${GEN_DEPENDS}
    687 
    688 earm_wince_pe.c: $(srcdir)/emulparams/arm_wince_pe.sh \
    689   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
    690 
    691 earmaoutb.c:	$(srcdir)/emulparams/armaoutb.sh \
    692   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
    693 
    694 earmaoutl.c:	$(srcdir)/emulparams/armaoutl.sh \
    695   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
    696 
    697 earmcoff.c:	$(srcdir)/emulparams/armcoff.sh \
    698   $(srcdir)/emultempl/armcoff.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS}
    699 
    700 earmelf.c: $(srcdir)/emulparams/armelf.sh \
    701   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
    702   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    703 
    704 earmelf_fbsd.c: $(srcdir)/emulparams/armelf_fbsd.sh \
    705   $(srcdir)/emulparams/armelf.sh \
    706   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
    707   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    708 
    709 earmelf_linux.c: $(srcdir)/emulparams/armelf_linux.sh \
    710   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
    711   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    712 
    713 earmelf_linux_eabi.c: $(srcdir)/emulparams/armelf_linux_eabi.sh \
    714   $(srcdir)/emulparams/armelf_linux.sh \
    715   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
    716   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    717 
    718 earmelf_nacl.c: $(srcdir)/emulparams/armelf_nacl.sh \
    719   $(srcdir)/emulparams/armelf_linux_eabi.sh \
    720   $(srcdir)/emulparams/armelf_linux.sh \
    721   $(srcdir)/emulparams/elf_nacl.sh \
    722   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
    723   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    724 
    725 earmelf_nbsd.c: $(srcdir)/emulparams/armelf_nbsd.sh \
    726   $(srcdir)/emulparams/armelf.sh \
    727   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
    728   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    729 
    730 earmelf_vxworks.c: $(srcdir)/emulparams/armelf_vxworks.sh \
    731   $(srcdir)/emulparams/vxworks.sh $(srcdir)/emulparams/armelf.sh \
    732   $(ELF_DEPS) $(srcdir)/emultempl/vxworks.em \
    733   $(srcdir)/emultempl/armelf.em $(srcdir)/scripttempl/elf.sc \
    734   ${GEN_DEPENDS}
    735 
    736 earmelfb.c: $(srcdir)/emulparams/armelfb.sh $(srcdir)/emulparams/armelf.sh \
    737   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
    738   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    739 
    740 earmelfb_fbsd.c: $(srcdir)/emulparams/armelfb_fbsd.sh \
    741   $(srcdir)/emulparams/armelf_fbsd.sh \
    742   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
    743   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    744 
    745 earmelfb_linux.c: $(srcdir)/emulparams/armelfb_linux.sh \
    746   $(srcdir)/emulparams/armelf_linux.sh \
    747   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
    748   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    749 
    750 earmelfb_linux_eabi.c: $(srcdir)/emulparams/armelfb_linux_eabi.sh \
    751   $(srcdir)/emulparams/armelf_linux_eabi.sh \
    752   $(srcdir)/emulparams/armelf_linux.sh \
    753   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
    754   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    755 
    756 earmelfb_nacl.c: $(srcdir)/emulparams/armelfb_nacl.sh \
    757   $(srcdir)/emulparams/armelf_nacl.sh \
    758   $(srcdir)/emulparams/armelf_linux_eabi.sh \
    759   $(srcdir)/emulparams/armelf_linux.sh \
    760   $(srcdir)/emulparams/elf_nacl.sh \
    761   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
    762   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    763 
    764 earmelfb_nbsd.c: $(srcdir)/emulparams/armelfb_nbsd.sh \
    765   $(srcdir)/emulparams/armelf_nbsd.sh \
    766   $(srcdir)/emulparams/armelf.sh \
    767   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
    768   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    769 
    770 earmnbsd.c:	$(srcdir)/emulparams/armnbsd.sh \
    771   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
    772 
    773 earmnto.c: $(srcdir)/emulparams/armnto.sh \
    774   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
    775   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    776 
    777 earmpe.c: $(srcdir)/emulparams/armpe.sh \
    778   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
    779 
    780 earmsymbian.c: $(srcdir)/emulparams/armsymbian.sh \
    781   $(srcdir)/emulparams/armelf.sh $(ELF_DEPS) \
    782   $(srcdir)/emultempl/armelf.em $(srcdir)/scripttempl/armbpabi.sc \
    783   ${GEN_DEPENDS}
    784 
    785 eavr1.c: $(srcdir)/emulparams/avr1.sh $(srcdir)/emultempl/avrelf.em \
    786   $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
    787   ${GEN_DEPENDS}
    788 
    789 eavr2.c: $(srcdir)/emulparams/avr2.sh $(srcdir)/emultempl/avrelf.em \
    790   $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
    791   ${GEN_DEPENDS}
    792 
    793 eavr25.c: $(srcdir)/emulparams/avr25.sh $(srcdir)/emultempl/avrelf.em \
    794   $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
    795   ${GEN_DEPENDS}
    796 
    797 eavr3.c: $(srcdir)/emulparams/avr3.sh $(srcdir)/emultempl/avrelf.em \
    798   $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
    799   ${GEN_DEPENDS}
    800 
    801 eavr31.c: $(srcdir)/emulparams/avr31.sh $(srcdir)/emultempl/avrelf.em \
    802   $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
    803   ${GEN_DEPENDS}
    804 
    805 eavr35.c: $(srcdir)/emulparams/avr35.sh $(srcdir)/emultempl/avrelf.em \
    806   $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
    807   ${GEN_DEPENDS}
    808 
    809 eavr4.c: $(srcdir)/emulparams/avr4.sh $(srcdir)/emultempl/avrelf.em \
    810   $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
    811   ${GEN_DEPENDS}
    812 
    813 eavr5.c: $(srcdir)/emulparams/avr5.sh $(srcdir)/emultempl/avrelf.em \
    814   $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
    815   ${GEN_DEPENDS}
    816 
    817 eavr51.c: $(srcdir)/emulparams/avr51.sh $(srcdir)/emultempl/avrelf.em \
    818   $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
    819   ${GEN_DEPENDS}
    820 
    821 eavr6.c: $(srcdir)/emulparams/avr6.sh $(srcdir)/emultempl/avrelf.em \
    822   $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
    823   ${GEN_DEPENDS}
    824 
    825 eavrxmega1.c: $(srcdir)/emulparams/avrxmega1.sh \
    826   $(srcdir)/emultempl/avrelf.em $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
    827   ${GEN_DEPENDS}
    828 
    829 eavrxmega2.c: $(srcdir)/emulparams/avrxmega2.sh \
    830   $(srcdir)/emultempl/avrelf.em $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
    831   ${GEN_DEPENDS}
    832 
    833 eavrxmega3.c: $(srcdir)/emulparams/avrxmega3.sh \
    834   $(srcdir)/emultempl/avrelf.em $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
    835   ${GEN_DEPENDS}
    836 
    837 eavrxmega4.c: $(srcdir)/emulparams/avrxmega4.sh \
    838   $(srcdir)/emultempl/avrelf.em $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
    839   ${GEN_DEPENDS}
    840 
    841 eavrxmega5.c: $(srcdir)/emulparams/avrxmega5.sh \
    842   $(srcdir)/emultempl/avrelf.em $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
    843   ${GEN_DEPENDS}
    844 
    845 eavrxmega6.c: $(srcdir)/emulparams/avrxmega6.sh \
    846   $(srcdir)/emultempl/avrelf.em $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
    847   ${GEN_DEPENDS}
    848 
    849 eavrxmega7.c: $(srcdir)/emulparams/avrxmega7.sh \
    850   $(srcdir)/emultempl/avrelf.em $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
    851   ${GEN_DEPENDS}
    852 
    853 eavrtiny.c: $(srcdir)/emulparams/avrtiny.sh \
    854   $(srcdir)/emultempl/avrelf.em $(ELF_DEPS) $(srcdir)/scripttempl/avrtiny.sc \
    855   ${GEN_DEPENDS}
    856 
    857 ecoff_i860.c: $(srcdir)/emulparams/coff_i860.sh \
    858   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i860coff.sc ${GEN_DEPENDS}
    859 
    860 ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
    861   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
    862 
    863 ecrisaout.c: $(srcdir)/emulparams/crisaout.sh \
    864   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/crisaout.sc ${GEN_DEPENDS}
    865 
    866 ecriself.c: $(srcdir)/emulparams/criself.sh \
    867   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    868 
    869 ecrislinux.c: $(srcdir)/emulparams/crislinux.sh \
    870   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    871 
    872 ed10velf.c: $(srcdir)/emulparams/d10velf.sh \
    873   $(ELF_DEPS) $(srcdir)/scripttempl/elfd10v.sc ${GEN_DEPENDS}
    874 
    875 ed30v_e.c: $(srcdir)/emulparams/d30v_e.sh \
    876   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
    877 
    878 ed30v_o.c: $(srcdir)/emulparams/d30v_o.sh \
    879   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
    880 
    881 ed30velf.c: $(srcdir)/emulparams/d30velf.sh \
    882   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
    883 
    884 edelta68.c: $(srcdir)/emulparams/delta68.sh \
    885   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
    886 
    887 eelf32_dlx.c: $(srcdir)/emulparams/elf32_dlx.sh \
    888   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/dlx.sc ${GEN_DEPENDS}
    889 
    890 eelf32_i860.c: $(srcdir)/emulparams/elf32_i860.sh \
    891   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    892 
    893 eelf32_i960.c: $(srcdir)/emulparams/elf32_i960.sh \
    894   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    895 
    896 eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
    897   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    898 
    899 eelf32_sparc_sol2.c: $(srcdir)/emulparams/elf32_sparc_sol2.sh \
    900   $(srcdir)/emulparams/elf32_sparc.sh \
    901   $(srcdir)/emulparams/solaris2.sh \
    902   $(srcdir)/emultempl/solaris2.em $(ELF_DEPS) \
    903   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    904 
    905 eelf32_sparc_vxworks.c: $(srcdir)/emulparams/elf32_sparc_vxworks.sh \
    906   $(srcdir)/emulparams/vxworks.sh $(srcdir)/emulparams/elf32_sparc.sh \
    907   $(srcdir)/emultempl/vxworks.em $(ELF_DEPS) \
    908   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    909 
    910 eelf32_spu.c: $(srcdir)/emulparams/elf32_spu.sh $(srcdir)/emultempl/spuelf.em \
    911   $(srcdir)/emultempl/spu_ovl.@OBJEXT@_c $(srcdir)/emultempl/spu_icache.@OBJEXT@_c \
    912   ldemul-list.h \
    913   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    914 
    915 $(srcdir)/emultempl/spu_ovl.@OBJEXT@_c: @MAINT@ $(srcdir)/emultempl/spu_ovl.S
    916 	if ../gas/as-new --version \
    917 		| grep 'target.*spu' >/dev/null 2>/dev/null; then \
    918 	  cpp -DOVLY_IRQ_SAVE $(srcdir)/emultempl/spu_ovl.S spu_ovl.s; \
    919 	  ../gas/as-new -o spu_ovl.@OBJEXT@ spu_ovl.s; \
    920 	  ../binutils/bin2c <spu_ovl.@OBJEXT@ >$@; \
    921 	fi
    922 $(srcdir)/emultempl/spu_icache.@OBJEXT@_c: @MAINT@ $(srcdir)/emultempl/spu_icache.S
    923 	if ../gas/as-new --version \
    924 		| grep 'target.*spu' >/dev/null 2>/dev/null; then \
    925 	  cpp -DOVLY_IRQ_SAVE $(srcdir)/emultempl/spu_icache.S spu_icache.s; \
    926 	  ../gas/as-new -o spu_icache.@OBJEXT@ spu_icache.s; \
    927 	  ../binutils/bin2c <spu_icache.@OBJEXT@ >$@; \
    928 	fi
    929 eelf32_tic6x_be.c: $(srcdir)/emulparams/elf32_tic6x_be.sh \
    930   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc $(srcdir)/emultempl/tic6xdsbt.em \
    931   ${GEN_DEPENDS}
    932 
    933 eelf32_tic6x_elf_be.c: $(srcdir)/emulparams/elf32_tic6x_elf_be.sh \
    934   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc  $(srcdir)/emultempl/tic6xdsbt.em \
    935   ${GEN_DEPENDS}
    936 
    937 eelf32_tic6x_elf_le.c: $(srcdir)/emulparams/elf32_tic6x_elf_le.sh \
    938   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc  $(srcdir)/emultempl/tic6xdsbt.em \
    939   ${GEN_DEPENDS}
    940 
    941 eelf32_tic6x_le.c: $(srcdir)/emulparams/elf32_tic6x_le.sh \
    942   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc $(srcdir)/emultempl/tic6xdsbt.em \
    943   ${GEN_DEPENDS}
    944 
    945 eelf32_tic6x_linux_be.c: $(srcdir)/emulparams/elf32_tic6x_linux_be.sh \
    946   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc  $(srcdir)/emultempl/tic6xdsbt.em \
    947   ${GEN_DEPENDS}
    948 
    949 eelf32_tic6x_linux_le.c: $(srcdir)/emulparams/elf32_tic6x_linux_le.sh \
    950   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc  $(srcdir)/emultempl/tic6xdsbt.em \
    951   ${GEN_DEPENDS}
    952 
    953 eelf32am33lin.c: $(srcdir)/emulparams/elf32am33lin.sh \
    954   $(srcdir)/emulparams/elf32am33lin.sh \
    955   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    956 
    957 eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \
    958   $(srcdir)/emulparams/elf32bmip.sh $(ELF_DEPS) \
    959   $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    960 
    961 eelf32bfin.c: $(srcdir)/emulparams/elf32bfin.sh \
    962   $(ELF_DEPS) $(srcdir)/emultempl/bfin.em \
    963   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    964 
    965 eelf32bfinfd.c: $(srcdir)/emulparams/elf32bfinfd.sh \
    966   $(srcdir)/emulparams/elf32bfin.sh \
    967   $(ELF_DEPS) $(srcdir)/emultempl/bfin.em \
    968   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    969 
    970 eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh $(ELF_DEPS) \
    971   $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    972 
    973 eelf32bmipn32.c: $(srcdir)/emulparams/elf32bmipn32.sh \
    974   $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
    975   $(srcdir)/emultempl/irix.em $(srcdir)/emultempl/mipself.em \
    976   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    977 
    978 eelf32bsmip.c: $(srcdir)/emulparams/elf32bsmip.sh \
    979   $(srcdir)/emulparams/elf32bmip.sh $(ELF_DEPS) $(srcdir)/emultempl/irix.em \
    980   $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    981 
    982 eelf32btsmip.c: $(srcdir)/emulparams/elf32btsmip.sh \
    983   $(srcdir)/emulparams/elf32bmip.sh $(ELF_DEPS) \
    984   $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    985 
    986 eelf32btsmip_fbsd.c: $(srcdir)/emulparams/elf32btsmip_fbsd.sh \
    987   $(srcdir)/emulparams/elf32bmip.sh $(ELF_DEPS) \
    988   $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    989 
    990 eelf32btsmipn32.c: $(srcdir)/emulparams/elf32btsmipn32.sh \
    991   $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
    992   $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    993 
    994 eelf32btsmipn32_fbsd.c: $(srcdir)/emulparams/elf32btsmipn32_fbsd.sh \
    995   $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
    996   $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
    997 
    998 eelf32cr16.c: $(srcdir)/emulparams/elf32cr16.sh \
    999   $(ELF_DEPS) $(srcdir)/emultempl/cr16elf.em \
   1000   $(srcdir)/scripttempl/elf32cr16.sc ${GEN_DEPENDS}
   1001 
   1002 eelf32cr16c.c: $(srcdir)/emulparams/elf32cr16c.sh \
   1003   $(ELF_DEPS) $(srcdir)/scripttempl/elf32cr16c.sc ${GEN_DEPENDS}
   1004 
   1005 eelf32crx.c: $(srcdir)/emulparams/elf32crx.sh \
   1006   $(ELF_DEPS) $(srcdir)/emultempl/crxelf.em \
   1007   $(srcdir)/scripttempl/elf32crx.sc ${GEN_DEPENDS}
   1008 
   1009 eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
   1010   $(srcdir)/emulparams/elf32bmip.sh $(ELF_DEPS) \
   1011   $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1012 
   1013 eelf32ebmipvxworks.c: $(srcdir)/emulparams/elf32ebmipvxworks.sh \
   1014   $(srcdir)/emulparams/elf32bmip.sh $(srcdir)/emulparams/vxworks.sh \
   1015   $(ELF_DEPS) $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/mipself.em \
   1016   $(srcdir)/emultempl/vxworks.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1017 
   1018 eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \
   1019   $(srcdir)/emulparams/elf32lmip.sh $(srcdir)/emulparams/elf32bmip.sh \
   1020   $(ELF_DEPS) $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc \
   1021   ${GEN_DEPENDS}
   1022 
   1023 eelf32elmipvxworks.c: $(srcdir)/emulparams/elf32elmipvxworks.sh \
   1024   $(srcdir)/emulparams/elf32bmip.sh $(srcdir)/emulparams/vxworks.sh \
   1025   $(ELF_DEPS) $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/mipself.em \
   1026   $(srcdir)/emultempl/vxworks.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1027 
   1028 eelf32lr5900.c: $(srcdir)/emulparams/elf32lr5900.sh \
   1029   $(srcdir)/emulparams/elf32bmip.sh \
   1030   $(ELF_DEPS) $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc \
   1031   ${GEN_DEPENDS}
   1032 
   1033 eelf32lr5900n32.c: $(srcdir)/emulparams/elf32lr5900n32.sh \
   1034   $(srcdir)/emulparams/elf32bmipn32-defs.sh \
   1035   $(ELF_DEPS) $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc \
   1036   ${GEN_DEPENDS}
   1037 
   1038 eelf32epiphany.c: $(srcdir)/emulparams/elf32epiphany.sh \
   1039   $(ELF_DEPS) ${GEN_DEPENDS}
   1040 
   1041 eelf32epiphany_4x4.c: $(srcdir)/emulparams/elf32epiphany_4x4.sh \
   1042   $(srcdir)/emultempl/elf32.em \
   1043   $(ELF_DEPS) $(srcdir)/scripttempl/epiphany_4x4.sc ${GEN_DEPENDS}
   1044 
   1045 eelf32fr30.c: $(srcdir)/emulparams/elf32fr30.sh \
   1046   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1047 
   1048 eelf32frv.c: $(srcdir)/emulparams/elf32frv.sh \
   1049   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1050 
   1051 eelf32frvfd.c: $(srcdir)/emulparams/elf32frvfd.sh \
   1052   $(srcdir)/emulparams/elf32frv.sh \
   1053   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1054 
   1055 eelf32i370.c: $(srcdir)/emulparams/elf32i370.sh \
   1056   $(ELF_DEPS) $(srcdir)/scripttempl/elfi370.sc ${GEN_DEPENDS}
   1057 
   1058 eelf32ip2k.c: $(srcdir)/emulparams/elf32ip2k.sh \
   1059   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1060 
   1061 eelf32iq10.c: $(srcdir)/emulparams/elf32iq10.sh \
   1062   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/iq2000.sc ${GEN_DEPENDS}
   1063 
   1064 eelf32iq2000.c: $(srcdir)/emulparams/elf32iq2000.sh \
   1065   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/iq2000.sc ${GEN_DEPENDS}
   1066 
   1067 eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \
   1068   $(srcdir)/emulparams/elf32b4300.sh $(srcdir)/emulparams/elf32bmip.sh \
   1069   $(ELF_DEPS) $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc \
   1070   ${GEN_DEPENDS}
   1071 
   1072 eelf32lm32.c: $(srcdir)/emulparams/elf32lm32.sh \
   1073   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1074 
   1075 eelf32lm32fd.c: $(srcdir)/emulparams/elf32lm32fd.sh \
   1076   $(srcdir)/emulparams/elf32lm32.sh $(ELF_DEPS) \
   1077   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1078 
   1079 eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
   1080   $(srcdir)/emulparams/elf32bmip.sh $(ELF_DEPS) \
   1081   $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1082 
   1083 eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \
   1084   $(srcdir)/emulparams/elf32ppccommon.sh \
   1085   $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emultempl/ppc32elf.em \
   1086   ldemul-list.h \
   1087   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1088 
   1089 eelf32lppclinux.c: $(srcdir)/emulparams/elf32lppclinux.sh \
   1090   $(srcdir)/emulparams/elf32lppc.sh $(srcdir)/emulparams/elf32ppc.sh \
   1091   $(srcdir)/emulparams/elf32ppccommon.sh $(srcdir)/emultempl/ppc32elf.em \
   1092   ldemul-list.h \
   1093   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1094 
   1095 eelf32lppcnto.c: $(srcdir)/emulparams/elf32lppcnto.sh \
   1096   $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
   1097   $(srcdir)/emultempl/ppc32elf.em $(ELF_DEPS) \
   1098   ldemul-list.h \
   1099   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1100 
   1101 eelf32lppcsim.c: $(srcdir)/emulparams/elf32lppcsim.sh \
   1102   $(srcdir)/emulparams/elf32lppc.sh $(srcdir)/emulparams/elf32ppc.sh \
   1103   $(srcdir)/emulparams/elf32ppccommon.sh $(srcdir)/emultempl/ppc32elf.em \
   1104   ldemul-list.h \
   1105   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1106 
   1107 eelf32lsmip.c: $(srcdir)/emulparams/elf32lsmip.sh \
   1108   $(srcdir)/emulparams/elf32lmip.sh $(srcdir)/emulparams/elf32bmip.sh \
   1109   $(ELF_DEPS) $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc \
   1110   ${GEN_DEPENDS}
   1111 
   1112 eelf32ltsmip.c: $(srcdir)/emulparams/elf32ltsmip.sh \
   1113   $(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
   1114   $(ELF_DEPS) $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc \
   1115   ${GEN_DEPENDS}
   1116 
   1117 eelf32ltsmip_fbsd.c: $(srcdir)/emulparams/elf32ltsmip_fbsd.sh \
   1118   $(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
   1119   $(ELF_DEPS) $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc \
   1120   ${GEN_DEPENDS}
   1121 
   1122 eelf32ltsmipn32.c: $(srcdir)/emulparams/elf32ltsmipn32.sh \
   1123   $(srcdir)/emulparams/elf32btsmipn32.sh \
   1124   $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
   1125   $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1126 
   1127 eelf32ltsmipn32_fbsd.c: $(srcdir)/emulparams/elf32ltsmipn32_fbsd.sh \
   1128   $(srcdir)/emulparams/elf32btsmipn32.sh \
   1129   $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
   1130   $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1131 
   1132 eelf32m32c.c: $(srcdir)/emulparams/elf32m32c.sh \
   1133   $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
   1134   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1135 
   1136 eelf32mbel_linux.c: $(srcdir)/emulparams/elf32mbel_linux.sh \
   1137   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1138 
   1139 eelf32mb_linux.c: $(srcdir)/emulparams/elf32mb_linux.sh \
   1140   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1141 
   1142 eelf32mcore.c: $(srcdir)/emulparams/elf32mcore.sh \
   1143   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1144 
   1145 eelf32mep.c: $(srcdir)/emulparams/elf32mep.sh \
   1146   $(ELF_DEPS) $(srcdir)/scripttempl/mep.sc ${GEN_DEPENDS}
   1147 
   1148 eelf32metag.c: $(srcdir)/emulparams/elf32metag.sh \
   1149   $(ELF_DEPS) $(srcdir)/emultempl/metagelf.em \
   1150   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1151 
   1152 eelf32microblazeel.c: $(srcdir)/emulparams/elf32microblazeel.sh \
   1153   $(ELF_DEPS) $(srcdir)/scripttempl/elfmicroblaze.sc ${GEN_DEPENDS}
   1154 
   1155 eelf32microblaze.c: $(srcdir)/emulparams/elf32microblaze.sh \
   1156   $(ELF_DEPS) $(srcdir)/scripttempl/elfmicroblaze.sc ${GEN_DEPENDS}
   1157 
   1158 eelf32mipswindiss.c: $(srcdir)/emulparams/elf32mipswindiss.sh $(ELF_DEPS) \
   1159   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1160 
   1161 eelf32moxie.c: $(srcdir)/emulparams/elf32moxie.sh \
   1162   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1163 
   1164 emoxiebox.c: $(srcdir)/emulparams/moxiebox.sh \
   1165   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1166 
   1167 eelf32mt.c: $(srcdir)/emulparams/elf32mt.sh \
   1168   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1169 
   1170 eelf32or1k.c: $(srcdir)/emulparams/elf32or1k.sh \
   1171   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1172 
   1173 eelf32or1k_linux.c: $(srcdir)/emulparams/elf32or1k_linux.sh \
   1174   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1175 
   1176 eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
   1177   $(srcdir)/emulparams/elf32ppccommon.sh $(srcdir)/emultempl/ppc32elf.em \
   1178   ldemul-list.h \
   1179   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1180 
   1181 eelf32ppc_fbsd.c: $(srcdir)/emulparams/elf32ppc_fbsd.sh \
   1182   $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
   1183   $(srcdir)/emultempl/ppc32elf.em $(ELF_DEPS) \
   1184   ldemul-list.h \
   1185   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1186 
   1187 eelf32ppclinux.c: $(srcdir)/emulparams/elf32ppclinux.sh \
   1188   $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
   1189   $(srcdir)/emultempl/ppc32elf.em $(ELF_DEPS) \
   1190   ldemul-list.h \
   1191   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1192 
   1193 eelf32ppcnto.c: $(srcdir)/emulparams/elf32ppcnto.sh \
   1194   $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
   1195   $(srcdir)/emultempl/ppc32elf.em $(ELF_DEPS) \
   1196   ldemul-list.h \
   1197   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1198 
   1199 eelf32ppcsim.c: $(srcdir)/emulparams/elf32ppcsim.sh \
   1200   $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
   1201   $(srcdir)/emultempl/ppc32elf.em $(ELF_DEPS) \
   1202   ldemul-list.h \
   1203   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1204 
   1205 eelf32ppcvxworks.c: $(srcdir)/emulparams/elf32ppcvxworks.sh \
   1206   $(srcdir)/emulparams/elf32ppccommon.sh $(srcdir)/emulparams/vxworks.sh \
   1207   $(srcdir)/emultempl/vxworks.em $(ELF_DEPS) \
   1208   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1209 
   1210 eelf32ppcwindiss.c: $(srcdir)/emulparams/elf32ppcwindiss.sh \
   1211   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1212 
   1213 eelf32rl78.c: $(srcdir)/emulparams/elf32rl78.sh \
   1214   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1215 
   1216 eelf32rx.c: $(srcdir)/emulparams/elf32rx.sh \
   1217   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1218 
   1219 eelf32tilegx.c: $(srcdir)/emulparams/elf32tilegx.sh \
   1220   $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
   1221   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1222 
   1223 eelf32tilegx_be.c: $(srcdir)/emulparams/elf32tilegx_be.sh \
   1224   $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
   1225   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1226 
   1227 eelf32tilepro.c: $(srcdir)/emulparams/elf32tilepro.sh \
   1228   $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
   1229   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1230 
   1231 eelf32vax.c: $(srcdir)/emulparams/elf32vax.sh \
   1232   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1233 
   1234 eelf32xc16x.c: $(srcdir)/emulparams/elf32xc16x.sh \
   1235   $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
   1236   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1237 
   1238 eelf32xc16xl.c: $(srcdir)/emulparams/elf32xc16xl.sh \
   1239   $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
   1240   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1241 
   1242 eelf32xc16xs.c: $(srcdir)/emulparams/elf32xc16xs.sh \
   1243   $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
   1244   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1245 
   1246 eelf32xstormy16.c: $(srcdir)/emulparams/elf32xstormy16.sh \
   1247   $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
   1248   $(srcdir)/scripttempl/xstormy16.sc ${GEN_DEPENDS}
   1249 
   1250 eelf32xtensa.c: $(srcdir)/emulparams/elf32xtensa.sh $(ELF_DEPS) \
   1251   $(srcdir)/emultempl/xtensaelf.em $(INCDIR)/xtensa-config.h \
   1252   $(BFDDIR)/elf-bfd.h $(BFDDIR)/libbfd.h $(INCDIR)/elf/xtensa.h \
   1253   $(srcdir)/scripttempl/elfxtensa.sc ${GEN_DEPENDS}
   1254 
   1255 eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
   1256   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1257 
   1258 eelf_i386_be.c: $(srcdir)/emulparams/elf_i386_be.sh \
   1259   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1260 
   1261 eelf_i386_chaos.c: $(srcdir)/emulparams/elf_i386_chaos.sh \
   1262   $(ELF_DEPS) $(srcdir)/scripttempl/elf_chaos.sc ${GEN_DEPENDS}
   1263 
   1264 eelf_i386_fbsd.c: $(srcdir)/emulparams/elf_i386_fbsd.sh \
   1265   $(srcdir)/emulparams/elf_i386.sh \
   1266   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1267 
   1268 eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
   1269   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1270 
   1271 eelf_i386_nacl.c: $(srcdir)/emulparams/elf_i386_nacl.sh \
   1272   $(srcdir)/emulparams/elf_i386.sh \
   1273   $(srcdir)/emulparams/elf_nacl.sh \
   1274   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1275 
   1276 eelf_i386_sol2.c: $(srcdir)/emulparams/elf_i386_sol2.sh \
   1277   $(srcdir)/emulparams/solaris2.sh \
   1278   $(srcdir)/emultempl/solaris2.em \
   1279   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1280 
   1281 eelf_i386_vxworks.c: $(srcdir)/emulparams/elf_i386_vxworks.sh \
   1282   $(srcdir)/emulparams/vxworks.sh $(srcdir)/emultempl/vxworks.em \
   1283   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1284 
   1285 eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \
   1286   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1287 
   1288 egld960.c: $(srcdir)/emulparams/gld960.sh \
   1289   $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
   1290 
   1291 egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
   1292   $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
   1293 
   1294 eh8300.c: $(srcdir)/emulparams/h8300.sh \
   1295   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
   1296 
   1297 eh8300elf.c: $(srcdir)/emulparams/h8300elf.sh \
   1298   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1299 
   1300 eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
   1301   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
   1302 
   1303 eh8300helf.c: $(srcdir)/emulparams/h8300helf.sh \
   1304   $(srcdir)/emulparams/h8300elf.sh \
   1305   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1306 
   1307 eh8300hn.c: $(srcdir)/emulparams/h8300hn.sh \
   1308   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300hn.sc ${GEN_DEPENDS}
   1309 
   1310 eh8300hnelf.c: $(srcdir)/emulparams/h8300hnelf.sh \
   1311   $(srcdir)/emulparams/h8300elf.sh \
   1312   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1313 
   1314 eh8300s.c: $(srcdir)/emulparams/h8300s.sh \
   1315   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300s.sc ${GEN_DEPENDS}
   1316 
   1317 eh8300self.c: $(srcdir)/emulparams/h8300self.sh \
   1318   $(srcdir)/emulparams/h8300elf.sh \
   1319   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1320 
   1321 eh8300sn.c: $(srcdir)/emulparams/h8300sn.sh \
   1322   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300sn.sc ${GEN_DEPENDS}
   1323 
   1324 eh8300snelf.c: $(srcdir)/emulparams/h8300snelf.sh \
   1325   $(srcdir)/emulparams/h8300elf.sh \
   1326   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1327 
   1328 eh8300sx.c: $(srcdir)/emulparams/h8300sx.sh \
   1329   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300sx.sc ${GEN_DEPENDS}
   1330 
   1331 eh8300sxelf.c: $(srcdir)/emulparams/h8300sxelf.sh \
   1332   $(srcdir)/emulparams/h8300elf.sh \
   1333   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1334 
   1335 eh8300sxn.c: $(srcdir)/emulparams/h8300sxn.sh \
   1336   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300sxn.sc ${GEN_DEPENDS}
   1337 
   1338 eh8300sxnelf.c: $(srcdir)/emulparams/h8300sxnelf.sh \
   1339   $(srcdir)/emulparams/h8300elf.sh \
   1340   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1341 
   1342 eh8500.c: $(srcdir)/emulparams/h8500.sh \
   1343   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
   1344 
   1345 eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
   1346   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
   1347 
   1348 eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
   1349   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
   1350 
   1351 eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
   1352   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
   1353 
   1354 eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
   1355   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
   1356 
   1357 ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
   1358   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1359 
   1360 ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
   1361   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1362 
   1363 ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
   1364   $(ELF_DEPS) $(srcdir)/emultempl/hppaelf.em \
   1365   $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
   1366 
   1367 ehppalinux.c: $(srcdir)/emulparams/hppalinux.sh \
   1368   $(ELF_DEPS) $(srcdir)/emultempl/hppaelf.em \
   1369   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1370 
   1371 ehppanbsd.c: $(srcdir)/emulparams/hppanbsd.sh \
   1372   $(srcdir)/emulparams/hppaelf.sh \
   1373   $(ELF_DEPS) $(srcdir)/emultempl/hppaelf.em \
   1374   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1375 
   1376 ehppaobsd.c: $(srcdir)/emulparams/hppaobsd.sh \
   1377   $(ELF_DEPS) $(srcdir)/emultempl/hppaelf.em \
   1378   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1379 
   1380 ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
   1381   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1382 
   1383 ei386beos.c: $(srcdir)/emulparams/i386beos.sh \
   1384   $(srcdir)/emultempl/beos.em $(srcdir)/scripttempl/i386beos.sc ${GEN_DEPENDS}
   1385 
   1386 ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
   1387   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1388 
   1389 ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
   1390   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
   1391 
   1392 ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
   1393   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
   1394 
   1395 ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
   1396   $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1397 
   1398 ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
   1399   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1400 
   1401 ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
   1402   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1403 
   1404 ei386moss.c: $(srcdir)/emulparams/i386moss.sh \
   1405   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1406 
   1407 ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \
   1408   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS}
   1409 
   1410 ei386nbsd.c:	$(srcdir)/emulparams/i386nbsd.sh \
   1411   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1412 
   1413 ei386nto.c:	$(srcdir)/emulparams/i386nto.sh \
   1414   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1415 
   1416 ei386nw.c:	$(srcdir)/emulparams/i386nw.sh \
   1417   $(ELF_DEPS) $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
   1418 
   1419 ei386pe.c: $(srcdir)/emulparams/i386pe.sh \
   1420   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
   1421 
   1422 ei386pe_posix.c: $(srcdir)/emulparams/i386pe_posix.sh \
   1423   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
   1424 
   1425 ei386pep.c: $(srcdir)/emulparams/i386pep.sh \
   1426   $(srcdir)/emultempl/pep.em $(srcdir)/scripttempl/pep.sc ${GEN_DEPENDS}
   1427 
   1428 elnk960.c: $(srcdir)/emulparams/lnk960.sh \
   1429   $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
   1430 
   1431 em32relf.c: $(srcdir)/emulparams/m32relf.sh \
   1432   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1433 
   1434 em32relf_linux.c: $(srcdir)/emulparams/m32relf_linux.sh \
   1435   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1436 
   1437 em32rlelf.c: $(srcdir)/emulparams/m32rlelf.sh \
   1438   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1439 
   1440 em32rlelf_linux.c: $(srcdir)/emulparams/m32rlelf_linux.sh \
   1441   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1442 
   1443 em68hc11elf.c: $(srcdir)/emulparams/m68hc11elf.sh \
   1444   $(srcdir)/emultempl/m68hc1xelf.em $(ELF_DEPS) \
   1445   $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
   1446 
   1447 em68hc11elfb.c: $(srcdir)/emulparams/m68hc11elfb.sh \
   1448   $(srcdir)/emultempl/m68hc1xelf.em $(ELF_DEPS) \
   1449   $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
   1450 
   1451 em68hc12elf.c: $(srcdir)/emulparams/m68hc12elf.sh \
   1452   $(srcdir)/emultempl/m68hc1xelf.em $(ELF_DEPS) \
   1453   $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
   1454 
   1455 em68hc12elfb.c: $(srcdir)/emulparams/m68hc12elfb.sh \
   1456   $(srcdir)/emultempl/m68hc1xelf.em $(ELF_DEPS) \
   1457   $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
   1458 
   1459 em68k4knbsd.c:	$(srcdir)/emulparams/m68k4knbsd.sh \
   1460   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1461 
   1462 em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
   1463   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1464 
   1465 em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \
   1466   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS}
   1467 
   1468 em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
   1469   $(srcdir)/emultempl/m68kcoff.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
   1470 
   1471 em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \
   1472   $(ELF_DEPS) $(srcdir)/emultempl/m68kelf.em \
   1473   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1474 
   1475 em68kelfnbsd.c: $(srcdir)/emulparams/m68kelfnbsd.sh \
   1476   $(srcdir)/emulparams/m68kelf.sh \
   1477   $(ELF_DEPS) $(srcdir)/emultempl/m68kelf.em \
   1478   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1479 
   1480 em68klinux.c: $(srcdir)/emulparams/m68klinux.sh \
   1481   $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1482 
   1483 em68knbsd.c:	$(srcdir)/emulparams/m68knbsd.sh \
   1484   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1485 
   1486 em68kpsos.c:	$(srcdir)/emulparams/m68kpsos.sh \
   1487   $(ELF_DEPS) $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS}
   1488 
   1489 em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
   1490   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
   1491 
   1492 emcorepe.c: $(srcdir)/emulparams/mcorepe.sh \
   1493   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
   1494 
   1495 emn10200.c: $(srcdir)/emulparams/mn10200.sh \
   1496   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1497 
   1498 emn10300.c: $(srcdir)/emulparams/mn10300.sh \
   1499   $(srcdir)/emulparams/mn10200.sh \
   1500   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1501 
   1502 emsp430.c: $(srcdir)/emulparams/msp430.sh \
   1503   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf32msp430.sc ${GEN_DEPENDS}
   1504 
   1505 emsp430X.c: $(srcdir)/emulparams/msp430.sh $(srcdir)/emulparams/msp430X.sh \
   1506   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf32msp430.sc ${GEN_DEPENDS}
   1507 
   1508 ends32elf.c: $(srcdir)/emulparams/nds32elf.sh \
   1509   $(ELF_DEPS) $(srcdir)/emultempl/nds32elf.em \
   1510   $(srcdir)/scripttempl/nds32elf.sc ${GEN_DEPENDS}
   1511 
   1512 ends32elf16m.c: $(srcdir)/emulparams/nds32elf16m.sh \
   1513   $(ELF_DEPS) $(srcdir)/emultempl/nds32elf.em \
   1514   $(srcdir)/scripttempl/nds32elf.sc ${GEN_DEPENDS}
   1515 
   1516 ends32belf.c: $(srcdir)/emulparams/nds32belf.sh \
   1517   $(ELF_DEPS) $(srcdir)/emultempl/nds32elf.em \
   1518   $(srcdir)/scripttempl/nds32elf.sc ${GEN_DEPENDS}
   1519 
   1520 ends32belf16m.c: $(srcdir)/emulparams/nds32belf16m.sh \
   1521   $(ELF_DEPS) $(srcdir)/emultempl/nds32elf.em \
   1522   $(srcdir)/scripttempl/nds32elf.sc ${GEN_DEPENDS}
   1523 
   1524 ends32elf_linux.c: $(srcdir)/emulparams/nds32elf_linux.sh \
   1525   $(ELF_DEPS) $(srcdir)/emultempl/nds32elf.em \
   1526   $(srcdir)/scripttempl/nds32elf.sc ${GEN_DEPENDS}
   1527 
   1528 ends32belf_linux.c: $(srcdir)/emulparams/nds32belf_linux.sh \
   1529   $(ELF_DEPS) $(srcdir)/emultempl/nds32elf.em \
   1530   $(srcdir)/scripttempl/nds32elf.sc ${GEN_DEPENDS}
   1531 
   1532 enews.c: $(srcdir)/emulparams/news.sh \
   1533   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1534 
   1535 enios2elf.c: $(srcdir)/emulparams/nios2elf.sh \
   1536   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/nios2elf.em \
   1537   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1538 
   1539 enios2linux.c: $(srcdir)/emulparams/nios2linux.sh \
   1540   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/nios2elf.em \
   1541   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1542 
   1543 ens32knbsd.c:	$(srcdir)/emulparams/ns32knbsd.sh \
   1544   $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/netbsd.em \
   1545   $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1546 
   1547 eaarch64elf.c: $(srcdir)/emulparams/aarch64elf.sh \
   1548   $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
   1549   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1550 
   1551 eaarch64elf32.c: $(srcdir)/emulparams/aarch64elf32.sh \
   1552   $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
   1553   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1554 
   1555 eaarch64elfb.c: $(srcdir)/emulparams/aarch64elfb.sh $(srcdir)/emulparams/aarch64elf.sh \
   1556   $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
   1557   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1558 
   1559 eaarch64elf32b.c: $(srcdir)/emulparams/aarch64elf32b.sh $(srcdir)/emulparams/aarch64elf32.sh \
   1560   $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
   1561   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1562 
   1563 eaarch64linux.c: $(srcdir)/emulparams/aarch64linux.sh \
   1564   $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
   1565   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1566 
   1567 eaarch64linuxb.c: $(srcdir)/emulparams/aarch64linuxb.sh $(srcdir)/emulparams/aarch64linux.sh \
   1568   $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
   1569   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1570 
   1571 eaarch64linux32.c: $(srcdir)/emulparams/aarch64linux32.sh \
   1572   $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
   1573   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1574 
   1575 eaarch64linux32b.c: $(srcdir)/emulparams/aarch64linux32b.sh $(srcdir)/emulparams/aarch64linux32.sh \
   1576   $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
   1577   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1578 
   1579 epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \
   1580   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1581 
   1582 epdp11.c: $(srcdir)/emulparams/pdp11.sh \
   1583   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1584 
   1585 epjelf.c: $(srcdir)/emulparams/pjelf.sh \
   1586   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1587 
   1588 epjlelf.c: $(srcdir)/emulparams/pjlelf.sh $(srcdir)/emulparams/pjelf.sh \
   1589   $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1590 
   1591 eppclynx.c: $(srcdir)/emulparams/ppclynx.sh \
   1592   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1593 
   1594 eppcmacos.c:	$(srcdir)/emulparams/ppcmacos.sh \
   1595   $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
   1596 
   1597 eppcnw.c:	$(srcdir)/emulparams/ppcnw.sh \
   1598   $(ELF_DEPS) $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
   1599 
   1600 eppcpe.c: $(srcdir)/emulparams/ppcpe.sh \
   1601   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/ppcpe.sc ${GEN_DEPENDS}
   1602 
   1603 eriscix.c: $(srcdir)/emulparams/riscix.sh \
   1604   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1605 
   1606 escore3_elf.c: $(srcdir)/emulparams/score3_elf.sh \
   1607   $(ELF_DEPS) $(srcdir)/emultempl/scoreelf.em \
   1608   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1609 
   1610 escore7_elf.c: $(srcdir)/emulparams/score3_elf.sh \
   1611   $(srcdir)/emulparams/score7_elf.sh \
   1612   $(ELF_DEPS) $(srcdir)/emultempl/scoreelf.em \
   1613   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1614 
   1615 esh.c: $(srcdir)/emulparams/sh.sh \
   1616   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
   1617 
   1618 eshelf.c: $(srcdir)/emulparams/shelf.sh \
   1619   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1620 
   1621 eshelf32.c: $(srcdir)/emulparams/shelf32.sh \
   1622   $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
   1623   $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
   1624   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1625 
   1626 eshelf32_linux.c: $(srcdir)/emulparams/shelf32_linux.sh \
   1627   $(srcdir)/emulparams/shelf32.sh \
   1628   $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
   1629   $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
   1630   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1631 
   1632 eshelf32_nbsd.c: $(srcdir)/emulparams/shelf32_nbsd.sh \
   1633   $(srcdir)/emulparams/shelf32.sh \
   1634   $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
   1635   $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
   1636   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1637 
   1638 eshelf_fd.c: $(srcdir)/emulparams/shelf_fd.sh \
   1639   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1640 
   1641 eshelf_linux.c: $(srcdir)/emulparams/shelf_linux.sh \
   1642   $(srcdir)/emulparams/shlelf_linux.sh \
   1643   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1644 
   1645 eshelf_nbsd.c: $(srcdir)/emulparams/shelf_nbsd.sh \
   1646   $(srcdir)/emulparams/shelf.sh \
   1647   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1648 
   1649 eshelf_nto.c: $(srcdir)/emulparams/shelf_nto.sh \
   1650   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1651 
   1652 eshelf_uclinux.c: $(srcdir)/emulparams/shelf_uclinux.sh \
   1653   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1654 
   1655 eshelf_vxworks.c: $(srcdir)/emulparams/shelf_vxworks.sh \
   1656   $(srcdir)/emulparams/vxworks.sh $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc \
   1657   $(srcdir)/emultempl/vxworks.em ${GEN_DEPENDS}
   1658 
   1659 eshl.c: $(srcdir)/emulparams/shl.sh \
   1660   $(srcdir)/emulparams/sh.sh \
   1661   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
   1662 
   1663 eshlelf.c: $(srcdir)/emulparams/shlelf.sh \
   1664   $(srcdir)/emulparams/shelf.sh \
   1665   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1666 
   1667 eshlelf32.c: $(srcdir)/emulparams/shlelf32.sh \
   1668   $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h $(srcdir)/emulparams/shelf32.sh \
   1669   $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
   1670   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1671 
   1672 eshlelf32_linux.c: $(srcdir)/emulparams/shlelf32_linux.sh \
   1673   $(srcdir)/emulparams/shelf32_linux.sh $(srcdir)/emulparams/shelf32.sh \
   1674   $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
   1675   $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
   1676   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1677 
   1678 eshlelf32_nbsd.c: $(srcdir)/emulparams/shlelf32_nbsd.sh \
   1679   $(srcdir)/emulparams/shelf32_nbsd.sh $(srcdir)/emulparams/shelf32.sh \
   1680   $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
   1681   $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
   1682   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1683 
   1684 eshlelf_fd.c: $(srcdir)/emulparams/shlelf_fd.sh \
   1685   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1686 
   1687 eshlelf_linux.c: $(srcdir)/emulparams/shlelf_linux.sh \
   1688   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1689 
   1690 eshlelf_nbsd.c: $(srcdir)/emulparams/shlelf_nbsd.sh \
   1691   $(srcdir)/emulparams/shelf_nbsd.sh \
   1692   $(srcdir)/emulparams/shelf.sh \
   1693   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1694 
   1695 eshlelf_nto.c: $(srcdir)/emulparams/shlelf_nto.sh \
   1696   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1697 
   1698 eshlelf_vxworks.c: $(srcdir)/emulparams/shlelf_vxworks.sh \
   1699   $(srcdir)/emulparams/shelf_vxworks.sh $(srcdir)/emulparams/vxworks.sh \
   1700   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc $(srcdir)/emultempl/vxworks.em \
   1701   ${GEN_DEPENDS}
   1702 
   1703 eshlsymbian.c: $(srcdir)/emulparams/shlsymbian.sh \
   1704   $(srcdir)/emulparams/shelf.sh \
   1705   $(ELF_DEPS) $(srcdir)/scripttempl/elf32sh-symbian.sc ${GEN_DEPENDS}
   1706 
   1707 eshpe.c: $(srcdir)/emulparams/shpe.sh \
   1708   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
   1709 
   1710 esparcaout.c: $(srcdir)/emulparams/sparcaout.sh \
   1711   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1712 
   1713 esparclinux.c: $(srcdir)/emulparams/sparclinux.sh \
   1714   $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1715 
   1716 esparcnbsd.c:	$(srcdir)/emulparams/sparcnbsd.sh \
   1717   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1718 
   1719 est2000.c: $(srcdir)/emulparams/st2000.sh \
   1720   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
   1721 
   1722 esun3.c: $(srcdir)/emulparams/sun3.sh \
   1723   $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1724 
   1725 esun4.c: $(srcdir)/emulparams/sun4.sh \
   1726   $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1727 
   1728 etic30aout.c: $(srcdir)/emulparams/tic30aout.sh \
   1729   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30aout.sc ${GEN_DEPENDS}
   1730 
   1731 etic30coff.c: $(srcdir)/emulparams/tic30coff.sh \
   1732   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30coff.sc ${GEN_DEPENDS}
   1733 
   1734 etic3xcoff.c: $(srcdir)/emulparams/tic3xcoff.sh \
   1735   $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic4xcoff.sc ${GEN_DEPENDS}
   1736 
   1737 etic3xcoff_onchip.c: $(srcdir)/emulparams/tic3xcoff_onchip.sh \
   1738   $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic4xcoff.sc ${GEN_DEPENDS}
   1739 
   1740 etic4xcoff.c: $(srcdir)/emulparams/tic4xcoff.sh \
   1741   $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic4xcoff.sc ${GEN_DEPENDS}
   1742 
   1743 etic54xcoff.c: $(srcdir)/emulparams/tic54xcoff.sh \
   1744   $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic54xcoff.sc ${GEN_DEPENDS}
   1745 
   1746 etic80coff.c: $(srcdir)/emulparams/tic80coff.sh \
   1747   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic80coff.sc ${GEN_DEPENDS}
   1748 
   1749 ev850.c: $(srcdir)/emulparams/v850.sh \
   1750   $(ELF_DEPS) $(srcdir)/scripttempl/v850.sc ${GEN_DEPENDS}
   1751 
   1752 ev850_rh850.c: $(srcdir)/emulparams/v850_rh850.sh \
   1753   $(ELF_DEPS) $(srcdir)/scripttempl/v850_rh850.sc ${GEN_DEPENDS}
   1754 
   1755 evanilla.c: $(srcdir)/emulparams/vanilla.sh \
   1756   $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
   1757 
   1758 evax.c: $(srcdir)/emulparams/vax.sh \
   1759   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1760 
   1761 evaxnbsd.c: $(srcdir)/emulparams/vaxnbsd.sh \
   1762   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1763 
   1764 evsta.c: $(srcdir)/emulparams/vsta.sh \
   1765   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
   1766 
   1767 ew65.c: $(srcdir)/emulparams/w65.sh \
   1768   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS}
   1769 
   1770 exgateelf.c: $(srcdir)/emulparams/xgateelf.sh \
   1771   $(srcdir)/emultempl/generic.em $(ELF_DEPS) \
   1772   $(srcdir)/scripttempl/elfxgate.sc ${GEN_DEPENDS}
   1773 
   1774 ez80.c: $(srcdir)/emulparams/z80.sh \
   1775   $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/z80.em \
   1776   $(srcdir)/scripttempl/z80.sc ${GEN_DEPENDS}
   1777 
   1778 ez8001.c: $(srcdir)/emulparams/z8001.sh \
   1779   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
   1780 
   1781 ez8002.c: $(srcdir)/emulparams/z8002.sh \
   1782   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
   1783 
   1784 eelf32_x86_64.c: $(srcdir)/emulparams/elf32_x86_64.sh \
   1785   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1786 
   1787 eelf32_x86_64_nacl.c: $(srcdir)/emulparams/elf32_x86_64_nacl.sh \
   1788   $(srcdir)/emulparams/elf32_x86_64.sh \
   1789   $(srcdir)/emulparams/elf_nacl.sh \
   1790   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1791 
   1792 eelf64_aix.c: $(srcdir)/emulparams/elf64_aix.sh \
   1793   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1794 
   1795 eelf64_ia64.c: $(srcdir)/emulparams/elf64_ia64.sh \
   1796   $(ELF_DEPS) $(srcdir)/emultempl/ia64elf.em \
   1797   $(srcdir)/emultempl/needrelax.em \
   1798   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1799 
   1800 eelf64_ia64_fbsd.c: $(srcdir)/emulparams/elf64_ia64_fbsd.sh \
   1801   $(srcdir)/emulparams/elf64_ia64.sh \
   1802   $(ELF_DEPS) $(srcdir)/emultempl/ia64elf.em \
   1803   $(srcdir)/emultempl/needrelax.em \
   1804   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1805 
   1806 eelf64_ia64_vms.c: $(srcdir)/emulparams/elf64_ia64_vms.sh \
   1807   $(srcdir)/emultempl/vms.em $(srcdir)/emultempl/elf-generic.em \
   1808   $(srcdir)/scripttempl/ia64vms.sc ${GEN_DEPENDS}
   1809 
   1810 eelf64_s390.c: $(srcdir)/emulparams/elf64_s390.sh \
   1811   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1812 
   1813 eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
   1814   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1815 
   1816 eelf64_sparc_fbsd.c: $(srcdir)/emulparams/elf64_sparc_fbsd.sh \
   1817   $(srcdir)/emulparams/elf64_sparc.sh \
   1818   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1819 
   1820 eelf64_sparc_sol2.c: $(srcdir)/emulparams/elf64_sparc_sol2.sh \
   1821   $(srcdir)/emulparams/elf64_sparc.sh \
   1822   $(srcdir)/emulparams/solaris2.sh \
   1823   $(srcdir)/emultempl/solaris2.em \
   1824   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1825 
   1826 eelf64alpha.c: $(srcdir)/emulparams/elf64alpha.sh \
   1827   $(ELF_DEPS) $(srcdir)/emultempl/alphaelf.em \
   1828   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1829 
   1830 eelf64alpha_fbsd.c: $(srcdir)/emulparams/elf64alpha_fbsd.sh \
   1831   $(srcdir)/emulparams/elf64alpha.sh \
   1832   $(ELF_DEPS) $(srcdir)/emultempl/alphaelf.em \
   1833   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1834 
   1835 eelf64alpha_nbsd.c: $(srcdir)/emulparams/elf64alpha_nbsd.sh \
   1836   $(srcdir)/emulparams/elf64alpha.sh \
   1837   $(ELF_DEPS) $(srcdir)/emultempl/alphaelf.em \
   1838   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1839 
   1840 eelf64bmip.c: $(srcdir)/emulparams/elf64bmip.sh \
   1841   $(srcdir)/emulparams/elf64bmip-defs.sh \
   1842   $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
   1843   $(srcdir)/emultempl/irix.em $(srcdir)/emultempl/mipself.em \
   1844   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1845 
   1846 eelf64btsmip.c: $(srcdir)/emulparams/elf64btsmip.sh \
   1847   $(srcdir)/emulparams/elf64bmip-defs.sh \
   1848   $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
   1849   $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1850 
   1851 eelf64btsmip_fbsd.c: $(srcdir)/emulparams/elf64btsmip_fbsd.sh \
   1852   $(srcdir)/emulparams/elf64bmip-defs.sh \
   1853   $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
   1854   $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1855 
   1856 eelf64hppa.c: $(srcdir)/emulparams/elf64hppa.sh \
   1857   $(ELF_DEPS) $(srcdir)/scripttempl/elf64hppa.sc ${GEN_DEPENDS}
   1858 
   1859 eelf64lppc.c: $(srcdir)/emulparams/elf64lppc.sh \
   1860   $(srcdir)/emulparams/elf64ppc.sh $(srcdir)/emultempl/ppc64elf.em \
   1861   ldemul-list.h \
   1862   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1863 
   1864 eelf64ltsmip.c: $(srcdir)/emulparams/elf64ltsmip.sh \
   1865   $(srcdir)/emulparams/elf64btsmip.sh $(srcdir)/emulparams/elf64bmip-defs.sh \
   1866   $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
   1867   $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1868 
   1869 eelf64ltsmip_fbsd.c: $(srcdir)/emulparams/elf64ltsmip_fbsd.sh \
   1870   $(srcdir)/emulparams/elf64btsmip_fbsd.sh $(srcdir)/emulparams/elf64bmip-defs.sh \
   1871   $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
   1872   $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1873 
   1874 eelf64mmix.c: $(srcdir)/emulparams/elf64mmix.sh \
   1875   $(ELF_DEPS) $(srcdir)/emultempl/mmix-elfnmmo.em \
   1876   $(srcdir)/emultempl/mmixelf.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1877 
   1878 eelf64ppc.c: $(srcdir)/emulparams/elf64ppc.sh $(srcdir)/emultempl/ppc64elf.em \
   1879   ldemul-list.h \
   1880   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1881 
   1882 eelf64ppc_fbsd.c: $(srcdir)/emulparams/elf64ppc_fbsd.sh \
   1883   $(srcdir)/emultempl/ppc64elf.em ldemul-list.h \
   1884   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1885 
   1886 eelf64rdos.c: $(srcdir)/emulparams/elf64rdos.sh \
   1887   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1888 
   1889 eelf64tilegx.c: $(srcdir)/emulparams/elf64tilegx.sh \
   1890   $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
   1891   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1892 
   1893 eelf64tilegx_be.c: $(srcdir)/emulparams/elf64tilegx_be.sh \
   1894   $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
   1895   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1896 
   1897 eelf_l1om.c: $(srcdir)/emulparams/elf_l1om.sh \
   1898   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1899 
   1900 eelf_l1om_fbsd.c: $(srcdir)/emulparams/elf_l1om_fbsd.sh \
   1901   $(srcdir)/emulparams/elf_l1om.sh \
   1902   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1903 
   1904 eelf_k1om.c: $(srcdir)/emulparams/elf_k1om.sh \
   1905   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1906 
   1907 eelf_k1om_fbsd.c: $(srcdir)/emulparams/elf_k1om_fbsd.sh \
   1908   $(srcdir)/emulparams/elf_k1om.sh \
   1909   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1910 
   1911 eelf_x86_64.c: $(srcdir)/emulparams/elf_x86_64.sh \
   1912   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1913 
   1914 eelf_x86_64_fbsd.c: $(srcdir)/emulparams/elf_x86_64_fbsd.sh \
   1915   $(srcdir)/emulparams/elf_x86_64.sh \
   1916   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1917 
   1918 eelf_x86_64_nacl.c: $(srcdir)/emulparams/elf_x86_64_nacl.sh \
   1919   $(srcdir)/emulparams/elf_x86_64.sh \
   1920   $(srcdir)/emulparams/elf_nacl.sh \
   1921   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1922 
   1923 eelf_x86_64_sol2.c: $(srcdir)/emulparams/elf_x86_64_sol2.sh \
   1924   $(srcdir)/emulparams/elf_x86_64.sh \
   1925   $(srcdir)/emulparams/solaris2.sh \
   1926   $(srcdir)/emultempl/solaris2.em \
   1927   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1928 
   1929 ehppa64linux.c: $(srcdir)/emulparams/hppa64linux.sh \
   1930   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1931 
   1932 emmo.c: $(srcdir)/emulparams/mmo.sh $(srcdir)/emultempl/mmix-elfnmmo.em \
   1933   $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/elf-generic.em \
   1934   $(srcdir)/emultempl/mmo.em $(srcdir)/scripttempl/DWARF.sc \
   1935   $(srcdir)/scripttempl/mmo.sc ${GEN_DEPENDS}
   1936 
   1937 eshelf64.c: $(srcdir)/emulparams/shelf64.sh $(srcdir)/emulparams/shelf32.sh \
   1938   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1939 
   1940 eshelf64_nbsd.c: $(srcdir)/emulparams/shelf64_nbsd.sh \
   1941   $(srcdir)/emulparams/shelf32_nbsd.sh $(srcdir)/emulparams/shelf32.sh \
   1942   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1943 
   1944 eshlelf64.c: $(srcdir)/emulparams/shlelf64.sh \
   1945   $(srcdir)/emulparams/shelf64.sh $(srcdir)/emulparams/shelf32.sh \
   1946   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1947 
   1948 eshlelf64_nbsd.c: $(srcdir)/emulparams/shlelf64_nbsd.sh \
   1949   $(srcdir)/emulparams/shelf64_nbsd.sh \
   1950   $(srcdir)/emulparams/shelf32_nbsd.sh $(srcdir)/emulparams/shelf32.sh \
   1951   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
   1952 
   1953 
   1954 # We need this for automake to use YLWRAP.
   1955 EXTRA_ld_new_SOURCES = deffilep.y ldlex.l
   1956 # Allow dependency tracking to work for these files, too.
   1957 EXTRA_ld_new_SOURCES += pep-dll.c pe-dll.c
   1958 
   1959 ld_new_SOURCES = ldgram.y ldlex-wrapper.c lexsup.c ldlang.c mri.c ldctor.c ldmain.c \
   1960 	ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c $(PLUGIN_C) \
   1961 	ldbuildid.c
   1962 ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) \
   1963 		      $(BFDLIB) $(LIBIBERTY) $(LIBINTL_DEP)
   1964 ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
   1965 
   1966 # Dependency tracking for the generated emulation files.
   1967 EXTRA_ld_new_SOURCES += $(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES)
   1968 
   1969 # This is the real libbfd.a created by libtool.
   1970 TESTBFDLIB = @TESTBFDLIB@
   1971 
   1972 check-DEJAGNU: site.exp
   1973 	srcroot=`cd $(srcdir) && pwd`; export srcroot; \
   1974 	r=`pwd`; export r; \
   1975 	LC_ALL=C; export LC_ALL; \
   1976 	EXPECT=$(EXPECT); export EXPECT; \
   1977 	runtest=$(RUNTEST); \
   1978 	if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
   1979 	  $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \
   1980 		CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
   1981 		CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \
   1982 		CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \
   1983 		OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" \
   1984 		LIBIBERTY="$(LIBIBERTY) $(LIBINTL)" LIBS="$(LIBS)" \
   1985 		DO_COMPARE="`echo '$(do_compare)' | sed -e 's,\\$$,,g'`" \
   1986 		$(RUNTESTFLAGS); \
   1987 	else echo "WARNING: could not find \`runtest'" 1>&2; :;\
   1988 	fi
   1989 
   1990 # Rules for testing by relinking ld itself.
   1991 # A similar test is in the testsuite.  This target is for ease of use
   1992 # when porting ld.
   1993 
   1994 ld-partial.@OBJEXT@: ld-new$(EXEEXT)
   1995 	./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld-partial.@OBJEXT@ -r $(OFILES)
   1996 ld1$(EXEEXT): ld-partial.@OBJEXT@
   1997 	./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1$(EXEEXT) $(HOSTING_CRT0) ld-partial.@OBJEXT@ $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
   1998 
   1999 ld1-full$(EXEEXT): ld-new
   2000 	./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1-full$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
   2001 
   2002 ld2$(EXEEXT): ld1$(EXEEXT)
   2003 	./ld1$(EXEEXT) $(HOSTING_EMU) -o ld2$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
   2004 
   2005 ld3$(EXEEXT): ld2$(EXEEXT)
   2006 	./ld2$(EXEEXT) $(HOSTING_EMU) -o ld3$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
   2007 
   2008 bootstrap: ld3$(EXEEXT)
   2009 	cmp ld2$(EXEEXT) ld3$(EXEEXT)
   2010 
   2011 .PHONY: bootstrap
   2012 
   2013 # A test program for C++ constructors and destructors.
   2014 # This test is now in the testsuite.
   2015 #
   2016 #cdtest: cdtest-main.@OBJEXT@ cdtest-bar.@OBJEXT@ cdtest-foo.@OBJEXT@ ld.new
   2017 #	./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
   2018 #	  cdtest-main.@OBJEXT@ cdtest-bar.@OBJEXT@ cdtest-foo.@OBJEXT@ $(HOSTING_LIBS)
   2019 #
   2020 #cdtest.out: cdtest
   2021 #	./cdtest > cdtest.tmp
   2022 #	mv cdtest.tmp cdtest.out
   2023 #
   2024 #cdtest-ur.@OBJEXT@: cdtest-main.@OBJEXT@ cdtest-bar.@OBJEXT@ cdtest-foo.@OBJEXT@ ld.new
   2025 #	./ld.new $(HOSTING_EMU) -o cdtest-ur.@OBJEXT@ -Ur cdtest-main.@OBJEXT@ \
   2026 #	  cdtest-bar.@OBJEXT@ cdtest-foo.@OBJEXT@
   2027 #
   2028 #cdtest-ur: cdtest-ur.@OBJEXT@
   2029 #	./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.@OBJEXT@ \
   2030 #	  $(HOSTING_LIBS)
   2031 #
   2032 #cdtest-ur.out: cdtest-ur
   2033 #	./cdtest-ur > cdtest-ur.tmp
   2034 #	mv cdtest-ur.tmp cdtest-ur.out
   2035 #
   2036 #check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
   2037 #	diff $(srcdir)/cdtest.exp cdtest.out
   2038 #	diff $(srcdir)/cdtest.exp cdtest-ur.out
   2039 #
   2040 #.PHONY: check-cdtest
   2041 
   2042 # END OF CHECK TARGETS
   2043 
   2044 #
   2045 # Build a dummy plugin using libtool.
   2046 #
   2047 if ENABLE_PLUGINS
   2048 noinst_LTLIBRARIES = libldtestplug.la
   2049 libldtestplug_la_SOURCES = testplug.c
   2050 libldtestplug_la_CFLAGS= -g -O2
   2051 libldtestplug_la_LDFLAGS = -no-undefined -rpath /nowhere
   2052 endif
   2053 
   2054 # DOCUMENTATION TARGETS
   2055 # Manual configuration file; not usually attached to normal configuration,
   2056 # because almost all configs use "gen" version of manual.
   2057 #  Set DOCVER above to change.
   2058 configdoc.texi:	${DOCVER}-doc.texi
   2059 	cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
   2060 	chmod u+w ./configdoc.texi
   2061 
   2062 # Build the man page from the texinfo file
   2063 # The sed command removes the no-adjust Nroff command so that
   2064 # the man output looks standard.
   2065 ld.1: $(srcdir)/ld.texinfo configdoc.texi
   2066 	touch $@
   2067 	-$(TEXI2POD) $(MANCONF) < $(srcdir)/ld.texinfo > ld.pod
   2068 	-($(POD2MAN) ld.pod | \
   2069 		sed -e '/^.if n .na/d' > $@.T$$$$ && \
   2070 		mv -f $@.T$$$$ $@) || \
   2071 		(rm -f $@.T$$$$ && exit 1)
   2072 	rm -f ld.pod
   2073 
   2074 MAINTAINERCLEANFILES = configdoc.texi ld.1
   2075 
   2076 # We want to reconfigure if configure.host or configure.tgt changes.
   2077 # development.sh is used to determine -Werror default.
   2078 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host $(srcdir)/configure.tgt \
   2079 	$(BFDDIR)/development.sh
   2080 
   2081 MOSTLYCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) \
   2082 	ldemul-list.h crtbegin.@OBJEXT@ crtend.@OBJEXT@ ld.log ld.sum
   2083 mostlyclean-local:
   2084 	-rm -rf tmpdir
   2085 CLEANFILES = dep.sed DEP DEPA DEP1 DEP2 spu_ovl.s spu_ovl.@OBJEXT@ spu_icache.s spu_icache.@OBJEXT@
   2086 
   2087 .PHONY: install-exec-local install-data-local
   2088 
   2089 install-exec-local: ld-new$(EXEEXT) install-binPROGRAMS
   2090 	$(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
   2091 	n=`echo $(installed_linker) | sed '$(transform)'`; \
   2092 	if test "$(bindir)" != "$(tooldir)/bin"; then \
   2093 	  rm -f $(DESTDIR)$(tooldir)/bin/$(installed_linker)$(EXEEXT); \
   2094 	  ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$(installed_linker)$(EXEEXT) >/dev/null 2>/dev/null \
   2095 	  || $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$(installed_linker)$(EXEEXT); \
   2096 	fi; \
   2097 	if test "x$(install_as_default)" = "xyes"; then \
   2098 	  ld=`echo ld | sed '$(transform)'`; \
   2099 	  rm -f $(DESTDIR)$(bindir)/$$ld$(EXEEXT); \
   2100 	  ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(bindir)/$$ld$(EXEEXT) >/dev/null 2>/dev/null \
   2101 	  || $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(bindir)/$$ld$(EXEEXT); \
   2102 	  if test "$(bindir)" != "$(tooldir)/bin"; then \
   2103 	    rm -f $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
   2104 	    ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
   2105 	    || $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
   2106 	  fi; \
   2107 	fi
   2108 
   2109 install-data-local:
   2110 	$(mkinstalldirs) $(DESTDIR)$(scriptdir)/ldscripts
   2111 	for f in ldscripts/* ; do \
   2112 	  $(INSTALL_DATA) $$f $(DESTDIR)$(scriptdir)/$$f ; \
   2113 	done
   2114 
   2115 # Stuff that should be included in a distribution.  The diststuff
   2116 # target is run by the taz target in ../Makefile.in.
   2117 EXTRA_DIST = ldgram.c ldgram.h ldlex.c emultempl/spu_ovl.@OBJEXT@_c \
   2118 	     emultempl/spu_icache.@OBJEXT@_c deffilep.c deffilep.h $(man_MANS)
   2119 diststuff: info $(EXTRA_DIST)
   2120 
   2121 # Both info (ld.info) and ld.1 depend on configdoc.texi.
   2122 # But info isn't a direct target. Make info-recursive to depend on
   2123 # ld.1 to support parallel build.
   2124 info-recursive: ld.1
   2125 
   2126 DISTCLEANFILES = tdirs site.exp site.bak stringify.sed
   2127 distclean-local:
   2128 	rm -rf ldscripts
   2129 
   2130 MAINTAINERCLEANFILES += ld.info
   2131 
   2132 # Automake 1.9 will only build info files in the objdir if they are
   2133 # mentioned in DISTCLEANFILES.  It doesn't have to be unconditional,
   2134 # though, so we use a bogus condition.
   2135 if GENINSRC_NEVER
   2136 DISTCLEANFILES += ld.info
   2137 endif
   2138