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