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