2002-11-27 David O'Brien <obrien@FreeBSD.org>
[binutils.git] / ld / Makefile.am
blobc25f60ab310616e56fe88c1b116c4b66a9e1ed38
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 AM_CFLAGS = $(WARN_CFLAGS)
19 # We put the scripts in the directory $(scriptdir)/ldscripts.
20 # We can't put the scripts in $(datadir) because the SEARCH_DIR
21 # directives need to be different for native and cross linkers.
22 scriptdir = $(tooldir)/lib
24 EMUL = @EMUL@
25 EMULATION_OFILES = @EMULATION_OFILES@
26 EMUL_EXTRA_OFILES = @EMUL_EXTRA_OFILES@
28 # Search path to override the default search path for -lfoo libraries.
29 # If LIB_PATH is empty, the ones in the script (if any) are left alone.
30 # (The default is usually /lib:/usr/lib:/usr/local/lib, unless building
31 # a cross-linker, in which case the default is empty.  See genscripts.sh.)
32 # Otherwise, they are replaced with the ones given in LIB_PATH,
33 # which may have the form: LIB_PATH=/lib:/usr/local/lib.  This can be set
34 # when the linker is configured via the --with-lib-path configure switch.
35 LIB_PATH = @LIB_PATH@
37 BASEDIR = $(srcdir)/..
38 BFDDIR = $(BASEDIR)/bfd
39 INCDIR  = $(BASEDIR)/include
40 MKDEP = gcc -MM
42 # What version of the manual to build
43 DOCVER = gen
45 # Options to extract the man page from ld.texinfo
46 MANCONF = -Dman
48 TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl
50 POD2MAN = pod2man --center="GNU Development Tools" \
51         --release="binutils-$(VERSION)" --section=1
53 #stuff for self hosting (can be overridden in config file).
54 HOSTING_CRT0 = @HOSTING_CRT0@
55 HOSTING_LIBS = @HOSTING_LIBS@
56 HOSTING_EMU = -m $(EMUL)
58 # Setup the testing framework, if you have one
59 EXPECT = `if [ -f $$r/../expect/expect ] ; \
60         then echo $$r/../expect/expect ; \
61         else echo expect ; fi`
63 RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; \
64         then echo $${srcroot}/../dejagnu/runtest ; \
65         else echo runtest ; fi`
67 RUNTESTFLAGS =
69 CC_FOR_TARGET = ` \
70   if [ -f $$r/../gcc/xgcc ] ; then \
71     if [ -f $$r/../newlib/Makefile ] ; then \
72       echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
73     else \
74       echo $$r/../gcc/xgcc -B$$r/../gcc/; \
75     fi; \
76   else \
77     if [ "@host@" = "@target@" ] ; then \
78       echo $(CC); \
79     else \
80       echo gcc | sed '$(transform)'; \
81     fi; \
82   fi`
84 CXX = gcc
85 CXX_FOR_TARGET = ` \
86   if [ -f $$r/../gcc/xgcc ] ; then \
87     if [ -f $$r/../newlib/Makefile ] ; then \
88       echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
89     else \
90       echo $$r/../gcc/xgcc -B$$r/../gcc/; \
91     fi; \
92   else \
93     if [ "@host@" = "@target@" ] ; then \
94       echo $(CXX); \
95     else \
96       echo gcc | sed '$(transform)'; \
97     fi; \
98   fi`
100 noinst_PROGRAMS = ld-new
101 info_TEXINFOS = ld.texinfo
102 noinst_TEXINFOS = ldint.texinfo
103 man_MANS = ld.1
105 INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) -I$(top_srcdir)/../intl -I../intl $(HDEFINES) $(CFLAGS) -DLOCALEDIR="\"$(prefix)/share/locale\""
107 BFDLIB = ../bfd/libbfd.la
108 LIBIBERTY = ../libiberty/libiberty.a
110 ALL_EMULATIONS = \
111         ea29k.o \
112         eaixppc.o \
113         eaixrs6.o \
114         ealpha.o \
115         earcelf.o \
116         earm_epoc_pe.o \
117         earmaoutb.o \
118         earmaoutl.o \
119         earmcoff.o \
120         earmelf.o \
121         earmelf_fbsd.o \
122         earmelf_linux.o \
123         earmelf_nbsd.o \
124         earmelfb_nbsd.o \
125         earmelf_oabi.o \
126         earmnto.o \
127         earmnbsd.o \
128         earmpe.o \
129         eavr1200.o \
130         eavr23xx.o \
131         eavr4433.o \
132         eavr44x4.o \
133         eavr85xx.o \
134         eavrmega103.o \
135         eavrmega161.o \
136         eavrmega603.o \
137         eavr1.o \
138         eavr2.o \
139         eavr3.o \
140         eavr4.o \
141         eavr5.o \
142         ecoff_sparc.o \
143         ecrisaout.o \
144         ecriself.o \
145         ecrislinux.o \
146         ed10velf.o \
147         ed30v_e.o \
148         ed30v_o.o \
149         ed30velf.o \
150         edelta68.o \
151         eelf32_dlx.o \
152         eebmon29k.o \
153         eelf32_i960.o \
154         eelf32_i860.o \
155         eelf32_sparc.o \
156         eelf32b4300.o \
157         eelf32bmip.o \
158         eelf32bmipn32.o \
159         eelf32btsmip.o \
160         eelf32btsmipn32.o \
161         eelf32ltsmip.o \
162         eelf32ltsmipn32.o \
163         eelf32ebmip.o \
164         eelf32elmip.o \
165         eelf32fr30.o \
166         eelf32frv.o \
167         eelf32i370.o \
168         eelf32ip2k.o \
169         eelf32l4300.o \
170         eelf32lmip.o \
171         eelf32lppc.o \
172         eelf32lppcnto.o \
173         eelf32lppcsim.o \
174         eelf32mcore.o \
175         eelf32openrisc.o \
176         eelf32ppc.o \
177         eelf32ppc_fbsd.o \
178         eelf32ppclinux.o \
179         eelf32ppcnto.o \
180         eelf32ppcsim.o \
181         eelf32ppcwindiss.o \
182         eelf32vax.o \
183         eelf32xstormy16.o \
184         eelf_i386.o \
185         eelf_i386_be.o \
186         eelf_i386_chaos.o \
187         eelf_i386_fbsd.o \
188         eelf_i386_ldso.o \
189         eelf_s390.o \
190         egld960.o \
191         egld960coff.o \
192         eh8300.o \
193         eh8300h.o \
194         eh8300s.o \
195         eh8300elf.o \
196         eh8300helf.o \
197         eh8300self.o \
198         eh8500.o \
199         eh8500b.o \
200         eh8500c.o \
201         eh8500m.o \
202         eh8500s.o \
203         ehp300bsd.o \
204         ehp3hpux.o \
205         ehppaelf.o \
206         ehppalinux.o \
207         ehppanbsd.o \
208         ehppaobsd.o \
209         ei386aout.o \
210         ei386beos.o \
211         ei386bsd.o \
212         ei386coff.o \
213         ei386go32.o \
214         ei386linux.o \
215         ei386lynx.o \
216         ei386mach.o \
217         ei386moss.o \
218         ei386msdos.o \
219         ei386nbsd.o \
220         ei386nto.o \
221         ei386nw.o \
222         ei386pe.o \
223         ei386pe_posix.o \
224         elnk960.o \
225         em68hc11elf.o \
226         em68hc11elfb.o \
227         em68hc12elf.o \
228         em68hc12elfb.o \
229         em68k4knbsd.o \
230         em68kaout.o \
231         em68kaux.o \
232         em68kcoff.o \
233         em68kelf.o \
234         em68kelfnbsd.o \
235         em68klinux.o \
236         em68klynx.o \
237         em68knbsd.o \
238         em68kpsos.o \
239         em88kbcs.o \
240         emcorepe.o \
241         emipsbig.o \
242         emipsbsd.o \
243         emipsidt.o \
244         emipsidtl.o \
245         emipslit.o \
246         emipslnews.o \
247         emipspe.o \
248         enews.o \
249         ens32knbsd.o \
250         eor32.o \
251         eor32elf.o \
252         epc532macha.o \
253         epdp11.o \
254         epjelf.o \
255         epjlelf.o \
256         eppcmacos.o \
257         eppcnw.o \
258         eppcpe.o \
259         eriscix.o \
260         esa29200.o \
261         esh.o \
262         eshelf32.o \
263         eshlelf32.o \
264         eshelf32_linux.o \
265         eshlelf32_linux.o \
266         eshelf32_nbsd.o \
267         eshlelf32_nbsd.o \
268         eshelf.o \
269         eshelf_linux.o \
270         eshlelf_linux.o \
271         eshelf_nbsd.o \
272         eshlelf_nbsd.o \
273         eshelf_nto.o \
274         eshlelf_nto.o \
275         eshl.o \
276         eshlelf.o \
277         eshpe.o \
278         esparcaout.o \
279         esparclinux.o \
280         esparclynx.o \
281         esparcnbsd.o \
282         est2000.o \
283         esun3.o \
284         esun4.o \
285         etic30aout.o \
286         etic30coff.o \
287         etic4xcoff.o \
288         etic54xcoff.o \
289         etic80coff.o \
290         evanilla.o \
291         evax.o \
292         evaxnbsd.o \
293         evsta.o \
294         ew65.o \
295         ez8001.o \
296         ez8002.o
298 ALL_64_EMULATIONS = \
299         eelf64_aix.o \
300         eelf64_ia64.o \
301         eelf64_ia64_fbsd.o \
302         eshelf64.o \
303         eshlelf64.o \
304         eshelf64_nbsd.o \
305         eshlelf64_nbsd.o \
306         eelf_x86_64.o \
307         eelf_x86_64_fbsd.o \
308         eelf64_s390.o \
309         eelf64_sparc.o \
310         eelf64_sparc_fbsd.o \
311         eelf64alpha.o \
312         eelf64alpha_fbsd.o \
313         eelf64alpha_nbsd.o \
314         eelf64bmip.o \
315         eelf64btsmip.o \
316         eelf64ltsmip.o \
317         eelf64hppa.o \
318         eelf64mmix.o \
319         emmo.o \
320         eelf64ppc.o \
321         eelf64lppc.o \
322         ehppa64linux.o
324 ALL_EMUL_EXTRA_OFILES = \
325         deffilep.o \
326         pe-dll.o
328 CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
329         ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
330         mri.c ldcref.c pe-dll.c
332 HFILES = ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
333         ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
334         ldwrite.h mri.h deffile.h pe-dll.h
336 GENERATED_CFILES = ldgram.c ldlex.c deffilep.c
337 GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h
339 OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
340         ldwrite.o ldexp.o  ldemul.o ldver.o ldmisc.o \
341         ldfile.o ldcref.o ${EMULATION_OFILES} ${EMUL_EXTRA_OFILES}
343 STAGESTUFF = *.o ldscripts/* e*.c
345 # At the moment this is just a list of those emulation template files
346 # that contain internationalised strings.
347 EMULATION_FILES = emultempl/pe.em emultempl/armcoff.em
349 POTFILES = $(CFILES) $(HFILES) $(EMULATION_FILES)
351 po/POTFILES.in: @MAINT@ Makefile
352         for file in $(POTFILES); do echo $$file; done | sort > tmp \
353           && mv tmp $(srcdir)/po/POTFILES.in
355 ldmain.o: ldmain.c config.status
356         $(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' -DTARGET='"@target@"' $(srcdir)/ldmain.c
358 ldemul-list.h: Makefile
359         (echo "/* This file is automatically generated.  DO NOT EDIT! */";\
360         for f in `echo " " ${EMULATION_OFILES} "" \
361          | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
362             echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
363         done;\
364         echo "";\
365         echo "#define EMULATION_LIST \\";\
366         for f in `echo " " ${EMULATION_OFILES} "" \
367          | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
368             echo "  &ld_$${f}_emulation, \\"; \
369         done;\
370         echo "  0") >ldemul-tmp.h
371         mv ldemul-tmp.h ldemul-list.h
373 stringify.sed: ${srcdir}/emultempl/$(STRINGIFY)
374           cp ${srcdir}/emultempl/$(STRINGIFY) stringify.sed
376 # These all start with e so 'make clean' can find them.
378 GENSCRIPTS = LIB_PATH='${LIB_PATH}' $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} "${exec_prefix}" @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@"
379 GEN_DEPENDS = $(srcdir)/genscripts.sh stringify.sed
380 @TDIRS@
382 ea29k.c: $(srcdir)/emulparams/a29k.sh \
383   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
384         ${GENSCRIPTS} a29k "$(tdir_a29k)"
385 eaix5ppc.c: $(srcdir)/emulparams/aix5ppc.sh \
386   $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
387         ${GENSCRIPTS} aix5ppc "$(tdir_aixppc)"
388 eaix5rs6.c: $(srcdir)/emulparams/aix5rs6.sh \
389   $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
390         ${GENSCRIPTS} aix5rs6 "$(tdir_aixrs6)"
391 eaixppc.c: $(srcdir)/emulparams/aixppc.sh \
392   $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
393         ${GENSCRIPTS} aixppc "$(tdir_aixppc)"
394 eaixrs6.c: $(srcdir)/emulparams/aixrs6.sh \
395   $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
396         ${GENSCRIPTS} aixrs6 "$(tdir_aixrs6)"
397 ealpha.c: $(srcdir)/emulparams/alpha.sh \
398   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
399         ${GENSCRIPTS} alpha "$(tdir_alpha)"
400 earcelf.c: $(srcdir)/emulparams/arcelf.sh \
401   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
402         ${GENSCRIPTS} arcelf "$(tdir_arcelf)"
403 earmelf.c: $(srcdir)/emulparams/armelf.sh \
404   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
405   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
406         ${GENSCRIPTS} armelf "$(tdir_armelf)"
407 earmelf_oabi.c: $(srcdir)/emulparams/armelf_oabi.sh \
408   $(srcdir)/emultempl/armelf_oabi.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
409         ${GENSCRIPTS} armelf_oabi "$(tdir_armelf)"
410 earmelf_fbsd.c: $(srcdir)/emulparams/armelf_fbsd.sh \
411   $(srcdir)/emulparams/armelf.sh \
412   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
413   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
414         ${GENSCRIPTS} armelf_fbsd "$(tdir_armelf_fbsd)"
415 earmelf_linux.c: $(srcdir)/emulparams/armelf_linux.sh \
416   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
417   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
418         ${GENSCRIPTS} armelf_linux "$(tdir_armelf_linux)"
419 earmelf_nbsd.c: $(srcdir)/emulparams/armelf_nbsd.sh \
420   $(srcdir)/emulparams/armelf.sh \
421   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
422   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
423         ${GENSCRIPTS} armelf_nbsd "$(tdir_armelf_nbsd)"
424 earmelfb_nbsd.c: $(srcdir)/emulparams/armelfb_nbsd.sh \
425   $(srcdir)/emulparams/armelf_nbsd.sh \
426   $(srcdir)/emulparams/armelf.sh \
427   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
428   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
429         ${GENSCRIPTS} armelfb_nbsd "$(tdir_armelfb_nbsd)"
430 earmaoutb.c:    $(srcdir)/emulparams/armaoutb.sh \
431   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
432         ${GENSCRIPTS} armaoutb "$(tdir_armaoutb)"
433 earmaoutl.c:    $(srcdir)/emulparams/armaoutl.sh \
434   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
435         ${GENSCRIPTS} armaoutl "$(tdir_armaoutl)"
436 earmcoff.c:     $(srcdir)/emulparams/armcoff.sh \
437   $(srcdir)/emultempl/armcoff.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS}
438         ${GENSCRIPTS} armcoff "$(tdir_armcoff)"
439 earmnbsd.c:     $(srcdir)/emulparams/armnbsd.sh \
440   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
441         ${GENSCRIPTS} armnbsd "$(tdir_armnbsd)"
442 earmnto.c: $(srcdir)/emulparams/armnto.sh \
443   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
444   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
445         ${GENSCRIPTS} armnto "$(tdir_armnto)"
446 earm_epoc_pe.c: $(srcdir)/emulparams/arm_epoc_pe.sh \
447   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/epocpe.sc ${GEN_DEPENDS}
448         ${GENSCRIPTS} arm_epoc_pe "$(tdir_armpe)"
449 earmpe.c: $(srcdir)/emulparams/armpe.sh \
450   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
451         ${GENSCRIPTS} armpe "$(tdir_armpe)"
452 eavr85xx.c: $(srcdir)/emulparams/avr85xx.sh \
453   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
454   ${GEN_DEPENDS}
455         ${GENSCRIPTS} avr85xx "$(tdir_avr85xx)"
456 eavr1200.c: $(srcdir)/emulparams/avr1200.sh \
457   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
458   ${GEN_DEPENDS}
459         ${GENSCRIPTS} avr1200 "$(tdir_avr85xx)"
460 eavr23xx.c: $(srcdir)/emulparams/avr23xx.sh \
461   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
462   ${GEN_DEPENDS}
463         ${GENSCRIPTS} avr23xx "$(tdir_avr85xx)"
464 eavr44x4.c: $(srcdir)/emulparams/avr44x4.sh \
465   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
466   ${GEN_DEPENDS}
467         ${GENSCRIPTS} avr44x4 "$(tdir_avr85xx)"
468 eavr4433.c: $(srcdir)/emulparams/avr4433.sh \
469   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
470   ${GEN_DEPENDS}
471         ${GENSCRIPTS} avr4433 "$(tdir_avr85xx)"
472 eavrmega603.c: $(srcdir)/emulparams/avrmega603.sh \
473   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
474   ${GEN_DEPENDS}
475         ${GENSCRIPTS} avrmega603 "$(tdir_avr85xx)"
476 eavrmega103.c: $(srcdir)/emulparams/avrmega103.sh \
477   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
478   ${GEN_DEPENDS}
479         ${GENSCRIPTS} avrmega103 "$(tdir_avr85xx)"
480 eavrmega161.c: $(srcdir)/emulparams/avrmega161.sh \
481   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
482   ${GEN_DEPENDS}
483         ${GENSCRIPTS} avrmega161 "$(tdir_avr85xx)"
484 eavr1.c: $(srcdir)/emulparams/avr1.sh \
485   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
486   ${GEN_DEPENDS}
487         ${GENSCRIPTS} avr1 "$(tdir_avr85xx)"
488 eavr2.c: $(srcdir)/emulparams/avr2.sh \
489   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
490   ${GEN_DEPENDS}
491         ${GENSCRIPTS} avr2 "$(tdir_avr85xx)"
492 eavr3.c: $(srcdir)/emulparams/avr3.sh \
493   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
494   ${GEN_DEPENDS}
495         ${GENSCRIPTS} avr3 "$(tdir_avr85xx)"
496 eavr4.c: $(srcdir)/emulparams/avr4.sh \
497   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
498   ${GEN_DEPENDS}
499         ${GENSCRIPTS} avr4 "$(tdir_avr85xx)"
500 eavr5.c: $(srcdir)/emulparams/avr5.sh \
501   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
502   ${GEN_DEPENDS}
503         ${GENSCRIPTS} avr5 "$(tdir_avr85xx)"
504 ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
505   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
506         ${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)"
507 ecrisaout.c: $(srcdir)/emulparams/crisaout.sh \
508   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/crisaout.sc ${GEN_DEPENDS}
509         ${GENSCRIPTS} crisaout "$(tdir_cris)"
510 ecriself.c: $(srcdir)/emulparams/criself.sh \
511   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
512         ${GENSCRIPTS} criself "$(tdir_cris)"
513 ecrislinux.c: $(srcdir)/emulparams/crislinux.sh \
514   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
515         ${GENSCRIPTS} crislinux "$(tdir_cris)"
516 ed10velf.c: $(srcdir)/emulparams/d10velf.sh \
517   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfd10v.sc ${GEN_DEPENDS}
518         ${GENSCRIPTS} d10velf "$(tdir_d10v)"
519 ed30velf.c: $(srcdir)/emulparams/d30velf.sh \
520   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
521         ${GENSCRIPTS} d30velf "$(tdir_d30v)"
522 ed30v_o.c: $(srcdir)/emulparams/d30v_o.sh \
523   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
524         ${GENSCRIPTS} d30v_o "$(tdir_d30v)"
525 ed30v_e.c: $(srcdir)/emulparams/d30v_e.sh \
526   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
527         ${GENSCRIPTS} d30v_e "$(tdir_d30v)"
528 edelta68.c: $(srcdir)/emulparams/delta68.sh \
529   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
530         ${GENSCRIPTS} delta68 "$(tdir_delta68)"
531 eelf32_dlx.c: $(srcdir)/emulparams/elf32_dlx.sh \
532   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/dlx.sc ${GEN_DEPENDS}
533         ${GENSCRIPTS} elf32_dlx "$(tdir_elf32_dlx)"
534 eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
535   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
536         ${GENSCRIPTS} ebmon29k "$(tdir_ebmon29k)"
537 eelf32xstormy16.c: $(srcdir)/emulparams/elf32xstormy16.sh \
538   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
539   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
540         ${GENSCRIPTS} elf32xstormy16 "$(tdir_xstormy16)"
541 eelf32vax.c: $(srcdir)/emulparams/elf32vax.sh \
542   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
543         ${GENSCRIPTS} elf32vax "$(tdir_elf32vax)"
544 eelf32fr30.c: $(srcdir)/emulparams/elf32fr30.sh \
545   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
546         ${GENSCRIPTS} elf32fr30 "$(tdir_fr30)"
547 eelf32frv.c: $(srcdir)/emulparams/elf32frv.sh \
548   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
549         ${GENSCRIPTS} elf32frv "$(tdir_frv)"
550 eelf32mcore.c: $(srcdir)/emulparams/elf32mcore.sh \
551   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
552         ${GENSCRIPTS} elf32mcore "$(tdir_mcore)"
553 em32relf.c: $(srcdir)/emulparams/m32relf.sh \
554   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
555         ${GENSCRIPTS} m32relf "$(tdir_m32r)"
556 eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
557   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
558         ${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)"
559 eelf32_i860.c: $(srcdir)/emulparams/elf32_i860.sh \
560   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
561         ${GENSCRIPTS} elf32_i860 "$(tdir_elf32_i860)"
562 eelf32_i960.c: $(srcdir)/emulparams/elf32_i960.sh \
563   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
564         ${GENSCRIPTS} elf32_i960 "$(tdir_elf32_i960)"
565 eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \
566   $(srcdir)/emulparams/elf32bmip.sh \
567   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
568         ${GENSCRIPTS} elf32b4300 "$(tdir_elf32b4300)"
569 eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
570   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
571         ${GENSCRIPTS} elf32bmip "$(tdir_elf32bmip)"
572 eelf32bsmip.c: $(srcdir)/emulparams/elf32bsmip.sh \
573   $(srcdir)/emulparams/elf32bmip.sh \
574   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
575         ${GENSCRIPTS} elf32bsmip "$(tdir_elf32bsmip)"
576 eelf32btsmip.c: $(srcdir)/emulparams/elf32btsmip.sh \
577   $(srcdir)/emulparams/elf32bmip.sh \
578   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
579         ${GENSCRIPTS} elf32btsmip "$(tdir_elf32btsmip)"
580 eelf32btsmipn32.c: $(srcdir)/emulparams/elf32btsmipn32.sh \
581   $(srcdir)/emulparams/elf32bmip.sh \
582   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
583         ${GENSCRIPTS} elf32btsmipn32 "$(tdir_elf32btsmipn32)"
584 eelf32ltsmip.c: $(srcdir)/emulparams/elf32ltsmip.sh \
585   $(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
586   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
587         ${GENSCRIPTS} elf32ltsmip "$(tdir_elf32ltsmip)"
588 eelf32ltsmipn32.c: $(srcdir)/emulparams/elf32ltsmipn32.sh \
589   $(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
590   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
591         ${GENSCRIPTS} elf32ltsmipn32 "$(tdir_elf32ltsmipn32)"
592 eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
593   $(srcdir)/emulparams/elf32bmip.sh \
594   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
595         ${GENSCRIPTS} elf32ebmip "$(tdir_elf32ebmip)"
596 eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \
597   $(srcdir)/emulparams/elf32lmip.sh $(srcdir)/emulparams/elf32bmip.sh \
598   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
599         ${GENSCRIPTS} elf32elmip "$(tdir_elf32elmip)"
600 eelf32bmipn32.c: $(srcdir)/emulparams/elf32bmipn32.sh \
601   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
602         ${GENSCRIPTS} elf32bmipn32 "$(tdir_elf32bmipn32)"
603 eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \
604   $(srcdir)/emulparams/elf32b4300.sh $(srcdir)/emulparams/elf32bmip.sh \
605   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
606         ${GENSCRIPTS} elf32l4300 "$(tdir_elf32l4300)"
607 eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
608   $(srcdir)/emulparams/elf32bmip.sh \
609   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
610         ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)"
611 eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \
612   $(srcdir)/emulparams/elf32ppc.sh \
613   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
614         ${GENSCRIPTS} elf32lppc "$(tdir_elf32lppc)"
615 eelf32lppcnto.c: $(srcdir)/emulparams/elf32lppcnto.sh \
616   $(srcdir)/emulparams/elf32ppc.sh \
617   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
618         ${GENSCRIPTS} elf32lppcnto "$(tdir_elf32lppcnto)"
619 eelf32lppcsim.c: $(srcdir)/emulparams/elf32lppcsim.sh \
620   $(srcdir)/emulparams/elf32lppc.sh $(srcdir)/emulparams/elf32ppc.sh \
621   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
622         ${GENSCRIPTS} elf32lppcsim "$(tdir_elf32lppcsim)"
623 eelf32ppcnto.c: $(srcdir)/emulparams/elf32ppcnto.sh \
624   $(srcdir)/emulparams/elf32ppc.sh \
625   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
626         ${GENSCRIPTS} elf32ppcnto "$(tdir_elf32ppcnto)"
627 eelf32ppcwindiss.c: $(srcdir)/emulparams/elf32ppcwindiss.sh ${GEN_DEPENDS}
628         ${GENSCRIPTS} elf32ppcwindiss "$(tdir_elf32ppcwindiss)"
629 eelf32lsmip.c: $(srcdir)/emulparams/elf32lsmip.sh \
630   $(srcdir)/emulparams/elf32lmip.sh $(srcdir)/emulparams/elf32bmip.sh \
631   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
632         ${GENSCRIPTS} elf32lsmip "$(tdir_elf32lsmip)"
633 eelf32openrisc.c: $(srcdir)/emulparams/elf32openrisc.sh \
634   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
635         ${GENSCRIPTS} elf32openrisc "$(tdir_openrisc)"
636 eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
637   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
638         ${GENSCRIPTS} elf32ppc "$(tdir_elf32ppc)"
639 eelf32ppc_fbsd.c: $(srcdir)/emulparams/elf32ppc_fbsd.sh \
640   $(srcdir)/emulparams/elf32ppc.sh \
641   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
642         ${GENSCRIPTS} elf32ppc_fbsd "$(tdir_elf32ppc_fbsd)"
643 eelf32ppcsim.c: $(srcdir)/emulparams/elf32ppcsim.sh \
644   $(srcdir)/emulparams/elf32ppc.sh \
645   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
646         ${GENSCRIPTS} elf32ppcsim "$(tdir_elf32ppcsim)"
647 eelf32ppclinux.c: $(srcdir)/emulparams/elf32ppclinux.sh \
648   $(srcdir)/emulparams/elf32ppc.sh \
649   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
650         ${GENSCRIPTS} elf32ppclinux "$(tdir_elf32ppclinux)"
651 eelf64ppc.c: $(srcdir)/emulparams/elf64ppc.sh $(srcdir)/emultempl/ppc64elf.em \
652   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
653         ${GENSCRIPTS} elf64ppc "$(tdir_elf64ppc)"
654 eelf64lppc.c: $(srcdir)/emulparams/elf64lppc.sh \
655   $(srcdir)/emulparams/elf64ppc.sh $(srcdir)/emultempl/ppc64elf.em \
656   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
657         ${GENSCRIPTS} elf64lppc "$(tdir_elf64lppc)"
658 eelf32i370.c: $(srcdir)/emulparams/elf32i370.sh \
659   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfi370.sc ${GEN_DEPENDS}
660         ${GENSCRIPTS} elf32i370 "$(tdir_elf32i370)"
661 eelf32ip2k.c: $(srcdir)/emulparams/elf32ip2k.sh \
662   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/ip2k.sc ${GEN_DEPENDS}
663         ${GENSCRIPTS} elf32ip2k "$(tdir_ip2k)"
664 eelf64alpha.c: $(srcdir)/emulparams/elf64alpha.sh \
665   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
666         ${GENSCRIPTS} elf64alpha "$(tdir_elf64alpha)"
667 eelf64alpha_fbsd.c: $(srcdir)/emulparams/elf64alpha_fbsd.sh \
668   $(srcdir)/emulparams/elf64alpha.sh \
669   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
670         ${GENSCRIPTS} elf64alpha_fbsd "$(tdir_elf64alpha_fbsd)"
671 eelf64alpha_nbsd.c: $(srcdir)/emulparams/elf64alpha_nbsd.sh \
672   $(srcdir)/emulparams/elf64alpha.sh \
673   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
674         ${GENSCRIPTS} elf64alpha_nbsd "$(tdir_elf64alpha_nbsd)"
675 eelf64hppa.c: $(srcdir)/emulparams/elf64hppa.sh \
676   $(srcdir)/emulparams/hppa64linux.sh \
677   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
678         ${GENSCRIPTS} elf64hppa "$(tdir_elf64hppa)"
679 eelf64_aix.c: $(srcdir)/emulparams/elf64_aix.sh \
680   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
681         ${GENSCRIPTS} elf64_aix "$(tdir_elf64_aix)"
682 eelf64_ia64.c: $(srcdir)/emulparams/elf64_ia64.sh \
683   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
684   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
685         ${GENSCRIPTS} elf64_ia64 "$(tdir_elf64_ia64)"
686 eelf64_ia64_fbsd.c: $(srcdir)/emulparams/elf64_ia64_fbsd.sh \
687   $(srcdir)/emulparams/elf64_ia64.sh \
688   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
689   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
690         ${GENSCRIPTS} elf64_ia64_fbsd "$(tdir_elf64_ia64_fbsd)"
691 eelf64_s390.c: $(srcdir)/emulparams/elf64_s390.sh \
692   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
693         ${GENSCRIPTS} elf64_s390 "$(tdir_elf64_s390)"
694 eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
695   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
696         ${GENSCRIPTS} elf64_sparc "$(tdir_elf64_sparc)"
697 eelf64_sparc_fbsd.c: $(srcdir)/emulparams/elf64_sparc_fbsd.sh \
698   $(srcdir)/emulparams/elf64_sparc.sh \
699   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
700         ${GENSCRIPTS} elf64_sparc_fbsd "$(tdir_elf64_sparc_fbsd)"
701 eelf64bmip.c: $(srcdir)/emulparams/elf64bmip.sh \
702   $(srcdir)/emulparams/elf32bmipn32.sh \
703   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
704         ${GENSCRIPTS} elf64bmip "$(tdir_elf64bmip)"
705 eelf64mmix.c: $(srcdir)/emulparams/elf64mmix.sh \
706   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/mmix-elfnmmo.em \
707   $(srcdir)/emultempl/mmixelf.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
708         ${GENSCRIPTS} elf64mmix "$(tdir_elf64mmix)"
709 emmo.c: $(srcdir)/emulparams/mmo.sh $(srcdir)/emultempl/mmix-elfnmmo.em \
710   $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/mmo.em \
711   $(srcdir)/scripttempl/mmo.sc ${GEN_DEPENDS}
712         ${GENSCRIPTS} mmo "$(tdir_mmo)"
713 eelf64btsmip.c: $(srcdir)/emulparams/elf64btsmip.sh \
714   $(srcdir)/emulparams/elf32bmipn32.sh \
715   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
716         ${GENSCRIPTS} elf64btsmip "$(tdir_elf64btsmip)"
717 eelf64ltsmip.c: $(srcdir)/emulparams/elf64ltsmip.sh \
718   $(srcdir)/emulparams/elf64btsmip.sh $(srcdir)/emulparams/elf32bmipn32.sh \
719   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
720         ${GENSCRIPTS} elf64ltsmip "$(tdir_elf64ltsmip)"
721 eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
722   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
723         ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
724 eelf_x86_64.c: $(srcdir)/emulparams/elf_x86_64.sh \
725   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
726         ${GENSCRIPTS} elf_x86_64 "$(tdir_elf_x86_64)"
727 eelf_x86_64_fbsd.c: $(srcdir)/emulparams/elf_x86_64_fbsd.sh \
728   $(srcdir)/emulparams/elf_x86_64.sh \
729   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
730         ${GENSCRIPTS} elf_x86_64_fbsd "$(tdir_elf_x86_64_fbsd)"
731 eelf_i386_be.c: $(srcdir)/emulparams/elf_i386_be.sh \
732   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
733         ${GENSCRIPTS} elf_i386_be "$(tdir_elf_i386_be)"
734 eelf_i386_chaos.c: $(srcdir)/emulparams/elf_i386_chaos.sh \
735   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf_chaos.sc ${GEN_DEPENDS}
736         ${GENSCRIPTS} elf_i386_chaos "$(tdir_elf_i386_chaos)"
737 eelf_i386_fbsd.c: $(srcdir)/emulparams/elf_i386_fbsd.sh \
738   $(srcdir)/emulparams/elf_i386.sh \
739   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
740         ${GENSCRIPTS} elf_i386_fbsd "$(tdir_elf_i386_fbsd)"
741 eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
742   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
743         ${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)"
744 eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \
745   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
746         ${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
747 egld960.c: $(srcdir)/emulparams/gld960.sh \
748   $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
749         ${GENSCRIPTS} gld960 "$(tdir_gld960)"
750 egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
751   $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
752         ${GENSCRIPTS} gld960coff "$(tdir_gld960coff)"
753 eh8300.c: $(srcdir)/emulparams/h8300.sh \
754   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
755         ${GENSCRIPTS} h8300 "$(tdir_h8300)"
756 eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
757   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
758         ${GENSCRIPTS} h8300h "$(tdir_h8300h)"
759 eh8300s.c: $(srcdir)/emulparams/h8300s.sh \
760   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300s.sc ${GEN_DEPENDS}
761         ${GENSCRIPTS} h8300s "$(tdir_h8300s)"
762 eh8300elf.c: $(srcdir)/emulparams/h8300elf.sh \
763   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
764         ${GENSCRIPTS} h8300elf "$(tdir_h8300elf)"
765 eh8300helf.c: $(srcdir)/emulparams/h8300helf.sh \
766   $(srcdir)/emulparams/h8300elf.sh \
767   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
768         ${GENSCRIPTS} h8300helf "$(tdir_h8300helf)"
769 eh8300self.c: $(srcdir)/emulparams/h8300self.sh \
770   $(srcdir)/emulparams/h8300elf.sh \
771   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
772         ${GENSCRIPTS} h8300self "$(tdir_h8300self)"
773 eh8500.c: $(srcdir)/emulparams/h8500.sh \
774   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
775         ${GENSCRIPTS} h8500 "$(tdir_h8500)"
776 eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
777   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
778         ${GENSCRIPTS} h8500b "$(tdir_h8500b)"
779 eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
780   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
781         ${GENSCRIPTS} h8500c "$(tdir_h8500c)"
782 eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
783   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
784         ${GENSCRIPTS} h8500m "$(tdir_h8500m)"
785 eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
786   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
787         ${GENSCRIPTS} h8500s "$(tdir_h8500s)"
788 ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
789   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
790         ${GENSCRIPTS} hp300bsd "$(tdir_hp300bsd)"
791 ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
792   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
793         ${GENSCRIPTS} hp3hpux "$(tdir_hp3hpux)"
794 ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
795   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
796   $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
797         ${GENSCRIPTS} hppaelf "$(tdir_hppaelf)"
798 ehppalinux.c: $(srcdir)/emulparams/hppalinux.sh \
799   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
800   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
801         ${GENSCRIPTS} hppalinux "$(tdir_hppalinux)"
802 ehppanbsd.c: $(srcdir)/emulparams/hppanbsd.sh \
803   $(srcdir)/emulparams/hppaelf.sh \
804   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
805   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
806         ${GENSCRIPTS} hppanbsd "$(tdir_hppanbsd)"
807 ehppaobsd.c: $(srcdir)/emulparams/hppaobsd.sh \
808   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
809   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
810         ${GENSCRIPTS} hppaobsd "$(tdir_hppaobsd)"
811 ehppa64linux.c: $(srcdir)/emulparams/hppa64linux.sh \
812   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
813         ${GENSCRIPTS} hppa64linux "$(tdir_hppa64linux)"
814 ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
815   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
816         ${GENSCRIPTS} i386aout "$(tdir_i386aout)"
817 ei386beos.c: $(srcdir)/emulparams/i386beos.sh \
818   $(srcdir)/emultempl/beos.em $(srcdir)/scripttempl/i386beos.sc ${GEN_DEPENDS}
819         ${GENSCRIPTS} i386beos "$(tdir_i386beos)"
820 ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
821   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
822         ${GENSCRIPTS} i386bsd "$(tdir_i386bsd)"
823 ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
824   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
825         ${GENSCRIPTS} i386coff "$(tdir_i386coff)"
826 ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
827   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
828         ${GENSCRIPTS} i386go32 "$(tdir_i386go32)"
829 ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
830   $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
831         ${GENSCRIPTS} i386linux "$(tdir_i386linux)"
832 ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
833   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.sc ${GEN_DEPENDS}
834         ${GENSCRIPTS} i386lynx "$(tdir_i386lynx)"
835 ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
836   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
837         ${GENSCRIPTS} i386mach "$(tdir_i386mach)"
838 ei386moss.c: $(srcdir)/emulparams/i386moss.sh \
839   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
840         ${GENSCRIPTS} i386moss "$(tdir_i386moss)"
841 ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \
842   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS}
843         ${GENSCRIPTS} i386msdos "$(tdir_i386msdos)"
844 ei386nbsd.c:    $(srcdir)/emulparams/i386nbsd.sh \
845   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
846         ${GENSCRIPTS} i386nbsd "$(tdir_i386nbsd)"
847 ei386nto.c:     $(srcdir)/emulparams/i386nto.sh \
848   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
849         ${GENSCRIPTS} i386nto "$(tdir_i386nto)"
850 ei386nw.c:      $(srcdir)/emulparams/i386nw.sh \
851   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
852         ${GENSCRIPTS} i386nw "$(tdir_i386nw)"
853 ei386pe.c: $(srcdir)/emulparams/i386pe.sh \
854   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
855         ${GENSCRIPTS} i386pe "$(tdir_i386pe)"
856 ei386pe_posix.c: $(srcdir)/emulparams/i386pe_posix.sh \
857   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
858         ${GENSCRIPTS} i386pe_posix "$(tdir_i386pe_posix)"
859 elnk960.c: $(srcdir)/emulparams/lnk960.sh \
860   $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
861         ${GENSCRIPTS} lnk960 "$(tdir_lnk960)"
862 em68hc11elf.c: $(srcdir)/emulparams/m68hc11elf.sh \
863   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
864         ${GENSCRIPTS} m68hc11elf "$(tdir_m68hc11)"
865 em68hc11elfb.c: $(srcdir)/emulparams/m68hc11elfb.sh \
866   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
867         ${GENSCRIPTS} m68hc11elfb "$(tdir_m68hc11b)"
868 em68hc12elf.c: $(srcdir)/emulparams/m68hc12elf.sh \
869   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
870         ${GENSCRIPTS} m68hc12elf "$(tdir_m68hc12)"
871 em68hc12elfb.c: $(srcdir)/emulparams/m68hc12elfb.sh \
872   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
873         ${GENSCRIPTS} m68hc12elfb "$(tdir_m68hc12b)"
874 em68k4knbsd.c:  $(srcdir)/emulparams/m68k4knbsd.sh \
875   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
876         ${GENSCRIPTS} m68k4knbsd "$(tdir_m68k4knbsd)"
877 em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
878   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
879         ${GENSCRIPTS} m68kaout "$(tdir_m68kaout)"
880 em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \
881   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS}
882         ${GENSCRIPTS} m68kaux "$(tdir_m68kaux)"
883 em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
884   $(srcdir)/emultempl/m68kcoff.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
885         ${GENSCRIPTS} m68kcoff "$(tdir_m68kcoff)"
886 em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \
887   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/m68kelf.em \
888   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
889         ${GENSCRIPTS} m68kelf "$(tdir_m68kelf)"
890 em68kelfnbsd.c: $(srcdir)/emulparams/m68kelfnbsd.sh \
891   $(srcdir)/emulparams/m68kelf.sh \
892   $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/m68kelf.em \
893   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
894         ${GENSCRIPTS} m68kelfnbsd "$(tdir_m68kelfnbsd)"
895 em68klinux.c: $(srcdir)/emulparams/m68klinux.sh \
896   $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
897         ${GENSCRIPTS} m68klinux "$(tdir_m68klinux)"
898 em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
899   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS}
900         ${GENSCRIPTS} m68klynx "$(tdir_m68klynx)"
901 em68knbsd.c:    $(srcdir)/emulparams/m68knbsd.sh \
902   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
903         ${GENSCRIPTS} m68knbsd "$(tdir_m68knbsd)"
904 em68kpsos.c:    $(srcdir)/emulparams/m68kpsos.sh \
905   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS}
906         ${GENSCRIPTS} m68kpsos "$(tdir_m68kpsos)"
907 em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
908   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
909         ${GENSCRIPTS} m88kbcs "$(tdir_m88kbcs)"
910 emcorepe.c: $(srcdir)/emulparams/mcorepe.sh \
911   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
912         ${GENSCRIPTS} mcorepe "$(tdir_mcorepe)"
913 emipsbig.c:  $(srcdir)/emulparams/mipsbig.sh \
914   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
915         ${GENSCRIPTS} mipsbig
916 emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
917   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
918         ${GENSCRIPTS} mipsbsd
919 emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
920   $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
921         ${GENSCRIPTS} mipsidt "$(tdir_mipsidt)"
922 emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
923   $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
924         ${GENSCRIPTS} mipsidtl "$(tdir_mipsidtl)"
925 emipslit.c:  $(srcdir)/emulparams/mipslit.sh \
926   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
927         ${GENSCRIPTS} mipslit "$(tdir_mipslit)"
928 emipslnews.c:  $(srcdir)/emulparams/mipslnews.sh \
929   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
930         ${GENSCRIPTS} mipslnews
931 emipspe.c: $(srcdir)/emulparams/mipspe.sh \
932   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
933         ${GENSCRIPTS} mipspe "$(tdir_mips)"
934 emn10300.c: $(srcdir)/emulparams/mn10300.sh \
935   $(srcdir)/emulparams/mn10200.sh \
936   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
937         ${GENSCRIPTS} mn10300 "$(tdir_mn10300)"
938 emn10200.c: $(srcdir)/emulparams/mn10200.sh \
939   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
940         ${GENSCRIPTS} mn10200 "$(tdir_mn10200)"
941 enews.c: $(srcdir)/emulparams/news.sh \
942   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
943         ${GENSCRIPTS} news "$(tdir_news)"
944 ens32knbsd.c:   $(srcdir)/emulparams/ns32knbsd.sh \
945   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
946         ${GENSCRIPTS} ns32knbsd "$(tdir_ns32knbsd)"
947 eor32.c: $(srcdir)/emulparams/or32.sh \
948   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/or32.sc ${GEN_DEPENDS}
949         ${GENSCRIPTS} or32 "$(tdir_or32)"
950 eor32elf.c: $(srcdir)/emulparams/or32elf.sh \
951   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
952         ${GENSCRIPTS} or32elf "$(tdir_or32elf)"
953 epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \
954   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
955         ${GENSCRIPTS} pc532macha "$(tdir_pc532macha)"
956 epdp11.c: $(srcdir)/emulparams/pdp11.sh \
957   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
958         ${GENSCRIPTS} pdp11 "$(tdir_pdp11)"
959 epjelf.c: $(srcdir)/emulparams/pjelf.sh \
960   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
961         ${GENSCRIPTS} pjelf "$(tdir_pjelf)"
962 epjlelf.c: $(srcdir)/emulparams/pjlelf.sh \
963   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
964         ${GENSCRIPTS} pjlelf "$(tdir_pjlelf)"
965 eppcmacos.c:    $(srcdir)/emulparams/ppcmacos.sh \
966   $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
967         ${GENSCRIPTS} ppcmacos "$(tdir_ppcmacos)"
968 eppcnw.c:       $(srcdir)/emulparams/ppcnw.sh \
969   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
970         ${GENSCRIPTS} ppcnw "$(tdir_ppcnw)"
971 eppcpe.c: $(srcdir)/emulparams/ppcpe.sh \
972   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/ppcpe.sc ${GEN_DEPENDS}
973         ${GENSCRIPTS} ppcpe "$(tdir_ppcpe)"
974 eriscix.c: $(srcdir)/emulparams/riscix.sh \
975   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
976         ${GENSCRIPTS} riscix "$(tdir_riscix)"
977 esa29200.c: $(srcdir)/emulparams/sa29200.sh \
978   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
979         ${GENSCRIPTS} sa29200 "$(tdir_sa29200)"
980 esh.c: $(srcdir)/emulparams/sh.sh \
981   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
982         ${GENSCRIPTS} sh "$(tdir_sh)"
983 eshelf.c: $(srcdir)/emulparams/shelf.sh \
984   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
985         ${GENSCRIPTS} shelf "$(tdir_shelf)"
986 eshelf32.c: $(srcdir)/emulparams/shelf32.sh \
987   $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
988   $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
989   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
990         ${GENSCRIPTS} shelf32 "$(tdir_shelf32)"
991 eshelf32_linux.c: $(srcdir)/emulparams/shelf32_linux.sh \
992   $(srcdir)/emulparams/shelf32.sh \
993   $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
994   $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
995   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
996         ${GENSCRIPTS} shelf32_linux "$(tdir_shelf32_linux)"
997 eshelf32_nbsd.c: $(srcdir)/emulparams/shelf32_nbsd.sh \
998   $(srcdir)/emulparams/shelf32.sh \
999   $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
1000   $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
1001   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1002         ${GENSCRIPTS} shelf32_nbsd "$(tdir_shelf32_nbsd)"
1003 eshelf64.c: $(srcdir)/emulparams/shelf64.sh $(srcdir)/emulparams/shelf32.sh \
1004   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1005         ${GENSCRIPTS} shelf64 "$(tdir_shelf64)"
1006 eshelf64_nbsd.c: $(srcdir)/emulparams/shelf64_nbsd.sh \
1007   $(srcdir)/emulparams/shelf32_nbsd.sh $(srcdir)/emulparams/shelf32.sh \
1008   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1009         ${GENSCRIPTS} shelf64_nbsd "$(tdir_shelf64_nbsd)"
1010 eshelf_linux.c: $(srcdir)/emulparams/shelf_linux.sh \
1011   $(srcdir)/emulparams/shlelf_linux.sh \
1012   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1013         ${GENSCRIPTS} shelf_linux "$(tdir_shelf_linux)"
1014 eshlelf_linux.c: $(srcdir)/emulparams/shlelf_linux.sh \
1015   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1016         ${GENSCRIPTS} shlelf_linux "$(tdir_shlelf_linux)"
1017 eshelf_nbsd.c: $(srcdir)/emulparams/shelf_nbsd.sh \
1018   $(srcdir)/emulparams/shelf.sh \
1019   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1020         ${GENSCRIPTS} shelf_nbsd "$(tdir_shelf_nbsd)"
1021 eshelf_nto.c: $(srcdir)/emulparams/shelf_nto.sh \
1022   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1023         ${GENSCRIPTS} shelf_nto "$(tdir_shelf_nto)"
1024 eshlelf_nbsd.c: $(srcdir)/emulparams/shlelf_nbsd.sh \
1025   $(srcdir)/emulparams/shelf_nbsd.sh \
1026   $(srcdir)/emulparams/shelf.sh \
1027   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1028         ${GENSCRIPTS} shlelf_nbsd "$(tdir_shlelf_nbsd)"
1029 eshlelf_nto.c: $(srcdir)/emulparams/shlelf_nto.sh \
1030   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1031         ${GENSCRIPTS} shlelf_nto "$(tdir_shlelf_nto)"
1032 eshlelf.c: $(srcdir)/emulparams/shlelf.sh \
1033   $(srcdir)/emulparams/shelf.sh \
1034   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1035         ${GENSCRIPTS} shlelf "$(tdir_shlelf)"
1036 eshlelf32.c: $(srcdir)/emulparams/shlelf32.sh \
1037   $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h $(srcdir)/emulparams/shelf32.sh \
1038   $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
1039   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1040         ${GENSCRIPTS} shlelf32 "$(tdir_shlelf32)"
1041 eshlelf32_linux.c: $(srcdir)/emulparams/shlelf32_linux.sh \
1042   $(srcdir)/emulparams/shelf32_linux.sh $(srcdir)/emulparams/shelf32.sh \
1043   $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
1044   $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
1045   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1046         ${GENSCRIPTS} shlelf32_linux "$(tdir_shlelf32_linux)"
1047 eshlelf32_nbsd.c: $(srcdir)/emulparams/shlelf32_nbsd.sh \
1048   $(srcdir)/emulparams/shelf32_nbsd.sh $(srcdir)/emulparams/shelf32.sh \
1049   $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
1050   $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
1051   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1052         ${GENSCRIPTS} shlelf32_nbsd "$(tdir_shlelf32_nbsd)"
1053 eshlelf64.c: $(srcdir)/emulparams/shlelf64.sh \
1054   $(srcdir)/emulparams/shelf64.sh $(srcdir)/emulparams/shelf32.sh \
1055   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1056         ${GENSCRIPTS} shlelf64 "$(tdir_shlelf64)"
1057 eshlelf64_nbsd.c: $(srcdir)/emulparams/shlelf64_nbsd.sh \
1058   $(srcdir)/emulparams/shelf64_nbsd.sh \
1059   $(srcdir)/emulparams/shelf32_nbsd.sh $(srcdir)/emulparams/shelf32.sh \
1060   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1061         ${GENSCRIPTS} shlelf64_nbsd "$(tdir_shlelf64_nbsd)"
1062 eshl.c: $(srcdir)/emulparams/shl.sh \
1063   $(srcdir)/emulparams/sh.sh \
1064   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
1065         ${GENSCRIPTS} shl "$(tdir_shl)"
1066 eshpe.c: $(srcdir)/emulparams/shpe.sh \
1067   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1068         ${GENSCRIPTS} shpe "$(tdir_shl)"
1069 esparcaout.c: $(srcdir)/emulparams/sparcaout.sh \
1070   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1071         ${GENSCRIPTS} sparcaout "$(tdir_sparcaout)"
1072 esparclinux.c: $(srcdir)/emulparams/sparclinux.sh \
1073   $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1074         ${GENSCRIPTS} sparclinux "$(tdir_sparclinux)"
1075 esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
1076   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS}
1077         ${GENSCRIPTS} sparclynx "$(tdir_sparclynx)"
1078 esparcnbsd.c:   $(srcdir)/emulparams/sparcnbsd.sh \
1079   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1080         ${GENSCRIPTS} sparcnbsd "$(tdir_sparcnbsd)"
1081 est2000.c: $(srcdir)/emulparams/st2000.sh \
1082   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
1083         ${GENSCRIPTS} st2000 "$(tdir_st2000)"
1084 esun3.c: $(srcdir)/emulparams/sun3.sh \
1085   $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1086         ${GENSCRIPTS} sun3 "$(tdir_sun3)"
1087 esun4.c: $(srcdir)/emulparams/sun4.sh \
1088   $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1089         ${GENSCRIPTS} sun4 "$(tdir_sun4)"
1090 etic30aout.c: $(srcdir)/emulparams/tic30aout.sh \
1091   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30aout.sc ${GEN_DEPENDS}
1092         ${GENSCRIPTS} tic30aout "$(tdir_tic30aout)"
1093 etic30coff.c: $(srcdir)/emulparams/tic30coff.sh \
1094   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30coff.sc ${GEN_DEPENDS}
1095         ${GENSCRIPTS} tic30coff "$(tdir_tic30coff)"
1096 etic4xcoff.c: $(srcdir)/emulparams/tic4xcoff.sh \
1097   $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic4xcoff.sc ${GEN_DEPENDS}
1098         ${GENSCRIPTS} tic4xcoff "$(tdir_tic4xcoff)"
1099 etic54xcoff.c: $(srcdir)/emulparams/tic54xcoff.sh \
1100   $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic54xcoff.sc ${GEN_DEPENDS}
1101         ${GENSCRIPTS} tic54xcoff "$(tdir_tic54xcoff)"
1102 etic80coff.c: $(srcdir)/emulparams/tic80coff.sh \
1103   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic80coff.sc ${GEN_DEPENDS}
1104         ${GENSCRIPTS} tic80coff "$(tdir_tic80coff)"
1105 evanilla.c: $(srcdir)/emulparams/vanilla.sh \
1106   $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
1107         ${GENSCRIPTS} vanilla "$(tdir_vanilla)"
1108 evax.c: $(srcdir)/emulparams/vax.sh \
1109   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1110         ${GENSCRIPTS} vax "$(tdir_vax)"
1111 evaxnbsd.c: $(srcdir)/emulparams/vaxnbsd.sh \
1112   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1113         ${GENSCRIPTS} vaxnbsd "$(tdir_vaxnbsd)"
1114 evsta.c: $(srcdir)/emulparams/vsta.sh \
1115   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1116         ${GENSCRIPTS} vsta "$(tdir_vsta)"
1117 ev850.c: $(srcdir)/emulparams/v850.sh \
1118   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/v850.sc ${GEN_DEPENDS}
1119         ${GENSCRIPTS} v850 "$(tdir_v850)"
1120 ew65.c: $(srcdir)/emulparams/w65.sh \
1121   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS}
1122         ${GENSCRIPTS} w65 "$(tdir_w65)"
1123 ez8001.c: $(srcdir)/emulparams/z8001.sh \
1124   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
1125         ${GENSCRIPTS} z8001 "$(tdir_z8001)"
1126 ez8002.c: $(srcdir)/emulparams/z8002.sh \
1127   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
1128         ${GENSCRIPTS} z8002 "$(tdir_z8002)"
1130 # We need this for automake to use YLWRAP.
1131 EXTRA_ld_new_SOURCES = deffilep.y
1133 ld_new_SOURCES = ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c \
1134         ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c
1135 ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLDEPS)
1136 ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
1138 # The generated emulation files mostly have the same dependencies.
1139 $(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
1140   ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \
1141   ldctor.h ldexp.h ldlang.h ldgram.h
1143 # This is the real libbfd.a created by libtool.
1144 TESTBFDLIB = @TESTBFDLIB@
1146 check-DEJAGNU: site.exp
1147         srcroot=`cd $(srcdir) && pwd`; export srcroot; \
1148         r=`pwd`; export r; \
1149         LC_COLLATE=; LC_ALL=; LANG=; export LC_COLLATE LC_ALL LANG; \
1150         EXPECT=$(EXPECT); export EXPECT; \
1151         if [ -f $(top_builddir)/../expect/expect ]; then \
1152           TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
1153           export TCL_LIBRARY; \
1154         fi; \
1155         runtest=$(RUNTEST); \
1156         if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
1157           $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \
1158                 CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
1159                 CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \
1160                 CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \
1161                 OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" \
1162                 LIBIBERTY="$(LIBIBERTY) $(INTLLIBS)" LIBS="$(LIBS)" \
1163                 $(RUNTESTFLAGS); \
1164         else echo "WARNING: could not find \`runtest'" 1>&2; :;\
1165         fi
1167 # Rules for testing by relinking ld itself.
1168 # A similar test is in the testsuite.  This target is for ease of use
1169 # when porting ld.
1171 ld-partial.o: ld-new$(EXEEXT)
1172         ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
1173 ld1$(EXEEXT): ld-partial.o
1174         ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1$(EXEEXT) $(HOSTING_CRT0) ld-partial.o $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
1176 ld1-full$(EXEEXT): ld-new
1177         ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1-full$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
1179 ld2$(EXEEXT): ld1$(EXEEXT)
1180         ./ld1$(EXEEXT) $(HOSTING_EMU) -o ld2$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
1182 ld3$(EXEEXT): ld2$(EXEEXT)
1183         ./ld2$(EXEEXT) $(HOSTING_EMU) -o ld3$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
1185 bootstrap: ld3$(EXEEXT)
1186         cmp ld2$(EXEEXT) ld3$(EXEEXT)
1188 .PHONY: bootstrap
1190 # A test program for C++ constructors and destructors.
1191 # This test is now in the testsuite.
1193 #cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
1194 #       ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
1195 #         cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS)
1197 #cdtest.out: cdtest
1198 #       ./cdtest > cdtest.tmp
1199 #       mv cdtest.tmp cdtest.out
1201 #cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
1202 #       ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
1203 #         cdtest-bar.o cdtest-foo.o
1205 #cdtest-ur: cdtest-ur.o
1206 #       ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
1207 #         $(HOSTING_LIBS)
1209 #cdtest-ur.out: cdtest-ur
1210 #       ./cdtest-ur > cdtest-ur.tmp
1211 #       mv cdtest-ur.tmp cdtest-ur.out
1213 #check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
1214 #       diff $(srcdir)/cdtest.exp cdtest.out
1215 #       diff $(srcdir)/cdtest.exp cdtest-ur.out
1217 #.PHONY: check-cdtest
1219 # END OF CHECK TARGETS
1221 # DOCUMENTATION TARGETS
1222 # Manual configuration file; not usually attached to normal configuration,
1223 # because almost all configs use "gen" version of manual.
1224 #  Set DOCVER above to change.
1225 configdoc.texi: ${DOCVER}-doc.texi
1226         ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
1227           || ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
1228           || cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
1230 ldver.texi: Makefile
1231         rm -f $@
1232         echo '@set VERSION $(VERSION)' > $@
1234 ld.info: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
1235         @rm -f $@ $@-[0-9] $@-[0-9][0-9]
1236         $(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc $(srcdir)/ld.texinfo
1238 ld.dvi: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
1239         TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
1240           MAKEINFO="$(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc" $(TEXI2DVI) -I $(BFDDIR)/doc $(srcdir)/ld.texinfo
1242 # Build the man page from the texinfo file
1243 # The sed command removes the no-adjust Nroff command so that
1244 # the man output looks standard.
1245 ld.1: $(srcdir)/ld.texinfo
1246         touch $@
1247         -$(TEXI2POD) $(MANCONF) < $(srcdir)/ld.texinfo > ld.pod
1248         -($(POD2MAN) ld.pod | \
1249                 sed -e '/^.if n .na/d' > $@.T$$$$ && \
1250                 mv -f $@.T$$$$ $@) || \
1251                 (rm -f $@.T$$$$ && exit 1)
1252         rm -f ld.pod
1254 MAINTAINERCLEANFILES = ldver.texi
1256 # We want to reconfigure if configure.host or configure.tgt changes.
1257 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host $(srcdir)/configure.tgt
1259 MOSTLYCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) \
1260         ldemul-list.h crtbegin.o crtend.o ld.log ld.sum
1261 mostlyclean-local:
1262         -rm -rf tmpdir
1263 CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
1265 .PHONY: install-exec-local install-data-local
1267 install-exec-local: ld-new$(EXEEXT)
1268         $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(tooldir)/bin
1269         @list='$(noinst_PROGRAMS)'; for p in $$list; do \
1270           if test -f $$p; then \
1271             echo " $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
1272             $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
1273           else :; fi; \
1274         done
1275         n=`echo ld | sed '$(transform)'`; \
1276         if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/ld$(EXEEXT)" ]; then \
1277           rm -f $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
1278           ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
1279           || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
1280         fi
1282 install-data-local:
1283         $(mkinstalldirs) $(DESTDIR)$(scriptdir)/ldscripts
1284         for f in ldscripts/*; do \
1285           $(INSTALL_DATA) $$f $(DESTDIR)$(scriptdir)/$$f ; \
1286         done
1288 # We want install to imply install-info as per GNU standards, despite the
1289 # cygnus option.
1290 install: install-info
1292 # Stuff that should be included in a distribution.  The diststuff
1293 # target is run by the taz target in ../Makefile.in.
1294 EXTRA_DIST = ldgram.c ldgram.h ldlex.c $(man_MANS)
1295 diststuff: info $(EXTRA_DIST)
1297 DISTCLEANFILES = tdirs site.exp site.bak stringify.sed
1298 distclean-local:
1299         rm -rf ldscripts
1301 Makefile: $(BFDDIR)/configure.in
1303 # Targets to rebuild dependencies in this Makefile.
1304 # Have to get rid of DEP1 here so that "$?" later includes all of $(CFILES).
1305 DEP: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
1306         rm -f DEP1
1307         $(MAKE) MKDEP="$(MKDEP)" DEP1
1308         sed -f dep.sed < DEP1 > DEPA
1309         echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA
1310         if grep ' /' DEPA > /dev/null 2> /dev/null; then \
1311           echo 'make DEP failed!'; exit 1; \
1312         else \
1313           mv -f DEPA $@; \
1314         fi
1316 DEP1: $(CFILES) $(GENERATED_CFILES)
1317         echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
1318         echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
1319         $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
1320         mv -f DEP2 $@
1322 dep.sed: dep-in.sed config.status
1323         sed <$(srcdir)/dep-in.sed >dep.sed      \
1324                 -e 's!@INCDIR@!$(INCDIR)!'      \
1325                 -e 's!@BFDDIR@!$(BFDDIR)!'      \
1326                 -e 's!@SRCDIR@!$(srcdir)!'      \
1327                 -e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/ld$$,,`'!'
1329 dep: DEP
1330         sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
1331         cat DEP >> tmp-Makefile
1332         $(srcdir)/../move-if-change tmp-Makefile Makefile
1334 dep-in: DEP
1335         sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
1336         cat DEP >> tmp-Makefile.in
1337         $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
1339 dep-am: DEP
1340         sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
1341         cat DEP >> tmp-Makefile.am
1342         $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
1344 .PHONY: dep dep-in dep-am
1346 @MAINT@.PHONY: mpw
1347 @MAINT@mpw: $(srcdir)/mpw-ei386go32.c $(srcdir)/mpw-elfmips.c \
1348 @MAINT@ $(srcdir)/mpw-em68kcoff.c $(srcdir)/mpw-eppcmac.c \
1349 @MAINT@ $(srcdir)/mpw-esh.c $(srcdir)/mpw-idtmips.c
1350 @MAINT@
1351 @MAINT@$(srcdir)/mpw-ei386go32.c: ei386go32.c
1352 @MAINT@ $(srcdir)/../move-if-change $< $@
1353 @MAINT@
1354 @MAINT@$(srcdir)/mpw-elfmips.c: eelf32ebmip.c
1355 @MAINT@ $(srcdir)/../move-if-change $< $@
1356 @MAINT@
1357 @MAINT@$(srcdir)/mpw-em68kcoff.c: em68kcoff.c
1358 @MAINT@ $(srcdir)/../move-if-change $< $@
1359 @MAINT@
1360 @MAINT@$(srcdir)/mpw-eppcmac.c: eppcmacos.c
1361 @MAINT@ $(srcdir)/../move-if-change $< $@
1362 @MAINT@
1363 @MAINT@$(srcdir)/mpw-esh.c: esh.c
1364 @MAINT@ $(srcdir)/../move-if-change $< $@
1365 @MAINT@
1366 @MAINT@$(srcdir)/mpw-idtmips.c: emipsidt.c
1367 @MAINT@ $(srcdir)/../move-if-change $< $@
1369 # What appears below is generated by a hacked mkdep using gcc -MM.
1371 # DO NOT DELETE THIS LINE -- mkdep uses it.
1372 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
1373 ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1374   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1375   $(INCDIR)/bfdlink.h $(INCDIR)/safe-ctype.h ld.h $(INCDIR)/bin-bugs.h \
1376   ldexp.h ldlang.h ldmisc.h ldgram.h ldmain.h ldctor.h
1377 ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1378   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1379   ld.h $(INCDIR)/bin-bugs.h ldmisc.h ldexp.h ldlang.h \
1380   ldfile.h ldemul.h ldmain.h ldemul-list.h
1381 ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1382   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1383   $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldmain.h \
1384   ldmisc.h ldexp.h ldgram.h ldlang.h $(INCDIR)/libiberty.h \
1385   $(INCDIR)/safe-ctype.h
1386 ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1387   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1388   $(INCDIR)/bfdlink.h $(INCDIR)/safe-ctype.h ld.h $(INCDIR)/bin-bugs.h \
1389   ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldgram.h \
1390   ldlex.h ldemul.h $(INCDIR)/libiberty.h
1391 ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1392   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1393   $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h $(INCDIR)/obstack.h \
1394   $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldmain.h \
1395   ldexp.h ldlang.h ldgram.h ldlex.h ldmisc.h ldctor.h \
1396   ldfile.h ldemul.h $(INCDIR)/fnmatch.h $(INCDIR)/demangle.h
1397 ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1398   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1399   $(INCDIR)/safe-ctype.h $(INCDIR)/libiberty.h $(INCDIR)/progress.h \
1400   $(INCDIR)/bfdlink.h $(INCDIR)/filenames.h ld.h $(INCDIR)/bin-bugs.h \
1401   ldmain.h ldmisc.h ldwrite.h ldexp.h ldlang.h ldgram.h \
1402   ldlex.h ldfile.h ldemul.h ldctor.h
1403 ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1404   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1405   $(INCDIR)/libiberty.h $(INCDIR)/demangle.h ld.h $(INCDIR)/bin-bugs.h \
1406   ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldmain.h \
1407   ldfile.h
1408 ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1409   $(INCDIR)/symcat.h ../bfd/bfdver.h sysdep.h config.h \
1410   $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h ldver.h \
1411   ldexp.h ldlang.h ldfile.h ldemul.h ldmain.h
1412 ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1413   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1414   $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h \
1415   ldexp.h ldlang.h ldwrite.h ldmisc.h ldgram.h ldmain.h
1416 lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1417   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1418   $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h $(INCDIR)/bfdlink.h \
1419   ld.h $(INCDIR)/bin-bugs.h ldmain.h ldmisc.h ldexp.h \
1420   ldlang.h ldgram.h ldlex.h ldfile.h ldver.h ldemul.h \
1421   $(INCDIR)/demangle.h
1422 mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
1423   sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
1424   ldexp.h ldlang.h ldmisc.h mri.h ldgram.h $(INCDIR)/libiberty.h
1425 ldcref.o: ldcref.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1426   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1427   $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h \
1428   ldmain.h ldmisc.h ldexp.h ldlang.h
1429 pe-dll.o: pe-dll.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1430   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1431   $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \
1432   ld.h $(INCDIR)/bin-bugs.h ldexp.h ldlang.h ldwrite.h \
1433   ldmisc.h ldgram.h ldmain.h ldfile.h ldemul.h $(INCDIR)/coff/internal.h \
1434   $(BFDDIR)/libcoff.h deffile.h pe-dll.h
1435 ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1436   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1437   $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldexp.h \
1438   ldver.h ldlang.h ldfile.h ldemul.h ldmisc.h ldmain.h \
1439   mri.h ldctor.h ldlex.h
1440 ldlex.o: ldlex.c $(INCDIR)/ansidecl.h ../bfd/bfd.h \
1441   $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1442   $(INCDIR)/safe-ctype.h $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h \
1443   ldmisc.h ldexp.h ldlang.h ldgram.h ldfile.h ldlex.h \
1444   ldmain.h $(INCDIR)/libiberty.h
1445 deffilep.o: deffilep.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
1446   $(INCDIR)/safe-ctype.h ../bfd/bfd.h $(INCDIR)/symcat.h \
1447   sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
1448   ldmisc.h deffile.h
1449 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY