Automatic date update in version.in
[deliverable/binutils-gdb.git] / ld / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2 #
3 # Copyright (C) 2012-2015 Free Software Foundation, Inc.
4 #
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; see the file COPYING3. If not see
17 # <http://www.gnu.org/licenses/>.
18 #
19
20 AUTOMAKE_OPTIONS = dejagnu no-texinfo.tex no-dist foreign
21 ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
22 TEXINFO_TEX = ../texinfo/texinfo.tex
23
24 SUBDIRS = po
25
26 tooldir = $(exec_prefix)/$(target_alias)
27
28 YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
29 YFLAGS = -d
30 LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
31
32 # Automake 1.10+ disables lex and yacc output file regeneration if
33 # maintainer mode is disabled. Avoid this.
34 am__skiplex =
35 am__skipyacc =
36
37 ELF_CLFAGS=-DELF_LIST_OPTIONS=@elf_list_options@ \
38 -DELF_SHLIB_LIST_OPTIONS=@elf_shlib_list_options@ \
39 -DELF_PLT_UNWIND_LIST_OPTIONS=@elf_plt_unwind_list_options@
40 WARN_CFLAGS = @WARN_CFLAGS@
41 NO_WERROR = @NO_WERROR@
42 AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS)
43
44 # Conditionally enable the plugin interface.
45 if ENABLE_PLUGINS
46 PLUGIN_C = plugin.c
47 PLUGIN_H = plugin.h
48 PLUGIN_OBJECT = plugin.@OBJEXT@
49 PLUGIN_CFLAGS = -DENABLE_PLUGINS
50 else
51 PLUGIN_C =
52 PLUGIN_H =
53 PLUGIN_OBJECT =
54 PLUGIN_CFLAGS =
55 endif
56
57 # We put the scripts in the directory $(scriptdir)/ldscripts.
58 # We can't put the scripts in $(datadir) because the SEARCH_DIR
59 # directives need to be different for native and cross linkers.
60 scriptdir = $(tooldir)/lib
61
62 EMUL = @EMUL@
63 EMULATION_OFILES = @EMULATION_OFILES@
64 EMUL_EXTRA_OFILES = @EMUL_EXTRA_OFILES@
65
66
67 # Search path to override the default search path for -lfoo libraries.
68 # If LIB_PATH is empty, the ones in the script (if any) are left alone.
69 # (The default is usually /lib:/usr/lib:/usr/local/lib, unless building
70 # a cross-linker, in which case the default is empty. See genscripts.sh.)
71 # Otherwise, they are replaced with the ones given in LIB_PATH,
72 # which may have the form: LIB_PATH=/lib:/usr/local/lib. This can be set
73 # when the linker is configured via the --with-lib-path configure switch.
74 LIB_PATH = @LIB_PATH@
75
76 BASEDIR = $(srcdir)/..
77 BFDDIR = $(BASEDIR)/bfd
78 INCDIR = $(BASEDIR)/include
79
80 # What version of the manual to build
81 DOCVER = gen
82
83 # Options to extract the man page from ld.texinfo
84 MANCONF = -Dman
85
86 TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
87
88 POD2MAN = pod2man --center="GNU Development Tools" \
89 --release="binutils-$(VERSION)" --section=1
90
91 #stuff for self hosting (can be overridden in config file).
92 HOSTING_CRT0 = @HOSTING_CRT0@
93 HOSTING_SCRT0 = @HOSTING_SCRT0@
94 HOSTING_LIBS = @HOSTING_LIBS@
95 HOSTING_SLIBS = @HOSTING_SLIBS@
96 HOSTING_EMU = -m $(EMUL)
97
98 # Setup the testing framework, if you have one
99 EXPECT = expect
100 RUNTEST = runtest
101 RUNTESTFLAGS =
102
103 CC_FOR_TARGET = ` \
104 if [ -f $$r/../gcc/xgcc ] ; then \
105 if [ -f $$r/../newlib/Makefile ] ; then \
106 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
107 else \
108 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
109 fi; \
110 else \
111 if [ "@host@" = "@target@" ] ; then \
112 echo $(CC); \
113 else \
114 echo gcc | sed '$(transform)'; \
115 fi; \
116 fi`
117
118 CXX_FOR_TARGET = ` \
119 if [ -f $$r/../gcc/g++ ] ; then \
120 if [ -f $$r/../newlib/Makefile ] ; then \
121 echo $$r/../gcc/g++ -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
122 else \
123 echo $$r/../gcc/g++ -B$$r/../gcc/; \
124 fi; \
125 else \
126 if [ "@host@" = "@target@" ] ; then \
127 echo $(CXX); \
128 else \
129 echo g++ | sed '$(transform)'; \
130 fi; \
131 fi`
132
133 transform = s/^ld-new$$/$(installed_linker)/;@program_transform_name@
134 bin_PROGRAMS = ld-new
135 info_TEXINFOS = ld.texinfo
136 ld_TEXINFOS = configdoc.texi
137 noinst_TEXINFOS = ldint.texinfo
138 man_MANS = ld.1
139
140 AM_MAKEINFOFLAGS = -I $(srcdir) -I $(BFDDIR)/doc -I ../bfd/doc \
141 -I $(top_srcdir)/../libiberty
142 TEXI2DVI = texi2dvi -I $(srcdir) -I $(BFDDIR)/doc -I ../bfd/doc \
143 -I $(top_srcdir)/../libiberty
144
145 AM_CPPFLAGS = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) \
146 @INCINTL@ $(HDEFINES) $(CFLAGS) $(PLUGIN_CFLAGS) \
147 -DLOCALEDIR="\"$(datadir)/locale\""
148
149 BFDLIB = ../bfd/libbfd.la
150 LIBIBERTY = ../libiberty/libiberty.a
151
152 ALL_EMULATION_SOURCES = \
153 eaix5ppc.c \
154 eaix5rs6.c \
155 eaixppc.c \
156 eaixrs6.c \
157 ealpha.c \
158 ealphavms.c \
159 earcelf.c \
160 earm_epoc_pe.c \
161 earm_wince_pe.c \
162 earmaoutb.c \
163 earmaoutl.c \
164 earmcoff.c \
165 earmelf.c \
166 earmelf_fbsd.c \
167 earmelf_linux.c \
168 earmelf_linux_eabi.c \
169 earmelf_nacl.c \
170 earmelf_nbsd.c \
171 earmelf_vxworks.c \
172 earmelfb.c \
173 earmelfb_fbsd.c \
174 earmelfb_linux.c \
175 earmelfb_linux_eabi.c \
176 earmelfb_nacl.c \
177 earmelfb_nbsd.c \
178 earmnbsd.c \
179 earmnto.c \
180 earmpe.c \
181 earmsymbian.c \
182 eavr1.c \
183 eavr2.c \
184 eavr25.c \
185 eavr3.c \
186 eavr31.c \
187 eavr35.c \
188 eavr4.c \
189 eavr5.c \
190 eavr51.c \
191 eavr6.c \
192 eavrxmega1.c \
193 eavrxmega2.c \
194 eavrxmega3.c \
195 eavrxmega4.c \
196 eavrxmega5.c \
197 eavrxmega6.c \
198 eavrxmega7.c \
199 eavrtiny.c \
200 ecoff_i860.c \
201 ecoff_sparc.c \
202 ecrisaout.c \
203 ecriself.c \
204 ecrislinux.c \
205 ed10velf.c \
206 ed30v_e.c \
207 ed30v_o.c \
208 ed30velf.c \
209 edelta68.c \
210 eelf32_dlx.c \
211 eelf32_i860.c \
212 eelf32_i960.c \
213 eelf32_sparc.c \
214 eelf32_sparc_sol2.c \
215 eelf32_sparc_vxworks.c \
216 eelf32_spu.c \
217 eelf32_tic6x_be.c \
218 eelf32_tic6x_le.c \
219 eelf32_tic6x_linux_be.c \
220 eelf32_tic6x_linux_le.c \
221 eelf32_tic6x_elf_be.c \
222 eelf32_tic6x_elf_le.c \
223 eelf32am33lin.c \
224 eelf32bfin.c \
225 eelf32bfinfd.c \
226 eelf32cr16.c \
227 eelf32cr16c.c \
228 eelf32crx.c \
229 eelf32epiphany.c \
230 eelf32epiphany_4x4.c \
231 eelf32fr30.c \
232 eelf32frv.c \
233 eelf32frvfd.c \
234 eelf32ft32.c \
235 eelf32i370.c \
236 eelf32ip2k.c \
237 eelf32iq10.c \
238 eelf32iq2000.c \
239 eelf32lm32.c \
240 eelf32lm32fd.c \
241 eelf32lppc.c \
242 eelf32lppclinux.c \
243 eelf32lppcnto.c \
244 eelf32lppcsim.c \
245 eelf32m32c.c \
246 eelf32mb_linux.c \
247 eelf32mbel_linux.c \
248 eelf32mcore.c \
249 eelf32mep.c \
250 eelf32metag.c \
251 eelf32microblazeel.c \
252 eelf32microblaze.c \
253 eelf32moxie.c \
254 emoxiebox.c \
255 eelf32mt.c \
256 eelf32or1k.c \
257 eelf32or1k_linux.c \
258 eelf32ppc.c \
259 eelf32ppc_fbsd.c \
260 eelf32ppclinux.c \
261 eelf32ppcnto.c \
262 eelf32ppcsim.c \
263 eelf32ppcvxworks.c \
264 eelf32ppcwindiss.c \
265 eelf32rl78.c \
266 eelf32rx.c \
267 eelf32tilegx.c \
268 eelf32tilegx_be.c \
269 eelf32tilepro.c \
270 eelf32vax.c \
271 eelf32visium.c \
272 eelf32xc16x.c \
273 eelf32xc16xl.c \
274 eelf32xc16xs.c \
275 eelf32xstormy16.c \
276 eelf32xtensa.c \
277 eelf_i386.c \
278 eelf_i386_be.c \
279 eelf_i386_chaos.c \
280 eelf_i386_fbsd.c \
281 eelf_i386_ldso.c \
282 eelf_i386_nacl.c \
283 eelf_i386_sol2.c \
284 eelf_i386_vxworks.c \
285 eelf_s390.c \
286 egld960.c \
287 egld960coff.c \
288 eh8300.c \
289 eh8300elf.c \
290 eh8300elf_linux.c \
291 eh8300h.c \
292 eh8300helf.c \
293 eh8300helf_linux.c \
294 eh8300hn.c \
295 eh8300hnelf.c \
296 eh8300s.c \
297 eh8300self.c \
298 eh8300self_linux.c \
299 eh8300sn.c \
300 eh8300snelf.c \
301 eh8300sx.c \
302 eh8300sxelf.c \
303 eh8300sxelf_linux.c \
304 eh8300sxn.c \
305 eh8300sxnelf.c \
306 eh8500.c \
307 eh8500b.c \
308 eh8500c.c \
309 eh8500m.c \
310 eh8500s.c \
311 ehp300bsd.c \
312 ehp3hpux.c \
313 ehppaelf.c \
314 ehppalinux.c \
315 ehppanbsd.c \
316 ehppaobsd.c \
317 ei386aout.c \
318 ei386beos.c \
319 ei386bsd.c \
320 ei386coff.c \
321 ei386go32.c \
322 ei386linux.c \
323 ei386lynx.c \
324 ei386mach.c \
325 ei386moss.c \
326 ei386msdos.c \
327 ei386nbsd.c \
328 ei386nto.c \
329 ei386nw.c \
330 ei386pe.c \
331 ei386pe_posix.c \
332 elnk960.c \
333 em32relf.c \
334 em32relf_linux.c \
335 em32rlelf.c \
336 em32rlelf_linux.c \
337 em68hc11elf.c \
338 em68hc11elfb.c \
339 em68hc12elf.c \
340 em68hc12elfb.c \
341 em68k4knbsd.c \
342 em68kaout.c \
343 em68kaux.c \
344 em68kcoff.c \
345 em68kelf.c \
346 em68kelfnbsd.c \
347 em68klinux.c \
348 em68knbsd.c \
349 em68kpsos.c \
350 em88kbcs.c \
351 emcorepe.c \
352 emn10200.c \
353 emn10300.c \
354 emsp430elf.c \
355 emsp430X.c \
356 ends32elf.c \
357 ends32elf16m.c \
358 ends32elf_linux.c \
359 ends32belf.c \
360 ends32belf16m.c \
361 ends32belf_linux.c \
362 enews.c \
363 ens32knbsd.c \
364 enios2elf.c \
365 enios2linux.c \
366 epc532macha.c \
367 epdp11.c \
368 epjelf.c \
369 epjlelf.c \
370 eppclynx.c \
371 eppcmacos.c \
372 eppcnw.c \
373 eppcpe.c \
374 eriscix.c \
375 escore3_elf.c \
376 escore7_elf.c \
377 esh.c \
378 eshelf.c \
379 eshelf32.c \
380 eshelf32_linux.c \
381 eshelf32_nbsd.c \
382 eshelf_fd.c \
383 eshelf_linux.c \
384 eshelf_nbsd.c \
385 eshelf_nto.c \
386 eshelf_uclinux.c \
387 eshelf_vxworks.c \
388 eshl.c \
389 eshlelf.c \
390 eshlelf32.c \
391 eshlelf32_linux.c \
392 eshlelf32_nbsd.c \
393 eshlelf_fd.c \
394 eshlelf_linux.c \
395 eshlelf_nbsd.c \
396 eshlelf_nto.c \
397 eshlelf_vxworks.c \
398 eshlsymbian.c \
399 eshpe.c \
400 esparcaout.c \
401 esparclinux.c \
402 esparcnbsd.c \
403 est2000.c \
404 esun3.c \
405 esun4.c \
406 etic30aout.c \
407 etic30coff.c \
408 etic3xcoff.c \
409 etic3xcoff_onchip.c \
410 etic4xcoff.c \
411 etic54xcoff.c \
412 etic80coff.c \
413 ev850.c \
414 ev850_rh850.c \
415 evanilla.c \
416 evax.c \
417 evaxnbsd.c \
418 evsta.c \
419 ew65.c \
420 exgateelf.c \
421 ez80.c \
422 ez8001.c \
423 ez8002.c
424
425 ALL_EMULATIONS = $(ALL_EMULATION_SOURCES:.c=.@OBJEXT@)
426
427 ALL_64_EMULATION_SOURCES = \
428 eaarch64elf.c \
429 eaarch64elf32.c \
430 eaarch64elfb.c \
431 eaarch64elf32b.c \
432 eaarch64fbsd.c \
433 eaarch64fbsdb.c \
434 eaarch64linux.c \
435 eaarch64linuxb.c \
436 eaarch64linux32.c \
437 eaarch64linux32b.c \
438 eelf32_x86_64.c \
439 eelf32_x86_64_nacl.c \
440 eelf32b4300.c \
441 eelf32bmip.c \
442 eelf32bmipn32.c \
443 eelf32bsmip.c \
444 eelf32btsmip.c \
445 eelf32btsmip_fbsd.c \
446 eelf32btsmipn32.c \
447 eelf32btsmipn32_fbsd.c \
448 eelf32ebmip.c \
449 eelf32ebmipvxworks.c \
450 eelf32elmip.c \
451 eelf32elmipvxworks.c \
452 eelf32l4300.c \
453 eelf32lmip.c \
454 eelf32lr5900.c \
455 eelf32lr5900n32.c \
456 eelf32lsmip.c \
457 eelf32ltsmip.c \
458 eelf32ltsmip_fbsd.c \
459 eelf32ltsmipn32.c \
460 eelf32ltsmipn32_fbsd.c \
461 eelf32mipswindiss.c \
462 eelf64_aix.c \
463 eelf64_ia64.c \
464 eelf64_ia64_fbsd.c \
465 eelf64_ia64_vms.c \
466 eelf64_s390.c \
467 eelf64_sparc.c \
468 eelf64_sparc_fbsd.c \
469 eelf64_sparc_sol2.c \
470 eelf64alpha.c \
471 eelf64alpha_fbsd.c \
472 eelf64alpha_nbsd.c \
473 eelf64bmip.c \
474 eelf64btsmip.c \
475 eelf64btsmip_fbsd.c \
476 eelf64hppa.c \
477 eelf64lppc.c \
478 eelf64ltsmip.c \
479 eelf64ltsmip_fbsd.c \
480 eelf64mmix.c \
481 eelf64ppc.c \
482 eelf64ppc_fbsd.c \
483 eelf64rdos.c \
484 eelf64tilegx.c \
485 eelf64tilegx_be.c \
486 eelf_l1om.c \
487 eelf_l1om_fbsd.c \
488 eelf_k1om.c \
489 eelf_k1om_fbsd.c \
490 eelf_x86_64.c \
491 eelf_x86_64_cloudabi.c \
492 eelf_x86_64_fbsd.c \
493 eelf_x86_64_nacl.c \
494 eelf_x86_64_sol2.c \
495 ehppa64linux.c \
496 ei386pep.c \
497 emmo.c \
498 eshelf64.c \
499 eshelf64_nbsd.c \
500 eshlelf64.c \
501 eshlelf64_nbsd.c
502
503 ALL_64_EMULATIONS = $(ALL_64_EMULATION_SOURCES:.c=.@OBJEXT@)
504
505 ALL_EMUL_EXTRA_OFILES = \
506 deffilep.@OBJEXT@ \
507 pe-dll.@OBJEXT@
508
509 ALL_64_EMUL_EXTRA_OFILES = \
510 pep-dll.@OBJEXT@
511
512 CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
513 ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
514 mri.c ldcref.c pe-dll.c pep-dll.c ldlex-wrapper.c \
515 $(PLUGIN_C) ldbuildid.c
516
517 HFILES = ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
518 ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
519 ldwrite.h mri.h deffile.h pe-dll.h pep-dll.h \
520 elf-hints-local.h $(PLUGIN_H) ldbuildid.h
521
522 GENERATED_CFILES = ldgram.c ldlex.c deffilep.c
523 GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h
524
525 # Require an early dependency on the generated headers, as the dependency
526 # tracking will not cause them to be built beforehand.
527 BUILT_SOURCES = $(GENERATED_HFILES)
528
529 OFILES = ldgram.@OBJEXT@ ldlex-wrapper.@OBJEXT@ lexsup.@OBJEXT@ ldlang.@OBJEXT@ \
530 mri.@OBJEXT@ ldctor.@OBJEXT@ ldmain.@OBJEXT@ $(PLUGIN_OBJECT) \
531 ldwrite.@OBJEXT@ ldexp.@OBJEXT@ ldemul.@OBJEXT@ ldver.@OBJEXT@ ldmisc.@OBJEXT@ \
532 ldfile.@OBJEXT@ ldcref.@OBJEXT@ ${EMULATION_OFILES} ${EMUL_EXTRA_OFILES} \
533 ldbuildid.@OBJEXT@
534
535 STAGESTUFF = *.@OBJEXT@ ldscripts/* e*.c
536
537 # Disable -Werror, if it has been enabled, since old versions of bison/
538 # yacc will produce working code which contain compile time warnings.
539 ldgram.@OBJEXT@: ldgram.c
540 if am__fastdepCC
541 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f ldgram.c || echo $(srcdir)/`ldgram.c $(NO_WERROR)
542 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
543 else
544 if AMDEP
545 source='ldgram.c' object='$@' libtool=no @AMDEPBACKSLASH@
546 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
547 endif
548 $(COMPILE) -c `test -f ldgram.c || echo $(srcdir)/`ldgram.c $(NO_WERROR)
549 endif
550
551 ldlex-wrapper.@OBJEXT@: ldlex-wrapper.c ldlex.c
552 if am__fastdepCC
553 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $(srcdir)/ldlex-wrapper.c $(NO_WERROR)
554 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
555 else
556 if AMDEP
557 source='ldlex-wrapper.c' object='$@' libtool=no @AMDEPBACKSLASH@
558 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
559 endif
560 $(COMPILE) -c $(srcdir)/ldlex-wrapper.c $(NO_WERROR)
561 endif
562
563 deffilep.@OBJEXT@: deffilep.c
564 if am__fastdepCC
565 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `test -f deffilep.c || echo $(srcdir)/`deffilep.c $(NO_WERROR)
566 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
567 else
568 if AMDEP
569 source='deffilep.c' object='$@' libtool=no @AMDEPBACKSLASH@
570 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
571 endif
572 $(COMPILE) -c `test -f deffilep.c || echo $(srcdir)/`deffilep.c $(NO_WERROR)
573 endif
574
575 # At the moment this is just a list of those emulation template files
576 # that contain internationalised strings.
577 EMULATION_FILES = emultempl/pe.em emultempl/armcoff.em
578
579 POTFILES = $(CFILES) $(HFILES) $(EMULATION_FILES)
580
581 po/POTFILES.in: @MAINT@ Makefile
582 for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
583 && mv tmp $(srcdir)/po/POTFILES.in
584
585 ldmain.@OBJEXT@: ldmain.c config.status
586 if am__fastdepCC
587 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ \
588 -DDEFAULT_EMULATION='"$(EMUL)"' \
589 -DBINDIR='"$(bindir)"' -DTOOLBINDIR='"$(tooldir)/bin"' \
590 -DTARGET='"@target@"' @TARGET_SYSTEM_ROOT_DEFINE@ \
591 $(srcdir)/ldmain.c
592 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
593 else
594 if AMDEP
595 source='ldmain.c' object='$@' libtool=no @AMDEPBACKSLASH@
596 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
597 endif
598 $(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' \
599 -DBINDIR='"$(bindir)"' -DTOOLBINDIR='"$(tooldir)/bin"' \
600 -DTARGET='"@target@"' @TARGET_SYSTEM_ROOT_DEFINE@ \
601 $(srcdir)/ldmain.c
602 endif
603
604 ldfile.@OBJEXT@: ldfile.c config.status
605 if am__fastdepCC
606 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ \
607 -DSCRIPTDIR='"$(scriptdir)"' -DBINDIR='"$(bindir)"' -DTOOLBINDIR='"$(tooldir)/bin"' \
608 $(srcdir)/ldfile.c
609 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
610 else
611 if AMDEP
612 source='ldfile.c' object='$@' libtool=no @AMDEPBACKSLASH@
613 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
614 endif
615 $(COMPILE) -c -DSCRIPTDIR='"$(scriptdir)"' -DBINDIR='"$(bindir)"' \
616 -DTOOLBINDIR='"$(tooldir)/bin"' \
617 $(srcdir)/ldfile.c
618 endif
619
620 eelf32_spu.@OBJEXT@: eelf32_spu.c
621 if am__fastdepCC
622 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ \
623 -DEMBEDSPU="\"`echo embedspu | sed '$(transform)'`\"" eelf32_spu.c
624 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
625 else
626 if AMDEP
627 source='eelf32_spu.c' object='$@' libtool=no @AMDEPBACKSLASH@
628 DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
629 endif
630 $(COMPILE) -c -DEMBEDSPU="\"`echo embedspu | sed '$(transform)'`\"" \
631 eelf32_spu.c
632 endif
633
634 ldemul-list.h: Makefile
635 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
636 for f in `echo " " ${EMULATION_OFILES} "" \
637 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
638 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
639 done;\
640 echo "";\
641 echo "#define EMULATION_LIST \\";\
642 for f in `echo " " ${EMULATION_OFILES} "" \
643 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
644 echo " &ld_$${f}_emulation, \\"; \
645 done;\
646 echo " 0") >ldemul-tmp.h
647 mv ldemul-tmp.h ldemul-list.h
648
649 stringify.sed: ${srcdir}/emultempl/$(STRINGIFY)
650 cp ${srcdir}/emultempl/$(STRINGIFY) stringify.sed
651
652 # These all start with e so 'make clean' can find them.
653
654 GENSCRIPTS = LIB_PATH='${LIB_PATH}' $(SHELL) $(srcdir)/genscripts.sh "${srcdir}" "${libdir}" "${prefix}" "${exec_prefix}" @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@" @use_sysroot@ @enable_initfini_array@
655 GEN_DEPENDS = $(srcdir)/genscripts.sh stringify.sed
656 ELF_DEPS = $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/elf-generic.em $(srcdir)/scripttempl/DWARF.sc
657 ELF_GEN_DEPS = $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/elf-generic.em $(srcdir)/emultempl/genelf.em $(srcdir)/scripttempl/DWARF.sc
658
659 @TDIRS@
660
661 # We can't use pattern rules as we don't want to depend on GNU
662 # make, or else these rules could have been expressed in one
663 # two-liner: 'e%.c:' and ' ${GENSCRIPTS} $* "$(tdir_$*)"'.
664 # (The recursive variable expansion is portable.)
665
666 run-genscripts:
667 ${GENSCRIPTS} $(script_target) "$($(script_tdirname))"
668
669 .PHONY: run-genscripts
670
671 $(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES):
672 base=`echo $@ | sed -e 's,e\(.*\).c,\1,'`; \
673 $(MAKE) run-genscripts "script_target=$$base" "script_tdirname=tdir_$$base"
674
675 eaix5ppc.c: $(srcdir)/emulparams/aix5ppc.sh \
676 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
677
678 eaix5rs6.c: $(srcdir)/emulparams/aix5rs6.sh \
679 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
680
681 eaixppc.c: $(srcdir)/emulparams/aixppc.sh \
682 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
683
684 eaixrs6.c: $(srcdir)/emulparams/aixrs6.sh \
685 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
686
687 ealpha.c: $(srcdir)/emulparams/alpha.sh \
688 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
689
690 ealphavms.c: $(srcdir)/emulparams/alphavms.sh \
691 $(srcdir)/emultempl/vms.em $(srcdir)/scripttempl/alphavms.sc \
692 ${GEN_DEPENDS}
693
694 earcelf.c: $(srcdir)/emulparams/arcelf.sh \
695 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
696
697 earm_epoc_pe.c: $(srcdir)/emulparams/arm_epoc_pe.sh \
698 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/epocpe.sc ${GEN_DEPENDS}
699
700 earm_wince_pe.c: $(srcdir)/emulparams/arm_wince_pe.sh \
701 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
702
703 earmaoutb.c: $(srcdir)/emulparams/armaoutb.sh \
704 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
705
706 earmaoutl.c: $(srcdir)/emulparams/armaoutl.sh \
707 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
708
709 earmcoff.c: $(srcdir)/emulparams/armcoff.sh \
710 $(srcdir)/emultempl/armcoff.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS}
711
712 earmelf.c: $(srcdir)/emulparams/armelf.sh \
713 $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
714 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
715
716 earmelf_fbsd.c: $(srcdir)/emulparams/armelf_fbsd.sh \
717 $(srcdir)/emulparams/armelf.sh \
718 $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
719 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
720
721 earmelf_linux.c: $(srcdir)/emulparams/armelf_linux.sh \
722 $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
723 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
724
725 earmelf_linux_eabi.c: $(srcdir)/emulparams/armelf_linux_eabi.sh \
726 $(srcdir)/emulparams/armelf_linux.sh \
727 $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
728 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
729
730 earmelf_nacl.c: $(srcdir)/emulparams/armelf_nacl.sh \
731 $(srcdir)/emulparams/armelf_linux_eabi.sh \
732 $(srcdir)/emulparams/armelf_linux.sh \
733 $(srcdir)/emulparams/elf_nacl.sh \
734 $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
735 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
736
737 earmelf_nbsd.c: $(srcdir)/emulparams/armelf_nbsd.sh \
738 $(srcdir)/emulparams/armelf.sh \
739 $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
740 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
741
742 earmelf_vxworks.c: $(srcdir)/emulparams/armelf_vxworks.sh \
743 $(srcdir)/emulparams/vxworks.sh $(srcdir)/emulparams/armelf.sh \
744 $(ELF_DEPS) $(srcdir)/emultempl/vxworks.em \
745 $(srcdir)/emultempl/armelf.em $(srcdir)/scripttempl/elf.sc \
746 ${GEN_DEPENDS}
747
748 earmelfb.c: $(srcdir)/emulparams/armelfb.sh $(srcdir)/emulparams/armelf.sh \
749 $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
750 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
751
752 earmelfb_fbsd.c: $(srcdir)/emulparams/armelfb_fbsd.sh \
753 $(srcdir)/emulparams/armelf_fbsd.sh \
754 $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
755 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
756
757 earmelfb_linux.c: $(srcdir)/emulparams/armelfb_linux.sh \
758 $(srcdir)/emulparams/armelf_linux.sh \
759 $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
760 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
761
762 earmelfb_linux_eabi.c: $(srcdir)/emulparams/armelfb_linux_eabi.sh \
763 $(srcdir)/emulparams/armelf_linux_eabi.sh \
764 $(srcdir)/emulparams/armelf_linux.sh \
765 $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
766 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
767
768 earmelfb_nacl.c: $(srcdir)/emulparams/armelfb_nacl.sh \
769 $(srcdir)/emulparams/armelf_nacl.sh \
770 $(srcdir)/emulparams/armelf_linux_eabi.sh \
771 $(srcdir)/emulparams/armelf_linux.sh \
772 $(srcdir)/emulparams/elf_nacl.sh \
773 $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
774 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
775
776 earmelfb_nbsd.c: $(srcdir)/emulparams/armelfb_nbsd.sh \
777 $(srcdir)/emulparams/armelf_nbsd.sh \
778 $(srcdir)/emulparams/armelf.sh \
779 $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
780 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
781
782 earmnbsd.c: $(srcdir)/emulparams/armnbsd.sh \
783 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
784
785 earmnto.c: $(srcdir)/emulparams/armnto.sh \
786 $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
787 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
788
789 earmpe.c: $(srcdir)/emulparams/armpe.sh \
790 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
791
792 earmsymbian.c: $(srcdir)/emulparams/armsymbian.sh \
793 $(srcdir)/emulparams/armelf.sh $(ELF_DEPS) \
794 $(srcdir)/emultempl/armelf.em $(srcdir)/scripttempl/armbpabi.sc \
795 ${GEN_DEPENDS}
796
797 eavr1.c: $(srcdir)/emulparams/avr1.sh $(srcdir)/emultempl/avrelf.em \
798 $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
799 ${GEN_DEPENDS}
800
801 eavr2.c: $(srcdir)/emulparams/avr2.sh $(srcdir)/emultempl/avrelf.em \
802 $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
803 ${GEN_DEPENDS}
804
805 eavr25.c: $(srcdir)/emulparams/avr25.sh $(srcdir)/emultempl/avrelf.em \
806 $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
807 ${GEN_DEPENDS}
808
809 eavr3.c: $(srcdir)/emulparams/avr3.sh $(srcdir)/emultempl/avrelf.em \
810 $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
811 ${GEN_DEPENDS}
812
813 eavr31.c: $(srcdir)/emulparams/avr31.sh $(srcdir)/emultempl/avrelf.em \
814 $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
815 ${GEN_DEPENDS}
816
817 eavr35.c: $(srcdir)/emulparams/avr35.sh $(srcdir)/emultempl/avrelf.em \
818 $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
819 ${GEN_DEPENDS}
820
821 eavr4.c: $(srcdir)/emulparams/avr4.sh $(srcdir)/emultempl/avrelf.em \
822 $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
823 ${GEN_DEPENDS}
824
825 eavr5.c: $(srcdir)/emulparams/avr5.sh $(srcdir)/emultempl/avrelf.em \
826 $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
827 ${GEN_DEPENDS}
828
829 eavr51.c: $(srcdir)/emulparams/avr51.sh $(srcdir)/emultempl/avrelf.em \
830 $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
831 ${GEN_DEPENDS}
832
833 eavr6.c: $(srcdir)/emulparams/avr6.sh $(srcdir)/emultempl/avrelf.em \
834 $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
835 ${GEN_DEPENDS}
836
837 eavrxmega1.c: $(srcdir)/emulparams/avrxmega1.sh \
838 $(srcdir)/emultempl/avrelf.em $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
839 ${GEN_DEPENDS}
840
841 eavrxmega2.c: $(srcdir)/emulparams/avrxmega2.sh \
842 $(srcdir)/emultempl/avrelf.em $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
843 ${GEN_DEPENDS}
844
845 eavrxmega3.c: $(srcdir)/emulparams/avrxmega3.sh \
846 $(srcdir)/emultempl/avrelf.em $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
847 ${GEN_DEPENDS}
848
849 eavrxmega4.c: $(srcdir)/emulparams/avrxmega4.sh \
850 $(srcdir)/emultempl/avrelf.em $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
851 ${GEN_DEPENDS}
852
853 eavrxmega5.c: $(srcdir)/emulparams/avrxmega5.sh \
854 $(srcdir)/emultempl/avrelf.em $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
855 ${GEN_DEPENDS}
856
857 eavrxmega6.c: $(srcdir)/emulparams/avrxmega6.sh \
858 $(srcdir)/emultempl/avrelf.em $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
859 ${GEN_DEPENDS}
860
861 eavrxmega7.c: $(srcdir)/emulparams/avrxmega7.sh \
862 $(srcdir)/emultempl/avrelf.em $(ELF_DEPS) $(srcdir)/scripttempl/avr.sc \
863 ${GEN_DEPENDS}
864
865 eavrtiny.c: $(srcdir)/emulparams/avrtiny.sh \
866 $(srcdir)/emultempl/avrelf.em $(ELF_DEPS) $(srcdir)/scripttempl/avrtiny.sc \
867 ${GEN_DEPENDS}
868
869 ecoff_i860.c: $(srcdir)/emulparams/coff_i860.sh \
870 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i860coff.sc ${GEN_DEPENDS}
871
872 ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
873 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
874
875 ecrisaout.c: $(srcdir)/emulparams/crisaout.sh \
876 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/crisaout.sc ${GEN_DEPENDS}
877
878 ecriself.c: $(srcdir)/emulparams/criself.sh \
879 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
880
881 ecrislinux.c: $(srcdir)/emulparams/crislinux.sh \
882 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
883
884 ed10velf.c: $(srcdir)/emulparams/d10velf.sh \
885 $(ELF_DEPS) $(srcdir)/scripttempl/elfd10v.sc ${GEN_DEPENDS}
886
887 ed30v_e.c: $(srcdir)/emulparams/d30v_e.sh \
888 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
889
890 ed30v_o.c: $(srcdir)/emulparams/d30v_o.sh \
891 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
892
893 ed30velf.c: $(srcdir)/emulparams/d30velf.sh \
894 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
895
896 edelta68.c: $(srcdir)/emulparams/delta68.sh \
897 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
898
899 eelf32_dlx.c: $(srcdir)/emulparams/elf32_dlx.sh \
900 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/dlx.sc ${GEN_DEPENDS}
901
902 eelf32_i860.c: $(srcdir)/emulparams/elf32_i860.sh \
903 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
904
905 eelf32_i960.c: $(srcdir)/emulparams/elf32_i960.sh \
906 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
907
908 eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
909 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
910
911 eelf32_sparc_sol2.c: $(srcdir)/emulparams/elf32_sparc_sol2.sh \
912 $(srcdir)/emulparams/elf32_sparc.sh \
913 $(srcdir)/emulparams/solaris2.sh \
914 $(srcdir)/emultempl/solaris2.em $(ELF_DEPS) \
915 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
916
917 eelf32_sparc_vxworks.c: $(srcdir)/emulparams/elf32_sparc_vxworks.sh \
918 $(srcdir)/emulparams/vxworks.sh $(srcdir)/emulparams/elf32_sparc.sh \
919 $(srcdir)/emultempl/vxworks.em $(ELF_DEPS) \
920 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
921
922 eelf32_spu.c: $(srcdir)/emulparams/elf32_spu.sh $(srcdir)/emultempl/spuelf.em \
923 $(srcdir)/emultempl/spu_ovl.@OBJEXT@_c $(srcdir)/emultempl/spu_icache.@OBJEXT@_c \
924 ldemul-list.h \
925 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
926
927 $(srcdir)/emultempl/spu_ovl.@OBJEXT@_c: @MAINT@ $(srcdir)/emultempl/spu_ovl.S
928 if ../gas/as-new --version \
929 | grep 'target.*spu' >/dev/null 2>/dev/null; then \
930 cpp -DOVLY_IRQ_SAVE $(srcdir)/emultempl/spu_ovl.S spu_ovl.s; \
931 ../gas/as-new -o spu_ovl.@OBJEXT@ spu_ovl.s; \
932 ../binutils/bin2c <spu_ovl.@OBJEXT@ >$@; \
933 fi
934 $(srcdir)/emultempl/spu_icache.@OBJEXT@_c: @MAINT@ $(srcdir)/emultempl/spu_icache.S
935 if ../gas/as-new --version \
936 | grep 'target.*spu' >/dev/null 2>/dev/null; then \
937 cpp -DOVLY_IRQ_SAVE $(srcdir)/emultempl/spu_icache.S spu_icache.s; \
938 ../gas/as-new -o spu_icache.@OBJEXT@ spu_icache.s; \
939 ../binutils/bin2c <spu_icache.@OBJEXT@ >$@; \
940 fi
941 eelf32_tic6x_be.c: $(srcdir)/emulparams/elf32_tic6x_be.sh \
942 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc $(srcdir)/emultempl/tic6xdsbt.em \
943 ${GEN_DEPENDS}
944
945 eelf32_tic6x_elf_be.c: $(srcdir)/emulparams/elf32_tic6x_elf_be.sh \
946 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc $(srcdir)/emultempl/tic6xdsbt.em \
947 ${GEN_DEPENDS}
948
949 eelf32_tic6x_elf_le.c: $(srcdir)/emulparams/elf32_tic6x_elf_le.sh \
950 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc $(srcdir)/emultempl/tic6xdsbt.em \
951 ${GEN_DEPENDS}
952
953 eelf32_tic6x_le.c: $(srcdir)/emulparams/elf32_tic6x_le.sh \
954 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc $(srcdir)/emultempl/tic6xdsbt.em \
955 ${GEN_DEPENDS}
956
957 eelf32_tic6x_linux_be.c: $(srcdir)/emulparams/elf32_tic6x_linux_be.sh \
958 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc $(srcdir)/emultempl/tic6xdsbt.em \
959 ${GEN_DEPENDS}
960
961 eelf32_tic6x_linux_le.c: $(srcdir)/emulparams/elf32_tic6x_linux_le.sh \
962 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc $(srcdir)/emultempl/tic6xdsbt.em \
963 ${GEN_DEPENDS}
964
965 eelf32am33lin.c: $(srcdir)/emulparams/elf32am33lin.sh \
966 $(srcdir)/emulparams/elf32am33lin.sh \
967 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
968
969 eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \
970 $(srcdir)/emulparams/elf32bmip.sh $(ELF_DEPS) \
971 $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
972
973 eelf32bfin.c: $(srcdir)/emulparams/elf32bfin.sh \
974 $(ELF_DEPS) $(srcdir)/emultempl/bfin.em \
975 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
976
977 eelf32bfinfd.c: $(srcdir)/emulparams/elf32bfinfd.sh \
978 $(srcdir)/emulparams/elf32bfin.sh \
979 $(ELF_DEPS) $(srcdir)/emultempl/bfin.em \
980 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
981
982 eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh $(ELF_DEPS) \
983 $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
984
985 eelf32bmipn32.c: $(srcdir)/emulparams/elf32bmipn32.sh \
986 $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
987 $(srcdir)/emultempl/irix.em $(srcdir)/emultempl/mipself.em \
988 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
989
990 eelf32bsmip.c: $(srcdir)/emulparams/elf32bsmip.sh \
991 $(srcdir)/emulparams/elf32bmip.sh $(ELF_DEPS) $(srcdir)/emultempl/irix.em \
992 $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
993
994 eelf32btsmip.c: $(srcdir)/emulparams/elf32btsmip.sh \
995 $(srcdir)/emulparams/elf32bmip.sh $(ELF_DEPS) \
996 $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
997
998 eelf32btsmip_fbsd.c: $(srcdir)/emulparams/elf32btsmip_fbsd.sh \
999 $(srcdir)/emulparams/elf32bmip.sh $(ELF_DEPS) \
1000 $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1001
1002 eelf32btsmipn32.c: $(srcdir)/emulparams/elf32btsmipn32.sh \
1003 $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
1004 $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1005
1006 eelf32btsmipn32_fbsd.c: $(srcdir)/emulparams/elf32btsmipn32_fbsd.sh \
1007 $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
1008 $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1009
1010 eelf32cr16.c: $(srcdir)/emulparams/elf32cr16.sh \
1011 $(ELF_DEPS) $(srcdir)/emultempl/cr16elf.em \
1012 $(srcdir)/scripttempl/elf32cr16.sc ${GEN_DEPENDS}
1013
1014 eelf32cr16c.c: $(srcdir)/emulparams/elf32cr16c.sh \
1015 $(ELF_DEPS) $(srcdir)/scripttempl/elf32cr16c.sc ${GEN_DEPENDS}
1016
1017 eelf32crx.c: $(srcdir)/emulparams/elf32crx.sh \
1018 $(ELF_DEPS) $(srcdir)/emultempl/crxelf.em \
1019 $(srcdir)/scripttempl/elf32crx.sc ${GEN_DEPENDS}
1020
1021 eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
1022 $(srcdir)/emulparams/elf32bmip.sh $(ELF_DEPS) \
1023 $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1024
1025 eelf32ebmipvxworks.c: $(srcdir)/emulparams/elf32ebmipvxworks.sh \
1026 $(srcdir)/emulparams/elf32bmip.sh $(srcdir)/emulparams/vxworks.sh \
1027 $(ELF_DEPS) $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/mipself.em \
1028 $(srcdir)/emultempl/vxworks.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1029
1030 eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \
1031 $(srcdir)/emulparams/elf32lmip.sh $(srcdir)/emulparams/elf32bmip.sh \
1032 $(ELF_DEPS) $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc \
1033 ${GEN_DEPENDS}
1034
1035 eelf32elmipvxworks.c: $(srcdir)/emulparams/elf32elmipvxworks.sh \
1036 $(srcdir)/emulparams/elf32bmip.sh $(srcdir)/emulparams/vxworks.sh \
1037 $(ELF_DEPS) $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/mipself.em \
1038 $(srcdir)/emultempl/vxworks.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1039
1040 eelf32lr5900.c: $(srcdir)/emulparams/elf32lr5900.sh \
1041 $(srcdir)/emulparams/elf32bmip.sh \
1042 $(ELF_DEPS) $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc \
1043 ${GEN_DEPENDS}
1044
1045 eelf32lr5900n32.c: $(srcdir)/emulparams/elf32lr5900n32.sh \
1046 $(srcdir)/emulparams/elf32bmipn32-defs.sh \
1047 $(ELF_DEPS) $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc \
1048 ${GEN_DEPENDS}
1049
1050 eelf32epiphany.c: $(srcdir)/emulparams/elf32epiphany.sh \
1051 $(ELF_DEPS) ${GEN_DEPENDS}
1052
1053 eelf32epiphany_4x4.c: $(srcdir)/emulparams/elf32epiphany_4x4.sh \
1054 $(srcdir)/emultempl/elf32.em \
1055 $(ELF_DEPS) $(srcdir)/scripttempl/epiphany_4x4.sc ${GEN_DEPENDS}
1056
1057 eelf32fr30.c: $(srcdir)/emulparams/elf32fr30.sh \
1058 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1059
1060 eelf32frv.c: $(srcdir)/emulparams/elf32frv.sh \
1061 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1062
1063 eelf32frvfd.c: $(srcdir)/emulparams/elf32frvfd.sh \
1064 $(srcdir)/emulparams/elf32frv.sh \
1065 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1066
1067 eelf32ft32.c: $(srcdir)/emulparams/elf32ft32.sh \
1068 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1069
1070 eelf32i370.c: $(srcdir)/emulparams/elf32i370.sh \
1071 $(ELF_DEPS) $(srcdir)/scripttempl/elfi370.sc ${GEN_DEPENDS}
1072
1073 eelf32ip2k.c: $(srcdir)/emulparams/elf32ip2k.sh \
1074 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1075
1076 eelf32iq10.c: $(srcdir)/emulparams/elf32iq10.sh \
1077 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/iq2000.sc ${GEN_DEPENDS}
1078
1079 eelf32iq2000.c: $(srcdir)/emulparams/elf32iq2000.sh \
1080 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/iq2000.sc ${GEN_DEPENDS}
1081
1082 eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \
1083 $(srcdir)/emulparams/elf32b4300.sh $(srcdir)/emulparams/elf32bmip.sh \
1084 $(ELF_DEPS) $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc \
1085 ${GEN_DEPENDS}
1086
1087 eelf32lm32.c: $(srcdir)/emulparams/elf32lm32.sh \
1088 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1089
1090 eelf32lm32fd.c: $(srcdir)/emulparams/elf32lm32fd.sh \
1091 $(srcdir)/emulparams/elf32lm32.sh $(ELF_DEPS) \
1092 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1093
1094 eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
1095 $(srcdir)/emulparams/elf32bmip.sh $(ELF_DEPS) \
1096 $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1097
1098 eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \
1099 $(srcdir)/emulparams/elf32ppccommon.sh \
1100 $(srcdir)/emulparams/elf32ppc.sh \
1101 $(srcdir)/emultempl/ppc32elf.em ldemul-list.h \
1102 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1103
1104 eelf32lppclinux.c: $(srcdir)/emulparams/elf32lppclinux.sh \
1105 $(srcdir)/emulparams/elf32lppc.sh $(srcdir)/emulparams/elf32ppc.sh \
1106 $(srcdir)/emulparams/elf32ppccommon.sh \
1107 $(srcdir)/emultempl/ppc32elf.em ldemul-list.h \
1108 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1109
1110 eelf32lppcnto.c: $(srcdir)/emulparams/elf32lppcnto.sh \
1111 $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
1112 $(srcdir)/emultempl/ppc32elf.em ldemul-list.h \
1113 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1114
1115 eelf32lppcsim.c: $(srcdir)/emulparams/elf32lppcsim.sh \
1116 $(srcdir)/emulparams/elf32lppc.sh $(srcdir)/emulparams/elf32ppc.sh \
1117 $(srcdir)/emulparams/elf32ppccommon.sh \
1118 $(srcdir)/emultempl/ppc32elf.em ldemul-list.h \
1119 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1120
1121 eelf32lsmip.c: $(srcdir)/emulparams/elf32lsmip.sh \
1122 $(srcdir)/emulparams/elf32lmip.sh $(srcdir)/emulparams/elf32bmip.sh \
1123 $(ELF_DEPS) $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc \
1124 ${GEN_DEPENDS}
1125
1126 eelf32ltsmip.c: $(srcdir)/emulparams/elf32ltsmip.sh \
1127 $(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
1128 $(ELF_DEPS) $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc \
1129 ${GEN_DEPENDS}
1130
1131 eelf32ltsmip_fbsd.c: $(srcdir)/emulparams/elf32ltsmip_fbsd.sh \
1132 $(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
1133 $(ELF_DEPS) $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc \
1134 ${GEN_DEPENDS}
1135
1136 eelf32ltsmipn32.c: $(srcdir)/emulparams/elf32ltsmipn32.sh \
1137 $(srcdir)/emulparams/elf32btsmipn32.sh \
1138 $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
1139 $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1140
1141 eelf32ltsmipn32_fbsd.c: $(srcdir)/emulparams/elf32ltsmipn32_fbsd.sh \
1142 $(srcdir)/emulparams/elf32btsmipn32.sh \
1143 $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
1144 $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1145
1146 eelf32m32c.c: $(srcdir)/emulparams/elf32m32c.sh \
1147 $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
1148 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1149
1150 eelf32mbel_linux.c: $(srcdir)/emulparams/elf32mbel_linux.sh \
1151 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1152
1153 eelf32mb_linux.c: $(srcdir)/emulparams/elf32mb_linux.sh \
1154 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1155
1156 eelf32mcore.c: $(srcdir)/emulparams/elf32mcore.sh \
1157 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1158
1159 eelf32mep.c: $(srcdir)/emulparams/elf32mep.sh \
1160 $(ELF_DEPS) $(srcdir)/scripttempl/mep.sc ${GEN_DEPENDS}
1161
1162 eelf32metag.c: $(srcdir)/emulparams/elf32metag.sh \
1163 $(ELF_DEPS) $(srcdir)/emultempl/metagelf.em \
1164 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1165
1166 eelf32microblazeel.c: $(srcdir)/emulparams/elf32microblazeel.sh \
1167 $(ELF_DEPS) $(srcdir)/scripttempl/elfmicroblaze.sc ${GEN_DEPENDS}
1168
1169 eelf32microblaze.c: $(srcdir)/emulparams/elf32microblaze.sh \
1170 $(ELF_DEPS) $(srcdir)/scripttempl/elfmicroblaze.sc ${GEN_DEPENDS}
1171
1172 eelf32mipswindiss.c: $(srcdir)/emulparams/elf32mipswindiss.sh $(ELF_DEPS) \
1173 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1174
1175 eelf32moxie.c: $(srcdir)/emulparams/elf32moxie.sh \
1176 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1177
1178 emoxiebox.c: $(srcdir)/emulparams/moxiebox.sh \
1179 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1180
1181 eelf32mt.c: $(srcdir)/emulparams/elf32mt.sh \
1182 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1183
1184 eelf32or1k.c: $(srcdir)/emulparams/elf32or1k.sh \
1185 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1186
1187 eelf32or1k_linux.c: $(srcdir)/emulparams/elf32or1k_linux.sh \
1188 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1189
1190 eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
1191 $(srcdir)/emulparams/elf32ppccommon.sh \
1192 $(srcdir)/emultempl/ppc32elf.em ldemul-list.h \
1193 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1194
1195 eelf32ppc_fbsd.c: $(srcdir)/emulparams/elf32ppc_fbsd.sh \
1196 $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
1197 $(srcdir)/emultempl/ppc32elf.em ldemul-list.h \
1198 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1199
1200 eelf32ppclinux.c: $(srcdir)/emulparams/elf32ppclinux.sh \
1201 $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
1202 $(srcdir)/emultempl/ppc32elf.em ldemul-list.h \
1203 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1204
1205 eelf32ppcnto.c: $(srcdir)/emulparams/elf32ppcnto.sh \
1206 $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
1207 $(srcdir)/emultempl/ppc32elf.em ldemul-list.h \
1208 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1209
1210 eelf32ppcsim.c: $(srcdir)/emulparams/elf32ppcsim.sh \
1211 $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emulparams/elf32ppccommon.sh \
1212 $(srcdir)/emultempl/ppc32elf.em ldemul-list.h \
1213 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1214
1215 eelf32ppcvxworks.c: $(srcdir)/emulparams/elf32ppcvxworks.sh \
1216 $(srcdir)/emulparams/elf32ppccommon.sh $(srcdir)/emulparams/vxworks.sh \
1217 $(srcdir)/emultempl/ppc32elf.em ldemul-list.h \
1218 $(srcdir)/emultempl/vxworks.em \
1219 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1220
1221 eelf32ppcwindiss.c: $(srcdir)/emulparams/elf32ppcwindiss.sh \
1222 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1223
1224 eelf32rl78.c: $(srcdir)/emulparams/elf32rl78.sh \
1225 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1226
1227 eelf32rx.c: $(srcdir)/emulparams/elf32rx.sh \
1228 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1229
1230 eelf32tilegx.c: $(srcdir)/emulparams/elf32tilegx.sh \
1231 $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
1232 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1233
1234 eelf32tilegx_be.c: $(srcdir)/emulparams/elf32tilegx_be.sh \
1235 $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
1236 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1237
1238 eelf32tilepro.c: $(srcdir)/emulparams/elf32tilepro.sh \
1239 $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
1240 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1241
1242 eelf32vax.c: $(srcdir)/emulparams/elf32vax.sh \
1243 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1244
1245 eelf32visium.c: $(srcdir)/emulparams/elf32visium.sh \
1246 $(ELF_DEPS) $(srcdir)/scripttempl/visium.sc ${GEN_DEPENDS}
1247
1248 eelf32xc16x.c: $(srcdir)/emulparams/elf32xc16x.sh \
1249 $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
1250 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1251
1252 eelf32xc16xl.c: $(srcdir)/emulparams/elf32xc16xl.sh \
1253 $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
1254 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1255
1256 eelf32xc16xs.c: $(srcdir)/emulparams/elf32xc16xs.sh \
1257 $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
1258 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1259
1260 eelf32xstormy16.c: $(srcdir)/emulparams/elf32xstormy16.sh \
1261 $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
1262 $(srcdir)/scripttempl/xstormy16.sc ${GEN_DEPENDS}
1263
1264 eelf32xtensa.c: $(srcdir)/emulparams/elf32xtensa.sh $(ELF_DEPS) \
1265 $(srcdir)/emultempl/xtensaelf.em $(INCDIR)/xtensa-config.h \
1266 $(BFDDIR)/elf-bfd.h $(BFDDIR)/libbfd.h $(INCDIR)/elf/xtensa.h \
1267 $(srcdir)/scripttempl/elfxtensa.sc ${GEN_DEPENDS}
1268
1269 eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
1270 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1271
1272 eelf_i386_be.c: $(srcdir)/emulparams/elf_i386_be.sh \
1273 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1274
1275 eelf_i386_chaos.c: $(srcdir)/emulparams/elf_i386_chaos.sh \
1276 $(ELF_DEPS) $(srcdir)/scripttempl/elf_chaos.sc ${GEN_DEPENDS}
1277
1278 eelf_i386_fbsd.c: $(srcdir)/emulparams/elf_i386_fbsd.sh \
1279 $(srcdir)/emulparams/elf_i386.sh \
1280 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1281
1282 eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
1283 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1284
1285 eelf_i386_nacl.c: $(srcdir)/emulparams/elf_i386_nacl.sh \
1286 $(srcdir)/emulparams/elf_i386.sh \
1287 $(srcdir)/emulparams/elf_nacl.sh \
1288 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1289
1290 eelf_i386_sol2.c: $(srcdir)/emulparams/elf_i386_sol2.sh \
1291 $(srcdir)/emulparams/solaris2.sh \
1292 $(srcdir)/emultempl/solaris2.em \
1293 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1294
1295 eelf_i386_vxworks.c: $(srcdir)/emulparams/elf_i386_vxworks.sh \
1296 $(srcdir)/emulparams/vxworks.sh $(srcdir)/emultempl/vxworks.em \
1297 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1298
1299 eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \
1300 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1301
1302 egld960.c: $(srcdir)/emulparams/gld960.sh \
1303 $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
1304
1305 egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
1306 $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
1307
1308 eh8300.c: $(srcdir)/emulparams/h8300.sh \
1309 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
1310
1311 eh8300elf.c: $(srcdir)/emulparams/h8300elf.sh \
1312 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1313
1314 eh8300elf_linux.c: $(srcdir)/emulparams/h8300elf_linux.sh \
1315 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1316
1317 eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
1318 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
1319
1320 eh8300helf.c: $(srcdir)/emulparams/h8300helf.sh \
1321 $(srcdir)/emulparams/h8300elf.sh \
1322 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1323
1324 eh8300helf_linux.c: $(srcdir)/emulparams/h8300helf_linux.sh \
1325 $(srcdir)/emulparams/h8300elf_linux.sh \
1326 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1327
1328 eh8300hn.c: $(srcdir)/emulparams/h8300hn.sh \
1329 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300hn.sc ${GEN_DEPENDS}
1330
1331 eh8300hnelf.c: $(srcdir)/emulparams/h8300hnelf.sh \
1332 $(srcdir)/emulparams/h8300elf.sh \
1333 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1334
1335 eh8300s.c: $(srcdir)/emulparams/h8300s.sh \
1336 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300s.sc ${GEN_DEPENDS}
1337
1338 eh8300self.c: $(srcdir)/emulparams/h8300self.sh \
1339 $(srcdir)/emulparams/h8300elf.sh \
1340 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1341
1342 eh8300self_linux.c: $(srcdir)/emulparams/h8300self_linux.sh \
1343 $(srcdir)/emulparams/h8300elf.sh \
1344 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1345
1346 eh8300sn.c: $(srcdir)/emulparams/h8300sn.sh \
1347 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300sn.sc ${GEN_DEPENDS}
1348
1349 eh8300snelf.c: $(srcdir)/emulparams/h8300snelf.sh \
1350 $(srcdir)/emulparams/h8300elf.sh \
1351 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1352
1353 eh8300sx.c: $(srcdir)/emulparams/h8300sx.sh \
1354 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300sx.sc ${GEN_DEPENDS}
1355
1356 eh8300sxelf.c: $(srcdir)/emulparams/h8300sxelf.sh \
1357 $(srcdir)/emulparams/h8300elf.sh \
1358 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1359
1360 eh8300sxelf_linux.c: $(srcdir)/emulparams/h8300sxelf_linux.sh \
1361 $(srcdir)/emulparams/h8300elf.sh \
1362 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1363
1364 eh8300sxn.c: $(srcdir)/emulparams/h8300sxn.sh \
1365 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300sxn.sc ${GEN_DEPENDS}
1366
1367 eh8300sxnelf.c: $(srcdir)/emulparams/h8300sxnelf.sh \
1368 $(srcdir)/emulparams/h8300elf.sh \
1369 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1370
1371 eh8500.c: $(srcdir)/emulparams/h8500.sh \
1372 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
1373
1374 eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
1375 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
1376
1377 eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
1378 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
1379
1380 eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
1381 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
1382
1383 eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
1384 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
1385
1386 ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
1387 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1388
1389 ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
1390 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1391
1392 ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
1393 $(ELF_DEPS) $(srcdir)/emultempl/hppaelf.em \
1394 $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
1395
1396 ehppalinux.c: $(srcdir)/emulparams/hppalinux.sh \
1397 $(ELF_DEPS) $(srcdir)/emultempl/hppaelf.em \
1398 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1399
1400 ehppanbsd.c: $(srcdir)/emulparams/hppanbsd.sh \
1401 $(srcdir)/emulparams/hppaelf.sh \
1402 $(ELF_DEPS) $(srcdir)/emultempl/hppaelf.em \
1403 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1404
1405 ehppaobsd.c: $(srcdir)/emulparams/hppaobsd.sh \
1406 $(ELF_DEPS) $(srcdir)/emultempl/hppaelf.em \
1407 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1408
1409 ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
1410 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1411
1412 ei386beos.c: $(srcdir)/emulparams/i386beos.sh \
1413 $(srcdir)/emultempl/beos.em $(srcdir)/scripttempl/i386beos.sc ${GEN_DEPENDS}
1414
1415 ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
1416 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1417
1418 ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
1419 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
1420
1421 ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
1422 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
1423
1424 ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
1425 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1426
1427 ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
1428 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1429
1430 ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
1431 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1432
1433 ei386moss.c: $(srcdir)/emulparams/i386moss.sh \
1434 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1435
1436 ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \
1437 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS}
1438
1439 ei386nbsd.c: $(srcdir)/emulparams/i386nbsd.sh \
1440 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1441
1442 ei386nto.c: $(srcdir)/emulparams/i386nto.sh \
1443 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1444
1445 ei386nw.c: $(srcdir)/emulparams/i386nw.sh \
1446 $(ELF_DEPS) $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
1447
1448 ei386pe.c: $(srcdir)/emulparams/i386pe.sh \
1449 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1450
1451 ei386pe_posix.c: $(srcdir)/emulparams/i386pe_posix.sh \
1452 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1453
1454 ei386pep.c: $(srcdir)/emulparams/i386pep.sh \
1455 $(srcdir)/emultempl/pep.em $(srcdir)/scripttempl/pep.sc ${GEN_DEPENDS}
1456
1457 elnk960.c: $(srcdir)/emulparams/lnk960.sh \
1458 $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
1459
1460 em32relf.c: $(srcdir)/emulparams/m32relf.sh \
1461 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1462
1463 em32relf_linux.c: $(srcdir)/emulparams/m32relf_linux.sh \
1464 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1465
1466 em32rlelf.c: $(srcdir)/emulparams/m32rlelf.sh \
1467 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1468
1469 em32rlelf_linux.c: $(srcdir)/emulparams/m32rlelf_linux.sh \
1470 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1471
1472 em68hc11elf.c: $(srcdir)/emulparams/m68hc11elf.sh \
1473 $(srcdir)/emultempl/m68hc1xelf.em $(ELF_DEPS) \
1474 $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
1475
1476 em68hc11elfb.c: $(srcdir)/emulparams/m68hc11elfb.sh \
1477 $(srcdir)/emultempl/m68hc1xelf.em $(ELF_DEPS) \
1478 $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
1479
1480 em68hc12elf.c: $(srcdir)/emulparams/m68hc12elf.sh \
1481 $(srcdir)/emultempl/m68hc1xelf.em $(ELF_DEPS) \
1482 $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
1483
1484 em68hc12elfb.c: $(srcdir)/emulparams/m68hc12elfb.sh \
1485 $(srcdir)/emultempl/m68hc1xelf.em $(ELF_DEPS) \
1486 $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
1487
1488 em68k4knbsd.c: $(srcdir)/emulparams/m68k4knbsd.sh \
1489 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1490
1491 em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
1492 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1493
1494 em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \
1495 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS}
1496
1497 em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
1498 $(srcdir)/emultempl/m68kcoff.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
1499
1500 em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \
1501 $(ELF_DEPS) $(srcdir)/emultempl/m68kelf.em \
1502 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1503
1504 em68kelfnbsd.c: $(srcdir)/emulparams/m68kelfnbsd.sh \
1505 $(srcdir)/emulparams/m68kelf.sh \
1506 $(ELF_DEPS) $(srcdir)/emultempl/m68kelf.em \
1507 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1508
1509 em68klinux.c: $(srcdir)/emulparams/m68klinux.sh \
1510 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1511
1512 em68knbsd.c: $(srcdir)/emulparams/m68knbsd.sh \
1513 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1514
1515 em68kpsos.c: $(srcdir)/emulparams/m68kpsos.sh \
1516 $(ELF_DEPS) $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS}
1517
1518 em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
1519 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
1520
1521 emcorepe.c: $(srcdir)/emulparams/mcorepe.sh \
1522 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1523
1524 emn10200.c: $(srcdir)/emulparams/mn10200.sh \
1525 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1526
1527 emn10300.c: $(srcdir)/emulparams/mn10300.sh \
1528 $(srcdir)/emulparams/mn10200.sh \
1529 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1530
1531 emsp430elf.c: $(srcdir)/emulparams/msp430elf.sh \
1532 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf32msp430.sc ${GEN_DEPENDS}
1533
1534 emsp430X.c: $(srcdir)/emulparams/msp430elf.sh $(srcdir)/emulparams/msp430X.sh \
1535 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf32msp430.sc ${GEN_DEPENDS}
1536
1537 ends32elf.c: $(srcdir)/emulparams/nds32elf.sh \
1538 $(ELF_DEPS) $(srcdir)/emultempl/nds32elf.em \
1539 $(srcdir)/scripttempl/nds32elf.sc ${GEN_DEPENDS}
1540
1541 ends32elf16m.c: $(srcdir)/emulparams/nds32elf16m.sh \
1542 $(ELF_DEPS) $(srcdir)/emultempl/nds32elf.em \
1543 $(srcdir)/scripttempl/nds32elf.sc ${GEN_DEPENDS}
1544
1545 ends32belf.c: $(srcdir)/emulparams/nds32belf.sh \
1546 $(ELF_DEPS) $(srcdir)/emultempl/nds32elf.em \
1547 $(srcdir)/scripttempl/nds32elf.sc ${GEN_DEPENDS}
1548
1549 ends32belf16m.c: $(srcdir)/emulparams/nds32belf16m.sh \
1550 $(ELF_DEPS) $(srcdir)/emultempl/nds32elf.em \
1551 $(srcdir)/scripttempl/nds32elf.sc ${GEN_DEPENDS}
1552
1553 ends32elf_linux.c: $(srcdir)/emulparams/nds32elf_linux.sh \
1554 $(ELF_DEPS) $(srcdir)/emultempl/nds32elf.em \
1555 $(srcdir)/scripttempl/nds32elf.sc ${GEN_DEPENDS}
1556
1557 ends32belf_linux.c: $(srcdir)/emulparams/nds32belf_linux.sh \
1558 $(ELF_DEPS) $(srcdir)/emultempl/nds32elf.em \
1559 $(srcdir)/scripttempl/nds32elf.sc ${GEN_DEPENDS}
1560
1561 enews.c: $(srcdir)/emulparams/news.sh \
1562 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1563
1564 enios2elf.c: $(srcdir)/emulparams/nios2elf.sh \
1565 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/nios2elf.em \
1566 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1567
1568 enios2linux.c: $(srcdir)/emulparams/nios2linux.sh \
1569 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/nios2elf.em \
1570 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1571
1572 ens32knbsd.c: $(srcdir)/emulparams/ns32knbsd.sh \
1573 $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/netbsd.em \
1574 $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1575
1576 eaarch64elf.c: $(srcdir)/emulparams/aarch64elf.sh \
1577 $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
1578 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1579
1580 eaarch64elf32.c: $(srcdir)/emulparams/aarch64elf32.sh \
1581 $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
1582 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1583
1584 eaarch64elfb.c: $(srcdir)/emulparams/aarch64elfb.sh $(srcdir)/emulparams/aarch64elf.sh \
1585 $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
1586 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1587
1588 eaarch64elf32b.c: $(srcdir)/emulparams/aarch64elf32b.sh $(srcdir)/emulparams/aarch64elf32.sh \
1589 $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
1590 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1591
1592 eaarch64fbsd.c: $(srcdir)/emulparams/aarch64fbsd.sh \
1593 $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
1594 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1595
1596 eaarch64fbsdb.c: $(srcdir)/emulparams/aarch64fbsdb.sh $(srcdir)/emulparams/aarch64fbsd.sh \
1597 $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
1598 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1599
1600 eaarch64linux.c: $(srcdir)/emulparams/aarch64linux.sh \
1601 $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
1602 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1603
1604 eaarch64linuxb.c: $(srcdir)/emulparams/aarch64linuxb.sh $(srcdir)/emulparams/aarch64linux.sh \
1605 $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
1606 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1607
1608 eaarch64linux32.c: $(srcdir)/emulparams/aarch64linux32.sh \
1609 $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
1610 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1611
1612 eaarch64linux32b.c: $(srcdir)/emulparams/aarch64linux32b.sh $(srcdir)/emulparams/aarch64linux32.sh \
1613 $(ELF_DEPS) $(srcdir)/emultempl/aarch64elf.em \
1614 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1615
1616 epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \
1617 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1618
1619 epdp11.c: $(srcdir)/emulparams/pdp11.sh \
1620 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1621
1622 epjelf.c: $(srcdir)/emulparams/pjelf.sh \
1623 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1624
1625 epjlelf.c: $(srcdir)/emulparams/pjlelf.sh $(srcdir)/emulparams/pjelf.sh \
1626 $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1627
1628 eppclynx.c: $(srcdir)/emulparams/ppclynx.sh \
1629 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1630
1631 eppcmacos.c: $(srcdir)/emulparams/ppcmacos.sh \
1632 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
1633
1634 eppcnw.c: $(srcdir)/emulparams/ppcnw.sh \
1635 $(ELF_DEPS) $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
1636
1637 eppcpe.c: $(srcdir)/emulparams/ppcpe.sh \
1638 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/ppcpe.sc ${GEN_DEPENDS}
1639
1640 eriscix.c: $(srcdir)/emulparams/riscix.sh \
1641 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1642
1643 escore3_elf.c: $(srcdir)/emulparams/score3_elf.sh \
1644 $(ELF_DEPS) $(srcdir)/emultempl/scoreelf.em \
1645 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1646
1647 escore7_elf.c: $(srcdir)/emulparams/score3_elf.sh \
1648 $(srcdir)/emulparams/score7_elf.sh \
1649 $(ELF_DEPS) $(srcdir)/emultempl/scoreelf.em \
1650 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1651
1652 esh.c: $(srcdir)/emulparams/sh.sh \
1653 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
1654
1655 eshelf.c: $(srcdir)/emulparams/shelf.sh \
1656 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1657
1658 eshelf32.c: $(srcdir)/emulparams/shelf32.sh \
1659 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
1660 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
1661 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1662
1663 eshelf32_linux.c: $(srcdir)/emulparams/shelf32_linux.sh \
1664 $(srcdir)/emulparams/shelf32.sh \
1665 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
1666 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
1667 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1668
1669 eshelf32_nbsd.c: $(srcdir)/emulparams/shelf32_nbsd.sh \
1670 $(srcdir)/emulparams/shelf32.sh \
1671 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
1672 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
1673 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1674
1675 eshelf_fd.c: $(srcdir)/emulparams/shelf_fd.sh \
1676 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1677
1678 eshelf_linux.c: $(srcdir)/emulparams/shelf_linux.sh \
1679 $(srcdir)/emulparams/shlelf_linux.sh \
1680 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1681
1682 eshelf_nbsd.c: $(srcdir)/emulparams/shelf_nbsd.sh \
1683 $(srcdir)/emulparams/shelf.sh \
1684 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1685
1686 eshelf_nto.c: $(srcdir)/emulparams/shelf_nto.sh \
1687 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1688
1689 eshelf_uclinux.c: $(srcdir)/emulparams/shelf_uclinux.sh \
1690 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1691
1692 eshelf_vxworks.c: $(srcdir)/emulparams/shelf_vxworks.sh \
1693 $(srcdir)/emulparams/vxworks.sh $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc \
1694 $(srcdir)/emultempl/vxworks.em ${GEN_DEPENDS}
1695
1696 eshl.c: $(srcdir)/emulparams/shl.sh \
1697 $(srcdir)/emulparams/sh.sh \
1698 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
1699
1700 eshlelf.c: $(srcdir)/emulparams/shlelf.sh \
1701 $(srcdir)/emulparams/shelf.sh \
1702 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1703
1704 eshlelf32.c: $(srcdir)/emulparams/shlelf32.sh \
1705 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h $(srcdir)/emulparams/shelf32.sh \
1706 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
1707 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1708
1709 eshlelf32_linux.c: $(srcdir)/emulparams/shlelf32_linux.sh \
1710 $(srcdir)/emulparams/shelf32_linux.sh $(srcdir)/emulparams/shelf32.sh \
1711 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
1712 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
1713 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1714
1715 eshlelf32_nbsd.c: $(srcdir)/emulparams/shlelf32_nbsd.sh \
1716 $(srcdir)/emulparams/shelf32_nbsd.sh $(srcdir)/emulparams/shelf32.sh \
1717 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
1718 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
1719 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1720
1721 eshlelf_fd.c: $(srcdir)/emulparams/shlelf_fd.sh \
1722 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1723
1724 eshlelf_linux.c: $(srcdir)/emulparams/shlelf_linux.sh \
1725 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1726
1727 eshlelf_nbsd.c: $(srcdir)/emulparams/shlelf_nbsd.sh \
1728 $(srcdir)/emulparams/shelf_nbsd.sh \
1729 $(srcdir)/emulparams/shelf.sh \
1730 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1731
1732 eshlelf_nto.c: $(srcdir)/emulparams/shlelf_nto.sh \
1733 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1734
1735 eshlelf_vxworks.c: $(srcdir)/emulparams/shlelf_vxworks.sh \
1736 $(srcdir)/emulparams/shelf_vxworks.sh $(srcdir)/emulparams/vxworks.sh \
1737 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc $(srcdir)/emultempl/vxworks.em \
1738 ${GEN_DEPENDS}
1739
1740 eshlsymbian.c: $(srcdir)/emulparams/shlsymbian.sh \
1741 $(srcdir)/emulparams/shelf.sh \
1742 $(ELF_DEPS) $(srcdir)/scripttempl/elf32sh-symbian.sc ${GEN_DEPENDS}
1743
1744 eshpe.c: $(srcdir)/emulparams/shpe.sh \
1745 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1746
1747 esparcaout.c: $(srcdir)/emulparams/sparcaout.sh \
1748 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1749
1750 esparclinux.c: $(srcdir)/emulparams/sparclinux.sh \
1751 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1752
1753 esparcnbsd.c: $(srcdir)/emulparams/sparcnbsd.sh \
1754 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1755
1756 est2000.c: $(srcdir)/emulparams/st2000.sh \
1757 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
1758
1759 esun3.c: $(srcdir)/emulparams/sun3.sh \
1760 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1761
1762 esun4.c: $(srcdir)/emulparams/sun4.sh \
1763 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1764
1765 etic30aout.c: $(srcdir)/emulparams/tic30aout.sh \
1766 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30aout.sc ${GEN_DEPENDS}
1767
1768 etic30coff.c: $(srcdir)/emulparams/tic30coff.sh \
1769 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30coff.sc ${GEN_DEPENDS}
1770
1771 etic3xcoff.c: $(srcdir)/emulparams/tic3xcoff.sh \
1772 $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic4xcoff.sc ${GEN_DEPENDS}
1773
1774 etic3xcoff_onchip.c: $(srcdir)/emulparams/tic3xcoff_onchip.sh \
1775 $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic4xcoff.sc ${GEN_DEPENDS}
1776
1777 etic4xcoff.c: $(srcdir)/emulparams/tic4xcoff.sh \
1778 $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic4xcoff.sc ${GEN_DEPENDS}
1779
1780 etic54xcoff.c: $(srcdir)/emulparams/tic54xcoff.sh \
1781 $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic54xcoff.sc ${GEN_DEPENDS}
1782
1783 etic80coff.c: $(srcdir)/emulparams/tic80coff.sh \
1784 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic80coff.sc ${GEN_DEPENDS}
1785
1786 ev850.c: $(srcdir)/emulparams/v850.sh $(srcdir)/emultempl/v850elf.em \
1787 $(ELF_DEPS) $(srcdir)/scripttempl/v850.sc ${GEN_DEPENDS}
1788
1789 ev850_rh850.c: $(srcdir)/emulparams/v850_rh850.sh $(srcdir)/emultempl/v850elf.em \
1790 $(ELF_DEPS) $(srcdir)/scripttempl/v850_rh850.sc ${GEN_DEPENDS}
1791
1792 evanilla.c: $(srcdir)/emulparams/vanilla.sh \
1793 $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
1794
1795 evax.c: $(srcdir)/emulparams/vax.sh \
1796 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1797
1798 evaxnbsd.c: $(srcdir)/emulparams/vaxnbsd.sh \
1799 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1800
1801 evsta.c: $(srcdir)/emulparams/vsta.sh \
1802 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1803
1804 ew65.c: $(srcdir)/emulparams/w65.sh \
1805 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS}
1806
1807 exgateelf.c: $(srcdir)/emulparams/xgateelf.sh \
1808 $(srcdir)/emultempl/generic.em $(ELF_DEPS) \
1809 $(srcdir)/scripttempl/elfxgate.sc ${GEN_DEPENDS}
1810
1811 ez80.c: $(srcdir)/emulparams/z80.sh \
1812 $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/z80.em \
1813 $(srcdir)/scripttempl/z80.sc ${GEN_DEPENDS}
1814
1815 ez8001.c: $(srcdir)/emulparams/z8001.sh \
1816 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
1817
1818 ez8002.c: $(srcdir)/emulparams/z8002.sh \
1819 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
1820
1821 eelf32_x86_64.c: $(srcdir)/emulparams/elf32_x86_64.sh \
1822 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1823
1824 eelf32_x86_64_nacl.c: $(srcdir)/emulparams/elf32_x86_64_nacl.sh \
1825 $(srcdir)/emulparams/elf32_x86_64.sh \
1826 $(srcdir)/emulparams/elf_nacl.sh \
1827 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1828
1829 eelf64_aix.c: $(srcdir)/emulparams/elf64_aix.sh \
1830 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1831
1832 eelf64_ia64.c: $(srcdir)/emulparams/elf64_ia64.sh \
1833 $(ELF_DEPS) $(srcdir)/emultempl/ia64elf.em \
1834 $(srcdir)/emultempl/needrelax.em \
1835 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1836
1837 eelf64_ia64_fbsd.c: $(srcdir)/emulparams/elf64_ia64_fbsd.sh \
1838 $(srcdir)/emulparams/elf64_ia64.sh \
1839 $(ELF_DEPS) $(srcdir)/emultempl/ia64elf.em \
1840 $(srcdir)/emultempl/needrelax.em \
1841 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1842
1843 eelf64_ia64_vms.c: $(srcdir)/emulparams/elf64_ia64_vms.sh \
1844 $(srcdir)/emultempl/vms.em $(srcdir)/emultempl/elf-generic.em \
1845 $(srcdir)/scripttempl/ia64vms.sc ${GEN_DEPENDS}
1846
1847 eelf64_s390.c: $(srcdir)/emulparams/elf64_s390.sh \
1848 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1849
1850 eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
1851 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1852
1853 eelf64_sparc_fbsd.c: $(srcdir)/emulparams/elf64_sparc_fbsd.sh \
1854 $(srcdir)/emulparams/elf64_sparc.sh \
1855 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1856
1857 eelf64_sparc_sol2.c: $(srcdir)/emulparams/elf64_sparc_sol2.sh \
1858 $(srcdir)/emulparams/elf64_sparc.sh \
1859 $(srcdir)/emulparams/solaris2.sh \
1860 $(srcdir)/emultempl/solaris2.em \
1861 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1862
1863 eelf64alpha.c: $(srcdir)/emulparams/elf64alpha.sh \
1864 $(ELF_DEPS) $(srcdir)/emultempl/alphaelf.em \
1865 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1866
1867 eelf64alpha_fbsd.c: $(srcdir)/emulparams/elf64alpha_fbsd.sh \
1868 $(srcdir)/emulparams/elf64alpha.sh \
1869 $(ELF_DEPS) $(srcdir)/emultempl/alphaelf.em \
1870 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1871
1872 eelf64alpha_nbsd.c: $(srcdir)/emulparams/elf64alpha_nbsd.sh \
1873 $(srcdir)/emulparams/elf64alpha.sh \
1874 $(ELF_DEPS) $(srcdir)/emultempl/alphaelf.em \
1875 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1876
1877 eelf64bmip.c: $(srcdir)/emulparams/elf64bmip.sh \
1878 $(srcdir)/emulparams/elf64bmip-defs.sh \
1879 $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
1880 $(srcdir)/emultempl/irix.em $(srcdir)/emultempl/mipself.em \
1881 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1882
1883 eelf64btsmip.c: $(srcdir)/emulparams/elf64btsmip.sh \
1884 $(srcdir)/emulparams/elf64bmip-defs.sh \
1885 $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
1886 $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1887
1888 eelf64btsmip_fbsd.c: $(srcdir)/emulparams/elf64btsmip_fbsd.sh \
1889 $(srcdir)/emulparams/elf64bmip-defs.sh \
1890 $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
1891 $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1892
1893 eelf64hppa.c: $(srcdir)/emulparams/elf64hppa.sh \
1894 $(ELF_DEPS) $(srcdir)/scripttempl/elf64hppa.sc ${GEN_DEPENDS}
1895
1896 eelf64lppc.c: $(srcdir)/emulparams/elf64lppc.sh \
1897 $(srcdir)/emulparams/elf64ppc.sh $(srcdir)/emultempl/ppc64elf.em \
1898 ldemul-list.h \
1899 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1900
1901 eelf64ltsmip.c: $(srcdir)/emulparams/elf64ltsmip.sh \
1902 $(srcdir)/emulparams/elf64btsmip.sh $(srcdir)/emulparams/elf64bmip-defs.sh \
1903 $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
1904 $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1905
1906 eelf64ltsmip_fbsd.c: $(srcdir)/emulparams/elf64ltsmip_fbsd.sh \
1907 $(srcdir)/emulparams/elf64btsmip_fbsd.sh $(srcdir)/emulparams/elf64bmip-defs.sh \
1908 $(srcdir)/emulparams/elf32bmipn32-defs.sh $(ELF_DEPS) \
1909 $(srcdir)/emultempl/mipself.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1910
1911 eelf64mmix.c: $(srcdir)/emulparams/elf64mmix.sh \
1912 $(ELF_DEPS) $(srcdir)/emultempl/mmix-elfnmmo.em \
1913 $(srcdir)/emultempl/mmixelf.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1914
1915 eelf64ppc.c: $(srcdir)/emulparams/elf64ppc.sh $(srcdir)/emultempl/ppc64elf.em \
1916 ldemul-list.h \
1917 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1918
1919 eelf64ppc_fbsd.c: $(srcdir)/emulparams/elf64ppc_fbsd.sh \
1920 $(srcdir)/emultempl/ppc64elf.em ldemul-list.h \
1921 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1922
1923 eelf64rdos.c: $(srcdir)/emulparams/elf64rdos.sh \
1924 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1925
1926 eelf64tilegx.c: $(srcdir)/emulparams/elf64tilegx.sh \
1927 $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
1928 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1929
1930 eelf64tilegx_be.c: $(srcdir)/emulparams/elf64tilegx_be.sh \
1931 $(ELF_DEPS) $(srcdir)/emultempl/needrelax.em \
1932 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1933
1934 eelf_l1om.c: $(srcdir)/emulparams/elf_l1om.sh \
1935 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1936
1937 eelf_l1om_fbsd.c: $(srcdir)/emulparams/elf_l1om_fbsd.sh \
1938 $(srcdir)/emulparams/elf_l1om.sh \
1939 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1940
1941 eelf_k1om.c: $(srcdir)/emulparams/elf_k1om.sh \
1942 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1943
1944 eelf_k1om_fbsd.c: $(srcdir)/emulparams/elf_k1om_fbsd.sh \
1945 $(srcdir)/emulparams/elf_k1om.sh \
1946 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1947
1948 eelf_x86_64.c: $(srcdir)/emulparams/elf_x86_64.sh \
1949 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1950
1951 eelf_x86_64_cloudabi.c: $(srcdir)/emulparams/elf_x86_64_cloudabi.sh \
1952 $(srcdir)/emulparams/elf_x86_64.sh \
1953 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1954
1955 eelf_x86_64_fbsd.c: $(srcdir)/emulparams/elf_x86_64_fbsd.sh \
1956 $(srcdir)/emulparams/elf_x86_64.sh \
1957 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1958
1959 eelf_x86_64_nacl.c: $(srcdir)/emulparams/elf_x86_64_nacl.sh \
1960 $(srcdir)/emulparams/elf_x86_64.sh \
1961 $(srcdir)/emulparams/elf_nacl.sh \
1962 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1963
1964 eelf_x86_64_sol2.c: $(srcdir)/emulparams/elf_x86_64_sol2.sh \
1965 $(srcdir)/emulparams/elf_x86_64.sh \
1966 $(srcdir)/emulparams/solaris2.sh \
1967 $(srcdir)/emultempl/solaris2.em \
1968 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1969
1970 ehppa64linux.c: $(srcdir)/emulparams/hppa64linux.sh \
1971 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1972
1973 emmo.c: $(srcdir)/emulparams/mmo.sh $(srcdir)/emultempl/mmix-elfnmmo.em \
1974 $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/elf-generic.em \
1975 $(srcdir)/emultempl/mmo.em $(srcdir)/scripttempl/DWARF.sc \
1976 $(srcdir)/scripttempl/mmo.sc ${GEN_DEPENDS}
1977
1978 eshelf64.c: $(srcdir)/emulparams/shelf64.sh $(srcdir)/emulparams/shelf32.sh \
1979 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1980
1981 eshelf64_nbsd.c: $(srcdir)/emulparams/shelf64_nbsd.sh \
1982 $(srcdir)/emulparams/shelf32_nbsd.sh $(srcdir)/emulparams/shelf32.sh \
1983 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1984
1985 eshlelf64.c: $(srcdir)/emulparams/shlelf64.sh \
1986 $(srcdir)/emulparams/shelf64.sh $(srcdir)/emulparams/shelf32.sh \
1987 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1988
1989 eshlelf64_nbsd.c: $(srcdir)/emulparams/shlelf64_nbsd.sh \
1990 $(srcdir)/emulparams/shelf64_nbsd.sh \
1991 $(srcdir)/emulparams/shelf32_nbsd.sh $(srcdir)/emulparams/shelf32.sh \
1992 $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1993
1994
1995 # We need this for automake to use YLWRAP.
1996 EXTRA_ld_new_SOURCES = deffilep.y ldlex.l
1997 # Allow dependency tracking to work for these files, too.
1998 EXTRA_ld_new_SOURCES += pep-dll.c pe-dll.c
1999
2000 ld_new_SOURCES = ldgram.y ldlex-wrapper.c lexsup.c ldlang.c mri.c ldctor.c ldmain.c \
2001 ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c $(PLUGIN_C) \
2002 ldbuildid.c
2003 ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) \
2004 $(BFDLIB) $(LIBIBERTY) $(LIBINTL_DEP)
2005 ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(LIBINTL)
2006
2007 # Dependency tracking for the generated emulation files.
2008 EXTRA_ld_new_SOURCES += $(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES)
2009
2010 # This is the real libbfd.a created by libtool.
2011 TESTBFDLIB = @TESTBFDLIB@
2012
2013 check-DEJAGNU: site.exp
2014 srcroot=`cd $(srcdir) && pwd`; export srcroot; \
2015 r=`pwd`; export r; \
2016 LC_ALL=C; export LC_ALL; \
2017 EXPECT=$(EXPECT); export EXPECT; \
2018 runtest=$(RUNTEST); \
2019 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
2020 $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \
2021 CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
2022 CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \
2023 CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \
2024 OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" \
2025 LIBIBERTY="$(LIBIBERTY) $(LIBINTL)" LIBS="$(LIBS)" \
2026 DO_COMPARE="`echo '$(do_compare)' | sed -e 's,\\$$,,g'`" \
2027 $(RUNTESTFLAGS); \
2028 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
2029 fi
2030
2031 # Rules for testing by relinking ld itself.
2032 # A similar test is in the testsuite. This target is for ease of use
2033 # when porting ld.
2034
2035 ld-partial.@OBJEXT@: ld-new$(EXEEXT)
2036 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld-partial.@OBJEXT@ -r $(OFILES)
2037 ld1$(EXEEXT): ld-partial.@OBJEXT@
2038 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1$(EXEEXT) $(HOSTING_CRT0) ld-partial.@OBJEXT@ $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
2039
2040 ld1-full$(EXEEXT): ld-new
2041 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1-full$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
2042
2043 ld2$(EXEEXT): ld1$(EXEEXT)
2044 ./ld1$(EXEEXT) $(HOSTING_EMU) -o ld2$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
2045
2046 ld3$(EXEEXT): ld2$(EXEEXT)
2047 ./ld2$(EXEEXT) $(HOSTING_EMU) -o ld3$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
2048
2049 bootstrap: ld3$(EXEEXT)
2050 cmp ld2$(EXEEXT) ld3$(EXEEXT)
2051
2052 .PHONY: bootstrap
2053
2054 # A test program for C++ constructors and destructors.
2055 # This test is now in the testsuite.
2056 #
2057 #cdtest: cdtest-main.@OBJEXT@ cdtest-bar.@OBJEXT@ cdtest-foo.@OBJEXT@ ld.new
2058 # ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
2059 # cdtest-main.@OBJEXT@ cdtest-bar.@OBJEXT@ cdtest-foo.@OBJEXT@ $(HOSTING_LIBS)
2060 #
2061 #cdtest.out: cdtest
2062 # ./cdtest > cdtest.tmp
2063 # mv cdtest.tmp cdtest.out
2064 #
2065 #cdtest-ur.@OBJEXT@: cdtest-main.@OBJEXT@ cdtest-bar.@OBJEXT@ cdtest-foo.@OBJEXT@ ld.new
2066 # ./ld.new $(HOSTING_EMU) -o cdtest-ur.@OBJEXT@ -Ur cdtest-main.@OBJEXT@ \
2067 # cdtest-bar.@OBJEXT@ cdtest-foo.@OBJEXT@
2068 #
2069 #cdtest-ur: cdtest-ur.@OBJEXT@
2070 # ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.@OBJEXT@ \
2071 # $(HOSTING_LIBS)
2072 #
2073 #cdtest-ur.out: cdtest-ur
2074 # ./cdtest-ur > cdtest-ur.tmp
2075 # mv cdtest-ur.tmp cdtest-ur.out
2076 #
2077 #check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
2078 # diff $(srcdir)/cdtest.exp cdtest.out
2079 # diff $(srcdir)/cdtest.exp cdtest-ur.out
2080 #
2081 #.PHONY: check-cdtest
2082
2083 # END OF CHECK TARGETS
2084
2085 #
2086 # Build a dummy plugin using libtool.
2087 #
2088 if ENABLE_PLUGINS
2089 noinst_LTLIBRARIES = libldtestplug.la libldtestplug2.la libldtestplug3.la
2090 libldtestplug_la_SOURCES = testplug.c
2091 libldtestplug_la_CFLAGS= -g -O2
2092 libldtestplug_la_LDFLAGS = -no-undefined -rpath /nowhere
2093 libldtestplug2_la_SOURCES = testplug2.c
2094 libldtestplug2_la_CFLAGS= -g -O2
2095 libldtestplug2_la_LDFLAGS = -no-undefined -rpath /nowhere
2096 libldtestplug3_la_SOURCES = testplug3.c
2097 libldtestplug3_la_CFLAGS= -g -O2
2098 libldtestplug3_la_LDFLAGS = -no-undefined -rpath /nowhere
2099 endif
2100
2101 # DOCUMENTATION TARGETS
2102 # Manual configuration file; not usually attached to normal configuration,
2103 # because almost all configs use "gen" version of manual.
2104 # Set DOCVER above to change.
2105 configdoc.texi: ${DOCVER}-doc.texi
2106 cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
2107 chmod u+w ./configdoc.texi
2108
2109 # Build the man page from the texinfo file
2110 # The sed command removes the no-adjust Nroff command so that
2111 # the man output looks standard.
2112 ld.1: $(srcdir)/ld.texinfo configdoc.texi
2113 touch $@
2114 -$(TEXI2POD) $(MANCONF) < $(srcdir)/ld.texinfo > ld.pod
2115 -($(POD2MAN) ld.pod | \
2116 sed -e '/^.if n .na/d' > $@.T$$$$ && \
2117 mv -f $@.T$$$$ $@) || \
2118 (rm -f $@.T$$$$ && exit 1)
2119 rm -f ld.pod
2120
2121 MAINTAINERCLEANFILES = configdoc.texi ld.1
2122
2123 # We want to reconfigure if configure.host or configure.tgt changes.
2124 # development.sh is used to determine -Werror default.
2125 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host $(srcdir)/configure.tgt \
2126 $(BFDDIR)/development.sh
2127
2128 MOSTLYCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) \
2129 ldemul-list.h crtbegin.@OBJEXT@ crtend.@OBJEXT@ ld.log ld.sum
2130 mostlyclean-local:
2131 -rm -rf tmpdir
2132 CLEANFILES = dep.sed DEP DEPA DEP1 DEP2 spu_ovl.s spu_ovl.@OBJEXT@ spu_icache.s spu_icache.@OBJEXT@
2133
2134 .PHONY: install-exec-local install-data-local
2135
2136 install-exec-local: ld-new$(EXEEXT) install-binPROGRAMS
2137 $(mkinstalldirs) $(DESTDIR)$(tooldir)/bin
2138 n=`echo $(installed_linker) | sed '$(transform)'`; \
2139 if test "$(bindir)" != "$(tooldir)/bin"; then \
2140 rm -f $(DESTDIR)$(tooldir)/bin/$(installed_linker)$(EXEEXT); \
2141 ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$(installed_linker)$(EXEEXT) >/dev/null 2>/dev/null \
2142 || $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/$(installed_linker)$(EXEEXT); \
2143 fi; \
2144 if test "x$(install_as_default)" = "xyes"; then \
2145 ld=`echo ld | sed '$(transform)'`; \
2146 rm -f $(DESTDIR)$(bindir)/$$ld$(EXEEXT); \
2147 ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(bindir)/$$ld$(EXEEXT) >/dev/null 2>/dev/null \
2148 || $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(bindir)/$$ld$(EXEEXT); \
2149 if test "$(bindir)" != "$(tooldir)/bin"; then \
2150 rm -f $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
2151 ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
2152 || $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
2153 fi; \
2154 fi
2155
2156 install-data-local:
2157 $(mkinstalldirs) $(DESTDIR)$(scriptdir)/ldscripts
2158 for f in ldscripts/* ; do \
2159 $(INSTALL_DATA) $$f $(DESTDIR)$(scriptdir)/$$f ; \
2160 done
2161
2162 # Stuff that should be included in a distribution. The diststuff
2163 # target is run by the taz target in ../Makefile.in.
2164 EXTRA_DIST = ldgram.c ldgram.h ldlex.c emultempl/spu_ovl.@OBJEXT@_c \
2165 emultempl/spu_icache.@OBJEXT@_c deffilep.c deffilep.h $(man_MANS)
2166 diststuff: info $(EXTRA_DIST)
2167
2168 # Both info (ld.info) and ld.1 depend on configdoc.texi.
2169 # But info isn't a direct target. Make info-recursive to depend on
2170 # ld.1 to support parallel build.
2171 info-recursive: ld.1
2172
2173 DISTCLEANFILES = tdirs site.exp site.bak stringify.sed
2174 distclean-local:
2175 rm -rf ldscripts
2176
2177 MAINTAINERCLEANFILES += ld.info
2178
2179 # Automake 1.9 will only build info files in the objdir if they are
2180 # mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
2181 # though, so we use a bogus condition.
2182 if GENINSRC_NEVER
2183 DISTCLEANFILES += ld.info
2184 endif
This page took 0.077583 seconds and 4 git commands to generate.