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