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