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