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