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