* Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
[binutils.git] / ld / Makefile.am
blob9ce016ab7f9fe903b88ee56e8512ffe460edbdb5
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
34 LIB_PATH =
36 BASEDIR = $(srcdir)/..
37 BFDDIR = $(BASEDIR)/bfd
38 INCDIR  = $(BASEDIR)/include
39 MKDEP = gcc -MM
41 # What version of the manual to build
42 DOCVER = gen
44 #stuff for self hosting (can be overridden in config file).
45 HOSTING_CRT0 = @HOSTING_CRT0@
46 HOSTING_LIBS = @HOSTING_LIBS@
47 HOSTING_EMU = -m $(EMUL)
49 # Setup the testing framework, if you have one
50 EXPECT = `if [ -f $$r/../expect/expect ] ; \
51         then echo $$r/../expect/expect ; \
52         else echo expect ; fi`
54 RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; \
55         then echo $${srcroot}/../dejagnu/runtest ; \
56         else echo runtest ; fi`
58 RUNTESTFLAGS =
60 CC_FOR_TARGET = ` \
61   if [ -f $$r/../gcc/xgcc ] ; then \
62     if [ -f $$r/../newlib/Makefile ] ; then \
63       echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
64     else \
65       echo $$r/../gcc/xgcc -B$$r/../gcc/; \
66     fi; \
67   else \
68     if [ "@host@" = "@target@" ] ; then \
69       echo $(CC); \
70     else \
71       echo gcc | sed '$(transform)'; \
72     fi; \
73   fi`
75 CXX = gcc
76 CXX_FOR_TARGET = ` \
77   if [ -f $$r/../gcc/xgcc ] ; then \
78     if [ -f $$r/../newlib/Makefile ] ; then \
79       echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
80     else \
81       echo $$r/../gcc/xgcc -B$$r/../gcc/; \
82     fi; \
83   else \
84     if [ "@host@" = "@target@" ] ; then \
85       echo $(CXX); \
86     else \
87       echo gcc | sed '$(transform)'; \
88     fi; \
89   fi`
91 noinst_PROGRAMS = ld-new
92 info_TEXINFOS = ld.texinfo
93 noinst_TEXINFOS = ldint.texinfo
94 man_MANS = ld.1
96 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\""
98 BFDLIB = ../bfd/libbfd.la
99 LIBIBERTY = ../libiberty/libiberty.a
101 ALL_EMULATIONS = \
102         ea29k.o \
103         eaixppc.o \
104         eaixrs6.o \
105         ealpha.o \
106         earcelf.o \
107         earm_epoc_pe.o \
108         earmaoutb.o \
109         earmaoutl.o \
110         earmcoff.o \
111         earmelf.o \
112         earmelf_linux.o \
113         earmelf_linux26.o \
114         earmelf_oabi.o \
115         earmnbsd.o \
116         earmpe.o \
117         eavr1200.o \
118         eavr23xx.o \
119         eavr4433.o \
120         eavr44x4.o \
121         eavr85xx.o \
122         eavrmega103.o \
123         eavrmega161.o \
124         eavrmega603.o \
125         ecoff_sparc.o \
126         ecrisaout.o \
127         ecriself.o \
128         ecrislinux.o \
129         ed10velf.o \
130         ed30v_e.o \
131         ed30v_o.o \
132         ed30velf.o \
133         edelta68.o \
134         eebmon29k.o \
135         eelf32_i960.o \
136         eelf32_sparc.o \
137         eelf32b4300.o \
138         eelf32bmip.o \
139         eelf32bmipn32.o \
140         eelf32btsmip.o \
141         eelf32ebmip.o \
142         eelf32elmip.o \
143         eelf32fr30.o \
144         eelf32i370.o \
145         eelf32l4300.o \
146         eelf32lmip.o \
147         eelf32lppc.o \
148         eelf32lppcsim.o \
149         eelf32mcore.o \
150         eelf32ppc.o \
151         eelf32ppclinux.o \
152         eelf32ppcsim.o \
153         eelf_i386.o \
154         eelf_i386_be.o \
155         egld960.o \
156         egld960coff.o \
157         eh8300.o \
158         eh8300h.o \
159         eh8300s.o \
160         eh8500.o \
161         eh8500b.o \
162         eh8500c.o \
163         eh8500m.o \
164         eh8500s.o \
165         ehp300bsd.o \
166         ehp3hpux.o \
167         ehppaelf.o \
168         ehppalinux.o \
169         ei386aout.o \
170         ei386beos.o \
171         ei386bsd.o \
172         ei386coff.o \
173         ei386go32.o \
174         ei386linux.o \
175         ei386lynx.o \
176         ei386mach.o \
177         ei386moss.o \
178         ei386msdos.o \
179         ei386nbsd.o \
180         ei386nw.o \
181         ei386pe.o \
182         ei386pe_posix.o \
183         elnk960.o \
184         em68hc11elf.o \
185         em68hc11elfb.o \
186         em68hc12elf.o \
187         em68hc12elfb.o \
188         em68k4knbsd.o \
189         em68kaout.o \
190         em68kaux.o \
191         em68kcoff.o \
192         em68kelf.o \
193         em68klinux.o \
194         em68klynx.o \
195         em68knbsd.o \
196         em68kpsos.o \
197         em88kbcs.o \
198         emcorepe.o \
199         emipsbig.o \
200         emipsbsd.o \
201         emipsidt.o \
202         emipsidtl.o \
203         emipslit.o \
204         emipslnews.o \
205         emipspe.o \
206         enews.o \
207         ens32knbsd.o \
208         epc532macha.o \
209         epjelf.o \
210         epjlelf.o \
211         eppcmacos.o \
212         eppcnw.o \
213         eppcpe.o \
214         eriscix.o \
215         esa29200.o \
216         esh.o \
217         eshelf.o \
218         eshl.o \
219         eshlelf.o \
220         eshpe.o \
221         esparcaout.o \
222         esparclinux.o \
223         esparclynx.o \
224         esparcnbsd.o \
225         est2000.o \
226         esun3.o \
227         esun4.o \
228         etic30aout.o \
229         etic30coff.o \
230         etic54xcoff.o \
231         etic80coff.o \
232         evanilla.o \
233         evax.o \
234         evsta.o \
235         ew65.o \
236         ez8001.o \
237         ez8002.o
239 ALL_64_EMULATIONS = \
240         eelf64_ia64.o \
241         eelf64_sparc.o \
242         eelf64alpha.o \
243         eelf64bmip.o \
244         eelf64hppa.o
246 ALL_EMUL_EXTRA_OFILES = \
247         deffilep.o \
248         pe-dll.o
250 CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
251         ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
252         mri.c ldcref.c pe-dll.c
254 HFILES = ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
255         ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
256         ldwrite.h mri.h deffile.h pe-dll.h
258 GENERATED_CFILES = ldgram.c ldlex.c deffilep.c
259 GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h
261 OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
262         ldwrite.o ldexp.o  ldemul.o ldver.o ldmisc.o \
263         ldfile.o ldcref.o ${EMULATION_OFILES} ${EMUL_EXTRA_OFILES}
265 STAGESTUFF = *.o ldscripts/* e*.c
267 # At the moment this is just a list of those emulation template files
268 # that contain internationalised strings.
269 EMULATION_FILES = emultempl/pe.em emultempl/armcoff.em
271 POTFILES = $(CFILES) $(HFILES) $(EMULATION_FILES)
273 po/POTFILES.in: @MAINT@ Makefile
274         for file in $(POTFILES); do echo $$file; done | sort > tmp \
275           && mv tmp $(srcdir)/po/POTFILES.in
277 ldmain.o: ldmain.c config.status
278         $(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' -DTARGET='"@target@"' $(srcdir)/ldmain.c
280 ldemul-list.h: Makefile
281         (echo "/* This file is automatically generated.  DO NOT EDIT! */";\
282         for f in `echo " " ${EMULATION_OFILES} "" \
283          | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
284             echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
285         done;\
286         echo "";\
287         echo "#define EMULATION_LIST \\";\
288         for f in `echo " " ${EMULATION_OFILES} "" \
289          | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
290             echo "  &ld_$${f}_emulation, \\"; \
291         done;\
292         echo "  0") >ldemul-tmp.h
293         mv ldemul-tmp.h ldemul-list.h
295 stringify.sed: ${srcdir}/emultempl/$(STRINGIFY)
296           cp ${srcdir}/emultempl/$(STRINGIFY) stringify.sed
298 # These all start with e so 'make clean' can find them.
300 GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@"
301 GEN_DEPENDS = $(srcdir)/genscripts.sh stringify.sed
302 @TDIRS@
304 ea29k.c: $(srcdir)/emulparams/a29k.sh \
305   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
306         ${GENSCRIPTS} a29k "$(tdir_a29k)"
307 eaixppc.c: $(srcdir)/emulparams/aixppc.sh \
308   $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
309         ${GENSCRIPTS} aixppc "$(tdir_aixppc)"
310 eaixrs6.c: $(srcdir)/emulparams/aixrs6.sh \
311   $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
312         ${GENSCRIPTS} aixrs6 "$(tdir_aixrs6)"
313 ealpha.c: $(srcdir)/emulparams/alpha.sh \
314   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
315         ${GENSCRIPTS} alpha "$(tdir_alpha)"
316 earcelf.c: $(srcdir)/emulparams/arcelf.sh \
317   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
318         ${GENSCRIPTS} arcelf "$(tdir_arcelf)"
319 earmelf.c: $(srcdir)/emulparams/armelf.sh \
320   $(srcdir)/emultempl/armelf.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
321         ${GENSCRIPTS} armelf "$(tdir_armelf)"
322 earmelf_oabi.c: $(srcdir)/emulparams/armelf_oabi.sh \
323   $(srcdir)/emultempl/armelf_oabi.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
324         ${GENSCRIPTS} armelf_oabi "$(tdir_armelf)"
325 earmelf_linux.c: $(srcdir)/emulparams/armelf_linux.sh \
326   $(srcdir)/emultempl/armelf.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
327         ${GENSCRIPTS} armelf_linux "$(tdir_armelf_linux)"
328 earmelf_linux26.c: $(srcdir)/emulparams/armelf_linux26.sh \
329   $(srcdir)/emultempl/armelf.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
330         ${GENSCRIPTS} armelf_linux26 "$(tdir_armelf_linux26)"
331 earmaoutb.c:    $(srcdir)/emulparams/armaoutb.sh \
332   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
333         ${GENSCRIPTS} armaoutb "$(tdir_armaoutb)"
334 earmaoutl.c:    $(srcdir)/emulparams/armaoutl.sh \
335   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
336         ${GENSCRIPTS} armaoutl "$(tdir_armaoutl)"
337 earmcoff.c:     $(srcdir)/emulparams/armcoff.sh \
338   $(srcdir)/emultempl/armcoff.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS}
339         ${GENSCRIPTS} armcoff "$(tdir_armcoff)"
340 earmnbsd.c:     $(srcdir)/emulparams/armnbsd.sh \
341   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
342         ${GENSCRIPTS} armnbsd "$(tdir_armnbsd)"
343 earm_epoc_pe.c: $(srcdir)/emulparams/arm_epoc_pe.sh \
344   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/epocpe.sc ${GEN_DEPENDS}
345         ${GENSCRIPTS} arm_epoc_pe "$(tdir_armpe)"
346 earmpe.c: $(srcdir)/emulparams/armpe.sh \
347   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
348         ${GENSCRIPTS} armpe "$(tdir_armpe)"
349 eavr85xx.c: $(srcdir)/emulparams/avr85xx.sh \
350   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
351   ${GEN_DEPENDS}
352         ${GENSCRIPTS} avr85xx "$(tdir_avr85xx)"
353 eavr1200.c: $(srcdir)/emulparams/avr1200.sh \
354   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
355   ${GEN_DEPENDS}
356         ${GENSCRIPTS} avr1200 "$(tdir_avr85xx)"
357 eavr23xx.c: $(srcdir)/emulparams/avr23xx.sh \
358   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
359   ${GEN_DEPENDS}
360         ${GENSCRIPTS} avr23xx "$(tdir_avr85xx)"
361 eavr44x4.c: $(srcdir)/emulparams/avr44x4.sh \
362   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
363   ${GEN_DEPENDS}
364         ${GENSCRIPTS} avr44x4 "$(tdir_avr85xx)"
365 eavr4433.c: $(srcdir)/emulparams/avr4433.sh \
366   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
367   ${GEN_DEPENDS}
368         ${GENSCRIPTS} avr4433 "$(tdir_avr85xx)"
369 eavrmega603.c: $(srcdir)/emulparams/avrmega603.sh \
370   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
371   ${GEN_DEPENDS}
372         ${GENSCRIPTS} avrmega603 "$(tdir_avr85xx)"
373 eavrmega103.c: $(srcdir)/emulparams/avrmega103.sh \
374   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
375   ${GEN_DEPENDS}
376         ${GENSCRIPTS} avrmega103 "$(tdir_avr85xx)"
377 eavrmega161.c: $(srcdir)/emulparams/avrmega161.sh \
378   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
379   ${GEN_DEPENDS}
380         ${GENSCRIPTS} avrmega161 "$(tdir_avr85xx)"
381 ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
382   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
383         ${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)"
384 ecrisaout.c: $(srcdir)/emulparams/crisaout.sh \
385   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/crisaout.sc ${GEN_DEPENDS}
386         ${GENSCRIPTS} crisaout "$(tdir_cris)"
387 ecriself.c: $(srcdir)/emulparams/criself.sh \
388   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
389         ${GENSCRIPTS} criself "$(tdir_cris)"
390 ecrislinux.c: $(srcdir)/emulparams/crislinux.sh \
391   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
392         ${GENSCRIPTS} crislinux "$(tdir_cris)"
393 ed10velf.c: $(srcdir)/emulparams/d10velf.sh \
394   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd10v.sc ${GEN_DEPENDS}
395         ${GENSCRIPTS} d10velf "$(tdir_d10v)"
396 ed30velf.c: $(srcdir)/emulparams/d30velf.sh \
397   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
398         ${GENSCRIPTS} d30velf "$(tdir_d30v)"
399 ed30v_o.c: $(srcdir)/emulparams/d30v_o.sh \
400   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
401         ${GENSCRIPTS} d30v_o "$(tdir_d30v)"
402 ed30v_e.c: $(srcdir)/emulparams/d30v_e.sh \
403   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
404         ${GENSCRIPTS} d30v_e "$(tdir_d30v)"
405 edelta68.c: $(srcdir)/emulparams/delta68.sh \
406   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
407         ${GENSCRIPTS} delta68 "$(tdir_delta68)"
408 eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
409   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
410         ${GENSCRIPTS} ebmon29k "$(tdir_ebmon29k)"
411 eelf32fr30.c: $(srcdir)/emulparams/elf32fr30.sh \
412   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
413         ${GENSCRIPTS} elf32fr30 "$(tdir_fr30)"
414 eelf32mcore.c: $(srcdir)/emulparams/elf32mcore.sh \
415   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
416         ${GENSCRIPTS} elf32mcore "$(tdir_mcore)"
417 em32relf.c: $(srcdir)/emulparams/m32relf.sh \
418   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
419         ${GENSCRIPTS} m32relf "$(tdir_m32r)"
420 eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
421   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
422         ${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)"
423 eelf32_i960.c: $(srcdir)/emulparams/elf32_i960.sh \
424   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
425         ${GENSCRIPTS} elf32_i960 "$(tdir_elf32_i960)"
426 eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \
427   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
428         ${GENSCRIPTS} elf32b4300 "$(tdir_elf32b4300)"
429 eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
430   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
431         ${GENSCRIPTS} elf32bmip "$(tdir_elf32bmip)"
432 eelf32bsmip.c: $(srcdir)/emulparams/elf32bsmip.sh \
433   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
434         ${GENSCRIPTS} elf32bsmip "$(tdir_elf32bsmip)"
435 eelf32btsmip.c: $(srcdir)/emulparams/elf32btsmip.sh \
436   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
437         ${GENSCRIPTS} elf32btsmip "$(tdir_elf32btsmip)"
438 eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
439   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
440         ${GENSCRIPTS} elf32ebmip "$(tdir_elf32ebmip)"
441 eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \
442   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
443         ${GENSCRIPTS} elf32elmip "$(tdir_elf32elmip)"
444 eelf32bmipn32.c: $(srcdir)/emulparams/elf32bmipn32.sh \
445   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
446         ${GENSCRIPTS} elf32bmipn32 "$(tdir_elf32bmipn32)"
447 eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \
448   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
449         ${GENSCRIPTS} elf32l4300 "$(tdir_elf32l4300)"
450 eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
451   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
452         ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)"
453 eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \
454   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
455         ${GENSCRIPTS} elf32lppc "$(tdir_elf32lppc)"
456 eelf32lppcsim.c: $(srcdir)/emulparams/elf32lppcsim.sh \
457   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
458         ${GENSCRIPTS} elf32lppcsim "$(tdir_elf32lppcsim)"
459 eelf32lsmip.c: $(srcdir)/emulparams/elf32lsmip.sh \
460   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
461         ${GENSCRIPTS} elf32lsmip "$(tdir_elf32lsmip)"
462 eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
463   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
464         ${GENSCRIPTS} elf32ppc "$(tdir_elf32ppc)"
465 eelf32ppcsim.c: $(srcdir)/emulparams/elf32ppcsim.sh \
466   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
467         ${GENSCRIPTS} elf32ppcsim "$(tdir_elf32ppcsim)"
468 eelf32ppclinux.c: $(srcdir)/emulparams/elf32ppclinux.sh \
469   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
470         ${GENSCRIPTS} elf32ppclinux "$(tdir_elf32ppclinux)"
471 eelf32i370.c: $(srcdir)/emulparams/elf32i370.sh \
472   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfi370.sc ${GEN_DEPENDS}
473         ${GENSCRIPTS} elf32i370 "$(tdir_elf32i370)"
474 eelf64alpha.c: $(srcdir)/emulparams/elf64alpha.sh \
475   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
476         ${GENSCRIPTS} elf64alpha "$(tdir_elf64alpha)"
477 eelf64hppa.c: $(srcdir)/emulparams/elf64hppa.sh \
478   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
479         ${GENSCRIPTS} elf64hppa "$(tdir_elf64hppa)"
480 eelf64_ia64.c: $(srcdir)/emulparams/elf64_ia64.sh \
481   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
482         ${GENSCRIPTS} elf64_ia64 "$(tdir_elf64_ia64)"
483 eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
484   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
485         ${GENSCRIPTS} elf64_sparc "$(tdir_elf64_sparc)"
486 eelf64bmip.c: $(srcdir)/emulparams/elf64bmip.sh \
487   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
488         ${GENSCRIPTS} elf64bmip "$(tdir_elf64bmip)"
489 eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
490   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
491         ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
492 eelf_i386_be.c: $(srcdir)/emulparams/elf_i386_be.sh \
493   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
494         ${GENSCRIPTS} elf_i386_be "$(tdir_elf_i386_be)"
495 egld960.c: $(srcdir)/emulparams/gld960.sh \
496   $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
497         ${GENSCRIPTS} gld960 "$(tdir_gld960)"
498 egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
499   $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
500         ${GENSCRIPTS} gld960coff "$(tdir_gld960coff)"
501 eh8300.c: $(srcdir)/emulparams/h8300.sh \
502   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
503         ${GENSCRIPTS} h8300 "$(tdir_h8300)"
504 eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
505   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
506         ${GENSCRIPTS} h8300h "$(tdir_h8300h)"
507 eh8300s.c: $(srcdir)/emulparams/h8300s.sh \
508   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300s.sc ${GEN_DEPENDS}
509         ${GENSCRIPTS} h8300s "$(tdir_h8300s)"
510 eh8500.c: $(srcdir)/emulparams/h8500.sh \
511   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
512         ${GENSCRIPTS} h8500 "$(tdir_h8500)"
513 eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
514   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
515         ${GENSCRIPTS} h8500b "$(tdir_h8500b)"
516 eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
517   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
518         ${GENSCRIPTS} h8500c "$(tdir_h8500c)"
519 eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
520   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
521         ${GENSCRIPTS} h8500m "$(tdir_h8500m)"
522 eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
523   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
524         ${GENSCRIPTS} h8500s "$(tdir_h8500s)"
525 ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
526   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
527         ${GENSCRIPTS} hp300bsd "$(tdir_hp300bsd)"
528 ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
529   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
530         ${GENSCRIPTS} hp3hpux "$(tdir_hp3hpux)"
531 ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
532   $(srcdir)/emultempl/hppaelf.em $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
533         ${GENSCRIPTS} hppaelf "$(tdir_hppaelf)"
534 ehppalinux.c: $(srcdir)/emulparams/hppalinux.sh \
535   $(srcdir)/emultempl/hppaelf.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
536         ${GENSCRIPTS} hppalinux "$(tdir_hppalinux)"
537 ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
538   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
539         ${GENSCRIPTS} i386aout "$(tdir_i386aout)"
540 ei386beos.c: $(srcdir)/emulparams/i386beos.sh \
541   $(srcdir)/emultempl/beos.em $(srcdir)/scripttempl/i386beos.sc ${GEN_DEPENDS}
542         ${GENSCRIPTS} i386beos "$(tdir_i386beos)"
543 ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
544   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
545         ${GENSCRIPTS} i386bsd "$(tdir_i386bsd)"
546 ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
547   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
548         ${GENSCRIPTS} i386coff "$(tdir_i386coff)"
549 ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
550   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
551         ${GENSCRIPTS} i386go32 "$(tdir_i386go32)"
552 ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
553   $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
554         ${GENSCRIPTS} i386linux "$(tdir_i386linux)"
555 ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
556   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.sc ${GEN_DEPENDS}
557         ${GENSCRIPTS} i386lynx "$(tdir_i386lynx)"
558 ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
559   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
560         ${GENSCRIPTS} i386mach "$(tdir_i386mach)"
561 ei386moss.c: $(srcdir)/emulparams/i386moss.sh \
562   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
563         ${GENSCRIPTS} i386moss "$(tdir_i386moss)"
564 ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \
565   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS}
566         ${GENSCRIPTS} i386msdos "$(tdir_i386msdos)"
567 ei386nbsd.c:    $(srcdir)/emulparams/i386nbsd.sh \
568   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
569         ${GENSCRIPTS} i386nbsd "$(tdir_i386nbsd)"
570 ei386nw.c:      $(srcdir)/emulparams/i386nw.sh \
571   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
572         ${GENSCRIPTS} i386nw "$(tdir_i386nw)"
573 ei386pe.c: $(srcdir)/emulparams/i386pe.sh \
574   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
575         ${GENSCRIPTS} i386pe "$(tdir_i386pe)"
576 ei386pe_posix.c: $(srcdir)/emulparams/i386pe_posix.sh \
577   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
578         ${GENSCRIPTS} i386pe_posix "$(tdir_i386pe_posix)"
579 elnk960.c: $(srcdir)/emulparams/lnk960.sh \
580   $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
581         ${GENSCRIPTS} lnk960 "$(tdir_lnk960)"
582 em68hc11elf.c: $(srcdir)/emulparams/m68hc11elf.sh \
583   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
584         ${GENSCRIPTS} m68hc11elf "$(tdir_m68hc11)"
585 em68hc11elfb.c: $(srcdir)/emulparams/m68hc11elfb.sh \
586   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
587         ${GENSCRIPTS} m68hc11elfb "$(tdir_m68hc11b)"
588 em68hc12elf.c: $(srcdir)/emulparams/m68hc12elf.sh \
589   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
590         ${GENSCRIPTS} m68hc12elf "$(tdir_m68hc12)"
591 em68hc12elfb.c: $(srcdir)/emulparams/m68hc12elfb.sh \
592   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
593         ${GENSCRIPTS} m68hc12elfb "$(tdir_m68hc12b)"
594 em68k4knbsd.c:  $(srcdir)/emulparams/m68k4knbsd.sh \
595   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
596         ${GENSCRIPTS} m68k4knbsd "$(tdir_m68k4knbsd)"
597 em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
598   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
599         ${GENSCRIPTS} m68kaout "$(tdir_m68kaout)"
600 em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \
601   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS}
602         ${GENSCRIPTS} m68kaux "$(tdir_m68kaux)"
603 em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
604   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
605         ${GENSCRIPTS} m68kcoff "$(tdir_m68kcoff)"
606 em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \
607   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
608         ${GENSCRIPTS} m68kelf "$(tdir_m68kelf)"
609 em68klinux.c: $(srcdir)/emulparams/m68klinux.sh \
610   $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
611         ${GENSCRIPTS} m68klinux "$(tdir_m68klinux)"
612 em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
613   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS}
614         ${GENSCRIPTS} m68klynx "$(tdir_m68klynx)"
615 em68knbsd.c:    $(srcdir)/emulparams/m68knbsd.sh \
616   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
617         ${GENSCRIPTS} m68knbsd "$(tdir_m68knbsd)"
618 em68kpsos.c:    $(srcdir)/emulparams/m68kpsos.sh \
619   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS}
620         ${GENSCRIPTS} m68kpsos "$(tdir_m68kpsos)"
621 em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
622   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
623         ${GENSCRIPTS} m88kbcs "$(tdir_m88kbcs)"
624 emcorepe.c: $(srcdir)/emulparams/mcorepe.sh \
625   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
626         ${GENSCRIPTS} mcorepe "$(tdir_mcorepe)"
627 emipsbig.c:  $(srcdir)/emulparams/mipsbig.sh \
628   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
629         ${GENSCRIPTS} mipsbig
630 emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
631   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
632         ${GENSCRIPTS} mipsbsd
633 emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
634   $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
635         ${GENSCRIPTS} mipsidt "$(tdir_mipsidt)"
636 emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
637   $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
638         ${GENSCRIPTS} mipsidtl "$(tdir_mipsidtl)"
639 emipslit.c:  $(srcdir)/emulparams/mipslit.sh \
640   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
641         ${GENSCRIPTS} mipslit "$(tdir_mipslit)"
642 emipslnews.c:  $(srcdir)/emulparams/mipslnews.sh \
643   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
644         ${GENSCRIPTS} mipslnews
645 emipspe.c: $(srcdir)/emulparams/mipspe.sh \
646   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
647         ${GENSCRIPTS} mipspe "$(tdir_mips)"
648 emn10300.c: $(srcdir)/emulparams/mn10300.sh \
649   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
650         ${GENSCRIPTS} mn10300 "$(tdir_mn10300)"
651 emn10200.c: $(srcdir)/emulparams/mn10200.sh \
652   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
653         ${GENSCRIPTS} mn10200 "$(tdir_mn10200)"
654 enews.c: $(srcdir)/emulparams/news.sh \
655   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
656         ${GENSCRIPTS} news "$(tdir_news)"
657 ens32knbsd.c:   $(srcdir)/emulparams/ns32knbsd.sh \
658   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
659         ${GENSCRIPTS} ns32knbsd "$(tdir_ns32knbsd)"
660 epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \
661   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
662         ${GENSCRIPTS} pc532macha "$(tdir_pc532macha)"
663 epjelf.c: $(srcdir)/emulparams/pjelf.sh \
664   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
665         ${GENSCRIPTS} pjelf "$(tdir_pjelf)"
666 epjlelf.c: $(srcdir)/emulparams/pjlelf.sh \
667   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
668         ${GENSCRIPTS} pjlelf "$(tdir_pjlelf)"
669 eppcmacos.c:    $(srcdir)/emulparams/ppcmacos.sh \
670   $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
671         ${GENSCRIPTS} ppcmacos "$(tdir_ppcmacos)"
672 eppcnw.c:       $(srcdir)/emulparams/ppcnw.sh \
673   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
674         ${GENSCRIPTS} ppcnw "$(tdir_ppcnw)"
675 eppcpe.c: $(srcdir)/emulparams/ppcpe.sh \
676   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/ppcpe.sc ${GEN_DEPENDS}
677         ${GENSCRIPTS} ppcpe "$(tdir_ppcpe)"
678 eriscix.c: $(srcdir)/emulparams/riscix.sh \
679   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
680         ${GENSCRIPTS} riscix "$(tdir_riscix)"
681 esa29200.c: $(srcdir)/emulparams/sa29200.sh \
682   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
683         ${GENSCRIPTS} sa29200 "$(tdir_sa29200)"
684 esh.c: $(srcdir)/emulparams/sh.sh \
685   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
686         ${GENSCRIPTS} sh "$(tdir_sh)"
687 eshelf.c: $(srcdir)/emulparams/shelf.sh \
688   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
689         ${GENSCRIPTS} shelf "$(tdir_shelf)"
690 eshlelf.c: $(srcdir)/emulparams/shlelf.sh \
691   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
692         ${GENSCRIPTS} shlelf "$(tdir_shlelf)"
693 eshl.c: $(srcdir)/emulparams/shl.sh \
694   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
695         ${GENSCRIPTS} shl "$(tdir_shl)"
696 eshpe.c: $(srcdir)/emulparams/shpe.sh \
697   $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
698         ${GENSCRIPTS} shpe "$(tdir_shl)"
699 esparcaout.c: $(srcdir)/emulparams/sparcaout.sh \
700   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
701         ${GENSCRIPTS} sparcaout "$(tdir_sparcaout)"
702 esparclinux.c: $(srcdir)/emulparams/sparclinux.sh \
703   $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
704         ${GENSCRIPTS} sparclinux "$(tdir_sparclinux)"
705 esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
706   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS}
707         ${GENSCRIPTS} sparclynx "$(tdir_sparclynx)"
708 esparcnbsd.c:   $(srcdir)/emulparams/sparcnbsd.sh \
709   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
710         ${GENSCRIPTS} sparcnbsd "$(tdir_sparcnbsd)"
711 est2000.c: $(srcdir)/emulparams/st2000.sh \
712   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
713         ${GENSCRIPTS} st2000 "$(tdir_st2000)"
714 esun3.c: $(srcdir)/emulparams/sun3.sh \
715   $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
716         ${GENSCRIPTS} sun3 "$(tdir_sun3)"
717 esun4.c: $(srcdir)/emulparams/sun4.sh \
718   $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
719         ${GENSCRIPTS} sun4 "$(tdir_sun4)"
720 etic30aout.c: $(srcdir)/emulparams/tic30aout.sh \
721   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30aout.sc ${GEN_DEPENDS}
722         ${GENSCRIPTS} tic30aout "$(tdir_tic30aout)"
723 etic30coff.c: $(srcdir)/emulparams/tic30coff.sh \
724   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30coff.sc ${GEN_DEPENDS}
725         ${GENSCRIPTS} tic30coff "$(tdir_tic30coff)"
726 etic54xcoff.c: $(srcdir)/emulparams/tic54xcoff.sh \
727   $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic54xcoff.sc ${GEN_DEPENDS}
728         ${GENSCRIPTS} tic54xcoff "$(tdir_tic54xcoff)"
729 etic80coff.c: $(srcdir)/emulparams/tic80coff.sh \
730   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic80coff.sc ${GEN_DEPENDS}
731         ${GENSCRIPTS} tic80coff "$(tdir_tic80coff)"
732 evanilla.c: $(srcdir)/emulparams/vanilla.sh \
733   $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
734         ${GENSCRIPTS} vanilla "$(tdir_vanilla)"
735 evax.c: $(srcdir)/emulparams/vax.sh \
736   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
737         ${GENSCRIPTS} vax "$(tdir_vax)"
738 evsta.c: $(srcdir)/emulparams/vsta.sh \
739   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
740         ${GENSCRIPTS} vsta "$(tdir_vsta)"
741 ev850.c: $(srcdir)/emulparams/v850.sh \
742   $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/v850.sc ${GEN_DEPENDS}
743         ${GENSCRIPTS} v850 "$(tdir_v850)"
744 ew65.c: $(srcdir)/emulparams/w65.sh \
745   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS}
746         ${GENSCRIPTS} w65 "$(tdir_w65)"
747 ez8001.c: $(srcdir)/emulparams/z8001.sh \
748   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
749         ${GENSCRIPTS} z8001 "$(tdir_z8001)"
750 ez8002.c: $(srcdir)/emulparams/z8002.sh \
751   $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
752         ${GENSCRIPTS} z8002 "$(tdir_z8002)"
754 # We need this for automake to use YLWRAP.
755 EXTRA_ld_new_SOURCES = deffilep.y
757 ld_new_SOURCES = ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c \
758         ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c
759 ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLDEPS)
760 ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
762 # The generated emulation files mostly have the same dependencies.
763 $(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
764   ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \
765   ldctor.h ldexp.h ldlang.h ldgram.h
767 # This is the real libbfd.a created by libtool.
768 TESTBFDLIB = @TESTBFDLIB@
770 check-DEJAGNU: site.exp
771         srcroot=`cd $(srcdir) && pwd`; export srcroot; \
772         r=`pwd`; export r; \
773         LC_COLLATE=; LC_ALL=; LANG=; export LC_COLLATE LC_ALL LANG; \
774         EXPECT=$(EXPECT); export EXPECT; \
775         if [ -f $(top_builddir)/../expect/expect ]; then \
776           TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
777           export TCL_LIBRARY; \
778         fi; \
779         runtest=$(RUNTEST); \
780         if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
781           $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \
782                 CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
783                 CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \
784                 CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \
785                 OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" \
786                 LIBIBERTY="$(LIBIBERTY) $(INTLLIBS)" LIBS="$(LIBS)" \
787                 $(RUNTESTFLAGS); \
788         else echo "WARNING: could not find \`runtest'" 1>&2; :;\
789         fi
791 # Rules for testing by relinking ld itself.
792 # A similar test is in the testsuite.  This target is for ease of use
793 # when porting ld.
795 ld-partial.o: ld-new$(EXEEXT)
796         ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
797 ld1$(EXEEXT): ld-partial.o
798         ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1$(EXEEXT) $(HOSTING_CRT0) ld-partial.o $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
800 ld1-full$(EXEEXT): ld-new
801         ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1-full$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
803 ld2$(EXEEXT): ld1$(EXEEXT)
804         ./ld1$(EXEEXT) $(HOSTING_EMU) -o ld2$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
806 ld3$(EXEEXT): ld2$(EXEEXT)
807         ./ld2$(EXEEXT) $(HOSTING_EMU) -o ld3$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
809 bootstrap: ld3$(EXEEXT)
810         cmp ld2$(EXEEXT) ld3$(EXEEXT)
812 .PHONY: bootstrap
814 # A test program for C++ constructors and destructors.
815 # This test is now in the testsuite.
817 #cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
818 #       ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
819 #         cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS)
821 #cdtest.out: cdtest
822 #       ./cdtest > cdtest.tmp
823 #       mv cdtest.tmp cdtest.out
825 #cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
826 #       ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
827 #         cdtest-bar.o cdtest-foo.o
829 #cdtest-ur: cdtest-ur.o
830 #       ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
831 #         $(HOSTING_LIBS)
833 #cdtest-ur.out: cdtest-ur
834 #       ./cdtest-ur > cdtest-ur.tmp
835 #       mv cdtest-ur.tmp cdtest-ur.out
837 #check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
838 #       diff $(srcdir)/cdtest.exp cdtest.out
839 #       diff $(srcdir)/cdtest.exp cdtest-ur.out
841 #.PHONY: check-cdtest
843 # END OF CHECK TARGETS
845 # DOCUMENTATION TARGETS
846 # Manual configuration file; not usually attached to normal configuration,
847 # because almost all configs use "gen" version of manual.
848 #  Set DOCVER above to change.
849 configdoc.texi: ${DOCVER}-doc.texi
850         ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
851           || ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
852           || cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
854 ldver.texi: Makefile
855         rm -f $@
856         echo '@set VERSION $(VERSION)' > $@
858 ld.info: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
859         @rm -f $@ $@-[0-9] $@-[0-9][0-9]
860         $(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc $(srcdir)/ld.texinfo
862 ld.dvi: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
863         TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
864           MAKEINFO="$(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc" $(TEXI2DVI) $(srcdir)/ld.texinfo
866 MAINTAINERCLEANFILES = ldver.texi
868 # We want to reconfigure if configure.host or configure.tgt changes.
869 config.status: $(srcdir)/configure $(srcdir)/configure.host $(srcdir)/configure.tgt
870         $(SHELL) ./config.status --recheck
872 MOSTLYCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) \
873         ldemul-list.h crtbegin.o crtend.o ld.log ld.sum
874 mostlyclean-local:
875         -rm -rf tmpdir
876 CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
878 .PHONY: install-exec-local install-data-local
880 install-exec-local: ld-new$(EXEEXT)
881         $(mkinstalldirs) $(bindir) $(tooldir)/bin
882         @list='$(noinst_PROGRAMS)'; for p in $$list; do \
883           if test -f $$p; then \
884             echo " $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
885             $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
886           else :; fi; \
887         done
888         n=`echo ld | sed '$(transform)'`; \
889         if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/ld$(EXEEXT)" ]; then \
890           rm -f $(tooldir)/bin/ld$(EXEEXT); \
891           ln $(bindir)/$$n$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
892           || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT); \
893         fi
895 install-data-local:
896         $(mkinstalldirs) $(scriptdir)/ldscripts
897         for f in ldscripts/*; do \
898           $(INSTALL_DATA) $$f $(scriptdir)/$$f ; \
899         done
901 # Stuff that should be included in a distribution.  The diststuff
902 # target is run by the taz target in ../Makefile.in.
903 LDDISTSTUFF = ldgram.c ldgram.h ldlex.c
904 diststuff: $(LDDISTSTUFF) info
906 DISTCLEANFILES = tdirs site.exp site.bak
907 distclean-local:
908         rm -rf ldscripts
910 # Targets to rebuild dependencies in this Makefile.
911 # Have to get rid of DEP1 here so that "$?" later includes all of $(CFILES).
912 DEP: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
913         rm -f DEP1
914         $(MAKE) MKDEP="$(MKDEP)" DEP1
915         sed -f dep.sed < DEP1 > DEPA
916         echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA
917         if grep ' /' DEPA > /dev/null 2> /dev/null; then \
918           echo 'make DEP failed!'; exit 1; \
919         else \
920           mv -f DEPA $@; \
921         fi
923 DEP1: $(CFILES) $(GENERATED_CFILES)
924         echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
925         echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
926         $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
927         mv -f DEP2 $@
929 dep.sed: dep-in.sed config.status
930         sed <$(srcdir)/dep-in.sed >dep.sed      \
931                 -e 's!@INCDIR@!$(INCDIR)!'      \
932                 -e 's!@SRCDIR@!$(srcdir)!'
934 dep: DEP
935         sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
936         cat DEP >> tmp-Makefile
937         $(srcdir)/../move-if-change tmp-Makefile Makefile
939 dep-in: DEP
940         sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
941         cat DEP >> tmp-Makefile.in
942         $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
944 dep-am: DEP
945         sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
946         cat DEP >> tmp-Makefile.am
947         $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
949 .PHONY: dep dep-in dep-am
951 # What appears below is generated by a hacked mkdep using gcc -MM.
953 # DO NOT DELETE THIS LINE -- mkdep uses it.
954 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
955 ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
956   sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
957   ld.h $(INCDIR)/bin-bugs.h ldexp.h ldlang.h ldmisc.h \
958   ldgram.h ldmain.h ldctor.h
959 ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
960   sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
961   ldmisc.h ldexp.h ldlang.h ldfile.h ldemul.h ldmain.h \
962   ldemul-list.h
963 ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
964   sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
965   ld.h $(INCDIR)/bin-bugs.h ldmain.h ldmisc.h ldexp.h \
966   ldgram.h ldlang.h
967 ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
968   sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
969   ld.h $(INCDIR)/bin-bugs.h ldmisc.h ldexp.h ldlang.h \
970   ldfile.h ldmain.h ldgram.h ldlex.h ldemul.h
971 ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
972   sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
973   $(INCDIR)/obstack.h $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h \
974   ldmain.h ldgram.h ldexp.h ldlang.h ldlex.h ldmisc.h \
975   ldctor.h ldfile.h ldemul.h $(INCDIR)/fnmatch.h $(INCDIR)/demangle.h
976 ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
977   sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
978   $(INCDIR)/progress.h $(INCDIR)/bfdlink.h $(INCDIR)/filenames.h \
979   ld.h $(INCDIR)/bin-bugs.h ldmain.h ldmisc.h ldwrite.h \
980   ldgram.h ldexp.h ldlang.h ldlex.h ldfile.h ldemul.h \
981   ldctor.h
982 ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
983   sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
984   $(INCDIR)/demangle.h ld.h $(INCDIR)/bin-bugs.h ldmisc.h \
985   ldexp.h ldlang.h ldgram.h ldlex.h ldmain.h ldfile.h
986 ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
987   sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
988   ldver.h ldexp.h ldlang.h ldfile.h ldemul.h ldmain.h
989 ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
990   sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
991   $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h ldexp.h \
992   ldlang.h ldwrite.h ldmisc.h ldgram.h ldmain.h
993 lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
994   sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
995   $(INCDIR)/getopt.h $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h \
996   ldmain.h ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h \
997   ldfile.h ldver.h ldemul.h
998 mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h sysdep.h \
999   config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
1000   ldexp.h ldlang.h ldmisc.h mri.h ldgram.h $(INCDIR)/libiberty.h
1001 ldcref.o: ldcref.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1002   sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1003   $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h ldmain.h \
1004   ldmisc.h ldexp.h ldlang.h
1005 pe-dll.o: pe-dll.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1006   sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1007   $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h ldexp.h \
1008   ldlang.h ldwrite.h ldmisc.h ldgram.h ldmain.h ldfile.h \
1009   ldemul.h $(INCDIR)/coff/internal.h ../bfd/libcoff.h \
1010   deffile.h pe-dll.h
1011 ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1012   sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1013   ld.h $(INCDIR)/bin-bugs.h ldexp.h ldver.h ldlang.h \
1014   ldfile.h ldemul.h ldmisc.h ldmain.h mri.h ldctor.h \
1015   ldlex.h
1016 ldlex.o: ldlex.c ../bfd/bfd.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1017   ld.h $(INCDIR)/bin-bugs.h ldgram.h ldmisc.h ldexp.h \
1018   ldlang.h ldfile.h ldlex.h ldmain.h
1019 deffilep.o: deffilep.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
1020   ../bfd/bfd.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1021   ld.h $(INCDIR)/bin-bugs.h ldmisc.h deffile.h
1022 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY