OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [binutils-2.20.1/] [ld/] [Makefile.am] - Blame information for rev 843

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.