Richard Sandiford <richard@codesourcery.com>
[external/binutils.git] / ld / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2
3 ## FIXME: work around apparent automake bug.
4 INTLLIBS = @INTLLIBS@
5
6 AUTOMAKE_OPTIONS = cygnus dejagnu
7
8 SUBDIRS = po
9
10 tooldir = $(exec_prefix)/$(target_alias)
11
12 YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
13 YFLAGS = -d
14 LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
15
16 WARN_CFLAGS = @WARN_CFLAGS@
17 NO_WERROR = @NO_WERROR@
18 AM_CFLAGS = $(WARN_CFLAGS)
19
20 # We put the scripts in the directory $(scriptdir)/ldscripts.
21 # We can't put the scripts in $(datadir) because the SEARCH_DIR
22 # directives need to be different for native and cross linkers.
23 scriptdir = $(tooldir)/lib
24
25 EMUL = @EMUL@
26 EMULATION_OFILES = @EMULATION_OFILES@
27 EMUL_EXTRA_OFILES = @EMUL_EXTRA_OFILES@
28
29 # Search path to override the default search path for -lfoo libraries.
30 # If LIB_PATH is empty, the ones in the script (if any) are left alone.
31 # (The default is usually /lib:/usr/lib:/usr/local/lib, unless building
32 # a cross-linker, in which case the default is empty.  See genscripts.sh.)
33 # Otherwise, they are replaced with the ones given in LIB_PATH,
34 # which may have the form: LIB_PATH=/lib:/usr/local/lib.  This can be set
35 # when the linker is configured via the --with-lib-path configure switch.
36 LIB_PATH = @LIB_PATH@
37
38 BASEDIR = $(srcdir)/..
39 BFDDIR = $(BASEDIR)/bfd
40 INCDIR  = $(BASEDIR)/include
41 MKDEP = gcc -MM
42
43 # What version of the manual to build
44 DOCVER = gen
45
46 # Options to extract the man page from ld.texinfo
47 MANCONF = -Dman
48
49 TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl
50
51 POD2MAN = pod2man --center="GNU Development Tools" \
52         --release="binutils-$(VERSION)" --section=1
53
54 #stuff for self hosting (can be overridden in config file).
55 HOSTING_CRT0 = @HOSTING_CRT0@
56 HOSTING_LIBS = @HOSTING_LIBS@
57 HOSTING_EMU = -m $(EMUL)
58
59 # Setup the testing framework, if you have one
60 EXPECT = expect
61 RUNTEST = runtest
62 RUNTESTFLAGS =
63
64 CC_FOR_TARGET = ` \
65   if [ -f $$r/../gcc/xgcc ] ; then \
66     if [ -f $$r/../newlib/Makefile ] ; then \
67       echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
68     else \
69       echo $$r/../gcc/xgcc -B$$r/../gcc/; \
70     fi; \
71   else \
72     if [ "@host@" = "@target@" ] ; then \
73       echo $(CC); \
74     else \
75       echo gcc | sed '$(transform)'; \
76     fi; \
77   fi`
78
79 CXX = gcc
80 CXX_FOR_TARGET = ` \
81   if [ -f $$r/../gcc/xgcc ] ; then \
82     if [ -f $$r/../newlib/Makefile ] ; then \
83       echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
84     else \
85       echo $$r/../gcc/xgcc -B$$r/../gcc/; \
86     fi; \
87   else \
88     if [ "@host@" = "@target@" ] ; then \
89       echo $(CXX); \
90     else \
91       echo gcc | sed '$(transform)'; \
92     fi; \
93   fi`
94
95 noinst_PROGRAMS = ld-new
96 info_TEXINFOS = ld.texinfo
97 noinst_TEXINFOS = ldint.texinfo
98 man_MANS = ld.1
99
100 AM_MAKEINFOFLAGS = -I $(srcdir) -I $(BFDDIR)/doc
101 TEXI2DVI = texi2dvi -I $(srcdir) -I $(BFDDIR)/doc
102
103 INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) -I$(top_srcdir)/../intl -I../intl $(HDEFINES) $(CFLAGS) -DLOCALEDIR="\"$(datadir)/locale\""
104
105 BFDLIB = ../bfd/libbfd.la
106 LIBIBERTY = ../libiberty/libiberty.a
107
108 ALL_EMULATIONS = \
109         eaixppc.o \
110         eaixrs6.o \
111         ealpha.o \
112         earcelf.o \
113         earm_epoc_pe.o \
114         earmaoutb.o \
115         earmaoutl.o \
116         earmcoff.o \
117         earmelf.o \
118         earmelfb.o \
119         earmelf_fbsd.o \
120         earmelf_linux.o \
121         earmelf_linux_eabi.o \
122         earmelfb_linux.o \
123         earmelfb_linux_eabi.o \
124         earmelf_nbsd.o \
125         earmelfb_nbsd.o \
126         earmelf_vxworks.o \
127         earmnto.o \
128         earmnbsd.o \
129         earmpe.o \
130         earmsymbian.o \
131         eavr2.o \
132         eavr1.o \
133         eavr3.o \
134         eavr4.o \
135         eavr5.o \
136         ecoff_i860.o \
137         ecoff_sparc.o \
138         ecrisaout.o \
139         ecriself.o \
140         ecrislinux.o \
141         ed10velf.o \
142         ed30v_e.o \
143         ed30v_o.o \
144         ed30velf.o \
145         edelta68.o \
146         eelf32_dlx.o \
147         eelf32_i960.o \
148         eelf32_i860.o \
149         eelf32_sparc.o \
150         eelf32b4300.o \
151         eelf32bfin.o \
152         eelf32cr16c.o \
153         eelf32bmip.o \
154         eelf32bmipn32.o \
155         eelf32btsmip.o \
156         eelf32crx.o \
157         eelf32btsmipn32.o \
158         eelf32ltsmip.o \
159         eelf32ltsmipn32.o \
160         eelf32ebmip.o \
161         eelf32ebmipvxworks.o \
162         eelf32elmip.o \
163         eelf32elmipvxworks.o \
164         eelf32fr30.o \
165         eelf32frv.o \
166         eelf32i370.o \
167         eelf32ip2k.o \
168         eelf32iq2000.o \
169         eelf32iq10.o \
170         eelf32l4300.o \
171         eelf32lmip.o \
172         eelf32lppc.o \
173         eelf32lppcnto.o \
174         eelf32lppcsim.o \
175         eelf32m32c.o \
176         eelf32mcore.o \
177         eelf32mipswindiss.o \
178         eelf32mt.o \
179         eelf32openrisc.o \
180         eelf32ppc.o \
181         eelf32ppc_fbsd.o \
182         eelf32ppclinux.o \
183         eelf32ppcnto.o \
184         eelf32ppcsim.o \
185         eelf32ppcwindiss.o \
186         eelf32ppcvxworks.o \
187         eelf32vax.o \
188         eelf32xc16x.o \
189         eelf32xc16xl.o \
190         eelf32xc16xs.o \
191         eelf32xstormy16.o \
192         eelf32xtensa.o \
193         eelf_i386.o \
194         eelf_i386_be.o \
195         eelf_i386_chaos.o \
196         eelf_i386_fbsd.o \
197         eelf_i386_ldso.o \
198         eelf_i386_vxworks.o \
199         eelf_s390.o \
200         egld960.o \
201         egld960coff.o \
202         eh8300.o \
203         eh8300h.o \
204         eh8300s.o \
205         eh8300elf.o \
206         eh8300hn.o \
207         eh8300sn.o \
208         eh8300sx.o \
209         eh8300helf.o \
210         eh8300self.o \
211         eh8300hnelf.o \
212         eh8300snelf.o \
213         eh8300sxelf.o \
214         eh8300sxn.o \
215         eh8300sxnelf.o \
216         eh8500.o \
217         eh8500b.o \
218         eh8500c.o \
219         eh8500m.o \
220         eh8500s.o \
221         ehp300bsd.o \
222         ehp3hpux.o \
223         ehppaelf.o \
224         ehppalinux.o \
225         ehppanbsd.o \
226         ehppaobsd.o \
227         ei386aout.o \
228         ei386beos.o \
229         ei386bsd.o \
230         ei386coff.o \
231         ei386go32.o \
232         ei386linux.o \
233         ei386lynx.o \
234         ei386mach.o \
235         ei386moss.o \
236         ei386msdos.o \
237         ei386nbsd.o \
238         ei386nto.o \
239         ei386nw.o \
240         ei386pe.o \
241         ei386pe_posix.o \
242         elnk960.o \
243         em32relf.o \
244         em32rlelf.o \
245         em32relf_linux.o \
246         em32rlelf_linux.o \
247         em68hc11elf.o \
248         em68hc11elfb.o \
249         em68hc12elf.o \
250         em68hc12elfb.o \
251         em68k4knbsd.o \
252         em68kaout.o \
253         em68kaux.o \
254         em68kcoff.o \
255         em68kelf.o \
256         em68kelfnbsd.o \
257         em68klinux.o \
258         em68knbsd.o \
259         em68kpsos.o \
260         em88kbcs.o \
261         emaxqcoff.o \
262         emcorepe.o \
263         emipsbig.o \
264         emipsbsd.o \
265         emipsidt.o \
266         emipsidtl.o \
267         emipslit.o \
268         emipslnews.o \
269         emipspe.o \
270         emsp430x110.o \
271         emsp430x112.o \
272         emsp430x1101.o \
273         emsp430x1111.o \
274         emsp430x1121.o \
275         emsp430x1122.o \
276         emsp430x1132.o \
277         emsp430x122.o \
278         emsp430x123.o \
279         emsp430x1222.o \
280         emsp430x1232.o \
281         emsp430x133.o \
282         emsp430x135.o \
283         emsp430x1331.o \
284         emsp430x1351.o \
285         emsp430x147.o \
286         emsp430x148.o \
287         emsp430x149.o \
288         emsp430x155.o \
289         emsp430x156.o \
290         emsp430x157.o \
291         emsp430x167.o \
292         emsp430x168.o \
293         emsp430x169.o \
294         emsp430x1610.o \
295         emsp430x1611.o \
296         emsp430x1612.o \
297         emsp430x2101.o \
298         emsp430x2111.o \
299         emsp430x2121.o \
300         emsp430x2131.o \
301         emsp430x311.o \
302         emsp430x312.o \
303         emsp430x313.o \
304         emsp430x314.o \
305         emsp430x315.o \
306         emsp430x323.o \
307         emsp430x325.o \
308         emsp430x336.o \
309         emsp430x337.o \
310         emsp430x412.o \
311         emsp430x413.o \
312         emsp430x415.o \
313         emsp430x417.o \
314         emsp430xE423.o \
315         emsp430xE425.o \
316         emsp430xE427.o \
317         emsp430xW423.o \
318         emsp430xW425.o \
319         emsp430xW427.o \
320         emsp430xG437.o \
321         emsp430xG438.o \
322         emsp430xG439.o \
323         emsp430x435.o \
324         emsp430x436.o \
325         emsp430x437.o \
326         emsp430x447.o \
327         emsp430x448.o \
328         emsp430x449.o \
329         enews.o \
330         ens32knbsd.o \
331         eor32.o \
332         eor32elf.o \
333         epc532macha.o \
334         epdp11.o \
335         epjelf.o \
336         epjlelf.o \
337         eppcmacos.o \
338         eppcnw.o \
339         eppcpe.o \
340         eppclynx.o \
341         eriscix.o \
342         esh.o \
343         eshelf32.o \
344         eshlelf32.o \
345         eshelf32_linux.o \
346         eshlelf32_linux.o \
347         eshelf32_nbsd.o \
348         eshlelf32_nbsd.o \
349         eshelf.o \
350         eshelf_linux.o \
351         eshlelf_linux.o \
352         eshelf_nbsd.o \
353         eshlelf_nbsd.o \
354         eshelf_nto.o \
355         eshlelf_nto.o \
356         eshl.o \
357         eshlelf.o \
358         eshlsymbian.o \
359         eshpe.o \
360         esparcaout.o \
361         esparclinux.o \
362         esparcnbsd.o \
363         est2000.o \
364         esun3.o \
365         esun4.o \
366         etic30aout.o \
367         etic30coff.o \
368         etic3xcoff.o \
369         etic3xcoff_onchip.o \
370         etic4xcoff.o \
371         etic54xcoff.o \
372         etic80coff.o \
373         evanilla.o \
374         evax.o \
375         evaxnbsd.o \
376         evsta.o \
377         ew65.o \
378         ez8001.o \
379         eelf32frvfd.o \
380         ez80.o \
381         ez8002.o
382
383 ALL_64_EMULATIONS = \
384         eelf64_aix.o \
385         eelf64_ia64.o \
386         eelf64_ia64_fbsd.o \
387         eshelf64.o \
388         eshlelf64.o \
389         eshelf64_nbsd.o \
390         eshlelf64_nbsd.o \
391         eelf_x86_64.o \
392         eelf_x86_64_fbsd.o \
393         eelf64_s390.o \
394         eelf64_sparc.o \
395         eelf64_sparc_fbsd.o \
396         eelf64alpha.o \
397         eelf64alpha_fbsd.o \
398         eelf64alpha_nbsd.o \
399         eelf64bmip.o \
400         eelf64btsmip.o \
401         eelf64ltsmip.o \
402         eelf64hppa.o \
403         eelf64mmix.o \
404         emmo.o \
405         eelf64ppc.o \
406         eelf64lppc.o \
407         ehppa64linux.o
408
409 ALL_EMUL_EXTRA_OFILES = \
410         deffilep.o \
411         pe-dll.o
412
413 CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
414         ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
415         mri.c ldcref.c pe-dll.c
416
417 HFILES = ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
418         ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
419         ldwrite.h mri.h deffile.h pe-dll.h
420
421 GENERATED_CFILES = ldgram.c ldlex.c deffilep.c
422 GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h
423
424 OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
425         ldwrite.o ldexp.o  ldemul.o ldver.o ldmisc.o \
426         ldfile.o ldcref.o ${EMULATION_OFILES} ${EMUL_EXTRA_OFILES}
427
428 STAGESTUFF = *.o ldscripts/* e*.c
429
430 # Disable -Werror, if it has been enabled, since old versions of bison/
431 # yacc will produce working code which contain compile time warnings. 
432 ldgram.o:
433         $(COMPILE) -c $< $(NO_WERROR)
434 ldlex.o:
435         $(COMPILE) -c $< $(NO_WERROR)
436 deffilep.o:
437         $(COMPILE) -c $< $(NO_WERROR)
438
439 # At the moment this is just a list of those emulation template files
440 # that contain internationalised strings.
441 EMULATION_FILES = emultempl/pe.em emultempl/armcoff.em
442
443 POTFILES = $(CFILES) $(HFILES) $(EMULATION_FILES)
444
445 po/POTFILES.in: @MAINT@ Makefile
446         for f in $(POTFILES); do echo $$f; done | LC_COLLATE= sort > tmp \
447           && mv tmp $(srcdir)/po/POTFILES.in
448
449 ldmain.o: ldmain.c config.status
450         $(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' \
451           -DSCRIPTDIR='"$(scriptdir)"' -DBINDIR='"$(bindir)"' \
452           -DTOOLBINDIR='"$(tooldir)/bin"' \
453           -DTARGET='"@target@"' @TARGET_SYSTEM_ROOT_DEFINE@ \
454           $(srcdir)/ldmain.c
455
456 ldemul-list.h: Makefile
457         (echo "/* This file is automatically generated.  DO NOT EDIT! */";\
458         for f in `echo " " ${EMULATION_OFILES} "" \
459          | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
460             echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
461         done;\
462         echo "";\
463         echo "#define EMULATION_LIST \\";\
464         for f in `echo " " ${EMULATION_OFILES} "" \
465          | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
466             echo "  &ld_$${f}_emulation, \\"; \
467         done;\
468         echo "  0") >ldemul-tmp.h
469         mv ldemul-tmp.h ldemul-list.h
470
471 stringify.sed: ${srcdir}/emultempl/$(STRINGIFY)
472           cp ${srcdir}/emultempl/$(STRINGIFY) stringify.sed
473
474 # These all start with e so 'make clean' can find them.
475
476 GENSCRIPTS = LIB_PATH='${LIB_PATH}' $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} "${exec_prefix}" @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@" @use_sysroot@
477 GEN_DEPENDS = $(srcdir)/genscripts.sh stringify.sed
478
479 @TDIRS@
480
481 eaix5ppc.c: $(srcdir)/emulparams/aix5ppc.sh \
482   $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
483         ${GENSCRIPTS} aix5ppc "$(tdir_aixppc)"
484 eaix5rs6.c: $(srcdir)/emulparams/aix5rs6.sh \
485   $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
486         ${GENSCRIPTS} aix5rs6 "$(tdir_aixrs6)"
487 eaixppc.c: $(srcdir)/emulparams/aixppc.sh \
488   $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
489         ${GENSCRIPTS} aixppc "$(tdir_aixppc)"
490 eaixrs6.c: $(srcdir)/emulparams/aixrs6.sh \
491   $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
492         ${GENSCRIPTS} aixrs6 "$(tdir_aixrs6)"
493 ealpha.c: $(srcdir)/emulparams/alpha.sh \
494   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
495         ${GENSCRIPTS} alpha "$(tdir_alpha)"
496 earcelf.c: $(srcdir)/emulparams/arcelf.sh \
497   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
498         ${GENSCRIPTS} arcelf "$(tdir_arcelf)"
499 earmelf.c: $(srcdir)/emulparams/armelf.sh \
500   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
501   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
502         ${GENSCRIPTS} armelf "$(tdir_armelf)"
503 earmelfb.c: $(srcdir)/emulparams/armelfb.sh $(srcdir)/emulparams/armelf.sh \
504   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
505   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
506         ${GENSCRIPTS} armelfb "$(tdir_armelfb)"
507 earmelf_fbsd.c: $(srcdir)/emulparams/armelf_fbsd.sh \
508   $(srcdir)/emulparams/armelf.sh \
509   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
510   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
511         ${GENSCRIPTS} armelf_fbsd "$(tdir_armelf_fbsd)"
512 earmelf_linux.c: $(srcdir)/emulparams/armelf_linux.sh \
513   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
514   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
515         ${GENSCRIPTS} armelf_linux "$(tdir_armelf_linux)"
516 earmelf_linux_eabi.c: $(srcdir)/emulparams/armelf_linux_eabi.sh \
517   $(srcdir)/emulparams/armelf_linux.sh \
518   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
519   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
520         ${GENSCRIPTS} armelf_linux_eabi "$(tdir_armelf_linux_abi)"
521 earmelfb_linux.c: $(srcdir)/emulparams/armelfb_linux.sh \
522   $(srcdir)/emulparams/armelf_linux.sh \
523   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
524   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
525         ${GENSCRIPTS} armelfb_linux "$(tdir_armelfb_linux)"
526 earmelfb_linux_eabi.c: $(srcdir)/emulparams/armelfb_linux_eabi.sh \
527   $(srcdir)/emulparams/armelf_linux_eabi.sh \
528   $(srcdir)/emulparams/armelf_linux.sh \
529   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
530   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
531         ${GENSCRIPTS} armelfb_linux_eabi "$(tdir_armelfb_linux_abi)"
532 earmelf_nbsd.c: $(srcdir)/emulparams/armelf_nbsd.sh \
533   $(srcdir)/emulparams/armelf.sh \
534   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
535   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
536         ${GENSCRIPTS} armelf_nbsd "$(tdir_armelf_nbsd)"
537 earmelfb_nbsd.c: $(srcdir)/emulparams/armelfb_nbsd.sh \
538   $(srcdir)/emulparams/armelf_nbsd.sh \
539   $(srcdir)/emulparams/armelf.sh \
540   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
541   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
542         ${GENSCRIPTS} armelfb_nbsd "$(tdir_armelfb_nbsd)"
543 earmelf_vxworks.c: $(srcdir)/emulparams/armelf_vxworks.sh \
544   $(srcdir)/emulparams/vxworks.sh $(srcdir)/emulparams/armelf.sh \
545   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/vxworks.em \
546   $(srcdir)/emultempl/armelf.em $(srcdir)/scripttempl/elf.sc \
547   ${GEN_DEPENDS}
548         ${GENSCRIPTS} armelf_vxworks "$(tdir_armelf)"
549 earmaoutb.c:    $(srcdir)/emulparams/armaoutb.sh \
550   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
551         ${GENSCRIPTS} armaoutb "$(tdir_armaoutb)"
552 earmaoutl.c:    $(srcdir)/emulparams/armaoutl.sh \
553   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
554         ${GENSCRIPTS} armaoutl "$(tdir_armaoutl)"
555 earmcoff.c:     $(srcdir)/emulparams/armcoff.sh \
556   $(srcdir)/emultempl/armcoff.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS}
557         ${GENSCRIPTS} armcoff "$(tdir_armcoff)"
558 earmnbsd.c:     $(srcdir)/emulparams/armnbsd.sh \
559   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
560         ${GENSCRIPTS} armnbsd "$(tdir_armnbsd)"
561 earmnto.c: $(srcdir)/emulparams/armnto.sh \
562   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
563   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
564         ${GENSCRIPTS} armnto "$(tdir_armnto)"
565 earm_epoc_pe.c: $(srcdir)/emulparams/arm_epoc_pe.sh \
566   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/epocpe.sc ${GEN_DEPENDS}
567         ${GENSCRIPTS} arm_epoc_pe "$(tdir_armpe)"
568 earmpe.c: $(srcdir)/emulparams/armpe.sh \
569   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
570         ${GENSCRIPTS} armpe "$(tdir_armpe)"
571 earmsymbian.c: $(srcdir)/emulparams/armsymbian.sh \
572   $(srcdir)/emulparams/armelf.sh $(srcdir)/emultempl/elf32.em \
573   $(srcdir)/emultempl/armelf.em $(srcdir)/scripttempl/armbpabi.sc \
574   ${GEN_DEPENDS}
575         ${GENSCRIPTS} armsymbian "$(tdir_armelf)"
576 eavr2.c: $(srcdir)/emulparams/avr2.sh \
577   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
578   ${GEN_DEPENDS}
579         ${GENSCRIPTS} avr2 "$(tdir_avr2)"
580 eavr1.c: $(srcdir)/emulparams/avr1.sh \
581   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
582   ${GEN_DEPENDS}
583         ${GENSCRIPTS} avr1 "$(tdir_avr2)"
584 eavr3.c: $(srcdir)/emulparams/avr3.sh \
585   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
586   ${GEN_DEPENDS}
587         ${GENSCRIPTS} avr3 "$(tdir_avr2)"
588 eavr4.c: $(srcdir)/emulparams/avr4.sh \
589   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
590   ${GEN_DEPENDS}
591         ${GENSCRIPTS} avr4 "$(tdir_avr2)"
592 eavr5.c: $(srcdir)/emulparams/avr5.sh \
593   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
594   ${GEN_DEPENDS}
595         ${GENSCRIPTS} avr5 "$(tdir_avr2)"
596 ecoff_i860.c: $(srcdir)/emulparams/coff_i860.sh \
597   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i860coff.sc ${GEN_DEPENDS}
598         ${GENSCRIPTS} coff_i860 "$(tdir_coff_i860)"
599 ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
600   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
601         ${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)"
602 ecrisaout.c: $(srcdir)/emulparams/crisaout.sh \
603   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/crisaout.sc ${GEN_DEPENDS}
604         ${GENSCRIPTS} crisaout "$(tdir_cris)"
605 ecriself.c: $(srcdir)/emulparams/criself.sh \
606   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
607         ${GENSCRIPTS} criself "$(tdir_cris)"
608 ecrislinux.c: $(srcdir)/emulparams/crislinux.sh \
609   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
610         ${GENSCRIPTS} crislinux "$(tdir_cris)"
611 ed10velf.c: $(srcdir)/emulparams/d10velf.sh \
612   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfd10v.sc ${GEN_DEPENDS}
613         ${GENSCRIPTS} d10velf "$(tdir_d10v)"
614 ed30velf.c: $(srcdir)/emulparams/d30velf.sh \
615   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
616         ${GENSCRIPTS} d30velf "$(tdir_d30v)"
617 ed30v_o.c: $(srcdir)/emulparams/d30v_o.sh \
618   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
619         ${GENSCRIPTS} d30v_o "$(tdir_d30v)"
620 ed30v_e.c: $(srcdir)/emulparams/d30v_e.sh \
621   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
622         ${GENSCRIPTS} d30v_e "$(tdir_d30v)"
623 edelta68.c: $(srcdir)/emulparams/delta68.sh \
624   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
625         ${GENSCRIPTS} delta68 "$(tdir_delta68)"
626 eelf32bfin.c: $(srcdir)/emulparams/bfin.sh \
627   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/bfin.em \
628   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
629         ${GENSCRIPTS} elf32bfin "$(tdir_elf32bfin)" bfin
630 eelf32_dlx.c: $(srcdir)/emulparams/elf32_dlx.sh \
631   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/dlx.sc ${GEN_DEPENDS}
632         ${GENSCRIPTS} elf32_dlx "$(tdir_elf32_dlx)"
633 eelf32xc16x.c: $(srcdir)/emulparams/elf32xc16x.sh \
634   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
635   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
636         ${GENSCRIPTS} elf32xc16x "$(tdir_xc16x)"
637 eelf32xc16xl.c: $(srcdir)/emulparams/elf32xc16xl.sh \
638   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
639   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
640         ${GENSCRIPTS} elf32xc16xl "$(tdir_xc16xl)"
641 eelf32xc16xs.c: $(srcdir)/emulparams/elf32xc16xs.sh \
642   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
643   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
644         ${GENSCRIPTS} elf32xc16xs "$(tdir_xc16xs)"              
645 eelf32xstormy16.c: $(srcdir)/emulparams/elf32xstormy16.sh \
646   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
647   $(srcdir)/scripttempl/xstormy16.sc ${GEN_DEPENDS}
648         ${GENSCRIPTS} elf32xstormy16 "$(tdir_xstormy16)"
649 eelf32am33lin.c: $(srcdir)/emulparams/elf32am33lin.sh \
650   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
651         ${GENSCRIPTS} elf32am33lin "$(tdir_mn10300)"
652 eelf32vax.c: $(srcdir)/emulparams/elf32vax.sh \
653   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
654         ${GENSCRIPTS} elf32vax "$(tdir_elf32vax)"
655 eelf32xtensa.c: $(srcdir)/emulparams/elf32xtensa.sh \
656   $(srcdir)/emulparams/xtensa-config.sh $(srcdir)/emultempl/elf32.em \
657   $(srcdir)/emultempl/xtensaelf.em $(INCDIR)/xtensa-config.h \
658   $(BFDDIR)/elf-bfd.h $(BFDDIR)/libbfd.h $(INCDIR)/elf/xtensa.h \
659   $(srcdir)/scripttempl/elfxtensa.sc ${GEN_DEPENDS}
660         ${GENSCRIPTS} elf32xtensa "$(tdir_elf32xtensa)"
661 eelf32fr30.c: $(srcdir)/emulparams/elf32fr30.sh \
662   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
663         ${GENSCRIPTS} elf32fr30 "$(tdir_fr30)"
664 eelf32frv.c: $(srcdir)/emulparams/elf32frv.sh \
665   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
666         ${GENSCRIPTS} elf32frv "$(tdir_frv)"
667 eelf32mcore.c: $(srcdir)/emulparams/elf32mcore.sh \
668   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
669         ${GENSCRIPTS} elf32mcore "$(tdir_mcore)"
670 em32relf.c: $(srcdir)/emulparams/m32relf.sh \
671   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
672         ${GENSCRIPTS} m32relf "$(tdir_m32r)"
673 em32rlelf.c: $(srcdir)/emulparams/m32rlelf.sh \
674   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
675         ${GENSCRIPTS} m32rlelf "$(tdir_m32rlelf)"
676 em32relf_linux.c: $(srcdir)/emulparams/m32relf_linux.sh \
677   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
678         ${GENSCRIPTS} m32relf_linux "$(tdir_m32relf_linux)"
679 em32rlelf_linux.c: $(srcdir)/emulparams/m32rlelf_linux.sh \
680   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
681         ${GENSCRIPTS} m32rlelf_linux "$(tdir_m32rlelf_linux)"
682 eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
683   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
684         ${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)"
685 eelf32_i860.c: $(srcdir)/emulparams/elf32_i860.sh \
686   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
687         ${GENSCRIPTS} elf32_i860 "$(tdir_elf32_i860)"
688 eelf32_i960.c: $(srcdir)/emulparams/elf32_i960.sh \
689   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
690         ${GENSCRIPTS} elf32_i960 "$(tdir_elf32_i960)"
691 eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \
692   $(srcdir)/emulparams/elf32bmip.sh \
693   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
694         ${GENSCRIPTS} elf32b4300 "$(tdir_elf32b4300)"
695 eelf32cr16c.c: $(srcdir)/emulparams/elf32cr16c.sh \
696   $(srcdir)/emultempl/elf32.em \
697   $(srcdir)/scripttempl/elf32cr16c.sc ${GEN_DEPENDS}
698         ${GENSCRIPTS} elf32cr16c "$(tdir_elf32cr16c)"
699 eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
700   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
701         ${GENSCRIPTS} elf32bmip "$(tdir_elf32bmip)"
702 eelf32bsmip.c: $(srcdir)/emulparams/elf32bsmip.sh \
703   $(srcdir)/emulparams/elf32bmip.sh $(srcdir)/emultempl/irix.em \
704   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
705         ${GENSCRIPTS} elf32bsmip "$(tdir_elf32bsmip)"
706 eelf32btsmip.c: $(srcdir)/emulparams/elf32btsmip.sh \
707   $(srcdir)/emulparams/elf32bmip.sh \
708   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
709         ${GENSCRIPTS} elf32btsmip "$(tdir_elf32btsmip)"
710 eelf32crx.c: $(srcdir)/emulparams/elf32crx.sh \
711   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/crxelf.em \
712   $(srcdir)/scripttempl/elf32crx.sc ${GEN_DEPENDS} 
713         ${GENSCRIPTS} elf32crx "$(tdir_elf32crx)"
714 eelf32btsmipn32.c: $(srcdir)/emulparams/elf32btsmipn32.sh \
715   $(srcdir)/emulparams/elf32bmip.sh \
716   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
717         ${GENSCRIPTS} elf32btsmipn32 "$(tdir_elf32btsmipn32)"
718 eelf32ltsmip.c: $(srcdir)/emulparams/elf32ltsmip.sh \
719   $(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
720   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
721         ${GENSCRIPTS} elf32ltsmip "$(tdir_elf32ltsmip)"
722 eelf32ltsmipn32.c: $(srcdir)/emulparams/elf32ltsmipn32.sh \
723   $(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
724   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
725         ${GENSCRIPTS} elf32ltsmipn32 "$(tdir_elf32ltsmipn32)"
726 eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
727   $(srcdir)/emulparams/elf32bmip.sh \
728   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
729         ${GENSCRIPTS} elf32ebmip "$(tdir_elf32ebmip)"
730 eelf32ebmipvxworks.c: $(srcdir)/emulparams/elf32ebmipvxworks.sh \
731   $(srcdir)/emulparams/elf32ebmip.sh $(srcdir)/emulparams/vxworks.sh \
732   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/vxworks.em \
733   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
734         ${GENSCRIPTS} elf32ebmipvxworks "$(tdir_elf32ebmipvxworks)"
735 eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \
736   $(srcdir)/emulparams/elf32lmip.sh $(srcdir)/emulparams/elf32bmip.sh \
737   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
738         ${GENSCRIPTS} elf32elmip "$(tdir_elf32elmip)"
739 eelf32elmipvxworks.c: $(srcdir)/emulparams/elf32elmipvxworks.sh \
740   $(srcdir)/emulparams/elf32elmip.sh $(srcdir)/emulparams/vxworks.sh \
741   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/vxworks.em \
742   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
743         ${GENSCRIPTS} elf32elmipvxworks "$(tdir_elf32elmipvxworks)"
744 eelf32bmipn32.c: $(srcdir)/emulparams/elf32bmipn32.sh \
745   $(srcdir)/emultempl/irix.em \
746   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
747         ${GENSCRIPTS} elf32bmipn32 "$(tdir_elf32bmipn32)"
748 eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \
749   $(srcdir)/emulparams/elf32b4300.sh $(srcdir)/emulparams/elf32bmip.sh \
750   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
751         ${GENSCRIPTS} elf32l4300 "$(tdir_elf32l4300)"
752 eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
753   $(srcdir)/emulparams/elf32bmip.sh \
754   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
755         ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)"
756 eelf32mipswindiss.c: $(srcdir)/emulparams/elf32mipswindiss.sh \
757   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
758         ${GENSCRIPTS} elf32mipswindiss "$(tdir_elf32mipswindiss)"
759 eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \
760   $(srcdir)/emulparams/elf32ppccommon.sh \
761   $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emultempl/ppc32elf.em \
762   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
763         ${GENSCRIPTS} elf32lppc "$(tdir_elf32lppc)"
764 eelf32lppcnto.c: $(srcdir)/emulparams/elf32lppcnto.sh \
765   $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
766   $(srcdir)/emultempl/ppc32elf.em $(srcdir)/emultempl/elf32.em \
767   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
768         ${GENSCRIPTS} elf32lppcnto "$(tdir_elf32lppcnto)"
769 eelf32lppcsim.c: $(srcdir)/emulparams/elf32lppcsim.sh \
770   $(srcdir)/emulparams/elf32lppc.sh $(srcdir)/emulparams/elf32ppc.sh \
771   $(srcdir)/emulparams/elf32ppccommon.sh $(srcdir)/emultempl/ppc32elf.em \
772   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
773         ${GENSCRIPTS} elf32lppcsim "$(tdir_elf32lppcsim)"
774 eelf32ppcnto.c: $(srcdir)/emulparams/elf32ppcnto.sh \
775   $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
776   $(srcdir)/emultempl/ppc32elf.em $(srcdir)/emultempl/elf32.em \
777   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
778         ${GENSCRIPTS} elf32ppcnto "$(tdir_elf32ppcnto)"
779 eelf32ppcwindiss.c: $(srcdir)/emulparams/elf32ppcwindiss.sh \
780   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
781         ${GENSCRIPTS} elf32ppcwindiss "$(tdir_elf32ppcwindiss)"
782 eelf32ppcvxworks.c: $(srcdir)/emulparams/elf32ppcvxworks.sh \
783   $(srcdir)/emulparams/elf32ppccommon.sh $(srcdir)/emulparams/vxworks.sh \
784   $(srcdir)/emultempl/vxworks.em $(srcdir)/emultempl/elf32.em \
785   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
786         ${GENSCRIPTS} elf32ppcvxworks "$(tdir_elf32ppcvxworks)"
787 eelf32lsmip.c: $(srcdir)/emulparams/elf32lsmip.sh \
788   $(srcdir)/emulparams/elf32lmip.sh $(srcdir)/emulparams/elf32bmip.sh \
789   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
790         ${GENSCRIPTS} elf32lsmip "$(tdir_elf32lsmip)"
791 eelf32openrisc.c: $(srcdir)/emulparams/elf32openrisc.sh \
792   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
793         ${GENSCRIPTS} elf32openrisc "$(tdir_openrisc)"
794 eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
795   $(srcdir)/emulparams/elf32ppccommon.sh $(srcdir)/emultempl/ppc32elf.em \
796   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
797         ${GENSCRIPTS} elf32ppc "$(tdir_elf32ppc)"
798 eelf32ppc_fbsd.c: $(srcdir)/emulparams/elf32ppc_fbsd.sh \
799   $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
800   $(srcdir)/emultempl/ppc32elf.em $(srcdir)/emultempl/elf32.em \
801   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
802         ${GENSCRIPTS} elf32ppc_fbsd "$(tdir_elf32ppc_fbsd)"
803 eelf32ppcsim.c: $(srcdir)/emulparams/elf32ppcsim.sh \
804   $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
805   $(srcdir)/emultempl/ppc32elf.em $(srcdir)/emultempl/elf32.em \
806   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
807         ${GENSCRIPTS} elf32ppcsim "$(tdir_elf32ppcsim)"
808 eelf32ppclinux.c: $(srcdir)/emulparams/elf32ppclinux.sh \
809   $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
810   $(srcdir)/emultempl/ppc32elf.em $(srcdir)/emultempl/elf32.em \
811   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
812         ${GENSCRIPTS} elf32ppclinux "$(tdir_elf32ppclinux)"
813 eelf64ppc.c: $(srcdir)/emulparams/elf64ppc.sh $(srcdir)/emultempl/ppc64elf.em \
814   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
815         ${GENSCRIPTS} elf64ppc "$(tdir_elf64ppc)"
816 eelf64lppc.c: $(srcdir)/emulparams/elf64lppc.sh \
817   $(srcdir)/emulparams/elf64ppc.sh $(srcdir)/emultempl/ppc64elf.em \
818   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
819         ${GENSCRIPTS} elf64lppc "$(tdir_elf64lppc)"
820 eelf32i370.c: $(srcdir)/emulparams/elf32i370.sh \
821   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfi370.sc ${GEN_DEPENDS}
822         ${GENSCRIPTS} elf32i370 "$(tdir_elf32i370)"
823 eelf32ip2k.c: $(srcdir)/emulparams/elf32ip2k.sh \
824   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/ip2k.sc ${GEN_DEPENDS}
825         ${GENSCRIPTS} elf32ip2k "$(tdir_ip2k)"
826 eelf32iq2000.c: $(srcdir)/emulparams/elf32iq2000.sh \
827   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/iq2000.sc ${GEN_DEPENDS}
828         ${GENSCRIPTS} elf32iq2000 "$(tdir_iq2000)"
829 eelf32iq10.c: $(srcdir)/emulparams/elf32iq10.sh \
830   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/iq2000.sc ${GEN_DEPENDS}
831         ${GENSCRIPTS} elf32iq10 "$(tdir_iq10)"
832 eelf64alpha.c: $(srcdir)/emulparams/elf64alpha.sh \
833   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/alphaelf.em \
834   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
835         ${GENSCRIPTS} elf64alpha "$(tdir_elf64alpha)"
836 eelf64alpha_fbsd.c: $(srcdir)/emulparams/elf64alpha_fbsd.sh \
837   $(srcdir)/emulparams/elf64alpha.sh \
838   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/alphaelf.em \
839   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
840         ${GENSCRIPTS} elf64alpha_fbsd "$(tdir_elf64alpha_fbsd)"
841 eelf64alpha_nbsd.c: $(srcdir)/emulparams/elf64alpha_nbsd.sh \
842   $(srcdir)/emulparams/elf64alpha.sh \
843   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/alphaelf.em \
844   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
845         ${GENSCRIPTS} elf64alpha_nbsd "$(tdir_elf64alpha_nbsd)"
846 eelf64hppa.c: $(srcdir)/emulparams/elf64hppa.sh \
847   $(srcdir)/emulparams/hppa64linux.sh \
848   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
849         ${GENSCRIPTS} elf64hppa "$(tdir_elf64hppa)"
850 eelf64_aix.c: $(srcdir)/emulparams/elf64_aix.sh \
851   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
852         ${GENSCRIPTS} elf64_aix "$(tdir_elf64_aix)"
853 eelf64_ia64.c: $(srcdir)/emulparams/elf64_ia64.sh \
854   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/ia64elf.em \
855   $(srcdir)/emultempl/needrelax.em \
856   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
857         ${GENSCRIPTS} elf64_ia64 "$(tdir_elf64_ia64)"
858 eelf64_ia64_fbsd.c: $(srcdir)/emulparams/elf64_ia64_fbsd.sh \
859   $(srcdir)/emulparams/elf64_ia64.sh \
860   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/ia64elf.em \
861   $(srcdir)/emultempl/needrelax.em \
862   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
863         ${GENSCRIPTS} elf64_ia64_fbsd "$(tdir_elf64_ia64_fbsd)"
864 eelf64_s390.c: $(srcdir)/emulparams/elf64_s390.sh \
865   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
866         ${GENSCRIPTS} elf64_s390 "$(tdir_elf64_s390)"
867 eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
868   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
869         ${GENSCRIPTS} elf64_sparc "$(tdir_elf64_sparc)"
870 eelf64_sparc_fbsd.c: $(srcdir)/emulparams/elf64_sparc_fbsd.sh \
871   $(srcdir)/emulparams/elf64_sparc.sh \
872   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
873         ${GENSCRIPTS} elf64_sparc_fbsd "$(tdir_elf64_sparc_fbsd)"
874 eelf64bmip.c: $(srcdir)/emulparams/elf64bmip.sh \
875   $(srcdir)/emulparams/elf32bmipn32.sh $(srcdir)/emultempl/irix.em \
876   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
877         ${GENSCRIPTS} elf64bmip "$(tdir_elf64bmip)"
878 eelf64mmix.c: $(srcdir)/emulparams/elf64mmix.sh \
879   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/mmix-elfnmmo.em \
880   $(srcdir)/emultempl/mmixelf.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
881         ${GENSCRIPTS} elf64mmix "$(tdir_elf64mmix)"
882 emmo.c: $(srcdir)/emulparams/mmo.sh $(srcdir)/emultempl/mmix-elfnmmo.em \
883   $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/mmo.em \
884   $(srcdir)/scripttempl/mmo.sc ${GEN_DEPENDS}
885         ${GENSCRIPTS} mmo "$(tdir_mmo)"
886 eelf64btsmip.c: $(srcdir)/emulparams/elf64btsmip.sh \
887   $(srcdir)/emulparams/elf32bmipn32.sh \
888   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
889         ${GENSCRIPTS} elf64btsmip "$(tdir_elf64btsmip)"
890 eelf64ltsmip.c: $(srcdir)/emulparams/elf64ltsmip.sh \
891   $(srcdir)/emulparams/elf64btsmip.sh $(srcdir)/emulparams/elf32bmipn32.sh \
892   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
893         ${GENSCRIPTS} elf64ltsmip "$(tdir_elf64ltsmip)"
894 eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
895   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
896         ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
897 eelf_x86_64.c: $(srcdir)/emulparams/elf_x86_64.sh \
898   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
899         ${GENSCRIPTS} elf_x86_64 "$(tdir_elf_x86_64)"
900 eelf_x86_64_fbsd.c: $(srcdir)/emulparams/elf_x86_64_fbsd.sh \
901   $(srcdir)/emulparams/elf_x86_64.sh \
902   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
903         ${GENSCRIPTS} elf_x86_64_fbsd "$(tdir_elf_x86_64_fbsd)"
904 eelf_i386_be.c: $(srcdir)/emulparams/elf_i386_be.sh \
905   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
906         ${GENSCRIPTS} elf_i386_be "$(tdir_elf_i386_be)"
907 eelf_i386_chaos.c: $(srcdir)/emulparams/elf_i386_chaos.sh \
908   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf_chaos.sc ${GEN_DEPENDS}
909         ${GENSCRIPTS} elf_i386_chaos "$(tdir_elf_i386_chaos)"
910 eelf_i386_fbsd.c: $(srcdir)/emulparams/elf_i386_fbsd.sh \
911   $(srcdir)/emulparams/elf_i386.sh \
912   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
913         ${GENSCRIPTS} elf_i386_fbsd "$(tdir_elf_i386_fbsd)"
914 eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
915   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
916         ${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)"
917 eelf_i386_vxworks.c: $(srcdir)/emulparams/elf_i386_vxworks.sh \
918   $(srcdir)/emulparams/vxworks.sh $(srcdir)/emultempl/vxworks.em \
919   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
920         ${GENSCRIPTS} elf_i386_vxworks "$(tdir_elf_i386_vxworks)"
921 eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \
922   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
923         ${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
924 egld960.c: $(srcdir)/emulparams/gld960.sh \
925   $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
926         ${GENSCRIPTS} gld960 "$(tdir_gld960)"
927 egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
928   $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
929         ${GENSCRIPTS} gld960coff "$(tdir_gld960coff)"
930 eh8300.c: $(srcdir)/emulparams/h8300.sh \
931   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
932         ${GENSCRIPTS} h8300 "$(tdir_h8300)"
933 eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
934   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
935         ${GENSCRIPTS} h8300h "$(tdir_h8300h)"
936 eh8300s.c: $(srcdir)/emulparams/h8300s.sh \
937   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300s.sc ${GEN_DEPENDS}
938         ${GENSCRIPTS} h8300s "$(tdir_h8300s)"
939 eh8300hn.c: $(srcdir)/emulparams/h8300hn.sh \
940   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300hn.sc ${GEN_DEPENDS}
941         ${GENSCRIPTS} h8300hn "$(tdir_h8300hn)"
942 eh8300sn.c: $(srcdir)/emulparams/h8300sn.sh \
943   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300sn.sc ${GEN_DEPENDS}
944         ${GENSCRIPTS} h8300sn "$(tdir_h8300sn)"
945 eh8300sx.c: $(srcdir)/emulparams/h8300sx.sh \
946   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300sx.sc ${GEN_DEPENDS}
947         ${GENSCRIPTS} h8300sx "$(tdir_h8300sx)"
948 eh8300sxn.c: $(srcdir)/emulparams/h8300sxn.sh \
949   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300sxn.sc ${GEN_DEPENDS}
950         ${GENSCRIPTS} h8300sxn "$(tdir_h8300sxn)"
951 eh8300elf.c: $(srcdir)/emulparams/h8300elf.sh \
952   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
953         ${GENSCRIPTS} h8300elf "$(tdir_h8300elf)"
954 eh8300helf.c: $(srcdir)/emulparams/h8300helf.sh \
955   $(srcdir)/emulparams/h8300elf.sh \
956   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
957         ${GENSCRIPTS} h8300helf "$(tdir_h8300helf)"
958 eh8300self.c: $(srcdir)/emulparams/h8300self.sh \
959   $(srcdir)/emulparams/h8300elf.sh \
960   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
961         ${GENSCRIPTS} h8300self "$(tdir_h8300self)"
962 eh8300hnelf.c: $(srcdir)/emulparams/h8300hnelf.sh \
963   $(srcdir)/emulparams/h8300elf.sh \
964   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
965         ${GENSCRIPTS} h8300hnelf "$(tdir_h8300hnelf)"
966 eh8300snelf.c: $(srcdir)/emulparams/h8300snelf.sh \
967   $(srcdir)/emulparams/h8300elf.sh \
968   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
969         ${GENSCRIPTS} h8300snelf "$(tdir_h8300snelf)"
970 eh8300sxelf.c: $(srcdir)/emulparams/h8300sxelf.sh \
971   $(srcdir)/emulparams/h8300elf.sh \
972   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
973         ${GENSCRIPTS} h8300sxelf "$(tdir_h8300sxelf)"
974 eh8300sxnelf.c: $(srcdir)/emulparams/h8300sxnelf.sh \
975   $(srcdir)/emulparams/h8300elf.sh \
976   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
977         ${GENSCRIPTS} h8300sxnelf "$(tdir_h8300sxnelf)"
978 eh8500.c: $(srcdir)/emulparams/h8500.sh \
979   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
980         ${GENSCRIPTS} h8500 "$(tdir_h8500)"
981 eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
982   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
983         ${GENSCRIPTS} h8500b "$(tdir_h8500b)"
984 eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
985   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
986         ${GENSCRIPTS} h8500c "$(tdir_h8500c)"
987 eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
988   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
989         ${GENSCRIPTS} h8500m "$(tdir_h8500m)"
990 eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
991   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
992         ${GENSCRIPTS} h8500s "$(tdir_h8500s)"
993 ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
994   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
995         ${GENSCRIPTS} hp300bsd "$(tdir_hp300bsd)"
996 ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
997   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
998         ${GENSCRIPTS} hp3hpux "$(tdir_hp3hpux)"
999 ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
1000   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
1001   $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
1002         ${GENSCRIPTS} hppaelf "$(tdir_hppaelf)"
1003 ehppalinux.c: $(srcdir)/emulparams/hppalinux.sh \
1004   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
1005   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1006         ${GENSCRIPTS} hppalinux "$(tdir_hppalinux)"
1007 ehppanbsd.c: $(srcdir)/emulparams/hppanbsd.sh \
1008   $(srcdir)/emulparams/hppaelf.sh \
1009   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
1010   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1011         ${GENSCRIPTS} hppanbsd "$(tdir_hppanbsd)"
1012 ehppaobsd.c: $(srcdir)/emulparams/hppaobsd.sh \
1013   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
1014   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1015         ${GENSCRIPTS} hppaobsd "$(tdir_hppaobsd)"
1016 ehppa64linux.c: $(srcdir)/emulparams/hppa64linux.sh \
1017   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1018         ${GENSCRIPTS} hppa64linux "$(tdir_hppa64linux)"
1019 ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
1020   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1021         ${GENSCRIPTS} i386aout "$(tdir_i386aout)"
1022 ei386beos.c: $(srcdir)/emulparams/i386beos.sh \
1023   $(srcdir)/emultempl/beos.em $(srcdir)/scripttempl/i386beos.sc ${GEN_DEPENDS}
1024         ${GENSCRIPTS} i386beos "$(tdir_i386beos)"
1025 ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
1026   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1027         ${GENSCRIPTS} i386bsd "$(tdir_i386bsd)"
1028 ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
1029   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
1030         ${GENSCRIPTS} i386coff "$(tdir_i386coff)"
1031 ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
1032   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
1033         ${GENSCRIPTS} i386go32 "$(tdir_i386go32)"
1034 ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
1035   $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1036         ${GENSCRIPTS} i386linux "$(tdir_i386linux)"
1037 ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
1038   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1039         ${GENSCRIPTS} i386lynx "$(tdir_i386lynx)"
1040 ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
1041   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1042         ${GENSCRIPTS} i386mach "$(tdir_i386mach)"
1043 ei386moss.c: $(srcdir)/emulparams/i386moss.sh \
1044   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1045         ${GENSCRIPTS} i386moss "$(tdir_i386moss)"
1046 ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \
1047   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS}
1048         ${GENSCRIPTS} i386msdos "$(tdir_i386msdos)"
1049 ei386nbsd.c:    $(srcdir)/emulparams/i386nbsd.sh \
1050   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1051         ${GENSCRIPTS} i386nbsd "$(tdir_i386nbsd)"
1052 ei386nto.c:     $(srcdir)/emulparams/i386nto.sh \
1053   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1054         ${GENSCRIPTS} i386nto "$(tdir_i386nto)"
1055 ei386nw.c:      $(srcdir)/emulparams/i386nw.sh \
1056   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
1057         ${GENSCRIPTS} i386nw "$(tdir_i386nw)"
1058 ei386pe.c: $(srcdir)/emulparams/i386pe.sh \
1059   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1060         ${GENSCRIPTS} i386pe "$(tdir_i386pe)"
1061 ei386pe_posix.c: $(srcdir)/emulparams/i386pe_posix.sh \
1062   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1063         ${GENSCRIPTS} i386pe_posix "$(tdir_i386pe_posix)"
1064 elnk960.c: $(srcdir)/emulparams/lnk960.sh \
1065   $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
1066         ${GENSCRIPTS} lnk960 "$(tdir_lnk960)"
1067 em68hc11elf.c: $(srcdir)/emulparams/m68hc11elf.sh \
1068   $(srcdir)/emultempl/m68hc1xelf.em $(srcdir)/emultempl/elf32.em \
1069   $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
1070         ${GENSCRIPTS} m68hc11elf "$(tdir_m68hc11)"
1071 em68hc11elfb.c: $(srcdir)/emulparams/m68hc11elfb.sh \
1072   $(srcdir)/emultempl/m68hc1xelf.em $(srcdir)/emultempl/elf32.em \
1073   $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
1074         ${GENSCRIPTS} m68hc11elfb "$(tdir_m68hc11b)"
1075 em68hc12elf.c: $(srcdir)/emulparams/m68hc12elf.sh \
1076   $(srcdir)/emultempl/m68hc1xelf.em $(srcdir)/emultempl/elf32.em \
1077   $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
1078         ${GENSCRIPTS} m68hc12elf "$(tdir_m68hc12)"
1079 em68hc12elfb.c: $(srcdir)/emulparams/m68hc12elfb.sh \
1080   $(srcdir)/emultempl/m68hc1xelf.em $(srcdir)/emultempl/elf32.em \
1081   $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
1082         ${GENSCRIPTS} m68hc12elfb "$(tdir_m68hc12b)"
1083 em68k4knbsd.c:  $(srcdir)/emulparams/m68k4knbsd.sh \
1084   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1085         ${GENSCRIPTS} m68k4knbsd "$(tdir_m68k4knbsd)"
1086 em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
1087   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1088         ${GENSCRIPTS} m68kaout "$(tdir_m68kaout)"
1089 em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \
1090   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS}
1091         ${GENSCRIPTS} m68kaux "$(tdir_m68kaux)"
1092 em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
1093   $(srcdir)/emultempl/m68kcoff.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
1094         ${GENSCRIPTS} m68kcoff "$(tdir_m68kcoff)"
1095 em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \
1096   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/m68kelf.em \
1097   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1098         ${GENSCRIPTS} m68kelf "$(tdir_m68kelf)"
1099 em68kelfnbsd.c: $(srcdir)/emulparams/m68kelfnbsd.sh \
1100   $(srcdir)/emulparams/m68kelf.sh \
1101   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/m68kelf.em \
1102   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1103         ${GENSCRIPTS} m68kelfnbsd "$(tdir_m68kelfnbsd)"
1104 em68klinux.c: $(srcdir)/emulparams/m68klinux.sh \
1105   $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1106         ${GENSCRIPTS} m68klinux "$(tdir_m68klinux)"
1107 em68knbsd.c:    $(srcdir)/emulparams/m68knbsd.sh \
1108   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1109         ${GENSCRIPTS} m68knbsd "$(tdir_m68knbsd)"
1110 em68kpsos.c:    $(srcdir)/emulparams/m68kpsos.sh \
1111   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS}
1112         ${GENSCRIPTS} m68kpsos "$(tdir_m68kpsos)"
1113 em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
1114   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
1115         ${GENSCRIPTS} m88kbcs "$(tdir_m88kbcs)"
1116 emaxqcoff.c: $(srcdir)/emulparams/maxqcoff.sh \
1117   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/maxqcoff.sc ${GEN_DEPENDS}
1118         ${GENSCRIPTS} maxqcoff "$(tdir_maxqcoff)"
1119 emcorepe.c: $(srcdir)/emulparams/mcorepe.sh \
1120   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1121         ${GENSCRIPTS} mcorepe "$(tdir_mcorepe)"
1122 emipsbig.c:  $(srcdir)/emulparams/mipsbig.sh \
1123   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
1124         ${GENSCRIPTS} mipsbig
1125 emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
1126   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
1127         ${GENSCRIPTS} mipsbsd
1128 emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
1129   $(srcdir)/emultempl/mipsecoff.em $(srcdir)/emultempl/generic.em \
1130   $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
1131         ${GENSCRIPTS} mipsidt "$(tdir_mipsidt)"
1132 emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
1133   $(srcdir)/emultempl/mipsecoff.em $(srcdir)/emultempl/generic.em \
1134   $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
1135         ${GENSCRIPTS} mipsidtl "$(tdir_mipsidtl)"
1136 emipslit.c:  $(srcdir)/emulparams/mipslit.sh \
1137   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
1138         ${GENSCRIPTS} mipslit "$(tdir_mipslit)"
1139 emipslnews.c:  $(srcdir)/emulparams/mipslnews.sh \
1140   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
1141         ${GENSCRIPTS} mipslnews
1142 emipspe.c: $(srcdir)/emulparams/mipspe.sh \
1143   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1144         ${GENSCRIPTS} mipspe "$(tdir_mips)"
1145 emn10300.c: $(srcdir)/emulparams/mn10300.sh \
1146   $(srcdir)/emulparams/mn10200.sh \
1147   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1148         ${GENSCRIPTS} mn10300 "$(tdir_mn10300)"
1149 emn10200.c: $(srcdir)/emulparams/mn10200.sh \
1150   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1151         ${GENSCRIPTS} mn10200 "$(tdir_mn10200)"
1152 emsp430x110.c: $(srcdir)/emulparams/msp430all.sh \
1153   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1154   ${GEN_DEPENDS}
1155         ${GENSCRIPTS} msp430x110 "$(tdir_msp430x110)" msp430all
1156 emsp430x112.c: $(srcdir)/emulparams/msp430all.sh \
1157   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1158   ${GEN_DEPENDS}
1159         ${GENSCRIPTS} msp430x112 "$(tdir_msp430x112)" msp430all
1160 emsp430x1101.c: $(srcdir)/emulparams/msp430all.sh \
1161   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1162   ${GEN_DEPENDS}
1163         ${GENSCRIPTS} msp430x1101 "$(tdir_msp430x1101)" msp430all
1164 emsp430x1111.c: $(srcdir)/emulparams/msp430all.sh \
1165   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1166   ${GEN_DEPENDS}
1167         ${GENSCRIPTS} msp430x1111 "$(tdir_msp430x1111)" msp430all
1168 emsp430x1121.c: $(srcdir)/emulparams/msp430all.sh \
1169   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1170   ${GEN_DEPENDS}
1171         ${GENSCRIPTS} msp430x1121 "$(tdir_msp430x1121)" msp430all
1172 emsp430x1122.c: $(srcdir)/emulparams/msp430all.sh \
1173   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1174   ${GEN_DEPENDS}
1175         ${GENSCRIPTS} msp430x1122 "$(tdir_msp430x1122)" msp430all
1176 emsp430x1132.c: $(srcdir)/emulparams/msp430all.sh \
1177   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1178   ${GEN_DEPENDS}
1179         ${GENSCRIPTS} msp430x1132 "$(tdir_msp430x1132)" msp430all
1180 emsp430x122.c: $(srcdir)/emulparams/msp430all.sh \
1181   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1182   ${GEN_DEPENDS}
1183         ${GENSCRIPTS} msp430x122 "$(tdir_msp430x122)" msp430all
1184 emsp430x123.c: $(srcdir)/emulparams/msp430all.sh \
1185   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1186   ${GEN_DEPENDS}
1187         ${GENSCRIPTS} msp430x123 "$(tdir_msp430x123)" msp430all
1188 emsp430x1222.c: $(srcdir)/emulparams/msp430all.sh \
1189   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1190   ${GEN_DEPENDS}
1191         ${GENSCRIPTS} msp430x1222 "$(tdir_msp430x1222)" msp430all
1192 emsp430x1232.c: $(srcdir)/emulparams/msp430all.sh \
1193   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1194   ${GEN_DEPENDS}
1195         ${GENSCRIPTS} msp430x1232 "$(tdir_msp430x1232)" msp430all
1196 emsp430x133.c: $(srcdir)/emulparams/msp430all.sh \
1197   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1198   ${GEN_DEPENDS}
1199         ${GENSCRIPTS} msp430x133 "$(tdir_msp430x133)" msp430all
1200 emsp430x135.c: $(srcdir)/emulparams/msp430all.sh \
1201   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1202   ${GEN_DEPENDS}
1203         ${GENSCRIPTS} msp430x135 "$(tdir_msp430x135)" msp430all
1204 emsp430x1331.c: $(srcdir)/emulparams/msp430all.sh \
1205   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1206   ${GEN_DEPENDS}
1207         ${GENSCRIPTS} msp430x1331 "$(tdir_msp430x1331)" msp430all
1208 emsp430x1351.c: $(srcdir)/emulparams/msp430all.sh \
1209   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1210   ${GEN_DEPENDS}
1211         ${GENSCRIPTS} msp430x1351 "$(tdir_msp430x1351)" msp430all
1212 emsp430x147.c: $(srcdir)/emulparams/msp430all.sh \
1213   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1214   ${GEN_DEPENDS}
1215         ${GENSCRIPTS} msp430x147 "$(tdir_msp430x147)" msp430all
1216 emsp430x148.c: $(srcdir)/emulparams/msp430all.sh \
1217   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1218   ${GEN_DEPENDS}
1219         ${GENSCRIPTS} msp430x148 "$(tdir_msp430x148)" msp430all
1220 emsp430x149.c: $(srcdir)/emulparams/msp430all.sh \
1221   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1222   ${GEN_DEPENDS}
1223         ${GENSCRIPTS} msp430x149 "$(tdir_msp430x149)" msp430all
1224 emsp430x155.c: $(srcdir)/emulparams/msp430all.sh \
1225   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1226   ${GEN_DEPENDS}
1227         ${GENSCRIPTS} msp430x155 "$(tdir_msp430x155)" msp430all
1228 emsp430x156.c: $(srcdir)/emulparams/msp430all.sh \
1229   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1230   ${GEN_DEPENDS}
1231         ${GENSCRIPTS} msp430x156 "$(tdir_msp430x156)" msp430all
1232 emsp430x157.c: $(srcdir)/emulparams/msp430all.sh \
1233   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1234   ${GEN_DEPENDS}
1235         ${GENSCRIPTS} msp430x157 "$(tdir_msp430x157)" msp430all
1236 emsp430x167.c: $(srcdir)/emulparams/msp430all.sh \
1237   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1238   ${GEN_DEPENDS}
1239         ${GENSCRIPTS} msp430x167 "$(tdir_msp430x167)" msp430all
1240 emsp430x168.c: $(srcdir)/emulparams/msp430all.sh \
1241   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1242   ${GEN_DEPENDS}
1243         ${GENSCRIPTS} msp430x168 "$(tdir_msp430x168)" msp430all
1244 emsp430x169.c: $(srcdir)/emulparams/msp430all.sh \
1245   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1246   ${GEN_DEPENDS}
1247         ${GENSCRIPTS} msp430x169 "$(tdir_msp430x169)" msp430all
1248 emsp430x1610.c: $(srcdir)/emulparams/msp430all.sh \
1249   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1250   ${GEN_DEPENDS}
1251         ${GENSCRIPTS} msp430x1610 "$(tdir_msp430x1610)" msp430all
1252 emsp430x1611.c: $(srcdir)/emulparams/msp430all.sh \
1253   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1254   ${GEN_DEPENDS}
1255         ${GENSCRIPTS} msp430x1611 "$(tdir_msp430x1611)" msp430all
1256 emsp430x1612.c: $(srcdir)/emulparams/msp430all.sh \
1257   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1258   ${GEN_DEPENDS}
1259         ${GENSCRIPTS} msp430x1612 "$(tdir_msp430x1612)" msp430all
1260 emsp430x2101.c: $(srcdir)/emulparams/msp430all.sh \
1261   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1262   ${GEN_DEPENDS}
1263         ${GENSCRIPTS} msp430x2101 "$(tdir_msp430x2101)" msp430all
1264 emsp430x2111.c: $(srcdir)/emulparams/msp430all.sh \
1265   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1266   ${GEN_DEPENDS}
1267         ${GENSCRIPTS} msp430x2111 "$(tdir_msp430x2111)" msp430all
1268 emsp430x2121.c: $(srcdir)/emulparams/msp430all.sh \
1269   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1270   ${GEN_DEPENDS}
1271         ${GENSCRIPTS} msp430x2121 "$(tdir_msp430x2121)" msp430all
1272 emsp430x2131.c: $(srcdir)/emulparams/msp430all.sh \
1273   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1274   ${GEN_DEPENDS}
1275         ${GENSCRIPTS} msp430x2131 "$(tdir_msp430x2131)" msp430all
1276 emsp430x311.c: $(srcdir)/emulparams/msp430all.sh \
1277   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430_3.sc \
1278   ${GEN_DEPENDS}
1279         ${GENSCRIPTS} msp430x311 "$(tdir_msp430x311)" msp430all
1280 emsp430x312.c: $(srcdir)/emulparams/msp430all.sh \
1281   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430_3.sc \
1282   ${GEN_DEPENDS}
1283         ${GENSCRIPTS} msp430x312 "$(tdir_msp430x312)" msp430all
1284 emsp430x313.c: $(srcdir)/emulparams/msp430all.sh \
1285   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430_3.sc \
1286   ${GEN_DEPENDS}
1287         ${GENSCRIPTS} msp430x313 "$(tdir_msp430x313)" msp430all
1288 emsp430x314.c: $(srcdir)/emulparams/msp430all.sh \
1289   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430_3.sc \
1290   ${GEN_DEPENDS}
1291         ${GENSCRIPTS} msp430x314 "$(tdir_msp430x314)" msp430all
1292 emsp430x315.c: $(srcdir)/emulparams/msp430all.sh \
1293   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430_3.sc \
1294   ${GEN_DEPENDS}
1295         ${GENSCRIPTS} msp430x315 "$(tdir_msp430x315)" msp430all
1296 emsp430x323.c: $(srcdir)/emulparams/msp430all.sh \
1297   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430_3.sc \
1298   ${GEN_DEPENDS}
1299         ${GENSCRIPTS} msp430x323 "$(tdir_msp430x323)" msp430all
1300 emsp430x325.c: $(srcdir)/emulparams/msp430all.sh \
1301   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430_3.sc \
1302   ${GEN_DEPENDS}
1303         ${GENSCRIPTS} msp430x325 "$(tdir_msp430x325)" msp430all
1304 emsp430x336.c: $(srcdir)/emulparams/msp430all.sh \
1305   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430_3.sc \
1306   ${GEN_DEPENDS}
1307         ${GENSCRIPTS} msp430x336 "$(tdir_msp430x336)" msp430all
1308 emsp430x337.c: $(srcdir)/emulparams/msp430all.sh \
1309   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430_3.sc \
1310   ${GEN_DEPENDS}
1311         ${GENSCRIPTS} msp430x337 "$(tdir_msp430x337)" msp430all
1312 emsp430x412.c: $(srcdir)/emulparams/msp430all.sh \
1313   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1314   ${GEN_DEPENDS}
1315         ${GENSCRIPTS} msp430x412 "$(tdir_msp430x412)" msp430all
1316 emsp430x413.c: $(srcdir)/emulparams/msp430all.sh \
1317   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1318   ${GEN_DEPENDS}
1319         ${GENSCRIPTS} msp430x413 "$(tdir_msp430x413)" msp430all
1320 emsp430x415.c: $(srcdir)/emulparams/msp430all.sh \
1321   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1322   ${GEN_DEPENDS}
1323         ${GENSCRIPTS} msp430x415 "$(tdir_msp430x415)" msp430all
1324 emsp430x417.c: $(srcdir)/emulparams/msp430all.sh \
1325   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1326   ${GEN_DEPENDS}
1327         ${GENSCRIPTS} msp430x417 "$(tdir_msp430x417)" msp430all
1328 emsp430xE423.c: $(srcdir)/emulparams/msp430all.sh \
1329   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1330   ${GEN_DEPENDS}
1331         ${GENSCRIPTS} msp430xE423 "$(tdir_msp430xE423)" msp430all
1332 emsp430xE425.c: $(srcdir)/emulparams/msp430all.sh \
1333   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1334   ${GEN_DEPENDS}
1335         ${GENSCRIPTS} msp430xE425 "$(tdir_msp430xE425)" msp430all
1336 emsp430xE427.c: $(srcdir)/emulparams/msp430all.sh \
1337   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1338   ${GEN_DEPENDS}
1339         ${GENSCRIPTS} msp430xE427 "$(tdir_msp430xE427)" msp430all
1340 emsp430xW423.c: $(srcdir)/emulparams/msp430all.sh \
1341   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1342   ${GEN_DEPENDS}
1343         ${GENSCRIPTS} msp430xW423 "$(tdir_msp430xW423)" msp430all
1344 emsp430xW425.c: $(srcdir)/emulparams/msp430all.sh \
1345   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1346   ${GEN_DEPENDS}
1347         ${GENSCRIPTS} msp430xW425 "$(tdir_msp430xW425)" msp430all
1348 emsp430xW427.c: $(srcdir)/emulparams/msp430all.sh \
1349   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1350   ${GEN_DEPENDS}
1351         ${GENSCRIPTS} msp430xW427 "$(tdir_msp430xW427)" msp430all
1352 emsp430xG437.c: $(srcdir)/emulparams/msp430all.sh \
1353   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1354   ${GEN_DEPENDS}
1355         ${GENSCRIPTS} msp430xG437 "$(tdir_msp430xG437)" msp430all
1356 emsp430xG438.c: $(srcdir)/emulparams/msp430all.sh \
1357   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1358   ${GEN_DEPENDS}
1359         ${GENSCRIPTS} msp430xG438 "$(tdir_msp430xG438)" msp430all
1360 emsp430xG439.c: $(srcdir)/emulparams/msp430all.sh \
1361   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1362   ${GEN_DEPENDS}
1363         ${GENSCRIPTS} msp430xG439 "$(tdir_msp430xG439)" msp430all
1364 emsp430x435.c: $(srcdir)/emulparams/msp430all.sh \
1365   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1366   ${GEN_DEPENDS}
1367         ${GENSCRIPTS} msp430x435 "$(tdir_msp430x435)" msp430all
1368 emsp430x436.c: $(srcdir)/emulparams/msp430all.sh \
1369   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1370   ${GEN_DEPENDS}
1371         ${GENSCRIPTS} msp430x436 "$(tdir_msp430x436)" msp430all
1372 emsp430x437.c: $(srcdir)/emulparams/msp430all.sh \
1373   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1374   ${GEN_DEPENDS}
1375         ${GENSCRIPTS} msp430x437 "$(tdir_msp430x437)" msp430all
1376 emsp430x447.c: $(srcdir)/emulparams/msp430all.sh \
1377   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1378   ${GEN_DEPENDS}
1379         ${GENSCRIPTS} msp430x447 "$(tdir_msp430x447)" msp430all
1380 emsp430x448.c: $(srcdir)/emulparams/msp430all.sh \
1381   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1382   ${GEN_DEPENDS}
1383         ${GENSCRIPTS} msp430x448 "$(tdir_msp430x448)" msp430all
1384 emsp430x449.c: $(srcdir)/emulparams/msp430all.sh \
1385   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1386   ${GEN_DEPENDS}
1387         ${GENSCRIPTS} msp430x449 "$(tdir_msp430x449)" msp430all
1388 enews.c: $(srcdir)/emulparams/news.sh \
1389   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1390         ${GENSCRIPTS} news "$(tdir_news)"
1391 ens32knbsd.c:   $(srcdir)/emulparams/ns32knbsd.sh \
1392   $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/netbsd.em \
1393   $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1394         ${GENSCRIPTS} ns32knbsd "$(tdir_ns32knbsd)"
1395 eor32.c: $(srcdir)/emulparams/or32.sh \
1396   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/or32.sc ${GEN_DEPENDS}
1397         ${GENSCRIPTS} or32 "$(tdir_or32)"
1398 eor32elf.c: $(srcdir)/emulparams/or32elf.sh \
1399   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1400         ${GENSCRIPTS} or32elf "$(tdir_or32elf)"
1401 epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \
1402   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1403         ${GENSCRIPTS} pc532macha "$(tdir_pc532macha)"
1404 epdp11.c: $(srcdir)/emulparams/pdp11.sh \
1405   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1406         ${GENSCRIPTS} pdp11 "$(tdir_pdp11)"
1407 epjelf.c: $(srcdir)/emulparams/pjelf.sh \
1408   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1409         ${GENSCRIPTS} pjelf "$(tdir_pjelf)"
1410 epjlelf.c: $(srcdir)/emulparams/pjlelf.sh \
1411   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1412         ${GENSCRIPTS} pjlelf "$(tdir_pjlelf)"
1413 eppcmacos.c:    $(srcdir)/emulparams/ppcmacos.sh \
1414   $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
1415         ${GENSCRIPTS} ppcmacos "$(tdir_ppcmacos)"
1416 eppcnw.c:       $(srcdir)/emulparams/ppcnw.sh \
1417   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
1418         ${GENSCRIPTS} ppcnw "$(tdir_ppcnw)"
1419 eppcpe.c: $(srcdir)/emulparams/ppcpe.sh \
1420   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/ppcpe.sc ${GEN_DEPENDS}
1421         ${GENSCRIPTS} ppcpe "$(tdir_ppcpe)"
1422 eppclynx.c: $(srcdir)/emulparams/ppclynx.sh \
1423   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1424         ${GENSCRIPTS} ppclynx "$(tdir_ppclynx)"
1425 eriscix.c: $(srcdir)/emulparams/riscix.sh \
1426   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1427         ${GENSCRIPTS} riscix "$(tdir_riscix)"
1428 esh.c: $(srcdir)/emulparams/sh.sh \
1429   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
1430         ${GENSCRIPTS} sh "$(tdir_sh)"
1431 eshelf.c: $(srcdir)/emulparams/shelf.sh \
1432   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1433         ${GENSCRIPTS} shelf "$(tdir_shelf)"
1434 eshelf32.c: $(srcdir)/emulparams/shelf32.sh \
1435   $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
1436   $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
1437   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1438         ${GENSCRIPTS} shelf32 "$(tdir_shelf32)"
1439 eshelf32_linux.c: $(srcdir)/emulparams/shelf32_linux.sh \
1440   $(srcdir)/emulparams/shelf32.sh \
1441   $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
1442   $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
1443   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1444         ${GENSCRIPTS} shelf32_linux "$(tdir_shelf32_linux)"
1445 eshelf32_nbsd.c: $(srcdir)/emulparams/shelf32_nbsd.sh \
1446   $(srcdir)/emulparams/shelf32.sh \
1447   $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
1448   $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
1449   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1450         ${GENSCRIPTS} shelf32_nbsd "$(tdir_shelf32_nbsd)"
1451 eshelf64.c: $(srcdir)/emulparams/shelf64.sh $(srcdir)/emulparams/shelf32.sh \
1452   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1453         ${GENSCRIPTS} shelf64 "$(tdir_shelf64)"
1454 eshelf64_nbsd.c: $(srcdir)/emulparams/shelf64_nbsd.sh \
1455   $(srcdir)/emulparams/shelf32_nbsd.sh $(srcdir)/emulparams/shelf32.sh \
1456   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1457         ${GENSCRIPTS} shelf64_nbsd "$(tdir_shelf64_nbsd)"
1458 eshelf_linux.c: $(srcdir)/emulparams/shelf_linux.sh \
1459   $(srcdir)/emulparams/shlelf_linux.sh \
1460   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1461         ${GENSCRIPTS} shelf_linux "$(tdir_shelf_linux)"
1462 eshlelf_linux.c: $(srcdir)/emulparams/shlelf_linux.sh \
1463   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1464         ${GENSCRIPTS} shlelf_linux "$(tdir_shlelf_linux)"
1465 eshelf_nbsd.c: $(srcdir)/emulparams/shelf_nbsd.sh \
1466   $(srcdir)/emulparams/shelf.sh \
1467   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1468         ${GENSCRIPTS} shelf_nbsd "$(tdir_shelf_nbsd)"
1469 eshelf_nto.c: $(srcdir)/emulparams/shelf_nto.sh \
1470   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1471         ${GENSCRIPTS} shelf_nto "$(tdir_shelf_nto)"
1472 eshlelf_nbsd.c: $(srcdir)/emulparams/shlelf_nbsd.sh \
1473   $(srcdir)/emulparams/shelf_nbsd.sh \
1474   $(srcdir)/emulparams/shelf.sh \
1475   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1476         ${GENSCRIPTS} shlelf_nbsd "$(tdir_shlelf_nbsd)"
1477 eshlelf_nto.c: $(srcdir)/emulparams/shlelf_nto.sh \
1478   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1479         ${GENSCRIPTS} shlelf_nto "$(tdir_shlelf_nto)"
1480 eshlelf.c: $(srcdir)/emulparams/shlelf.sh \
1481   $(srcdir)/emulparams/shelf.sh \
1482   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1483         ${GENSCRIPTS} shlelf "$(tdir_shlelf)"
1484 eshlsymbian.c: $(srcdir)/emulparams/shlsymbian.sh \
1485   $(srcdir)/emulparams/shelf.sh \
1486   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf32sh-symbian.sc ${GEN_DEPENDS}
1487         ${GENSCRIPTS} shlsymbian "$(tdir_shlelf)"
1488 eshlelf32.c: $(srcdir)/emulparams/shlelf32.sh \
1489   $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h $(srcdir)/emulparams/shelf32.sh \
1490   $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
1491   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1492         ${GENSCRIPTS} shlelf32 "$(tdir_shlelf32)"
1493 eshlelf32_linux.c: $(srcdir)/emulparams/shlelf32_linux.sh \
1494   $(srcdir)/emulparams/shelf32_linux.sh $(srcdir)/emulparams/shelf32.sh \
1495   $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
1496   $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
1497   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1498         ${GENSCRIPTS} shlelf32_linux "$(tdir_shlelf32_linux)"
1499 eshlelf32_nbsd.c: $(srcdir)/emulparams/shlelf32_nbsd.sh \
1500   $(srcdir)/emulparams/shelf32_nbsd.sh $(srcdir)/emulparams/shelf32.sh \
1501   $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
1502   $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
1503   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1504         ${GENSCRIPTS} shlelf32_nbsd "$(tdir_shlelf32_nbsd)"
1505 eshlelf64.c: $(srcdir)/emulparams/shlelf64.sh \
1506   $(srcdir)/emulparams/shelf64.sh $(srcdir)/emulparams/shelf32.sh \
1507   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1508         ${GENSCRIPTS} shlelf64 "$(tdir_shlelf64)"
1509 eshlelf64_nbsd.c: $(srcdir)/emulparams/shlelf64_nbsd.sh \
1510   $(srcdir)/emulparams/shelf64_nbsd.sh \
1511   $(srcdir)/emulparams/shelf32_nbsd.sh $(srcdir)/emulparams/shelf32.sh \
1512   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1513         ${GENSCRIPTS} shlelf64_nbsd "$(tdir_shlelf64_nbsd)"
1514 eshl.c: $(srcdir)/emulparams/shl.sh \
1515   $(srcdir)/emulparams/sh.sh \
1516   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
1517         ${GENSCRIPTS} shl "$(tdir_shl)"
1518 eshpe.c: $(srcdir)/emulparams/shpe.sh \
1519   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1520         ${GENSCRIPTS} shpe "$(tdir_shl)"
1521 esparcaout.c: $(srcdir)/emulparams/sparcaout.sh \
1522   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1523         ${GENSCRIPTS} sparcaout "$(tdir_sparcaout)"
1524 esparclinux.c: $(srcdir)/emulparams/sparclinux.sh \
1525   $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1526         ${GENSCRIPTS} sparclinux "$(tdir_sparclinux)"
1527 esparcnbsd.c:   $(srcdir)/emulparams/sparcnbsd.sh \
1528   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1529         ${GENSCRIPTS} sparcnbsd "$(tdir_sparcnbsd)"
1530 est2000.c: $(srcdir)/emulparams/st2000.sh \
1531   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
1532         ${GENSCRIPTS} st2000 "$(tdir_st2000)"
1533 esun3.c: $(srcdir)/emulparams/sun3.sh \
1534   $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1535         ${GENSCRIPTS} sun3 "$(tdir_sun3)"
1536 esun4.c: $(srcdir)/emulparams/sun4.sh \
1537   $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1538         ${GENSCRIPTS} sun4 "$(tdir_sun4)"
1539 etic30aout.c: $(srcdir)/emulparams/tic30aout.sh \
1540   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30aout.sc ${GEN_DEPENDS}
1541         ${GENSCRIPTS} tic30aout "$(tdir_tic30aout)"
1542 etic30coff.c: $(srcdir)/emulparams/tic30coff.sh \
1543   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30coff.sc ${GEN_DEPENDS}
1544         ${GENSCRIPTS} tic30coff "$(tdir_tic30coff)"
1545 etic3xcoff.c: $(srcdir)/emulparams/tic3xcoff.sh \
1546   $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic4xcoff.sc ${GEN_DEPENDS}
1547         ${GENSCRIPTS} tic3xcoff "$(tdir_tic4xcoff)"
1548 etic3xcoff_onchip.c: $(srcdir)/emulparams/tic3xcoff_onchip.sh \
1549   $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic4xcoff.sc ${GEN_DEPENDS}
1550         ${GENSCRIPTS} tic3xcoff_onchip "$(tdir_tic4xcoff)"
1551 etic4xcoff.c: $(srcdir)/emulparams/tic4xcoff.sh \
1552   $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic4xcoff.sc ${GEN_DEPENDS}
1553         ${GENSCRIPTS} tic4xcoff "$(tdir_tic4xcoff)"
1554 etic54xcoff.c: $(srcdir)/emulparams/tic54xcoff.sh \
1555   $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic54xcoff.sc ${GEN_DEPENDS}
1556         ${GENSCRIPTS} tic54xcoff "$(tdir_tic54xcoff)"
1557 etic80coff.c: $(srcdir)/emulparams/tic80coff.sh \
1558   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic80coff.sc ${GEN_DEPENDS}
1559         ${GENSCRIPTS} tic80coff "$(tdir_tic80coff)"
1560 evanilla.c: $(srcdir)/emulparams/vanilla.sh \
1561   $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
1562         ${GENSCRIPTS} vanilla "$(tdir_vanilla)"
1563 evax.c: $(srcdir)/emulparams/vax.sh \
1564   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1565         ${GENSCRIPTS} vax "$(tdir_vax)"
1566 evaxnbsd.c: $(srcdir)/emulparams/vaxnbsd.sh \
1567   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1568         ${GENSCRIPTS} vaxnbsd "$(tdir_vaxnbsd)"
1569 evsta.c: $(srcdir)/emulparams/vsta.sh \
1570   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1571         ${GENSCRIPTS} vsta "$(tdir_vsta)"
1572 ev850.c: $(srcdir)/emulparams/v850.sh \
1573   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/v850.sc ${GEN_DEPENDS}
1574         ${GENSCRIPTS} v850 "$(tdir_v850)"
1575 ew65.c: $(srcdir)/emulparams/w65.sh \
1576   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS}
1577         ${GENSCRIPTS} w65 "$(tdir_w65)"
1578 ez80.c: $(srcdir)/emulparams/z80.sh \
1579   $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/z80.em \
1580   $(srcdir)/scripttempl/z80.sc ${GEN_DEPENDS}
1581         ${GENSCRIPTS} z80 "$(tdir_z80)"
1582 ez8001.c: $(srcdir)/emulparams/z8001.sh \
1583   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
1584         ${GENSCRIPTS} z8001 "$(tdir_z8001)"
1585 ez8002.c: $(srcdir)/emulparams/z8002.sh \
1586   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
1587         ${GENSCRIPTS} z8002 "$(tdir_z8002)"
1588 eelf32frvfd.c: $(srcdir)/emulparams/elf32frvfd.sh \
1589   $(srcdir)/emulparams/elf32frv.sh \
1590   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1591         ${GENSCRIPTS} elf32frvfd "$(tdir_frv)"
1592 eelf32m32c.c: $(srcdir)/emulparams/elf32m32c.sh \
1593   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
1594   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1595         ${GENSCRIPTS} elf32m32c "$(tdir_m32c)"
1596 eelf32mt.c: $(srcdir)/emulparams/elf32mt.sh \
1597   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1598         ${GENSCRIPTS} elf32mt "$(tdir_mt)"
1599
1600 # We need this for automake to use YLWRAP.
1601 EXTRA_ld_new_SOURCES = deffilep.y
1602
1603 ld_new_SOURCES = ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c \
1604         ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c
1605 ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLDEPS)
1606 ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
1607
1608 # The generated emulation files mostly have the same dependencies.
1609 $(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
1610   ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \
1611   ldctor.h ldexp.h ldlang.h ldgram.h
1612
1613 # This is the real libbfd.a created by libtool.
1614 TESTBFDLIB = @TESTBFDLIB@
1615
1616 check-DEJAGNU: site.exp
1617         srcroot=`cd $(srcdir) && pwd`; export srcroot; \
1618         r=`pwd`; export r; \
1619         LC_COLLATE=; LC_ALL=; LANG=; export LC_COLLATE LC_ALL LANG; \
1620         EXPECT=$(EXPECT); export EXPECT; \
1621         runtest=$(RUNTEST); \
1622         if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
1623           $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \
1624                 CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
1625                 CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \
1626                 CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \
1627                 OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" \
1628                 LIBIBERTY="$(LIBIBERTY) $(INTLLIBS)" LIBS="$(LIBS)" \
1629                 $(RUNTESTFLAGS); \
1630         else echo "WARNING: could not find \`runtest'" 1>&2; :;\
1631         fi
1632
1633 # Rules for testing by relinking ld itself.
1634 # A similar test is in the testsuite.  This target is for ease of use
1635 # when porting ld.
1636
1637 ld-partial.o: ld-new$(EXEEXT)
1638         ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
1639 ld1$(EXEEXT): ld-partial.o
1640         ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1$(EXEEXT) $(HOSTING_CRT0) ld-partial.o $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
1641
1642 ld1-full$(EXEEXT): ld-new
1643         ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1-full$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
1644
1645 ld2$(EXEEXT): ld1$(EXEEXT)
1646         ./ld1$(EXEEXT) $(HOSTING_EMU) -o ld2$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
1647
1648 ld3$(EXEEXT): ld2$(EXEEXT)
1649         ./ld2$(EXEEXT) $(HOSTING_EMU) -o ld3$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
1650
1651 bootstrap: ld3$(EXEEXT)
1652         cmp ld2$(EXEEXT) ld3$(EXEEXT)
1653
1654 .PHONY: bootstrap
1655
1656 # A test program for C++ constructors and destructors.
1657 # This test is now in the testsuite.
1658 #
1659 #cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
1660 #       ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
1661 #         cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS)
1662 #
1663 #cdtest.out: cdtest
1664 #       ./cdtest > cdtest.tmp
1665 #       mv cdtest.tmp cdtest.out
1666 #
1667 #cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
1668 #       ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
1669 #         cdtest-bar.o cdtest-foo.o
1670 #
1671 #cdtest-ur: cdtest-ur.o
1672 #       ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
1673 #         $(HOSTING_LIBS)
1674 #
1675 #cdtest-ur.out: cdtest-ur
1676 #       ./cdtest-ur > cdtest-ur.tmp
1677 #       mv cdtest-ur.tmp cdtest-ur.out
1678 #
1679 #check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
1680 #       diff $(srcdir)/cdtest.exp cdtest.out
1681 #       diff $(srcdir)/cdtest.exp cdtest-ur.out
1682 #
1683 #.PHONY: check-cdtest
1684
1685 # END OF CHECK TARGETS
1686
1687 # DOCUMENTATION TARGETS
1688 # Manual configuration file; not usually attached to normal configuration,
1689 # because almost all configs use "gen" version of manual.
1690 #  Set DOCVER above to change.
1691 configdoc.texi: ${DOCVER}-doc.texi
1692         cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
1693         chmod u+w ./configdoc.texi
1694         echo "@set top_srcdir $(top_srcdir)" >> ./configdoc.texi
1695
1696 ldver.texi: $(srcdir)/../bfd/configure
1697         rm -f $@
1698         eval `grep '^ *VERSION=' $(srcdir)/../bfd/configure`; \
1699           echo "@set VERSION $$VERSION" > $@
1700
1701 $(srcdir)/ld.info ld.dvi ld.html: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
1702
1703 # Build the man page from the texinfo file
1704 # The sed command removes the no-adjust Nroff command so that
1705 # the man output looks standard.
1706 ld.1: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
1707         touch $@
1708         -$(TEXI2POD) $(MANCONF) < $(srcdir)/ld.texinfo > ld.pod
1709         -($(POD2MAN) ld.pod | \
1710                 sed -e '/^.if n .na/d' > $@.T$$$$ && \
1711                 mv -f $@.T$$$$ $@) || \
1712                 (rm -f $@.T$$$$ && exit 1)
1713         rm -f ld.pod
1714
1715 MAINTAINERCLEANFILES = ldver.texi configdoc.texi
1716
1717 # We want to reconfigure if configure.host or configure.tgt changes.  We
1718 # extract version from bfd/configure.in, so we must depend on that also.
1719 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host $(srcdir)/configure.tgt \
1720         $(srcdir)/../bfd/configure.in
1721
1722 MOSTLYCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) \
1723         ldemul-list.h crtbegin.o crtend.o ld.log ld.sum
1724 mostlyclean-local:
1725         -rm -rf tmpdir
1726 CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
1727
1728 .PHONY: install-exec-local install-data-local
1729
1730 install-exec-local: ld-new$(EXEEXT)
1731         $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(tooldir)/bin
1732         @list='$(noinst_PROGRAMS)'; for p in $$list; do \
1733           if test -f $$p; then \
1734             echo " $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
1735             $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
1736           else :; fi; \
1737         done
1738         n=`echo ld | sed '$(transform)'`; \
1739         if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/ld$(EXEEXT)" ]; then \
1740           rm -f $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
1741           ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
1742           || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
1743         fi
1744
1745 install-data-local:
1746         $(mkinstalldirs) $(DESTDIR)$(scriptdir)/ldscripts
1747         for f in ldscripts/*; do \
1748           $(INSTALL_DATA) $$f $(DESTDIR)$(scriptdir)/$$f ; \
1749         done
1750
1751 # We want install to imply install-info as per GNU standards, despite the
1752 # cygnus option.
1753 install-data-local: install-info
1754
1755 # Stuff that should be included in a distribution.  The diststuff
1756 # target is run by the taz target in ../Makefile.in.
1757 EXTRA_DIST = ldgram.c ldgram.h ldlex.c $(man_MANS)
1758 diststuff: info $(EXTRA_DIST)
1759 all: info ld.1
1760
1761 # Both info (ld.info) and ld.1 depend on configdoc.texi and ldver.texi.
1762 # But info isn't a direct target. Make info-recursive to depend on
1763 # ld.1 to support parallel build.
1764 info-recursive: ld.1
1765
1766 DISTCLEANFILES = tdirs site.exp site.bak stringify.sed
1767 distclean-local:
1768         rm -rf ldscripts
1769
1770 # Targets to rebuild dependencies in this Makefile.
1771 # Have to get rid of DEP1 here so that "$?" later includes all of $(CFILES).
1772 DEP: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
1773         rm -f DEP1
1774         $(MAKE) MKDEP="$(MKDEP)" DEP1
1775         sed -f dep.sed < DEP1 > DEPA
1776         echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA
1777         if grep ' /' DEPA > /dev/null 2> /dev/null; then \
1778           echo 'make DEP failed!'; exit 1; \
1779         else \
1780           mv -f DEPA $@; \
1781         fi
1782
1783 DEP1: $(CFILES) $(GENERATED_CFILES)
1784         echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
1785         echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
1786         $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
1787         mv -f DEP2 $@
1788
1789 dep.sed: dep-in.sed config.status
1790         sed <$(srcdir)/dep-in.sed >dep.sed      \
1791                 -e 's!@INCDIR@!$(INCDIR)!'      \
1792                 -e 's!@BFDDIR@!$(BFDDIR)!'      \
1793                 -e 's!@SRCDIR@!$(srcdir)!'      \
1794                 -e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/ld$$,,`'!'
1795
1796 dep: DEP
1797         sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
1798         cat DEP >> tmp-Makefile
1799         $(srcdir)/../move-if-change tmp-Makefile Makefile
1800
1801 dep-in: DEP
1802         sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
1803         cat DEP >> tmp-Makefile.in
1804         $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
1805
1806 dep-am: DEP
1807         sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
1808         cat DEP >> tmp-Makefile.am
1809         $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
1810
1811 .PHONY: dep dep-in dep-am
1812
1813 # What appears below is generated by a hacked mkdep using gcc -MM.
1814
1815 # DO NOT DELETE THIS LINE -- mkdep uses it.
1816 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
1817 ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1818   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1819   $(INCDIR)/bfdlink.h $(INCDIR)/safe-ctype.h ld.h $(INCDIR)/bin-bugs.h \
1820   ldexp.h ldlang.h ldmisc.h ldgram.h ldmain.h ldctor.h
1821 ldemul.o: ldemul.c config.h ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1822   $(INCDIR)/symcat.h sysdep.h $(INCDIR)/fopen-same.h \
1823   $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldmisc.h \
1824   ldexp.h ldlang.h ldfile.h ldemul.h ldmain.h ldemul-list.h
1825 ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1826   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1827   $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldmain.h \
1828   ldmisc.h ldexp.h ldgram.h ldlang.h $(INCDIR)/libiberty.h \
1829   $(INCDIR)/safe-ctype.h
1830 ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1831   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1832   $(INCDIR)/bfdlink.h $(INCDIR)/safe-ctype.h ld.h $(INCDIR)/bin-bugs.h \
1833   ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldgram.h \
1834   ldlex.h ldemul.h $(INCDIR)/libiberty.h $(INCDIR)/filenames.h
1835 ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1836   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1837   $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h $(INCDIR)/obstack.h \
1838   $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldmain.h \
1839   ldexp.h ldlang.h ldgram.h ldlex.h ldmisc.h ldctor.h \
1840   ldfile.h ldemul.h $(INCDIR)/fnmatch.h $(INCDIR)/demangle.h \
1841   $(INCDIR)/hashtab.h
1842 ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1843   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1844   $(INCDIR)/safe-ctype.h $(INCDIR)/libiberty.h $(INCDIR)/progress.h \
1845   $(INCDIR)/bfdlink.h $(INCDIR)/filenames.h ld.h $(INCDIR)/bin-bugs.h \
1846   ldmain.h ldmisc.h ldwrite.h ldexp.h ldlang.h ldgram.h \
1847   ldlex.h ldfile.h ldemul.h ldctor.h
1848 ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1849   $(INCDIR)/symcat.h $(INCDIR)/bfdlink.h sysdep.h config.h \
1850   $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/demangle.h \
1851   ld.h $(INCDIR)/bin-bugs.h ldmisc.h ldexp.h ldlang.h \
1852   ldgram.h ldlex.h ldmain.h ldfile.h $(BFDDIR)/elf-bfd.h \
1853   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h
1854 ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1855   $(INCDIR)/symcat.h ../bfd/bfdver.h sysdep.h config.h \
1856   $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h ldver.h \
1857   ldexp.h ldlang.h ldfile.h ldemul.h ldmain.h
1858 ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1859   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1860   $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \
1861   ld.h $(INCDIR)/bin-bugs.h ldexp.h ldlang.h ldwrite.h \
1862   ldmisc.h ldgram.h ldmain.h
1863 lexsup.o: lexsup.c config.h ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1864   $(INCDIR)/symcat.h sysdep.h $(INCDIR)/fopen-same.h \
1865   $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h $(INCDIR)/bfdlink.h \
1866   ld.h $(INCDIR)/bin-bugs.h ldmain.h ldmisc.h ldexp.h \
1867   ldlang.h ldgram.h ldlex.h ldfile.h ldver.h ldemul.h \
1868   $(INCDIR)/demangle.h
1869 mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
1870   sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
1871   ldexp.h ldlang.h ldmisc.h mri.h ldgram.h $(INCDIR)/libiberty.h
1872 ldcref.o: ldcref.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1873   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1874   $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h \
1875   ldmain.h ldmisc.h ldexp.h ldlang.h
1876 pe-dll.o: pe-dll.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1877   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1878   $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \
1879   ld.h $(INCDIR)/bin-bugs.h ldexp.h ldlang.h ldwrite.h \
1880   ldmisc.h ldgram.h ldmain.h ldfile.h ldemul.h $(INCDIR)/coff/internal.h \
1881   $(BFDDIR)/libcoff.h deffile.h pe-dll.h
1882 ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1883   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1884   $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldexp.h \
1885   ldver.h ldlang.h ldfile.h ldemul.h ldmisc.h ldmain.h \
1886   mri.h ldctor.h ldlex.h
1887 ldlex.o: ldlex.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1888   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1889   $(INCDIR)/safe-ctype.h $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h \
1890   ldmisc.h ldexp.h ldlang.h ldgram.h ldfile.h ldlex.h \
1891   ldmain.h $(INCDIR)/libiberty.h
1892 deffilep.o: deffilep.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
1893   $(INCDIR)/safe-ctype.h ../bfd/bfd.h $(INCDIR)/symcat.h \
1894   sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
1895   ldmisc.h deffile.h
1896 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY