]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/Makefile.am
Updated Swedish translation
[thirdparty/binutils-gdb.git] / ld / Makefile.am
CommitLineData
252b5132
RH
1## Process this file with automake to generate Makefile.in
2
3## FIXME: work around apparent automake bug.
4INTLLIBS = @INTLLIBS@
5
6AUTOMAKE_OPTIONS = cygnus dejagnu
7
8SUBDIRS = po
9
10tooldir = $(exec_prefix)/$(target_alias)
11
a7e78dae 12YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
252b5132 13YFLAGS = -d
a7e78dae 14LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
252b5132 15
a2d91340
AC
16WARN_CFLAGS = @WARN_CFLAGS@
17AM_CFLAGS = $(WARN_CFLAGS)
18
252b5132
RH
19# We put the scripts in the directory $(scriptdir)/ldscripts.
20# We can't put the scripts in $(datadir) because the SEARCH_DIR
21# directives need to be different for native and cross linkers.
22scriptdir = $(tooldir)/lib
23
24EMUL = @EMUL@
25EMULATION_OFILES = @EMULATION_OFILES@
26EMUL_EXTRA_OFILES = @EMUL_EXTRA_OFILES@
27
28# Search path to override the default search path for -lfoo libraries.
29# If LIB_PATH is empty, the ones in the script (if any) are left alone.
30# (The default is usually /lib:/usr/lib:/usr/local/lib, unless building
31# a cross-linker, in which case the default is empty. See genscripts.sh.)
32# Otherwise, they are replaced with the ones given in LIB_PATH,
33# which may have the form: LIB_PATH=/lib:/usr/local/lib
34LIB_PATH =
35
36BASEDIR = $(srcdir)/..
37BFDDIR = $(BASEDIR)/bfd
38INCDIR = $(BASEDIR)/include
41b49281 39MKDEP = gcc -MM
252b5132
RH
40
41# What version of the manual to build
42DOCVER = gen
43
0285c67d
NC
44# Options to extract the man page from ld.texinfo
45MANCONF = -Dman
46
47TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl
48
ff5dcc92
SC
49POD2MAN = pod2man --center="GNU Development Tools" \
50 --release="binutils-$(VERSION)" --section=1
0285c67d 51
252b5132
RH
52#stuff for self hosting (can be overridden in config file).
53HOSTING_CRT0 = @HOSTING_CRT0@
54HOSTING_LIBS = @HOSTING_LIBS@
55HOSTING_EMU = -m $(EMUL)
56
57# Setup the testing framework, if you have one
58EXPECT = `if [ -f $$r/../expect/expect ] ; \
59 then echo $$r/../expect/expect ; \
60 else echo expect ; fi`
61
62RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; \
63 then echo $${srcroot}/../dejagnu/runtest ; \
64 else echo runtest ; fi`
65
66RUNTESTFLAGS =
67
68CC_FOR_TARGET = ` \
69 if [ -f $$r/../gcc/xgcc ] ; then \
70 if [ -f $$r/../newlib/Makefile ] ; then \
71 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
72 else \
73 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
74 fi; \
75 else \
76 if [ "@host@" = "@target@" ] ; then \
77 echo $(CC); \
78 else \
79 echo gcc | sed '$(transform)'; \
80 fi; \
81 fi`
82
83CXX = gcc
84CXX_FOR_TARGET = ` \
85 if [ -f $$r/../gcc/xgcc ] ; then \
86 if [ -f $$r/../newlib/Makefile ] ; then \
87 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
88 else \
89 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
90 fi; \
91 else \
92 if [ "@host@" = "@target@" ] ; then \
93 echo $(CXX); \
94 else \
95 echo gcc | sed '$(transform)'; \
96 fi; \
97 fi`
98
99noinst_PROGRAMS = ld-new
100info_TEXINFOS = ld.texinfo
101noinst_TEXINFOS = ldint.texinfo
102man_MANS = ld.1
103
104INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) -I$(top_srcdir)/../intl -I../intl $(HDEFINES) $(CFLAGS) -DLOCALEDIR="\"$(prefix)/share/locale\""
105
106BFDLIB = ../bfd/libbfd.la
107LIBIBERTY = ../libiberty/libiberty.a
108
109ALL_EMULATIONS = \
110 ea29k.o \
111 eaixppc.o \
112 eaixrs6.o \
113 ealpha.o \
114 earcelf.o \
4900fc06 115 earm_epoc_pe.o \
252b5132
RH
116 earmaoutb.o \
117 earmaoutl.o \
118 earmcoff.o \
4900fc06 119 earmelf.o \
28912fd9 120 earmelf_fbsd.o \
4900fc06 121 earmelf_linux.o \
3695c299 122 earmelf_nbsd.o \
658f2588 123 earmelfb_nbsd.o \
4900fc06 124 earmelf_oabi.o \
7e392df6 125 earmnto.o \
8959586a 126 earmnbsd.o \
252b5132 127 earmpe.o \
adde6300
AM
128 eavr1200.o \
129 eavr23xx.o \
adde6300 130 eavr4433.o \
4900fc06 131 eavr44x4.o \
adde6300 132 eavr85xx.o \
adde6300
AM
133 eavrmega103.o \
134 eavrmega161.o \
4900fc06 135 eavrmega603.o \
fae1e84f
MM
136 eavr1.o \
137 eavr2.o \
138 eavr3.o \
139 eavr4.o \
140 eavr5.o \
252b5132 141 ecoff_sparc.o \
9d06555c
HPN
142 ecrisaout.o \
143 ecriself.o \
144 ecrislinux.o \
252b5132 145 ed10velf.o \
252b5132
RH
146 ed30v_e.o \
147 ed30v_o.o \
4900fc06 148 ed30velf.o \
252b5132 149 edelta68.o \
d172d4ba 150 eelf32_dlx.o \
252b5132 151 eebmon29k.o \
0ccf812a 152 eelf32_i960.o \
165589e4 153 eelf32_i860.o \
4900fc06 154 eelf32_sparc.o \
252b5132
RH
155 eelf32b4300.o \
156 eelf32bmip.o \
dc831978 157 eelf32bmipn32.o \
3548145d 158 eelf32btsmip.o \
7808a785 159 eelf32btsmipn32.o \
fdec3cfc 160 eelf32ltsmip.o \
7808a785 161 eelf32ltsmipn32.o \
4900fc06
AM
162 eelf32ebmip.o \
163 eelf32elmip.o \
164 eelf32fr30.o \
7d553a40 165 eelf32frv.o \
5b93d8bb 166 eelf32i370.o \
cf88bb9f 167 eelf32ip2k.o \
252b5132
RH
168 eelf32l4300.o \
169 eelf32lmip.o \
170 eelf32lppc.o \
bdbe5705 171 eelf32lppcsim.o \
4900fc06 172 eelf32mcore.o \
c7e40348 173 eelf32openrisc.o \
252b5132 174 eelf32ppc.o \
28912fd9 175 eelf32ppc_fbsd.o \
ec2f040d 176 eelf32ppclinux.o \
4900fc06 177 eelf32ppcsim.o \
94349e12 178 eelf32ppcwindiss.o \
ab68f3e0 179 eelf32vax.o \
93fbbb04 180 eelf32xstormy16.o \
252b5132
RH
181 eelf_i386.o \
182 eelf_i386_be.o \
dca7760f 183 eelf_i386_chaos.o \
28912fd9 184 eelf_i386_fbsd.o \
506eee22 185 eelf_i386_ldso.o \
a85d7ed0 186 eelf_s390.o \
252b5132
RH
187 egld960.o \
188 egld960coff.o \
252b5132
RH
189 eh8300.o \
190 eh8300h.o \
191 eh8300s.o \
8af6dd41
JR
192 eh8300elf.o \
193 eh8300helf.o \
194 eh8300self.o \
252b5132
RH
195 eh8500.o \
196 eh8500b.o \
197 eh8500c.o \
198 eh8500m.o \
199 eh8500s.o \
200 ehp300bsd.o \
201 ehp3hpux.o \
4900fc06
AM
202 ehppaelf.o \
203 ehppalinux.o \
006336b8 204 ehppanbsd.o \
c29ef4b5 205 ehppaobsd.o \
252b5132
RH
206 ei386aout.o \
207 ei386beos.o \
208 ei386bsd.o \
209 ei386coff.o \
210 ei386go32.o \
211 ei386linux.o \
212 ei386lynx.o \
213 ei386mach.o \
214 ei386moss.o \
215 ei386msdos.o \
216 ei386nbsd.o \
a0cb91c6 217 ei386nto.o \
252b5132
RH
218 ei386nw.o \
219 ei386pe.o \
a7e78dae 220 ei386pe_posix.o \
252b5132 221 elnk960.o \
60bcf0fa
NC
222 em68hc11elf.o \
223 em68hc11elfb.o \
224 em68hc12elf.o \
225 em68hc12elfb.o \
252b5132
RH
226 em68k4knbsd.o \
227 em68kaout.o \
228 em68kaux.o \
229 em68kcoff.o \
230 em68kelf.o \
0b69cd08 231 em68kelfnbsd.o \
252b5132
RH
232 em68klinux.o \
233 em68klynx.o \
234 em68knbsd.o \
235 em68kpsos.o \
236 em88kbcs.o \
71acc4e8 237 emcorepe.o \
252b5132
RH
238 emipsbig.o \
239 emipsbsd.o \
240 emipsidt.o \
241 emipsidtl.o \
242 emipslit.o \
243 emipslnews.o \
344a211f 244 emipspe.o \
252b5132
RH
245 enews.o \
246 ens32knbsd.o \
3b16e843
NC
247 eor32.o \
248 eor32elf.o \
252b5132 249 epc532macha.o \
e135f41b 250 epdp11.o \
4900fc06
AM
251 epjelf.o \
252 epjlelf.o \
252b5132
RH
253 eppcmacos.o \
254 eppcnw.o \
255 eppcpe.o \
256 eriscix.o \
257 esa29200.o \
258 esh.o \
2d92cb7d
AO
259 eshelf32.o \
260 eshlelf32.o \
5b0e55b6
JT
261 eshelf32_nbsd.o \
262 eshlelf32_nbsd.o \
252b5132 263 eshelf.o \
4a428502
AO
264 eshelf_linux.o \
265 eshlelf_linux.o \
8d05742f
JT
266 eshelf_nbsd.o \
267 eshlelf_nbsd.o \
252b5132 268 eshl.o \
4900fc06 269 eshlelf.o \
344a211f 270 eshpe.o \
252b5132
RH
271 esparcaout.o \
272 esparclinux.o \
273 esparclynx.o \
274 esparcnbsd.o \
275 est2000.o \
276 esun3.o \
277 esun4.o \
278 etic30aout.o \
279 etic30coff.o \
74459f0e 280 etic54xcoff.o \
252b5132
RH
281 etic80coff.o \
282 evanilla.o \
283 evax.o \
ab68f3e0 284 evaxnbsd.o \
252b5132
RH
285 evsta.o \
286 ew65.o \
287 ez8001.o \
288 ez8002.o
289
290ALL_64_EMULATIONS = \
41c49998 291 eelf64_aix.o \
800eeca4 292 eelf64_ia64.o \
28912fd9 293 eelf64_ia64_fbsd.o \
2d92cb7d
AO
294 eshelf64.o \
295 eshlelf64.o \
5b0e55b6
JT
296 eshelf64_nbsd.o \
297 eshlelf64_nbsd.o \
2be3aa03 298 eelf_x86_64.o \
28912fd9 299 eelf_x86_64_fbsd.o \
a85d7ed0 300 eelf64_s390.o \
252b5132 301 eelf64_sparc.o \
28912fd9 302 eelf64_sparc_fbsd.o \
22c675a7 303 eelf64alpha.o \
28912fd9 304 eelf64alpha_fbsd.o \
fc18a3f3 305 eelf64alpha_nbsd.o \
4900fc06 306 eelf64bmip.o \
fdec3cfc
L
307 eelf64btsmip.o \
308 eelf64ltsmip.o \
3b1b01cf 309 eelf64hppa.o \
3c3bdf30
NC
310 eelf64mmix.o \
311 emmo.o \
a7d792bb
L
312 eelf64ppc.o \
313 eelf64lppc.o \
9f22353f 314 ehppa64linux.o
252b5132
RH
315
316ALL_EMUL_EXTRA_OFILES = \
4900fc06
AM
317 deffilep.o \
318 pe-dll.o
252b5132
RH
319
320CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
321 ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
322 mri.c ldcref.c pe-dll.c
323
324HFILES = ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
325 ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
1069dd8d 326 ldwrite.h mri.h deffile.h pe-dll.h
252b5132
RH
327
328GENERATED_CFILES = ldgram.c ldlex.c deffilep.c
329GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h
330
331OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
332 ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \
333 ldfile.o ldcref.o ${EMULATION_OFILES} ${EMUL_EXTRA_OFILES}
334
335STAGESTUFF = *.o ldscripts/* e*.c
336
337# At the moment this is just a list of those emulation template files
338# that contain internationalised strings.
339EMULATION_FILES = emultempl/pe.em emultempl/armcoff.em
340
341POTFILES = $(CFILES) $(HFILES) $(EMULATION_FILES)
342
343po/POTFILES.in: @MAINT@ Makefile
344 for file in $(POTFILES); do echo $$file; done | sort > tmp \
345 && mv tmp $(srcdir)/po/POTFILES.in
346
347ldmain.o: ldmain.c config.status
348 $(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' -DTARGET='"@target@"' $(srcdir)/ldmain.c
349
350ldemul-list.h: Makefile
351 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
352 for f in `echo " " ${EMULATION_OFILES} "" \
353 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
354 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
355 done;\
356 echo "";\
357 echo "#define EMULATION_LIST \\";\
358 for f in `echo " " ${EMULATION_OFILES} "" \
359 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
360 echo " &ld_$${f}_emulation, \\"; \
361 done;\
362 echo " 0") >ldemul-tmp.h
363 mv ldemul-tmp.h ldemul-list.h
364
597e2591
ILT
365stringify.sed: ${srcdir}/emultempl/$(STRINGIFY)
366 cp ${srcdir}/emultempl/$(STRINGIFY) stringify.sed
367
252b5132
RH
368# These all start with e so 'make clean' can find them.
369
3bf2994f 370GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} "${exec_prefix}" @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@"
597e2591 371GEN_DEPENDS = $(srcdir)/genscripts.sh stringify.sed
252b5132
RH
372@TDIRS@
373
374ea29k.c: $(srcdir)/emulparams/a29k.sh \
375 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
376 ${GENSCRIPTS} a29k "$(tdir_a29k)"
eb1e0e80
NC
377eaix5ppc.c: $(srcdir)/emulparams/aix5ppc.sh \
378 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
379 ${GENSCRIPTS} aix5ppc "$(tdir_aixppc)"
380eaix5rs6.c: $(srcdir)/emulparams/aix5rs6.sh \
381 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
382 ${GENSCRIPTS} aix5rs6 "$(tdir_aixrs6)"
252b5132
RH
383eaixppc.c: $(srcdir)/emulparams/aixppc.sh \
384 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
385 ${GENSCRIPTS} aixppc "$(tdir_aixppc)"
386eaixrs6.c: $(srcdir)/emulparams/aixrs6.sh \
387 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
388 ${GENSCRIPTS} aixrs6 "$(tdir_aixrs6)"
389ealpha.c: $(srcdir)/emulparams/alpha.sh \
390 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
391 ${GENSCRIPTS} alpha "$(tdir_alpha)"
392earcelf.c: $(srcdir)/emulparams/arcelf.sh \
393 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
394 ${GENSCRIPTS} arcelf "$(tdir_arcelf)"
395earmelf.c: $(srcdir)/emulparams/armelf.sh \
5f992e62
AM
396 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
397 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132
RH
398 ${GENSCRIPTS} armelf "$(tdir_armelf)"
399earmelf_oabi.c: $(srcdir)/emulparams/armelf_oabi.sh \
400 $(srcdir)/emultempl/armelf_oabi.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
401 ${GENSCRIPTS} armelf_oabi "$(tdir_armelf)"
28912fd9
DB
402earmelf_fbsd.c: $(srcdir)/emulparams/armelf_fbsd.sh \
403 $(srcdir)/emulparams/armelf.sh \
404 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
405 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
406 ${GENSCRIPTS} armelf_fbsd "$(tdir_armelf_fbsd)"
252b5132 407earmelf_linux.c: $(srcdir)/emulparams/armelf_linux.sh \
5f992e62
AM
408 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
409 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132 410 ${GENSCRIPTS} armelf_linux "$(tdir_armelf_linux)"
3695c299
AM
411earmelf_nbsd.c: $(srcdir)/emulparams/armelf_nbsd.sh \
412 $(srcdir)/emulparams/armelf.sh \
413 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
414 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
415 ${GENSCRIPTS} armelf_nbsd "$(tdir_armelf_nbsd)"
658f2588
JT
416earmelfb_nbsd.c: $(srcdir)/emulparams/armelfb_nbsd.sh \
417 $(srcdir)/emulparams/armelf_nbsd.sh \
418 $(srcdir)/emulparams/armelf.sh \
419 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
420 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
421 ${GENSCRIPTS} armelfb_nbsd "$(tdir_armelfb_nbsd)"
252b5132
RH
422earmaoutb.c: $(srcdir)/emulparams/armaoutb.sh \
423 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
424 ${GENSCRIPTS} armaoutb "$(tdir_armaoutb)"
425earmaoutl.c: $(srcdir)/emulparams/armaoutl.sh \
426 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
427 ${GENSCRIPTS} armaoutl "$(tdir_armaoutl)"
428earmcoff.c: $(srcdir)/emulparams/armcoff.sh \
429 $(srcdir)/emultempl/armcoff.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS}
430 ${GENSCRIPTS} armcoff "$(tdir_armcoff)"
8959586a
NC
431earmnbsd.c: $(srcdir)/emulparams/armnbsd.sh \
432 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
433 ${GENSCRIPTS} armnbsd "$(tdir_armnbsd)"
7e392df6
NC
434earmnto.c: $(srcdir)/emulparams/armnto.sh \
435 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
436 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
437 ${GENSCRIPTS} armnto "$(tdir_armnto)"
be2153ad 438earm_epoc_pe.c: $(srcdir)/emulparams/arm_epoc_pe.sh \
e6869249 439 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/epocpe.sc ${GEN_DEPENDS}
be2153ad 440 ${GENSCRIPTS} arm_epoc_pe "$(tdir_armpe)"
252b5132
RH
441earmpe.c: $(srcdir)/emulparams/armpe.sh \
442 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
443 ${GENSCRIPTS} armpe "$(tdir_armpe)"
adde6300
AM
444eavr85xx.c: $(srcdir)/emulparams/avr85xx.sh \
445 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
446 ${GEN_DEPENDS}
447 ${GENSCRIPTS} avr85xx "$(tdir_avr85xx)"
448eavr1200.c: $(srcdir)/emulparams/avr1200.sh \
449 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
450 ${GEN_DEPENDS}
451 ${GENSCRIPTS} avr1200 "$(tdir_avr85xx)"
452eavr23xx.c: $(srcdir)/emulparams/avr23xx.sh \
453 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
454 ${GEN_DEPENDS}
455 ${GENSCRIPTS} avr23xx "$(tdir_avr85xx)"
456eavr44x4.c: $(srcdir)/emulparams/avr44x4.sh \
457 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
458 ${GEN_DEPENDS}
459 ${GENSCRIPTS} avr44x4 "$(tdir_avr85xx)"
460eavr4433.c: $(srcdir)/emulparams/avr4433.sh \
461 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
462 ${GEN_DEPENDS}
463 ${GENSCRIPTS} avr4433 "$(tdir_avr85xx)"
464eavrmega603.c: $(srcdir)/emulparams/avrmega603.sh \
465 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
466 ${GEN_DEPENDS}
467 ${GENSCRIPTS} avrmega603 "$(tdir_avr85xx)"
468eavrmega103.c: $(srcdir)/emulparams/avrmega103.sh \
469 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
470 ${GEN_DEPENDS}
471 ${GENSCRIPTS} avrmega103 "$(tdir_avr85xx)"
472eavrmega161.c: $(srcdir)/emulparams/avrmega161.sh \
473 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
474 ${GEN_DEPENDS}
475 ${GENSCRIPTS} avrmega161 "$(tdir_avr85xx)"
fae1e84f
MM
476eavr1.c: $(srcdir)/emulparams/avr1.sh \
477 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
478 ${GEN_DEPENDS}
479 ${GENSCRIPTS} avr1 "$(tdir_avr85xx)"
480eavr2.c: $(srcdir)/emulparams/avr2.sh \
481 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
482 ${GEN_DEPENDS}
483 ${GENSCRIPTS} avr2 "$(tdir_avr85xx)"
484eavr3.c: $(srcdir)/emulparams/avr3.sh \
485 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
486 ${GEN_DEPENDS}
487 ${GENSCRIPTS} avr3 "$(tdir_avr85xx)"
488eavr4.c: $(srcdir)/emulparams/avr4.sh \
489 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
490 ${GEN_DEPENDS}
491 ${GENSCRIPTS} avr4 "$(tdir_avr85xx)"
492eavr5.c: $(srcdir)/emulparams/avr5.sh \
493 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
494 ${GEN_DEPENDS}
495 ${GENSCRIPTS} avr5 "$(tdir_avr85xx)"
252b5132
RH
496ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
497 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
498 ${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)"
9d06555c
HPN
499ecrisaout.c: $(srcdir)/emulparams/crisaout.sh \
500 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/crisaout.sc ${GEN_DEPENDS}
501 ${GENSCRIPTS} crisaout "$(tdir_cris)"
502ecriself.c: $(srcdir)/emulparams/criself.sh \
6caa99ab 503 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
9d06555c
HPN
504 ${GENSCRIPTS} criself "$(tdir_cris)"
505ecrislinux.c: $(srcdir)/emulparams/crislinux.sh \
506 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
507 ${GENSCRIPTS} crislinux "$(tdir_cris)"
252b5132 508ed10velf.c: $(srcdir)/emulparams/d10velf.sh \
6caa99ab 509 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfd10v.sc ${GEN_DEPENDS}
252b5132
RH
510 ${GENSCRIPTS} d10velf "$(tdir_d10v)"
511ed30velf.c: $(srcdir)/emulparams/d30velf.sh \
512 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
513 ${GENSCRIPTS} d30velf "$(tdir_d30v)"
514ed30v_o.c: $(srcdir)/emulparams/d30v_o.sh \
515 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
516 ${GENSCRIPTS} d30v_o "$(tdir_d30v)"
517ed30v_e.c: $(srcdir)/emulparams/d30v_e.sh \
518 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
519 ${GENSCRIPTS} d30v_e "$(tdir_d30v)"
520edelta68.c: $(srcdir)/emulparams/delta68.sh \
521 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
522 ${GENSCRIPTS} delta68 "$(tdir_delta68)"
d172d4ba
NC
523eelf32_dlx.c: $(srcdir)/emulparams/elf32_dlx.sh \
524 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/dlx.sc ${GEN_DEPENDS}
525 ${GENSCRIPTS} elf32_dlx "$(tdir_elf32_dlx)"
252b5132
RH
526eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
527 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
528 ${GENSCRIPTS} ebmon29k "$(tdir_ebmon29k)"
93fbbb04
GK
529eelf32xstormy16.c: $(srcdir)/emulparams/elf32xstormy16.sh \
530 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
531 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
532 ${GENSCRIPTS} elf32xstormy16 "$(tdir_xstormy16)"
ab68f3e0
JT
533eelf32vax.c: $(srcdir)/emulparams/elf32vax.sh \
534 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
535 ${GENSCRIPTS} elf32vax "$(tdir_elf32vax)"
252b5132
RH
536eelf32fr30.c: $(srcdir)/emulparams/elf32fr30.sh \
537 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
538 ${GENSCRIPTS} elf32fr30 "$(tdir_fr30)"
7d553a40
DB
539eelf32frv.c: $(srcdir)/emulparams/elf32frv.sh \
540 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
541 ${GENSCRIPTS} elf32frv "$(tdir_frv)"
71acc4e8
NC
542eelf32mcore.c: $(srcdir)/emulparams/elf32mcore.sh \
543 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
544 ${GENSCRIPTS} elf32mcore "$(tdir_mcore)"
252b5132 545em32relf.c: $(srcdir)/emulparams/m32relf.sh \
18c7a9a5 546 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132
RH
547 ${GENSCRIPTS} m32relf "$(tdir_m32r)"
548eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
549 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
550 ${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)"
165589e4
JE
551eelf32_i860.c: $(srcdir)/emulparams/elf32_i860.sh \
552 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
553 ${GENSCRIPTS} elf32_i860 "$(tdir_elf32_i860)"
0ccf812a
ILT
554eelf32_i960.c: $(srcdir)/emulparams/elf32_i960.sh \
555 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
556 ${GENSCRIPTS} elf32_i960 "$(tdir_elf32_i960)"
252b5132 557eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \
465bc359 558 $(srcdir)/emulparams/elf32bmip.sh \
252b5132
RH
559 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
560 ${GENSCRIPTS} elf32b4300 "$(tdir_elf32b4300)"
561eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
562 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
563 ${GENSCRIPTS} elf32bmip "$(tdir_elf32bmip)"
564eelf32bsmip.c: $(srcdir)/emulparams/elf32bsmip.sh \
465bc359 565 $(srcdir)/emulparams/elf32bmip.sh \
252b5132
RH
566 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
567 ${GENSCRIPTS} elf32bsmip "$(tdir_elf32bsmip)"
3548145d 568eelf32btsmip.c: $(srcdir)/emulparams/elf32btsmip.sh \
465bc359 569 $(srcdir)/emulparams/elf32bmip.sh \
3548145d
UC
570 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
571 ${GENSCRIPTS} elf32btsmip "$(tdir_elf32btsmip)"
7808a785
TS
572eelf32btsmipn32.c: $(srcdir)/emulparams/elf32btsmipn32.sh \
573 $(srcdir)/emulparams/elf32bmip.sh \
574 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
575 ${GENSCRIPTS} elf32btsmipn32 "$(tdir_elf32btsmipn32)"
fdec3cfc 576eelf32ltsmip.c: $(srcdir)/emulparams/elf32ltsmip.sh \
465bc359 577 $(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
fdec3cfc
L
578 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
579 ${GENSCRIPTS} elf32ltsmip "$(tdir_elf32ltsmip)"
7808a785
TS
580eelf32ltsmipn32.c: $(srcdir)/emulparams/elf32ltsmipn32.sh \
581 $(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
582 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
583 ${GENSCRIPTS} elf32ltsmipn32 "$(tdir_elf32ltsmipn32)"
252b5132 584eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
465bc359 585 $(srcdir)/emulparams/elf32bmip.sh \
252b5132
RH
586 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
587 ${GENSCRIPTS} elf32ebmip "$(tdir_elf32ebmip)"
588eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \
465bc359 589 $(srcdir)/emulparams/elf32lmip.sh $(srcdir)/emulparams/elf32bmip.sh \
252b5132
RH
590 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
591 ${GENSCRIPTS} elf32elmip "$(tdir_elf32elmip)"
dc831978
MM
592eelf32bmipn32.c: $(srcdir)/emulparams/elf32bmipn32.sh \
593 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
594 ${GENSCRIPTS} elf32bmipn32 "$(tdir_elf32bmipn32)"
252b5132 595eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \
465bc359 596 $(srcdir)/emulparams/elf32b4300.sh $(srcdir)/emulparams/elf32bmip.sh \
252b5132
RH
597 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
598 ${GENSCRIPTS} elf32l4300 "$(tdir_elf32l4300)"
599eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
465bc359 600 $(srcdir)/emulparams/elf32bmip.sh \
252b5132
RH
601 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
602 ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)"
603eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \
465bc359 604 $(srcdir)/emulparams/elf32ppc.sh \
bdbe5705 605 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132 606 ${GENSCRIPTS} elf32lppc "$(tdir_elf32lppc)"
bdbe5705 607eelf32lppcsim.c: $(srcdir)/emulparams/elf32lppcsim.sh \
465bc359 608 $(srcdir)/emulparams/elf32lppc.sh $(srcdir)/emulparams/elf32ppc.sh \
bdbe5705
GK
609 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
610 ${GENSCRIPTS} elf32lppcsim "$(tdir_elf32lppcsim)"
94349e12
MM
611eelf32ppcwindiss.c: $(srcdir)/emulparams/elf32ppcwindiss.sh ${GEN_DEPENDS}
612 ${GENSCRIPTS} elf32ppcwindiss "$(tdir_elf32ppcwindiss)"
252b5132 613eelf32lsmip.c: $(srcdir)/emulparams/elf32lsmip.sh \
465bc359 614 $(srcdir)/emulparams/elf32lmip.sh $(srcdir)/emulparams/elf32bmip.sh \
252b5132
RH
615 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
616 ${GENSCRIPTS} elf32lsmip "$(tdir_elf32lsmip)"
c7e40348
NC
617eelf32openrisc.c: $(srcdir)/emulparams/elf32openrisc.sh \
618 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
619 ${GENSCRIPTS} elf32openrisc "$(tdir_openrisc)"
252b5132 620eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
bdbe5705 621 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132 622 ${GENSCRIPTS} elf32ppc "$(tdir_elf32ppc)"
28912fd9
DB
623eelf32ppc_fbsd.c: $(srcdir)/emulparams/elf32ppc_fbsd.sh \
624 $(srcdir)/emulparams/elf32ppc.sh \
625 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
626 ${GENSCRIPTS} elf32ppc_fbsd "$(tdir_elf32ppc_fbsd)"
bdbe5705 627eelf32ppcsim.c: $(srcdir)/emulparams/elf32ppcsim.sh \
465bc359 628 $(srcdir)/emulparams/elf32ppc.sh \
bdbe5705
GK
629 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
630 ${GENSCRIPTS} elf32ppcsim "$(tdir_elf32ppcsim)"
ec2f040d 631eelf32ppclinux.c: $(srcdir)/emulparams/elf32ppclinux.sh \
465bc359 632 $(srcdir)/emulparams/elf32ppc.sh \
bdbe5705 633 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
ec2f040d 634 ${GENSCRIPTS} elf32ppclinux "$(tdir_elf32ppclinux)"
1f808cd5 635eelf64ppc.c: $(srcdir)/emulparams/elf64ppc.sh $(srcdir)/emultempl/ppc64elf.em \
5c67d4bb
AM
636 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
637 ${GENSCRIPTS} elf64ppc "$(tdir_elf64ppc)"
638eelf64lppc.c: $(srcdir)/emulparams/elf64lppc.sh \
1f808cd5 639 $(srcdir)/emulparams/elf64ppc.sh $(srcdir)/emultempl/ppc64elf.em \
5c67d4bb
AM
640 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
641 ${GENSCRIPTS} elf64lppc "$(tdir_elf64lppc)"
5b93d8bb
AM
642eelf32i370.c: $(srcdir)/emulparams/elf32i370.sh \
643 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfi370.sc ${GEN_DEPENDS}
644 ${GENSCRIPTS} elf32i370 "$(tdir_elf32i370)"
cf88bb9f
NC
645eelf32ip2k.c: $(srcdir)/emulparams/elf32ip2k.sh \
646 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/ip2k.sc ${GEN_DEPENDS}
647 ${GENSCRIPTS} elf32ip2k "$(tdir_ip2k)"
252b5132
RH
648eelf64alpha.c: $(srcdir)/emulparams/elf64alpha.sh \
649 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
650 ${GENSCRIPTS} elf64alpha "$(tdir_elf64alpha)"
28912fd9
DB
651eelf64alpha_fbsd.c: $(srcdir)/emulparams/elf64alpha_fbsd.sh \
652 $(srcdir)/emulparams/elf64alpha.sh \
653 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
654 ${GENSCRIPTS} elf64alpha_fbsd "$(tdir_elf64alpha_fbsd)"
fc18a3f3
RH
655eelf64alpha_nbsd.c: $(srcdir)/emulparams/elf64alpha_nbsd.sh \
656 $(srcdir)/emulparams/elf64alpha.sh \
657 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
658 ${GENSCRIPTS} elf64alpha_nbsd "$(tdir_elf64alpha_nbsd)"
730a39a0 659eelf64hppa.c: $(srcdir)/emulparams/elf64hppa.sh \
465bc359 660 $(srcdir)/emulparams/hppa64linux.sh \
730a39a0
JL
661 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
662 ${GENSCRIPTS} elf64hppa "$(tdir_elf64hppa)"
41c49998
TW
663eelf64_aix.c: $(srcdir)/emulparams/elf64_aix.sh \
664 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
665 ${GENSCRIPTS} elf64_aix "$(tdir_elf64_aix)"
800eeca4 666eelf64_ia64.c: $(srcdir)/emulparams/elf64_ia64.sh \
908d20b3
RH
667 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
668 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
800eeca4 669 ${GENSCRIPTS} elf64_ia64 "$(tdir_elf64_ia64)"
28912fd9
DB
670eelf64_ia64_fbsd.c: $(srcdir)/emulparams/elf64_ia64_fbsd.sh \
671 $(srcdir)/emulparams/elf64_ia64.sh \
672 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
673 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
674 ${GENSCRIPTS} elf64_ia64_fbsd "$(tdir_elf64_ia64_fbsd)"
a85d7ed0
NC
675eelf64_s390.c: $(srcdir)/emulparams/elf64_s390.sh \
676 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
677 ${GENSCRIPTS} elf64_s390 "$(tdir_elf64_s390)"
252b5132
RH
678eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
679 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
680 ${GENSCRIPTS} elf64_sparc "$(tdir_elf64_sparc)"
28912fd9
DB
681eelf64_sparc_fbsd.c: $(srcdir)/emulparams/elf64_sparc_fbsd.sh \
682 $(srcdir)/emulparams/elf64_sparc.sh \
683 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
684 ${GENSCRIPTS} elf64_sparc_fbsd "$(tdir_elf64_sparc_fbsd)"
22c675a7 685eelf64bmip.c: $(srcdir)/emulparams/elf64bmip.sh \
465bc359 686 $(srcdir)/emulparams/elf32bmipn32.sh \
22c675a7
MM
687 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
688 ${GENSCRIPTS} elf64bmip "$(tdir_elf64bmip)"
3c3bdf30
NC
689eelf64mmix.c: $(srcdir)/emulparams/elf64mmix.sh \
690 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/mmix-elfnmmo.em \
691 $(srcdir)/emultempl/mmixelf.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
692 ${GENSCRIPTS} elf64mmix "$(tdir_elf64mmix)"
693emmo.c: $(srcdir)/emulparams/mmo.sh $(srcdir)/emultempl/mmix-elfnmmo.em \
694 $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/mmo.em \
695 $(srcdir)/scripttempl/mmo.sc ${GEN_DEPENDS}
696 ${GENSCRIPTS} mmo "$(tdir_mmo)"
fdec3cfc 697eelf64btsmip.c: $(srcdir)/emulparams/elf64btsmip.sh \
465bc359 698 $(srcdir)/emulparams/elf32bmipn32.sh \
fdec3cfc
L
699 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
700 ${GENSCRIPTS} elf64btsmip "$(tdir_elf64btsmip)"
701eelf64ltsmip.c: $(srcdir)/emulparams/elf64ltsmip.sh \
465bc359 702 $(srcdir)/emulparams/elf64btsmip.sh $(srcdir)/emulparams/elf32bmipn32.sh \
fdec3cfc
L
703 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
704 ${GENSCRIPTS} elf64ltsmip "$(tdir_elf64ltsmip)"
252b5132
RH
705eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
706 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
707 ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
2be3aa03
NC
708eelf_x86_64.c: $(srcdir)/emulparams/elf_x86_64.sh \
709 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
710 ${GENSCRIPTS} elf_x86_64 "$(tdir_elf_x86_64)"
28912fd9
DB
711eelf_x86_64_fbsd.c: $(srcdir)/emulparams/elf_x86_64_fbsd.sh \
712 $(srcdir)/emulparams/elf_x86_64.sh \
713 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
714 ${GENSCRIPTS} elf_x86_64_fbsd "$(tdir_elf_x86_64_fbsd)"
252b5132
RH
715eelf_i386_be.c: $(srcdir)/emulparams/elf_i386_be.sh \
716 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
717 ${GENSCRIPTS} elf_i386_be "$(tdir_elf_i386_be)"
dca7760f 718eelf_i386_chaos.c: $(srcdir)/emulparams/elf_i386_chaos.sh \
b4477fa8 719 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf_chaos.sc ${GEN_DEPENDS}
dca7760f 720 ${GENSCRIPTS} elf_i386_chaos "$(tdir_elf_i386_chaos)"
28912fd9
DB
721eelf_i386_fbsd.c: $(srcdir)/emulparams/elf_i386_fbsd.sh \
722 $(srcdir)/emulparams/elf_i386.sh \
723 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
724 ${GENSCRIPTS} elf_i386_fbsd "$(tdir_elf_i386_fbsd)"
506eee22
NC
725eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
726 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
727 ${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)"
a85d7ed0
NC
728eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \
729 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
730 ${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
252b5132
RH
731egld960.c: $(srcdir)/emulparams/gld960.sh \
732 $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
733 ${GENSCRIPTS} gld960 "$(tdir_gld960)"
734egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
735 $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
736 ${GENSCRIPTS} gld960coff "$(tdir_gld960coff)"
252b5132
RH
737eh8300.c: $(srcdir)/emulparams/h8300.sh \
738 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
739 ${GENSCRIPTS} h8300 "$(tdir_h8300)"
740eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
741 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
742 ${GENSCRIPTS} h8300h "$(tdir_h8300h)"
743eh8300s.c: $(srcdir)/emulparams/h8300s.sh \
744 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300s.sc ${GEN_DEPENDS}
745 ${GENSCRIPTS} h8300s "$(tdir_h8300s)"
8af6dd41
JR
746eh8300elf.c: $(srcdir)/emulparams/h8300elf.sh \
747 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
748 ${GENSCRIPTS} h8300elf "$(tdir_h8300elf)"
749eh8300helf.c: $(srcdir)/emulparams/h8300helf.sh \
465bc359 750 $(srcdir)/emulparams/h8300elf.sh \
8af6dd41
JR
751 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
752 ${GENSCRIPTS} h8300helf "$(tdir_h8300helf)"
753eh8300self.c: $(srcdir)/emulparams/h8300self.sh \
465bc359 754 $(srcdir)/emulparams/h8300elf.sh \
8af6dd41
JR
755 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
756 ${GENSCRIPTS} h8300self "$(tdir_h8300self)"
252b5132
RH
757eh8500.c: $(srcdir)/emulparams/h8500.sh \
758 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
759 ${GENSCRIPTS} h8500 "$(tdir_h8500)"
760eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
761 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
762 ${GENSCRIPTS} h8500b "$(tdir_h8500b)"
763eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
764 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
765 ${GENSCRIPTS} h8500c "$(tdir_h8500c)"
766eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
767 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
768 ${GENSCRIPTS} h8500m "$(tdir_h8500m)"
769eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
770 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
771 ${GENSCRIPTS} h8500s "$(tdir_h8500s)"
772ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
773 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
774 ${GENSCRIPTS} hp300bsd "$(tdir_hp300bsd)"
775ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
776 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
777 ${GENSCRIPTS} hp3hpux "$(tdir_hp3hpux)"
730a39a0 778ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
5f992e62
AM
779 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
780 $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
730a39a0 781 ${GENSCRIPTS} hppaelf "$(tdir_hppaelf)"
4900fc06 782ehppalinux.c: $(srcdir)/emulparams/hppalinux.sh \
5f992e62
AM
783 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
784 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
4900fc06 785 ${GENSCRIPTS} hppalinux "$(tdir_hppalinux)"
006336b8
JT
786ehppanbsd.c: $(srcdir)/emulparams/hppanbsd.sh \
787 $(srcdir)/emulparams/hppaelf.sh \
788 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
789 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
790 ${GENSCRIPTS} hppanbsd "$(tdir_hppanbsd)"
c29ef4b5
AM
791ehppaobsd.c: $(srcdir)/emulparams/hppaobsd.sh \
792 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
793 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
794 ${GENSCRIPTS} hppaobsd "$(tdir_hppaobsd)"
9f22353f
AM
795ehppa64linux.c: $(srcdir)/emulparams/hppa64linux.sh \
796 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
797 ${GENSCRIPTS} hppa64linux "$(tdir_hppa64linux)"
252b5132
RH
798ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
799 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
800 ${GENSCRIPTS} i386aout "$(tdir_i386aout)"
801ei386beos.c: $(srcdir)/emulparams/i386beos.sh \
802 $(srcdir)/emultempl/beos.em $(srcdir)/scripttempl/i386beos.sc ${GEN_DEPENDS}
803 ${GENSCRIPTS} i386beos "$(tdir_i386beos)"
804ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
805 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
806 ${GENSCRIPTS} i386bsd "$(tdir_i386bsd)"
807ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
808 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
809 ${GENSCRIPTS} i386coff "$(tdir_i386coff)"
810ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
811 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
812 ${GENSCRIPTS} i386go32 "$(tdir_i386go32)"
813ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
814 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
815 ${GENSCRIPTS} i386linux "$(tdir_i386linux)"
816ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
817 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.sc ${GEN_DEPENDS}
818 ${GENSCRIPTS} i386lynx "$(tdir_i386lynx)"
819ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
820 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
821 ${GENSCRIPTS} i386mach "$(tdir_i386mach)"
822ei386moss.c: $(srcdir)/emulparams/i386moss.sh \
6caa99ab 823 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132
RH
824 ${GENSCRIPTS} i386moss "$(tdir_i386moss)"
825ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \
826 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS}
827 ${GENSCRIPTS} i386msdos "$(tdir_i386msdos)"
828ei386nbsd.c: $(srcdir)/emulparams/i386nbsd.sh \
829 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
830 ${GENSCRIPTS} i386nbsd "$(tdir_i386nbsd)"
a0cb91c6
AM
831ei386nto.c: $(srcdir)/emulparams/i386nto.sh \
832 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
833 ${GENSCRIPTS} i386nto "$(tdir_i386nto)"
252b5132
RH
834ei386nw.c: $(srcdir)/emulparams/i386nw.sh \
835 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
836 ${GENSCRIPTS} i386nw "$(tdir_i386nw)"
837ei386pe.c: $(srcdir)/emulparams/i386pe.sh \
838 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
839 ${GENSCRIPTS} i386pe "$(tdir_i386pe)"
a7e78dae
ILT
840ei386pe_posix.c: $(srcdir)/emulparams/i386pe_posix.sh \
841 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
842 ${GENSCRIPTS} i386pe_posix "$(tdir_i386pe_posix)"
252b5132
RH
843elnk960.c: $(srcdir)/emulparams/lnk960.sh \
844 $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
845 ${GENSCRIPTS} lnk960 "$(tdir_lnk960)"
60bcf0fa
NC
846em68hc11elf.c: $(srcdir)/emulparams/m68hc11elf.sh \
847 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
848 ${GENSCRIPTS} m68hc11elf "$(tdir_m68hc11)"
849em68hc11elfb.c: $(srcdir)/emulparams/m68hc11elfb.sh \
850 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
851 ${GENSCRIPTS} m68hc11elfb "$(tdir_m68hc11b)"
852em68hc12elf.c: $(srcdir)/emulparams/m68hc12elf.sh \
853 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
854 ${GENSCRIPTS} m68hc12elf "$(tdir_m68hc12)"
855em68hc12elfb.c: $(srcdir)/emulparams/m68hc12elfb.sh \
856 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
857 ${GENSCRIPTS} m68hc12elfb "$(tdir_m68hc12b)"
252b5132
RH
858em68k4knbsd.c: $(srcdir)/emulparams/m68k4knbsd.sh \
859 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
860 ${GENSCRIPTS} m68k4knbsd "$(tdir_m68k4knbsd)"
861em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
862 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
863 ${GENSCRIPTS} m68kaout "$(tdir_m68kaout)"
864em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \
865 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS}
866 ${GENSCRIPTS} m68kaux "$(tdir_m68kaux)"
867em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
20bccb34 868 $(srcdir)/emultempl/m68kcoff.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
252b5132
RH
869 ${GENSCRIPTS} m68kcoff "$(tdir_m68kcoff)"
870em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \
0752970e
NC
871 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/m68kelf.em \
872 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132 873 ${GENSCRIPTS} m68kelf "$(tdir_m68kelf)"
0b69cd08
MG
874em68kelfnbsd.c: $(srcdir)/emulparams/m68kelfnbsd.sh \
875 $(srcdir)/emulparams/m68kelf.sh \
876 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/m68kelf.em \
877 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
878 ${GENSCRIPTS} m68kelfnbsd "$(tdir_m68kelfnbsd)"
252b5132
RH
879em68klinux.c: $(srcdir)/emulparams/m68klinux.sh \
880 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
881 ${GENSCRIPTS} m68klinux "$(tdir_m68klinux)"
882em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
883 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS}
884 ${GENSCRIPTS} m68klynx "$(tdir_m68klynx)"
885em68knbsd.c: $(srcdir)/emulparams/m68knbsd.sh \
886 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
887 ${GENSCRIPTS} m68knbsd "$(tdir_m68knbsd)"
888em68kpsos.c: $(srcdir)/emulparams/m68kpsos.sh \
889 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS}
890 ${GENSCRIPTS} m68kpsos "$(tdir_m68kpsos)"
891em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
892 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
893 ${GENSCRIPTS} m88kbcs "$(tdir_m88kbcs)"
71acc4e8
NC
894emcorepe.c: $(srcdir)/emulparams/mcorepe.sh \
895 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
896 ${GENSCRIPTS} mcorepe "$(tdir_mcorepe)"
252b5132
RH
897emipsbig.c: $(srcdir)/emulparams/mipsbig.sh \
898 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
899 ${GENSCRIPTS} mipsbig
900emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
901 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
902 ${GENSCRIPTS} mipsbsd
903emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
904 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
905 ${GENSCRIPTS} mipsidt "$(tdir_mipsidt)"
906emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
907 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
908 ${GENSCRIPTS} mipsidtl "$(tdir_mipsidtl)"
909emipslit.c: $(srcdir)/emulparams/mipslit.sh \
910 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
911 ${GENSCRIPTS} mipslit "$(tdir_mipslit)"
912emipslnews.c: $(srcdir)/emulparams/mipslnews.sh \
913 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
914 ${GENSCRIPTS} mipslnews
344a211f
NC
915emipspe.c: $(srcdir)/emulparams/mipspe.sh \
916 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
917 ${GENSCRIPTS} mipspe "$(tdir_mips)"
252b5132 918emn10300.c: $(srcdir)/emulparams/mn10300.sh \
465bc359 919 $(srcdir)/emulparams/mn10200.sh \
252b5132
RH
920 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
921 ${GENSCRIPTS} mn10300 "$(tdir_mn10300)"
922emn10200.c: $(srcdir)/emulparams/mn10200.sh \
923 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
924 ${GENSCRIPTS} mn10200 "$(tdir_mn10200)"
925enews.c: $(srcdir)/emulparams/news.sh \
926 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
927 ${GENSCRIPTS} news "$(tdir_news)"
928ens32knbsd.c: $(srcdir)/emulparams/ns32knbsd.sh \
929 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
930 ${GENSCRIPTS} ns32knbsd "$(tdir_ns32knbsd)"
3b16e843
NC
931eor32.c: $(srcdir)/emulparams/or32.sh \
932 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/or32.sc ${GEN_DEPENDS}
933 ${GENSCRIPTS} or32 "$(tdir_or32)"
934eor32elf.c: $(srcdir)/emulparams/or32elf.sh \
935 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
936 ${GENSCRIPTS} or32elf "$(tdir_or32elf)"
252b5132
RH
937epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \
938 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
939 ${GENSCRIPTS} pc532macha "$(tdir_pc532macha)"
e135f41b
NC
940epdp11.c: $(srcdir)/emulparams/pdp11.sh \
941 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
942 ${GENSCRIPTS} pdp11 "$(tdir_pdp11)"
c6c8c6dc
ILT
943epjelf.c: $(srcdir)/emulparams/pjelf.sh \
944 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
945 ${GENSCRIPTS} pjelf "$(tdir_pjelf)"
946epjlelf.c: $(srcdir)/emulparams/pjlelf.sh \
947 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
948 ${GENSCRIPTS} pjlelf "$(tdir_pjlelf)"
252b5132
RH
949eppcmacos.c: $(srcdir)/emulparams/ppcmacos.sh \
950 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
951 ${GENSCRIPTS} ppcmacos "$(tdir_ppcmacos)"
952eppcnw.c: $(srcdir)/emulparams/ppcnw.sh \
953 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
954 ${GENSCRIPTS} ppcnw "$(tdir_ppcnw)"
955eppcpe.c: $(srcdir)/emulparams/ppcpe.sh \
956 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/ppcpe.sc ${GEN_DEPENDS}
957 ${GENSCRIPTS} ppcpe "$(tdir_ppcpe)"
958eriscix.c: $(srcdir)/emulparams/riscix.sh \
959 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
960 ${GENSCRIPTS} riscix "$(tdir_riscix)"
961esa29200.c: $(srcdir)/emulparams/sa29200.sh \
962 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
963 ${GENSCRIPTS} sa29200 "$(tdir_sa29200)"
964esh.c: $(srcdir)/emulparams/sh.sh \
965 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
966 ${GENSCRIPTS} sh "$(tdir_sh)"
967eshelf.c: $(srcdir)/emulparams/shelf.sh \
968 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
969 ${GENSCRIPTS} shelf "$(tdir_shelf)"
2d92cb7d
AO
970eshelf32.c: $(srcdir)/emulparams/shelf32.sh \
971 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
972 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
973 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
974 ${GENSCRIPTS} shelf32 "$(tdir_shelf32)"
5b0e55b6
JT
975eshelf32_nbsd.c: $(srcdir)/emulparams/shelf32_nbsd.sh \
976 $(srcdir)/emulparams/shelf32.sh \
977 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
978 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
979 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
980 ${GENSCRIPTS} shelf32_nbsd "$(tdir_shelf32_nbsd)"
2d92cb7d
AO
981eshelf64.c: $(srcdir)/emulparams/shelf64.sh $(srcdir)/emulparams/shelf32.sh \
982 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
983 ${GENSCRIPTS} shelf64 "$(tdir_shelf64)"
5b0e55b6
JT
984eshelf64_nbsd.c: $(srcdir)/emulparams/shelf64_nbsd.sh \
985 $(srcdir)/emulparams/shelf32_nbsd.sh $(srcdir)/emulparams/shelf32.sh \
986 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
987 ${GENSCRIPTS} shelf64_nbsd "$(tdir_shelf64_nbsd)"
4a428502 988eshelf_linux.c: $(srcdir)/emulparams/shelf_linux.sh \
465bc359 989 $(srcdir)/emulparams/shlelf_linux.sh \
4a428502
AO
990 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
991 ${GENSCRIPTS} shelf_linux "$(tdir_shelf_linux)"
992eshlelf_linux.c: $(srcdir)/emulparams/shlelf_linux.sh \
993 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
994 ${GENSCRIPTS} shlelf_linux "$(tdir_shlelf_linux)"
8d05742f
JT
995eshelf_nbsd.c: $(srcdir)/emulparams/shelf_nbsd.sh \
996 $(srcdir)/emulparams/shelf.sh \
997 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
998 ${GENSCRIPTS} shelf_nbsd "$(tdir_shelf_nbsd)"
999eshlelf_nbsd.c: $(srcdir)/emulparams/shlelf_nbsd.sh \
1000 $(srcdir)/emulparams/shelf_nbsd.sh \
1001 $(srcdir)/emulparams/shelf.sh \
1002 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1003 ${GENSCRIPTS} shlelf_nbsd "$(tdir_shlelf_nbsd)"
252b5132 1004eshlelf.c: $(srcdir)/emulparams/shlelf.sh \
465bc359 1005 $(srcdir)/emulparams/shelf.sh \
252b5132
RH
1006 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1007 ${GENSCRIPTS} shlelf "$(tdir_shlelf)"
2d92cb7d
AO
1008eshlelf32.c: $(srcdir)/emulparams/shlelf32.sh \
1009 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h $(srcdir)/emulparams/shelf32.sh \
1010 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
1011 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1012 ${GENSCRIPTS} shlelf32 "$(tdir_shlelf32)"
5b0e55b6
JT
1013eshlelf32_nbsd.c: $(srcdir)/emulparams/shlelf32_nbsd.sh \
1014 $(srcdir)/emulparams/shelf32_nbsd.sh $(srcdir)/emulparams/shelf32.sh \
1015 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
1016 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
1017 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1018 ${GENSCRIPTS} shlelf32_nbsd "$(tdir_shlelf32_nbsd)"
2d92cb7d
AO
1019eshlelf64.c: $(srcdir)/emulparams/shlelf64.sh \
1020 $(srcdir)/emulparams/shelf64.sh $(srcdir)/emulparams/shelf32.sh \
1021 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1022 ${GENSCRIPTS} shlelf64 "$(tdir_shlelf64)"
5b0e55b6
JT
1023eshlelf64_nbsd.c: $(srcdir)/emulparams/shlelf64_nbsd.sh \
1024 $(srcdir)/emulparams/shelf64_nbsd.sh \
1025 $(srcdir)/emulparams/shelf32_nbsd.sh $(srcdir)/emulparams/shelf32.sh \
1026 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1027 ${GENSCRIPTS} shlelf64_nbsd "$(tdir_shlelf64_nbsd)"
252b5132 1028eshl.c: $(srcdir)/emulparams/shl.sh \
465bc359 1029 $(srcdir)/emulparams/sh.sh \
252b5132
RH
1030 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
1031 ${GENSCRIPTS} shl "$(tdir_shl)"
344a211f
NC
1032eshpe.c: $(srcdir)/emulparams/shpe.sh \
1033 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1034 ${GENSCRIPTS} shpe "$(tdir_shl)"
252b5132
RH
1035esparcaout.c: $(srcdir)/emulparams/sparcaout.sh \
1036 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1037 ${GENSCRIPTS} sparcaout "$(tdir_sparcaout)"
1038esparclinux.c: $(srcdir)/emulparams/sparclinux.sh \
1039 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1040 ${GENSCRIPTS} sparclinux "$(tdir_sparclinux)"
1041esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
1042 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS}
1043 ${GENSCRIPTS} sparclynx "$(tdir_sparclynx)"
1044esparcnbsd.c: $(srcdir)/emulparams/sparcnbsd.sh \
1045 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1046 ${GENSCRIPTS} sparcnbsd "$(tdir_sparcnbsd)"
1047est2000.c: $(srcdir)/emulparams/st2000.sh \
1048 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
1049 ${GENSCRIPTS} st2000 "$(tdir_st2000)"
1050esun3.c: $(srcdir)/emulparams/sun3.sh \
1051 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1052 ${GENSCRIPTS} sun3 "$(tdir_sun3)"
1053esun4.c: $(srcdir)/emulparams/sun4.sh \
1054 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1055 ${GENSCRIPTS} sun4 "$(tdir_sun4)"
1056etic30aout.c: $(srcdir)/emulparams/tic30aout.sh \
1057 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30aout.sc ${GEN_DEPENDS}
1058 ${GENSCRIPTS} tic30aout "$(tdir_tic30aout)"
1059etic30coff.c: $(srcdir)/emulparams/tic30coff.sh \
1060 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30coff.sc ${GEN_DEPENDS}
1061 ${GENSCRIPTS} tic30coff "$(tdir_tic30coff)"
74459f0e
TW
1062etic54xcoff.c: $(srcdir)/emulparams/tic54xcoff.sh \
1063 $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic54xcoff.sc ${GEN_DEPENDS}
1064 ${GENSCRIPTS} tic54xcoff "$(tdir_tic54xcoff)"
252b5132
RH
1065etic80coff.c: $(srcdir)/emulparams/tic80coff.sh \
1066 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic80coff.sc ${GEN_DEPENDS}
1067 ${GENSCRIPTS} tic80coff "$(tdir_tic80coff)"
1068evanilla.c: $(srcdir)/emulparams/vanilla.sh \
1069 $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
1070 ${GENSCRIPTS} vanilla "$(tdir_vanilla)"
1071evax.c: $(srcdir)/emulparams/vax.sh \
1072 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1073 ${GENSCRIPTS} vax "$(tdir_vax)"
ab68f3e0
JT
1074evaxnbsd.c: $(srcdir)/emulparams/vaxnbsd.sh \
1075 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1076 ${GENSCRIPTS} vaxnbsd "$(tdir_vaxnbsd)"
252b5132
RH
1077evsta.c: $(srcdir)/emulparams/vsta.sh \
1078 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1079 ${GENSCRIPTS} vsta "$(tdir_vsta)"
1080ev850.c: $(srcdir)/emulparams/v850.sh \
1081 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/v850.sc ${GEN_DEPENDS}
1082 ${GENSCRIPTS} v850 "$(tdir_v850)"
1083ew65.c: $(srcdir)/emulparams/w65.sh \
1084 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS}
1085 ${GENSCRIPTS} w65 "$(tdir_w65)"
1086ez8001.c: $(srcdir)/emulparams/z8001.sh \
1087 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
1088 ${GENSCRIPTS} z8001 "$(tdir_z8001)"
1089ez8002.c: $(srcdir)/emulparams/z8002.sh \
1090 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
1091 ${GENSCRIPTS} z8002 "$(tdir_z8002)"
1092
67798033
L
1093# We need this for automake to use YLWRAP.
1094EXTRA_ld_new_SOURCES = deffilep.y
1095
252b5132
RH
1096ld_new_SOURCES = ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c \
1097 ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c
1098ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLDEPS)
1099ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
1100
1101# The generated emulation files mostly have the same dependencies.
1102$(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
1103 ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \
1104 ldctor.h ldexp.h ldlang.h ldgram.h
1105
1106# This is the real libbfd.a created by libtool.
1107TESTBFDLIB = @TESTBFDLIB@
1108
1109check-DEJAGNU: site.exp
1110 srcroot=`cd $(srcdir) && pwd`; export srcroot; \
1111 r=`pwd`; export r; \
9282ff41 1112 LC_COLLATE=; LC_ALL=; LANG=; export LC_COLLATE LC_ALL LANG; \
252b5132
RH
1113 EXPECT=$(EXPECT); export EXPECT; \
1114 if [ -f $(top_builddir)/../expect/expect ]; then \
1115 TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
1116 export TCL_LIBRARY; \
1117 fi; \
1118 runtest=$(RUNTEST); \
1119 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
1120 $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \
1121 CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
1122 CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \
1123 CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \
1124 OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" \
af28fce3 1125 LIBIBERTY="$(LIBIBERTY) $(INTLLIBS)" LIBS="$(LIBS)" \
252b5132
RH
1126 $(RUNTESTFLAGS); \
1127 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
1128 fi
1129
1130# Rules for testing by relinking ld itself.
1131# A similar test is in the testsuite. This target is for ease of use
1132# when porting ld.
1133
1134ld-partial.o: ld-new$(EXEEXT)
1135 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
1136ld1$(EXEEXT): ld-partial.o
af28fce3 1137 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1$(EXEEXT) $(HOSTING_CRT0) ld-partial.o $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
252b5132
RH
1138
1139ld1-full$(EXEEXT): ld-new
af28fce3 1140 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1-full$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
252b5132
RH
1141
1142ld2$(EXEEXT): ld1$(EXEEXT)
af28fce3 1143 ./ld1$(EXEEXT) $(HOSTING_EMU) -o ld2$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
252b5132
RH
1144
1145ld3$(EXEEXT): ld2$(EXEEXT)
af28fce3 1146 ./ld2$(EXEEXT) $(HOSTING_EMU) -o ld3$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
252b5132
RH
1147
1148bootstrap: ld3$(EXEEXT)
1149 cmp ld2$(EXEEXT) ld3$(EXEEXT)
1150
1151.PHONY: bootstrap
1152
1153# A test program for C++ constructors and destructors.
1154# This test is now in the testsuite.
1155#
1156#cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
1157# ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
1158# cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS)
1159#
1160#cdtest.out: cdtest
1161# ./cdtest > cdtest.tmp
1162# mv cdtest.tmp cdtest.out
1163#
1164#cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
1165# ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
1166# cdtest-bar.o cdtest-foo.o
1167#
1168#cdtest-ur: cdtest-ur.o
1169# ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
1170# $(HOSTING_LIBS)
1171#
1172#cdtest-ur.out: cdtest-ur
1173# ./cdtest-ur > cdtest-ur.tmp
1174# mv cdtest-ur.tmp cdtest-ur.out
1175#
1176#check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
1177# diff $(srcdir)/cdtest.exp cdtest.out
1178# diff $(srcdir)/cdtest.exp cdtest-ur.out
1179#
1180#.PHONY: check-cdtest
1181
1182# END OF CHECK TARGETS
1183
1184# DOCUMENTATION TARGETS
1185# Manual configuration file; not usually attached to normal configuration,
1186# because almost all configs use "gen" version of manual.
1187# Set DOCVER above to change.
1188configdoc.texi: ${DOCVER}-doc.texi
1189 ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
1190 || ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
1191 || cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
1192
1193ldver.texi: Makefile
1194 rm -f $@
1195 echo '@set VERSION $(VERSION)' > $@
1196
1197ld.info: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
1198 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
1199 $(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc $(srcdir)/ld.texinfo
1200
1201ld.dvi: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
1202 TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
02649152 1203 MAKEINFO="$(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc" $(TEXI2DVI) -I $(BFDDIR)/doc $(srcdir)/ld.texinfo
252b5132 1204
0285c67d
NC
1205# Build the man page from the texinfo file
1206# The sed command removes the no-adjust Nroff command so that
1207# the man output looks standard.
c45021f2
NC
1208ld.1: $(srcdir)/ld.texinfo
1209 touch $@
0285c67d
NC
1210 -$(TEXI2POD) $(MANCONF) < $(srcdir)/ld.texinfo > ld.pod
1211 -($(POD2MAN) ld.pod | \
c45021f2
NC
1212 sed -e '/^.if n .na/d' > $@.T$$$$ && \
1213 mv -f $@.T$$$$ $@) || \
1214 (rm -f $@.T$$$$ && exit 1)
1215 rm -f ld.pod
0285c67d 1216
252b5132
RH
1217MAINTAINERCLEANFILES = ldver.texi
1218
1219# We want to reconfigure if configure.host or configure.tgt changes.
465bc359 1220CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host $(srcdir)/configure.tgt
252b5132
RH
1221
1222MOSTLYCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) \
1223 ldemul-list.h crtbegin.o crtend.o ld.log ld.sum
1224mostlyclean-local:
1225 -rm -rf tmpdir
0bdaf48b 1226CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
252b5132
RH
1227
1228.PHONY: install-exec-local install-data-local
1229
1230install-exec-local: ld-new$(EXEEXT)
d3d8a9ee 1231 $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(tooldir)/bin
252b5132
RH
1232 @list='$(noinst_PROGRAMS)'; for p in $$list; do \
1233 if test -f $$p; then \
1234 echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
d3d8a9ee 1235 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
252b5132
RH
1236 else :; fi; \
1237 done
1238 n=`echo ld | sed '$(transform)'`; \
1239 if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/ld$(EXEEXT)" ]; then \
d3d8a9ee
NC
1240 rm -f $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
1241 ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
1242 || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
252b5132
RH
1243 fi
1244
1245install-data-local:
d3d8a9ee 1246 $(mkinstalldirs) $(DESTDIR)$(scriptdir)/ldscripts
252b5132 1247 for f in ldscripts/*; do \
d3d8a9ee 1248 $(INSTALL_DATA) $$f $(DESTDIR)$(scriptdir)/$$f ; \
252b5132
RH
1249 done
1250
cd8e197b
HPN
1251# We want install to imply install-info as per GNU standards, despite the
1252# cygnus option.
1253install: install-info
1254
252b5132
RH
1255# Stuff that should be included in a distribution. The diststuff
1256# target is run by the taz target in ../Makefile.in.
c45021f2
NC
1257EXTRA_DIST = ldgram.c ldgram.h ldlex.c $(man_MANS)
1258diststuff: info $(EXTRA_DIST)
252b5132 1259
dca7760f 1260DISTCLEANFILES = tdirs site.exp site.bak stringify.sed
252b5132
RH
1261distclean-local:
1262 rm -rf ldscripts
1263
d32820f2
AM
1264Makefile: $(BFDDIR)/configure.in
1265
252b5132 1266# Targets to rebuild dependencies in this Makefile.
f4162f5c
ILT
1267# Have to get rid of DEP1 here so that "$?" later includes all of $(CFILES).
1268DEP: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
1269 rm -f DEP1
41b49281 1270 $(MAKE) MKDEP="$(MKDEP)" DEP1
0bdaf48b
AM
1271 sed -f dep.sed < DEP1 > DEPA
1272 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA
1273 if grep ' /' DEPA > /dev/null 2> /dev/null; then \
1581f8c9
AM
1274 echo 'make DEP failed!'; exit 1; \
1275 else \
0bdaf48b 1276 mv -f DEPA $@; \
1581f8c9 1277 fi
252b5132 1278
f4162f5c 1279DEP1: $(CFILES) $(GENERATED_CFILES)
f4162f5c 1280 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
41b49281
AM
1281 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
1282 $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
1283 mv -f DEP2 $@
252b5132
RH
1284
1285dep.sed: dep-in.sed config.status
1286 sed <$(srcdir)/dep-in.sed >dep.sed \
1287 -e 's!@INCDIR@!$(INCDIR)!' \
61bef6f1
AM
1288 -e 's!@BFDDIR@!$(BFDDIR)!' \
1289 -e 's!@SRCDIR@!$(srcdir)!' \
1290 -e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/ld$$,,`'!'
252b5132 1291
f4162f5c 1292dep: DEP
252b5132 1293 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
f4162f5c 1294 cat DEP >> tmp-Makefile
252b5132
RH
1295 $(srcdir)/../move-if-change tmp-Makefile Makefile
1296
f4162f5c 1297dep-in: DEP
252b5132 1298 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
f4162f5c 1299 cat DEP >> tmp-Makefile.in
252b5132
RH
1300 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
1301
f4162f5c 1302dep-am: DEP
252b5132 1303 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
f4162f5c 1304 cat DEP >> tmp-Makefile.am
252b5132
RH
1305 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
1306
1307.PHONY: dep dep-in dep-am
1308
596dafeb
AM
1309@MAINT@.PHONY: mpw
1310@MAINT@mpw: $(srcdir)/mpw-ei386go32.c $(srcdir)/mpw-elfmips.c \
1311@MAINT@ $(srcdir)/mpw-em68kcoff.c $(srcdir)/mpw-eppcmac.c \
1312@MAINT@ $(srcdir)/mpw-esh.c $(srcdir)/mpw-idtmips.c
1313@MAINT@
1314@MAINT@$(srcdir)/mpw-ei386go32.c: ei386go32.c
1315@MAINT@ $(srcdir)/../move-if-change $< $@
1316@MAINT@
1317@MAINT@$(srcdir)/mpw-elfmips.c: eelf32ebmip.c
1318@MAINT@ $(srcdir)/../move-if-change $< $@
1319@MAINT@
1320@MAINT@$(srcdir)/mpw-em68kcoff.c: em68kcoff.c
1321@MAINT@ $(srcdir)/../move-if-change $< $@
1322@MAINT@
1323@MAINT@$(srcdir)/mpw-eppcmac.c: eppcmacos.c
1324@MAINT@ $(srcdir)/../move-if-change $< $@
1325@MAINT@
1326@MAINT@$(srcdir)/mpw-esh.c: esh.c
1327@MAINT@ $(srcdir)/../move-if-change $< $@
1328@MAINT@
1329@MAINT@$(srcdir)/mpw-idtmips.c: emipsidt.c
1330@MAINT@ $(srcdir)/../move-if-change $< $@
1331
252b5132
RH
1332# What appears below is generated by a hacked mkdep using gcc -MM.
1333
1334# DO NOT DELETE THIS LINE -- mkdep uses it.
1335# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
01580992 1336ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
1337 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1338 $(INCDIR)/bfdlink.h $(INCDIR)/safe-ctype.h ld.h $(INCDIR)/bin-bugs.h \
1339 ldexp.h ldlang.h ldmisc.h ldgram.h ldmain.h ldctor.h
01580992 1340ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
1341 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1342 ld.h $(INCDIR)/bin-bugs.h ldmisc.h ldexp.h ldlang.h \
1343 ldfile.h ldemul.h ldmain.h ldemul-list.h
01580992 1344ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
1345 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1346 $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldmain.h \
1d3fdf38
AM
1347 ldmisc.h ldexp.h ldgram.h ldlang.h $(INCDIR)/libiberty.h \
1348 $(INCDIR)/safe-ctype.h
01580992 1349ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
1350 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1351 $(INCDIR)/bfdlink.h $(INCDIR)/safe-ctype.h ld.h $(INCDIR)/bin-bugs.h \
1352 ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldgram.h \
1353 ldlex.h ldemul.h $(INCDIR)/libiberty.h
01580992 1354ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
1355 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1356 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h $(INCDIR)/obstack.h \
1357 $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldmain.h \
1d3fdf38 1358 ldexp.h ldlang.h ldgram.h ldlex.h ldmisc.h ldctor.h \
d32820f2 1359 ldfile.h ldemul.h $(INCDIR)/fnmatch.h $(INCDIR)/demangle.h
01580992 1360ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
1361 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1362 $(INCDIR)/safe-ctype.h $(INCDIR)/libiberty.h $(INCDIR)/progress.h \
1363 $(INCDIR)/bfdlink.h $(INCDIR)/filenames.h ld.h $(INCDIR)/bin-bugs.h \
1d3fdf38 1364 ldmain.h ldmisc.h ldwrite.h ldexp.h ldlang.h ldgram.h \
d32820f2 1365 ldlex.h ldfile.h ldemul.h ldctor.h
01580992 1366ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
1367 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1368 $(INCDIR)/libiberty.h $(INCDIR)/demangle.h ld.h $(INCDIR)/bin-bugs.h \
1369 ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldmain.h \
1370 ldfile.h
01580992 1371ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
1372 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1373 ld.h $(INCDIR)/bin-bugs.h ldver.h ldexp.h ldlang.h \
1374 ldfile.h ldemul.h ldmain.h
01580992 1375ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
1376 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1377 $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h \
1378 ldexp.h ldlang.h ldwrite.h ldmisc.h ldgram.h ldmain.h
01580992 1379lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
1380 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1381 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h $(INCDIR)/bfdlink.h \
1382 ld.h $(INCDIR)/bin-bugs.h ldmain.h ldmisc.h ldexp.h \
1383 ldlang.h ldgram.h ldlex.h ldfile.h ldver.h ldemul.h \
1384 $(INCDIR)/demangle.h
1385mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
1386 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
01580992
L
1387 ldexp.h ldlang.h ldmisc.h mri.h ldgram.h $(INCDIR)/libiberty.h
1388ldcref.o: ldcref.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
1389 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1390 $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h \
1391 ldmain.h ldmisc.h ldexp.h ldlang.h
01580992 1392pe-dll.o: pe-dll.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
1393 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1394 $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \
1395 ld.h $(INCDIR)/bin-bugs.h ldexp.h ldlang.h ldwrite.h \
1396 ldmisc.h ldgram.h ldmain.h ldfile.h ldemul.h $(INCDIR)/coff/internal.h \
61bef6f1 1397 $(BFDDIR)/libcoff.h deffile.h pe-dll.h
01580992 1398ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
1399 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1400 $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldexp.h \
1401 ldver.h ldlang.h ldfile.h ldemul.h ldmisc.h ldmain.h \
1402 mri.h ldctor.h ldlex.h
61bef6f1
AM
1403ldlex.o: ldlex.c $(INCDIR)/ansidecl.h ../bfd/bfd.h \
1404 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
ce4f7385
AM
1405 $(INCDIR)/safe-ctype.h $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h \
1406 ldmisc.h ldexp.h ldlang.h ldgram.h ldfile.h ldlex.h \
1407 ldmain.h $(INCDIR)/libiberty.h
01580992 1408deffilep.o: deffilep.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
d32820f2
AM
1409 $(INCDIR)/safe-ctype.h ../bfd/bfd.h $(INCDIR)/symcat.h \
1410 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
1411 ldmisc.h deffile.h
252b5132 1412# IF YOU PUT ANYTHING HERE IT WILL GO AWAY