]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/Makefile.in
2004-10-27 Tomer Levi <Tomer.Levi@nsc.com>
[thirdparty/binutils-gdb.git] / ld / Makefile.in
CommitLineData
e5a52504 1# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
252b5132 2
2b282e8b 3# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
252b5132
RH
4# This Makefile.in is free software; the Free Software Foundation
5# gives unlimited permission to copy and/or distribute it,
6# with or without modifications, as long as this notice is preserved.
7
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11# PARTICULAR PURPOSE.
12
2b282e8b
NC
13
14SHELL = @SHELL@
252b5132
RH
15
16srcdir = @srcdir@
17top_srcdir = @top_srcdir@
18VPATH = @srcdir@
2b282e8b
NC
19prefix = @prefix@
20exec_prefix = @exec_prefix@
21
22bindir = @bindir@
23sbindir = @sbindir@
24libexecdir = @libexecdir@
25datadir = @datadir@
26sysconfdir = @sysconfdir@
27sharedstatedir = @sharedstatedir@
28localstatedir = @localstatedir@
29libdir = @libdir@
30infodir = @infodir@
31mandir = @mandir@
32includedir = @includedir@
33oldincludedir = /usr/include
34
35DESTDIR =
36
252b5132
RH
37pkgdatadir = $(datadir)/@PACKAGE@
38pkglibdir = $(libdir)/@PACKAGE@
39pkgincludedir = $(includedir)/@PACKAGE@
2b282e8b 40
252b5132
RH
41top_builddir = .
42
2b282e8b
NC
43ACLOCAL = @ACLOCAL@
44AUTOCONF = @AUTOCONF@
45AUTOMAKE = @AUTOMAKE@
46AUTOHEADER = @AUTOHEADER@
47
252b5132 48INSTALL = @INSTALL@
2b282e8b
NC
49INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
50INSTALL_DATA = @INSTALL_DATA@
51INSTALL_SCRIPT = @INSTALL_SCRIPT@
52transform = @program_transform_name@
53
252b5132
RH
54NORMAL_INSTALL = :
55PRE_INSTALL = :
56POST_INSTALL = :
57NORMAL_UNINSTALL = :
58PRE_UNINSTALL = :
59POST_UNINSTALL = :
2b282e8b 60build_alias = @build_alias@
252b5132 61build_triplet = @build@
2b282e8b 62host_alias = @host_alias@
252b5132 63host_triplet = @host@
2b282e8b 64target_alias = @target_alias@
252b5132 65target_triplet = @target@
2b282e8b 66AS = @AS@
252b5132
RH
67CATALOGS = @CATALOGS@
68CATOBJEXT = @CATOBJEXT@
69CC = @CC@
2b282e8b 70CC_FOR_BUILD = @CC_FOR_BUILD@
9c933e04 71CPP = @CPP@
2b282e8b 72CXXCPP = @CXXCPP@
252b5132 73DATADIRNAME = @DATADIRNAME@
2b282e8b 74DLLTOOL = @DLLTOOL@
3336653a 75EMULATION_LIBPATH = @EMULATION_LIBPATH@
da54c6eb 76EXEEXT = @EXEEXT@
2b282e8b
NC
77EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
78GCJ = @GCJ@
79GCJFLAGS = @GCJFLAGS@
252b5132
RH
80GMOFILES = @GMOFILES@
81GMSGFMT = @GMSGFMT@
9c933e04 82GNATBIND = @GNATBIND@
252b5132
RH
83GT_NO = @GT_NO@
84GT_YES = @GT_YES@
85HDEFINES = @HDEFINES@
86INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
87INSTOBJEXT = @INSTOBJEXT@
88INTLDEPS = @INTLDEPS@
89INTLOBJS = @INTLOBJS@
252b5132 90LIBTOOL = @LIBTOOL@
9c933e04 91LN = @LN@
252b5132
RH
92LN_S = @LN_S@
93MAINT = @MAINT@
da54c6eb 94MAKEINFO = @MAKEINFO@
252b5132
RH
95MKINSTALLDIRS = @MKINSTALLDIRS@
96MSGFMT = @MSGFMT@
97NATIVE_LIB_DIRS = @NATIVE_LIB_DIRS@
2b282e8b 98OBJDUMP = @OBJDUMP@
3a9d486c 99OBJEXT = @OBJEXT@
252b5132
RH
100PACKAGE = @PACKAGE@
101POFILES = @POFILES@
102POSUB = @POSUB@
103RANLIB = @RANLIB@
597e2591 104STRINGIFY = @STRINGIFY@
3a9d486c 105STRIP = @STRIP@
9c8ebd6a
DJ
106TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT@
107TARGET_SYSTEM_ROOT_DEFINE = @TARGET_SYSTEM_ROOT_DEFINE@
252b5132
RH
108USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
109USE_NLS = @USE_NLS@
252b5132 110VERSION = @VERSION@
2b282e8b
NC
111bfdincludedir = @bfdincludedir@
112bfdlibdir = @bfdlibdir@
9c933e04
AM
113build_noncanonical = @build_noncanonical@
114build_subdir = @build_subdir@
115do_compare = @do_compare@
116host_noncanonical = @host_noncanonical@
117host_subdir = @host_subdir@
252b5132 118l = @l@
9c933e04
AM
119ncn_cv_ = @ncn_cv_@
120target_noncanonical = @target_noncanonical@
121target_subdir = @target_subdir@
9c8ebd6a 122use_sysroot = @use_sysroot@
252b5132 123
2b282e8b
NC
124INTLLIBS = @INTLLIBS@
125
252b5132
RH
126AUTOMAKE_OPTIONS = cygnus dejagnu
127
128SUBDIRS = po
129
130tooldir = $(exec_prefix)/$(target_alias)
2b282e8b
NC
131
132YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
252b5132 133YFLAGS = -d
2b282e8b
NC
134LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
135
136WARN_CFLAGS = @WARN_CFLAGS@
a2d91340
AC
137AM_CFLAGS = $(WARN_CFLAGS)
138
252b5132
RH
139# We put the scripts in the directory $(scriptdir)/ldscripts.
140# We can't put the scripts in $(datadir) because the SEARCH_DIR
141# directives need to be different for native and cross linkers.
142scriptdir = $(tooldir)/lib
143
2b282e8b
NC
144EMUL = @EMUL@
145EMULATION_OFILES = @EMULATION_OFILES@
146EMUL_EXTRA_OFILES = @EMUL_EXTRA_OFILES@
147
148# Search path to override the default search path for -lfoo libraries.
149# If LIB_PATH is empty, the ones in the script (if any) are left alone.
150# (The default is usually /lib:/usr/lib:/usr/local/lib, unless building
151# a cross-linker, in which case the default is empty. See genscripts.sh.)
152# Otherwise, they are replaced with the ones given in LIB_PATH,
153# which may have the form: LIB_PATH=/lib:/usr/local/lib. This can be set
154# when the linker is configured via the --with-lib-path configure switch.
155LIB_PATH = @LIB_PATH@
156
252b5132
RH
157BASEDIR = $(srcdir)/..
158BFDDIR = $(BASEDIR)/bfd
159INCDIR = $(BASEDIR)/include
41b49281 160MKDEP = gcc -MM
252b5132
RH
161
162# What version of the manual to build
163DOCVER = gen
164
0285c67d
NC
165# Options to extract the man page from ld.texinfo
166MANCONF = -Dman
167
168TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl
169
59bc061d
NC
170POD2MAN = pod2man --center="GNU Development Tools" \
171 --release="binutils-$(VERSION)" --section=1
0285c67d 172
2b282e8b
NC
173
174#stuff for self hosting (can be overridden in config file).
175HOSTING_CRT0 = @HOSTING_CRT0@
176HOSTING_LIBS = @HOSTING_LIBS@
252b5132
RH
177HOSTING_EMU = -m $(EMUL)
178
179# Setup the testing framework, if you have one
59bc061d
NC
180EXPECT = `if [ -f $$r/../expect/expect ] ; \
181 then echo $$r/../expect/expect ; \
182 else echo expect ; fi`
252b5132
RH
183
184
59bc061d
NC
185RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; \
186 then echo $${srcroot}/../dejagnu/runtest ; \
187 else echo runtest ; fi`
252b5132
RH
188
189
190RUNTESTFLAGS =
191
59bc061d
NC
192CC_FOR_TARGET = ` \
193 if [ -f $$r/../gcc/xgcc ] ; then \
194 if [ -f $$r/../newlib/Makefile ] ; then \
195 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
196 else \
197 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
198 fi; \
199 else \
200 if [ "@host@" = "@target@" ] ; then \
201 echo $(CC); \
202 else \
203 echo gcc | sed '$(transform)'; \
204 fi; \
205 fi`
252b5132 206
da54c6eb
L
207
208CXX = gcc
59bc061d
NC
209CXX_FOR_TARGET = ` \
210 if [ -f $$r/../gcc/xgcc ] ; then \
211 if [ -f $$r/../newlib/Makefile ] ; then \
212 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
213 else \
214 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
215 fi; \
216 else \
217 if [ "@host@" = "@target@" ] ; then \
218 echo $(CXX); \
219 else \
220 echo gcc | sed '$(transform)'; \
221 fi; \
222 fi`
252b5132
RH
223
224
225noinst_PROGRAMS = ld-new
226info_TEXINFOS = ld.texinfo
227noinst_TEXINFOS = ldint.texinfo
228man_MANS = ld.1
229
230INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) -I$(top_srcdir)/../intl -I../intl $(HDEFINES) $(CFLAGS) -DLOCALEDIR="\"$(prefix)/share/locale\""
231
232BFDLIB = ../bfd/libbfd.la
233LIBIBERTY = ../libiberty/libiberty.a
234
59bc061d
NC
235ALL_EMULATIONS = \
236 ea29k.o \
237 eaixppc.o \
238 eaixrs6.o \
239 ealpha.o \
240 earcelf.o \
241 earm_epoc_pe.o \
242 earmaoutb.o \
243 earmaoutl.o \
244 earmcoff.o \
245 earmelf.o \
d2012d17 246 earmelfb.o \
59bc061d
NC
247 earmelf_fbsd.o \
248 earmelf_linux.o \
d2012d17 249 earmelfb_linux.o \
59bc061d
NC
250 earmelf_nbsd.o \
251 earmelfb_nbsd.o \
252 earmelf_oabi.o \
253 earmnto.o \
254 earmnbsd.o \
255 earmpe.o \
e5a52504 256 earmsymbian.o \
59bc061d 257 eavr2.o \
75ca919a 258 eavr1.o \
59bc061d
NC
259 eavr3.o \
260 eavr4.o \
261 eavr5.o \
9d7e2ba5 262 ecoff_i860.o \
59bc061d
NC
263 ecoff_sparc.o \
264 ecrisaout.o \
265 ecriself.o \
266 ecrislinux.o \
267 ed10velf.o \
268 ed30v_e.o \
269 ed30v_o.o \
270 ed30velf.o \
271 edelta68.o \
272 eelf32_dlx.o \
273 eebmon29k.o \
274 eelf32_i960.o \
275 eelf32_i860.o \
276 eelf32_sparc.o \
277 eelf32b4300.o \
0949843d 278 eelf32cr16c.o \
59bc061d
NC
279 eelf32bmip.o \
280 eelf32bmipn32.o \
281 eelf32btsmip.o \
1fe1f39c 282 eelf32crx.o \
59bc061d
NC
283 eelf32btsmipn32.o \
284 eelf32ltsmip.o \
285 eelf32ltsmipn32.o \
286 eelf32ebmip.o \
287 eelf32elmip.o \
288 eelf32fr30.o \
289 eelf32frv.o \
290 eelf32i370.o \
291 eelf32ip2k.o \
e09a7106
SC
292 eelf32iq2000.o \
293 eelf32iq10.o \
59bc061d
NC
294 eelf32l4300.o \
295 eelf32lmip.o \
296 eelf32lppc.o \
297 eelf32lppcnto.o \
298 eelf32lppcsim.o \
299 eelf32mcore.o \
325fab4e 300 eelf32mipswindiss.o \
59bc061d
NC
301 eelf32openrisc.o \
302 eelf32ppc.o \
303 eelf32ppc_fbsd.o \
304 eelf32ppclinux.o \
305 eelf32ppcnto.o \
306 eelf32ppcsim.o \
307 eelf32ppcwindiss.o \
308 eelf32vax.o \
309 eelf32xstormy16.o \
e0001a05 310 eelf32xtensa.o \
59bc061d
NC
311 eelf_i386.o \
312 eelf_i386_be.o \
313 eelf_i386_chaos.o \
314 eelf_i386_fbsd.o \
315 eelf_i386_ldso.o \
316 eelf_s390.o \
317 egld960.o \
318 egld960coff.o \
319 eh8300.o \
320 eh8300h.o \
321 eh8300s.o \
322 eh8300elf.o \
8d9cd6b1
NC
323 eh8300hn.o \
324 eh8300sn.o \
65982ba6 325 eh8300sx.o \
59bc061d
NC
326 eh8300helf.o \
327 eh8300self.o \
8d9cd6b1
NC
328 eh8300hnelf.o \
329 eh8300snelf.o \
65982ba6 330 eh8300sxelf.o \
f4984206
RS
331 eh8300sxn.o \
332 eh8300sxnelf.o \
59bc061d
NC
333 eh8500.o \
334 eh8500b.o \
335 eh8500c.o \
336 eh8500m.o \
337 eh8500s.o \
338 ehp300bsd.o \
339 ehp3hpux.o \
340 ehppaelf.o \
341 ehppalinux.o \
342 ehppanbsd.o \
343 ehppaobsd.o \
344 ei386aout.o \
345 ei386beos.o \
346 ei386bsd.o \
347 ei386coff.o \
348 ei386go32.o \
349 ei386linux.o \
350 ei386lynx.o \
351 ei386mach.o \
352 ei386moss.o \
353 ei386msdos.o \
354 ei386nbsd.o \
355 ei386nto.o \
356 ei386nw.o \
357 ei386pe.o \
358 ei386pe_posix.o \
359 elnk960.o \
cfa1ac0c 360 em32relf.o \
6edf0760
NC
361 em32rlelf.o \
362 em32relf_linux.o \
363 em32rlelf_linux.o \
59bc061d
NC
364 em68hc11elf.o \
365 em68hc11elfb.o \
366 em68hc12elf.o \
367 em68hc12elfb.o \
368 em68k4knbsd.o \
369 em68kaout.o \
370 em68kaux.o \
371 em68kcoff.o \
372 em68kelf.o \
373 em68kelfnbsd.o \
374 em68klinux.o \
375 em68klynx.o \
376 em68knbsd.o \
377 em68kpsos.o \
378 em88kbcs.o \
379 emcorepe.o \
380 emipsbig.o \
381 emipsbsd.o \
382 emipsidt.o \
383 emipsidtl.o \
384 emipslit.o \
385 emipslnews.o \
386 emipspe.o \
3b260895
NC
387 emsp430x110.o \
388 emsp430x112.o \
2469cfa2
NC
389 emsp430x1101.o \
390 emsp430x1111.o \
391 emsp430x1121.o \
b4275f43
NC
392 emsp430x1122.o \
393 emsp430x1132.o \
2469cfa2 394 emsp430x122.o \
2469cfa2 395 emsp430x123.o \
3b260895 396 emsp430x1222.o \
2469cfa2 397 emsp430x1232.o \
3b260895
NC
398 emsp430x133.o \
399 emsp430x135.o \
400 emsp430x1331.o \
401 emsp430x1351.o \
402 emsp430x147.o \
403 emsp430x148.o \
404 emsp430x149.o \
405 emsp430x155.o \
406 emsp430x156.o \
407 emsp430x157.o \
408 emsp430x167.o \
409 emsp430x168.o \
410 emsp430x169.o \
c05e9f04
NC
411 emsp430x1610.o \
412 emsp430x1611.o \
413 emsp430x1612.o \
2469cfa2
NC
414 emsp430x311.o \
415 emsp430x312.o \
416 emsp430x313.o \
417 emsp430x314.o \
418 emsp430x315.o \
419 emsp430x323.o \
420 emsp430x325.o \
421 emsp430x336.o \
422 emsp430x337.o \
3b260895
NC
423 emsp430x412.o \
424 emsp430x413.o \
c05e9f04
NC
425 emsp430x415.o \
426 emsp430x417.o \
3b260895
NC
427 emsp430xE423.o \
428 emsp430xE425.o \
429 emsp430xE427.o \
430 emsp430xW423.o \
431 emsp430xW425.o \
432 emsp430xW427.o \
c05e9f04
NC
433 emsp430xG437.o \
434 emsp430xG438.o \
435 emsp430xG439.o \
2469cfa2
NC
436 emsp430x435.o \
437 emsp430x436.o \
3b260895 438 emsp430x437.o \
2469cfa2
NC
439 emsp430x447.o \
440 emsp430x448.o \
441 emsp430x449.o \
59bc061d
NC
442 enews.o \
443 ens32knbsd.o \
444 eor32.o \
445 eor32elf.o \
446 epc532macha.o \
447 epdp11.o \
448 epjelf.o \
449 epjlelf.o \
450 eppcmacos.o \
451 eppcnw.o \
452 eppcpe.o \
b2d65c0b 453 eppclynx.o \
59bc061d
NC
454 eriscix.o \
455 esa29200.o \
456 esh.o \
457 eshelf32.o \
458 eshlelf32.o \
a2b3c630
SC
459 eshelf32_linux.o \
460 eshlelf32_linux.o \
59bc061d
NC
461 eshelf32_nbsd.o \
462 eshlelf32_nbsd.o \
463 eshelf.o \
464 eshelf_linux.o \
465 eshlelf_linux.o \
466 eshelf_nbsd.o \
467 eshlelf_nbsd.o \
ed71e111
NC
468 eshelf_nto.o \
469 eshlelf_nto.o \
59bc061d
NC
470 eshl.o \
471 eshlelf.o \
85fbca6a 472 eshlsymbian.o \
59bc061d
NC
473 eshpe.o \
474 esparcaout.o \
475 esparclinux.o \
476 esparclynx.o \
477 esparcnbsd.o \
478 est2000.o \
479 esun3.o \
480 esun4.o \
481 etic30aout.o \
482 etic30coff.o \
0da35f8b
SS
483 etic3xcoff.o \
484 etic3xcoff_onchip.o \
026df7c5 485 etic4xcoff.o \
59bc061d
NC
486 etic54xcoff.o \
487 etic80coff.o \
488 evanilla.o \
489 evax.o \
490 evaxnbsd.o \
491 evsta.o \
492 ew65.o \
493 ez8001.o \
005e1118 494 eelf32frvfd.o \
59bc061d
NC
495 ez8002.o
496
497
498ALL_64_EMULATIONS = \
499 eelf64_aix.o \
500 eelf64_ia64.o \
501 eelf64_ia64_fbsd.o \
502 eshelf64.o \
503 eshlelf64.o \
504 eshelf64_nbsd.o \
505 eshlelf64_nbsd.o \
506 eelf_x86_64.o \
507 eelf_x86_64_fbsd.o \
508 eelf64_s390.o \
509 eelf64_sparc.o \
510 eelf64_sparc_fbsd.o \
511 eelf64alpha.o \
512 eelf64alpha_fbsd.o \
513 eelf64alpha_nbsd.o \
514 eelf64bmip.o \
515 eelf64btsmip.o \
516 eelf64ltsmip.o \
517 eelf64hppa.o \
518 eelf64mmix.o \
519 emmo.o \
520 eelf64ppc.o \
521 eelf64lppc.o \
522 ehppa64linux.o
523
524
525ALL_EMUL_EXTRA_OFILES = \
526 deffilep.o \
527 pe-dll.o
528
529
530CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
531 ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
532 mri.c ldcref.c pe-dll.c
533
534
535HFILES = ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
536 ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
537 ldwrite.h mri.h deffile.h pe-dll.h
252b5132
RH
538
539
540GENERATED_CFILES = ldgram.c ldlex.c deffilep.c
541GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h
542
59bc061d
NC
543OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
544 ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \
545 ldfile.o ldcref.o ${EMULATION_OFILES} ${EMUL_EXTRA_OFILES}
252b5132
RH
546
547
548STAGESTUFF = *.o ldscripts/* e*.c
549
550# At the moment this is just a list of those emulation template files
551# that contain internationalised strings.
552EMULATION_FILES = emultempl/pe.em emultempl/armcoff.em
553
554POTFILES = $(CFILES) $(HFILES) $(EMULATION_FILES)
555
325fab4e 556# These all start with e so 'make clean' can find them.
2b282e8b 557
9c8ebd6a 558GENSCRIPTS = LIB_PATH='${LIB_PATH}' $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} "${exec_prefix}" @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@" @use_sysroot@
597e2591 559GEN_DEPENDS = $(srcdir)/genscripts.sh stringify.sed
252b5132 560
67798033
L
561# We need this for automake to use YLWRAP.
562EXTRA_ld_new_SOURCES = deffilep.y
563
59bc061d
NC
564ld_new_SOURCES = ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c \
565 ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c
252b5132
RH
566
567ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLDEPS)
568ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
569
2b282e8b
NC
570# This is the real libbfd.a created by libtool.
571TESTBFDLIB = @TESTBFDLIB@
572
252b5132
RH
573MAINTAINERCLEANFILES = ldver.texi
574
465bc359
AM
575# We want to reconfigure if configure.host or configure.tgt changes.
576CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host $(srcdir)/configure.tgt
577
59bc061d
NC
578MOSTLYCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) \
579 ldemul-list.h crtbegin.o crtend.o ld.log ld.sum
252b5132 580
0bdaf48b 581CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
252b5132
RH
582
583# Stuff that should be included in a distribution. The diststuff
584# target is run by the taz target in ../Makefile.in.
c45021f2 585EXTRA_DIST = ldgram.c ldgram.h ldlex.c $(man_MANS)
252b5132 586
dca7760f 587DISTCLEANFILES = tdirs site.exp site.bak stringify.sed
252b5132
RH
588ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
589mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
590CONFIG_HEADER = config.h
2b282e8b
NC
591CONFIG_CLEAN_FILES =
592noinst_PROGRAMS = ld-new$(EXEEXT)
593PROGRAMS = $(noinst_PROGRAMS)
594
595
596DEFS = @DEFS@ -I. -I$(srcdir) -I.
597CPPFLAGS = @CPPFLAGS@
598LDFLAGS = @LDFLAGS@
599LIBS = @LIBS@
600ld_new_OBJECTS = ldgram.$(OBJEXT) ldlex.$(OBJEXT) lexsup.$(OBJEXT) \
601ldlang.$(OBJEXT) mri.$(OBJEXT) ldctor.$(OBJEXT) ldmain.$(OBJEXT) \
602ldwrite.$(OBJEXT) ldexp.$(OBJEXT) ldemul.$(OBJEXT) ldver.$(OBJEXT) \
603ldmisc.$(OBJEXT) ldfile.$(OBJEXT) ldcref.$(OBJEXT)
604ld_new_LDFLAGS =
605LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
606LEXLIB = @LEXLIB@
607YLWRAP = $(top_srcdir)/../ylwrap
608CFLAGS = @CFLAGS@
609COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
610LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
da54c6eb 611CCLD = $(CC)
2b282e8b
NC
612LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
613TEXI2DVI = `if test -f $(top_srcdir)/../texinfo/util/texi2dvi; then echo $(top_srcdir)/../texinfo/util/texi2dvi; else echo texi2dvi; fi`
252b5132
RH
614TEXINFO_TEX = $(top_srcdir)/../texinfo/texinfo.tex
615INFO_DEPS = ld.info
616DVIS = ld.dvi
617TEXINFOS = ld.texinfo
2b282e8b
NC
618man1dir = $(mandir)/man1
619MANS = $(man_MANS)
252b5132
RH
620
621NROFF = nroff
2b282e8b
NC
622DIST_COMMON = README ./stamp-h.in ChangeLog Makefile.am Makefile.in \
623NEWS TODO acinclude.m4 aclocal.m4 config.in configure configure.in \
624deffilep.c ldgram.c ldlex.c
465bc359 625
252b5132 626
2b282e8b
NC
627DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
628
9c933e04 629TAR = tar
2b282e8b
NC
630GZIP_ENV = --best
631SOURCES = $(ld_new_SOURCES) $(EXTRA_ld_new_SOURCES)
632OBJECTS = $(ld_new_OBJECTS)
465bc359 633
2b282e8b 634all: all-redirect
325fab4e 635.SUFFIXES:
2b282e8b
NC
636.SUFFIXES: .S .c .dvi .info .l .lo .o .obj .ps .s .texi .texinfo .txi .y
637$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
638 cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
639
640Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
641 cd $(top_builddir) \
642 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
465bc359 643
2b282e8b
NC
644$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in acinclude.m4
645 cd $(srcdir) && $(ACLOCAL)
252b5132 646
2b282e8b 647config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
465bc359 648 $(SHELL) ./config.status --recheck
2b282e8b 649$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
252b5132
RH
650 cd $(srcdir) && $(AUTOCONF)
651
2b282e8b
NC
652config.h: stamp-h
653 @if test ! -f $@; then \
654 rm -f stamp-h; \
655 $(MAKE) stamp-h; \
656 else :; fi
657stamp-h: $(srcdir)/config.in $(top_builddir)/config.status
658 cd $(top_builddir) \
659 && CONFIG_FILES= CONFIG_HEADERS=config.h:config.in \
660 $(SHELL) ./config.status
661 @echo timestamp > stamp-h 2> /dev/null
662$(srcdir)/config.in: @MAINTAINER_MODE_TRUE@$(srcdir)/stamp-h.in
252b5132 663 @if test ! -f $@; then \
2b282e8b
NC
664 rm -f $(srcdir)/stamp-h.in; \
665 $(MAKE) $(srcdir)/stamp-h.in; \
252b5132 666 else :; fi
2b282e8b
NC
667$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
668 cd $(top_srcdir) && $(AUTOHEADER)
669 @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
da54c6eb 670
2b282e8b 671mostlyclean-hdr:
da54c6eb 672
2b282e8b 673clean-hdr:
252b5132
RH
674
675distclean-hdr:
2b282e8b
NC
676 -rm -f config.h
677
678maintainer-clean-hdr:
679
680mostlyclean-noinstPROGRAMS:
252b5132
RH
681
682clean-noinstPROGRAMS:
2b282e8b 683 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
da54c6eb 684
2b282e8b 685distclean-noinstPROGRAMS:
da54c6eb 686
2b282e8b 687maintainer-clean-noinstPROGRAMS:
da54c6eb 688
325fab4e 689.c.o:
2b282e8b 690 $(COMPILE) -c $<
325fab4e 691
2b282e8b
NC
692# FIXME: We should only use cygpath when building on Windows,
693# and only if it is available.
325fab4e 694.c.obj:
2b282e8b
NC
695 $(COMPILE) -c `cygpath -w $<`
696
697.s.o:
698 $(COMPILE) -c $<
699
700.S.o:
701 $(COMPILE) -c $<
702
703mostlyclean-compile:
704 -rm -f *.o core *.core
705 -rm -f *.$(OBJEXT)
706
707clean-compile:
708
709distclean-compile:
710 -rm -f *.tab.c
711
712maintainer-clean-compile:
da54c6eb 713
a2d91340 714.c.lo:
2b282e8b 715 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
252b5132 716
2b282e8b
NC
717.s.lo:
718 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
252b5132 719
2b282e8b
NC
720.S.lo:
721 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
da54c6eb
L
722
723mostlyclean-libtool:
724 -rm -f *.lo
725
726clean-libtool:
727 -rm -rf .libs _libs
728
729distclean-libtool:
2b282e8b
NC
730
731maintainer-clean-libtool:
732
733ld-new$(EXEEXT): $(ld_new_OBJECTS) $(ld_new_DEPENDENCIES)
734 @rm -f ld-new$(EXEEXT)
735 $(LINK) $(ld_new_LDFLAGS) $(ld_new_OBJECTS) $(ld_new_LDADD) $(LIBS)
736.l.c:
737 $(LEX) $(AM_LFLAGS) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@
738.y.c:
739 $(SHELL) $(YLWRAP) "$(YACC)" $< y.tab.c $*.c y.tab.h $*.h -- $(AM_YFLAGS) $(YFLAGS)
740deffilep.h: deffilep.c
741ldgram.h: ldgram.c
742
743
744ld.info: ld.texinfo
745ld.dvi: ld.texinfo
746
747
748DVIPS = dvips
749
750.texi.info:
751 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
752 $(MAKEINFO) -I $(srcdir) $<
753
754.texi.dvi:
755 TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
756 MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
757
758.texi:
759 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
760 $(MAKEINFO) -I $(srcdir) $<
da54c6eb 761
252b5132 762.texinfo.info:
2b282e8b
NC
763 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
764 $(MAKEINFO) -I $(srcdir) $<
765
766.texinfo:
767 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
768 $(MAKEINFO) -I $(srcdir) $<
252b5132
RH
769
770.texinfo.dvi:
2b282e8b
NC
771 TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
772 MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
773
774.txi.info:
775 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
776 $(MAKEINFO) -I $(srcdir) $<
777
778.txi.dvi:
779 TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
780 MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
781
782.txi:
783 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
784 $(MAKEINFO) -I $(srcdir) $<
252b5132 785.dvi.ps:
2b282e8b 786 $(DVIPS) $< -o $@
252b5132 787
2b282e8b
NC
788install-info-am: $(INFO_DEPS)
789 @$(NORMAL_INSTALL)
790 $(mkinstalldirs) $(DESTDIR)$(infodir)
791 @list='$(INFO_DEPS)'; \
792 for file in $$list; do \
793 if test -f $$file; then d=.; else d=$(srcdir); fi; \
794 for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
795 if test -f $$d/$$ifile; then \
796 echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
797 $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
798 else : ; fi; \
799 done; \
800 done
801 @$(POST_INSTALL)
802 @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
252b5132
RH
803 list='$(INFO_DEPS)'; \
804 for file in $$list; do \
2b282e8b
NC
805 echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\
806 install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
252b5132 807 done; \
2b282e8b
NC
808 else : ; fi
809
810uninstall-info:
811 $(PRE_UNINSTALL)
812 @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
813 ii=yes; \
814 else ii=; fi; \
815 list='$(INFO_DEPS)'; \
816 for file in $$list; do \
817 test -z "$$ii" \
818 || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
819 done
252b5132 820 @$(NORMAL_UNINSTALL)
2b282e8b 821 list='$(INFO_DEPS)'; \
252b5132 822 for file in $$list; do \
2b282e8b 823 (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
252b5132
RH
824 done
825
826dist-info: $(INFO_DEPS)
827 list='$(INFO_DEPS)'; \
828 for base in $$list; do \
829 if test -f $$base; then d=.; else d=$(srcdir); fi; \
2b282e8b
NC
830 for file in `cd $$d && eval echo $$base*`; do \
831 test -f $(distdir)/$$file \
832 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
833 || cp -p $$d/$$file $(distdir)/$$file; \
252b5132
RH
834 done; \
835 done
836
837mostlyclean-aminfo:
2b282e8b
NC
838 -rm -f ld.aux ld.cp ld.cps ld.dvi ld.fn ld.fns ld.ky ld.kys ld.ps \
839 ld.log ld.pg ld.toc ld.tp ld.tps ld.vr ld.vrs ld.op ld.tr \
840 ld.cv ld.cn
841
842clean-aminfo:
843
844distclean-aminfo:
252b5132
RH
845
846maintainer-clean-aminfo:
2b282e8b
NC
847 for i in $(INFO_DEPS); do \
848 rm -f $$i; \
849 if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \
850 rm -f $$i-[0-9]*; \
851 fi; \
252b5132
RH
852 done
853clean-info: mostlyclean-aminfo
854
2b282e8b 855install-man1:
252b5132 856 $(mkinstalldirs) $(DESTDIR)$(man1dir)
2b282e8b
NC
857 @list='$(man1_MANS)'; \
858 l2='$(man_MANS)'; for i in $$l2; do \
252b5132
RH
859 case "$$i" in \
860 *.1*) list="$$list $$i" ;; \
861 esac; \
862 done; \
863 for i in $$list; do \
864 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
865 else file=$$i; fi; \
866 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
867 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
868 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
869 echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
870 $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
871 done
2b282e8b 872
252b5132 873uninstall-man1:
2b282e8b
NC
874 @list='$(man1_MANS)'; \
875 l2='$(man_MANS)'; for i in $$l2; do \
252b5132
RH
876 case "$$i" in \
877 *.1*) list="$$list $$i" ;; \
878 esac; \
879 done; \
880 for i in $$list; do \
881 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
882 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
883 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
884 echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
885 rm -f $(DESTDIR)$(man1dir)/$$inst; \
886 done
2b282e8b
NC
887install-man: $(MANS)
888 @$(NORMAL_INSTALL)
889 $(MAKE) $(AM_MAKEFLAGS) install-man1
890uninstall-man:
891 @$(NORMAL_UNINSTALL)
892 $(MAKE) $(AM_MAKEFLAGS) uninstall-man1
252b5132
RH
893
894# This directory's subdirectories are mostly independent; you can cd
895# into them and run `make' without going through this Makefile.
896# To change the values of `make' variables: instead of editing Makefiles,
897# (1) if the variable is set in `config.status', edit `config.status'
898# (which will cause the Makefiles to be regenerated when you run `make');
899# (2) otherwise, pass the desired values on the `make' command line.
2b282e8b
NC
900
901@SET_MAKE@
902
903all-recursive install-data-recursive install-exec-recursive \
904installdirs-recursive install-recursive uninstall-recursive install-info-recursive \
905check-recursive installcheck-recursive info-recursive dvi-recursive:
906 @set fnord $(MAKEFLAGS); amf=$$2; \
252b5132
RH
907 dot_seen=no; \
908 target=`echo $@ | sed s/-recursive//`; \
909 list='$(SUBDIRS)'; for subdir in $$list; do \
910 echo "Making $$target in $$subdir"; \
911 if test "$$subdir" = "."; then \
912 dot_seen=yes; \
913 local_target="$$target-am"; \
914 else \
915 local_target="$$target"; \
916 fi; \
917 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
918 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
919 done; \
920 if test "$$dot_seen" = "no"; then \
921 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
922 fi; test -z "$$fail"
923
924mostlyclean-recursive clean-recursive distclean-recursive \
925maintainer-clean-recursive:
2b282e8b 926 @set fnord $(MAKEFLAGS); amf=$$2; \
252b5132 927 dot_seen=no; \
2b282e8b
NC
928 rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
929 rev="$$subdir $$rev"; \
930 test "$$subdir" != "." || dot_seen=yes; \
252b5132 931 done; \
2b282e8b 932 test "$$dot_seen" = "no" && rev=". $$rev"; \
252b5132
RH
933 target=`echo $@ | sed s/-recursive//`; \
934 for subdir in $$rev; do \
935 echo "Making $$target in $$subdir"; \
936 if test "$$subdir" = "."; then \
937 local_target="$$target-am"; \
938 else \
939 local_target="$$target"; \
940 fi; \
941 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
942 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
943 done && test -z "$$fail"
944tags-recursive:
945 list='$(SUBDIRS)'; for subdir in $$list; do \
946 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
947 done
948
949tags: TAGS
950
2b282e8b
NC
951ID: $(HEADERS) $(SOURCES) $(LISP)
952 list='$(SOURCES) $(HEADERS)'; \
953 unique=`for i in $$list; do echo $$i; done | \
954 awk ' { files[$$0] = 1; } \
252b5132 955 END { for (i in files) print i; }'`; \
2b282e8b
NC
956 here=`pwd` && cd $(srcdir) \
957 && mkid -f$$here/ID $$unique $(LISP)
252b5132 958
2b282e8b 959TAGS: tags-recursive $(HEADERS) $(SOURCES) config.in $(TAGS_DEPENDENCIES) $(LISP)
252b5132
RH
960 tags=; \
961 here=`pwd`; \
962 list='$(SUBDIRS)'; for subdir in $$list; do \
2b282e8b
NC
963 if test "$$subdir" = .; then :; else \
964 test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
965 fi; \
252b5132 966 done; \
2b282e8b
NC
967 list='$(SOURCES) $(HEADERS)'; \
968 unique=`for i in $$list; do echo $$i; done | \
969 awk ' { files[$$0] = 1; } \
252b5132 970 END { for (i in files) print i; }'`; \
2b282e8b
NC
971 test -z "$(ETAGS_ARGS)config.in$$unique$(LISP)$$tags" \
972 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.in $$unique $(LISP) -o $$here/TAGS)
da54c6eb 973
2b282e8b 974mostlyclean-tags:
252b5132 975
2b282e8b 976clean-tags:
252b5132
RH
977
978distclean-tags:
2b282e8b
NC
979 -rm -f TAGS ID
980
981maintainer-clean-tags:
982
983distdir = $(PACKAGE)-$(VERSION)
984top_distdir = $(distdir)
985
986# This target untars the dist file and tries a VPATH configuration. Then
987# it guarantees that the distribution is self-contained by making another
988# tarfile.
989distcheck: dist
990 -rm -rf $(distdir)
991 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
992 mkdir $(distdir)/=build
993 mkdir $(distdir)/=inst
994 dc_install_base=`cd $(distdir)/=inst && pwd`; \
995 cd $(distdir)/=build \
996 && ../configure --srcdir=.. --prefix=$$dc_install_base \
997 && $(MAKE) $(AM_MAKEFLAGS) \
998 && $(MAKE) $(AM_MAKEFLAGS) dvi \
999 && $(MAKE) $(AM_MAKEFLAGS) check \
1000 && $(MAKE) $(AM_MAKEFLAGS) install \
1001 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
1002 && $(MAKE) $(AM_MAKEFLAGS) dist
1003 -rm -rf $(distdir)
1004 @banner="$(distdir).tar.gz is ready for distribution"; \
1005 dashes=`echo "$$banner" | sed s/./=/g`; \
1006 echo "$$dashes"; \
1007 echo "$$banner"; \
1008 echo "$$dashes"
1009dist: distdir
1010 -chmod -R a+r $(distdir)
1011 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
1012 -rm -rf $(distdir)
1013dist-all: distdir
1014 -chmod -R a+r $(distdir)
1015 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
1016 -rm -rf $(distdir)
1017distdir: $(DISTFILES)
1018 -rm -rf $(distdir)
1019 mkdir $(distdir)
1020 -chmod 777 $(distdir)
1021 @for file in $(DISTFILES); do \
1022 if test -f $$file; then d=.; else d=$(srcdir); fi; \
1023 if test -d $$d/$$file; then \
1024 cp -pr $$d/$$file $(distdir)/$$file; \
1025 else \
1026 test -f $(distdir)/$$file \
1027 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1028 || cp -p $$d/$$file $(distdir)/$$file || :; \
1029 fi; \
1030 done
1031 for subdir in $(SUBDIRS); do \
1032 if test "$$subdir" = .; then :; else \
1033 test -d $(distdir)/$$subdir \
1034 || mkdir $(distdir)/$$subdir \
1035 || exit 1; \
1036 chmod 777 $(distdir)/$$subdir; \
1037 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
1038 || exit 1; \
1039 fi; \
1040 done
1041 $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
1042
a2d91340 1043DEJATOOL = $(PACKAGE)
2b282e8b
NC
1044
1045RUNTESTDEFAULTFLAGS = --tool $(DEJATOOL) --srcdir $$srcdir
a2d91340
AC
1046site.exp: Makefile
1047 @echo 'Making a new site.exp file...'
2b282e8b
NC
1048 @test ! -f site.bak || rm -f site.bak
1049 @echo '## these variables are automatically generated by make ##' > $@-t
1050 @echo '# Do not edit here. If you wish to override these values' >> $@-t
1051 @echo '# edit the last section' >> $@-t
1052 @echo 'set tool $(DEJATOOL)' >> $@-t
1053 @echo 'set srcdir $(srcdir)' >> $@-t
1054 @echo 'set objdir' `pwd` >> $@-t
1055 @echo 'set host_alias $(host_alias)' >> $@-t
1056 @echo 'set host_triplet $(host_triplet)' >> $@-t
1057 @echo 'set target_alias $(target_alias)' >> $@-t
1058 @echo 'set target_triplet $(target_triplet)' >> $@-t
1059 @echo 'set build_alias $(build_alias)' >> $@-t
1060 @echo 'set build_triplet $(build_triplet)' >> $@-t
1061 @echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t
1062 @test ! -f site.exp || sed '1,/^## All variables above are.*##/ d' site.exp >> $@-t
a2d91340 1063 @test ! -f site.exp || mv site.exp site.bak
2b282e8b
NC
1064 @mv $@-t site.exp
1065info-am: $(INFO_DEPS)
1066info: info-recursive
1067dvi-am: $(DVIS)
1068dvi: dvi-recursive
252b5132
RH
1069check-am:
1070 $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU
1071check: check-recursive
2b282e8b
NC
1072installcheck-am:
1073installcheck: installcheck-recursive
1074install-info-am:
1075install-info: install-info-recursive
1076all-recursive-am: config.h
1077 $(MAKE) $(AM_MAKEFLAGS) all-recursive
1078
1079install-exec-am: install-exec-local
252b5132 1080install-exec: install-exec-recursive
2b282e8b
NC
1081
1082install-data-am: install-man install-data-local
252b5132
RH
1083install-data: install-data-recursive
1084
1085install-am: all-am
1086 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
2b282e8b
NC
1087install: install-recursive
1088uninstall-am: uninstall-man
1089uninstall: uninstall-recursive
1090all-am: Makefile $(PROGRAMS) $(MANS) config.h
1091all-redirect: all-recursive-am
325fab4e 1092install-strip:
2b282e8b
NC
1093 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
1094installdirs: installdirs-recursive
1095installdirs-am:
1096 $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
1097
1098
252b5132
RH
1099mostlyclean-generic:
1100 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
1101
1102clean-generic:
1103 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
1104
1105distclean-generic:
da54c6eb 1106 -rm -f Makefile $(CONFIG_CLEAN_FILES)
2b282e8b 1107 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
252b5132
RH
1108 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
1109
1110maintainer-clean-generic:
9c933e04 1111 -test -z "ldlex.cdeffilep.hdeffilep.cldgram.hldgram.c$(MAINTAINERCLEANFILES)" || rm -f ldlex.c deffilep.h deffilep.c ldgram.h ldgram.c $(MAINTAINERCLEANFILES)
2b282e8b
NC
1112mostlyclean-am: mostlyclean-hdr mostlyclean-noinstPROGRAMS \
1113 mostlyclean-compile mostlyclean-libtool \
1114 mostlyclean-aminfo mostlyclean-tags mostlyclean-generic \
1115 mostlyclean-local
325fab4e
NC
1116
1117mostlyclean: mostlyclean-recursive
1118
2b282e8b
NC
1119clean-am: clean-hdr clean-noinstPROGRAMS clean-compile clean-libtool \
1120 clean-aminfo clean-tags clean-generic mostlyclean-am
325fab4e 1121
2b282e8b 1122clean: clean-recursive
325fab4e 1123
2b282e8b
NC
1124distclean-am: distclean-hdr distclean-noinstPROGRAMS distclean-compile \
1125 distclean-libtool distclean-aminfo distclean-tags \
1126 distclean-generic clean-am distclean-local
1127 -rm -f libtool
325fab4e 1128
2b282e8b
NC
1129distclean: distclean-recursive
1130 -rm -f config.status
1131
1132maintainer-clean-am: maintainer-clean-hdr \
1133 maintainer-clean-noinstPROGRAMS \
1134 maintainer-clean-compile maintainer-clean-libtool \
1135 maintainer-clean-aminfo maintainer-clean-tags \
1136 maintainer-clean-generic distclean-am
1137 @echo "This command is intended for maintainers to use;"
1138 @echo "it deletes files that may require special tools to rebuild."
325fab4e 1139
2b282e8b
NC
1140maintainer-clean: maintainer-clean-recursive
1141 -rm -f config.status
1142
1143.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
1144mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
1145clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \
1146mostlyclean-compile distclean-compile clean-compile \
1147maintainer-clean-compile mostlyclean-libtool distclean-libtool \
1148clean-libtool maintainer-clean-libtool install-info-am uninstall-info \
1149mostlyclean-aminfo distclean-aminfo clean-aminfo \
1150maintainer-clean-aminfo install-man1 uninstall-man1 install-man \
1151uninstall-man install-data-recursive uninstall-data-recursive \
1152install-exec-recursive uninstall-exec-recursive installdirs-recursive \
1153uninstalldirs-recursive all-recursive check-recursive \
1154installcheck-recursive info-recursive dvi-recursive \
1155mostlyclean-recursive distclean-recursive clean-recursive \
1156maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
1157distclean-tags clean-tags maintainer-clean-tags distdir check-DEJAGNU \
1158info-am info dvi-am dvi check check-am installcheck-am installcheck \
1159install-info-am install-info all-recursive-am install-exec-local \
1160install-exec-am install-exec install-data-local install-data-am \
1161install-data install-am install uninstall-am uninstall all-redirect \
1162all-am all installdirs-am installdirs mostlyclean-generic \
1163distclean-generic clean-generic maintainer-clean-generic clean \
1164mostlyclean distclean maintainer-clean
252b5132
RH
1165
1166
1167po/POTFILES.in: @MAINT@ Makefile
68cdbb4a 1168 for f in $(POTFILES); do echo $$f; done | LC_COLLATE= sort > tmp \
252b5132
RH
1169 && mv tmp $(srcdir)/po/POTFILES.in
1170
1171ldmain.o: ldmain.c config.status
9c8ebd6a
DJ
1172 $(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' \
1173 -DSCRIPTDIR='"$(scriptdir)"' -DBINDIR='"$(bindir)"' \
0125cdf2 1174 -DTOOLBINDIR='"$(tooldir)/bin"' \
9c8ebd6a
DJ
1175 -DTARGET='"@target@"' @TARGET_SYSTEM_ROOT_DEFINE@ \
1176 $(srcdir)/ldmain.c
252b5132
RH
1177
1178ldemul-list.h: Makefile
1179 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
1180 for f in `echo " " ${EMULATION_OFILES} "" \
1181 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
1182 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
1183 done;\
1184 echo "";\
1185 echo "#define EMULATION_LIST \\";\
1186 for f in `echo " " ${EMULATION_OFILES} "" \
1187 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
1188 echo " &ld_$${f}_emulation, \\"; \
1189 done;\
1190 echo " 0") >ldemul-tmp.h
1191 mv ldemul-tmp.h ldemul-list.h
597e2591
ILT
1192
1193stringify.sed: ${srcdir}/emultempl/$(STRINGIFY)
1194 cp ${srcdir}/emultempl/$(STRINGIFY) stringify.sed
aafdb207 1195
252b5132
RH
1196@TDIRS@
1197
1198ea29k.c: $(srcdir)/emulparams/a29k.sh \
1199 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
1200 ${GENSCRIPTS} a29k "$(tdir_a29k)"
eb1e0e80
NC
1201eaix5ppc.c: $(srcdir)/emulparams/aix5ppc.sh \
1202 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
1203 ${GENSCRIPTS} aix5ppc "$(tdir_aixppc)"
1204eaix5rs6.c: $(srcdir)/emulparams/aix5rs6.sh \
1205 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
1206 ${GENSCRIPTS} aix5rs6 "$(tdir_aixrs6)"
252b5132
RH
1207eaixppc.c: $(srcdir)/emulparams/aixppc.sh \
1208 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
1209 ${GENSCRIPTS} aixppc "$(tdir_aixppc)"
1210eaixrs6.c: $(srcdir)/emulparams/aixrs6.sh \
1211 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
1212 ${GENSCRIPTS} aixrs6 "$(tdir_aixrs6)"
1213ealpha.c: $(srcdir)/emulparams/alpha.sh \
1214 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
1215 ${GENSCRIPTS} alpha "$(tdir_alpha)"
1216earcelf.c: $(srcdir)/emulparams/arcelf.sh \
1217 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1218 ${GENSCRIPTS} arcelf "$(tdir_arcelf)"
1219earmelf.c: $(srcdir)/emulparams/armelf.sh \
5f992e62
AM
1220 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
1221 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132 1222 ${GENSCRIPTS} armelf "$(tdir_armelf)"
d2012d17
DJ
1223earmelfb.c: $(srcdir)/emulparams/armelfb.sh $(srcdir)/emulparams/armelf.sh \
1224 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
1225 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1226 ${GENSCRIPTS} armelfb "$(tdir_armelfb)"
252b5132
RH
1227earmelf_oabi.c: $(srcdir)/emulparams/armelf_oabi.sh \
1228 $(srcdir)/emultempl/armelf_oabi.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1229 ${GENSCRIPTS} armelf_oabi "$(tdir_armelf)"
ac3e50bf
DB
1230earmelf_fbsd.c: $(srcdir)/emulparams/armelf_fbsd.sh \
1231 $(srcdir)/emulparams/armelf.sh \
1232 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
1233 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1234 ${GENSCRIPTS} armelf_fbsd "$(tdir_armelf_fbsd)"
252b5132 1235earmelf_linux.c: $(srcdir)/emulparams/armelf_linux.sh \
5f992e62
AM
1236 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
1237 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132 1238 ${GENSCRIPTS} armelf_linux "$(tdir_armelf_linux)"
d2012d17
DJ
1239earmelfb_linux.c: $(srcdir)/emulparams/armelfb_linux.sh \
1240 $(srcdir)/emulparams/armelf_linux.sh \
1241 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
1242 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1243 ${GENSCRIPTS} armelfb_linux "$(tdir_armelfb_linux)"
3695c299
AM
1244earmelf_nbsd.c: $(srcdir)/emulparams/armelf_nbsd.sh \
1245 $(srcdir)/emulparams/armelf.sh \
1246 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
1247 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1248 ${GENSCRIPTS} armelf_nbsd "$(tdir_armelf_nbsd)"
658f2588
JT
1249earmelfb_nbsd.c: $(srcdir)/emulparams/armelfb_nbsd.sh \
1250 $(srcdir)/emulparams/armelf_nbsd.sh \
1251 $(srcdir)/emulparams/armelf.sh \
1252 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
1253 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1254 ${GENSCRIPTS} armelfb_nbsd "$(tdir_armelfb_nbsd)"
252b5132
RH
1255earmaoutb.c: $(srcdir)/emulparams/armaoutb.sh \
1256 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
1257 ${GENSCRIPTS} armaoutb "$(tdir_armaoutb)"
1258earmaoutl.c: $(srcdir)/emulparams/armaoutl.sh \
1259 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
1260 ${GENSCRIPTS} armaoutl "$(tdir_armaoutl)"
1261earmcoff.c: $(srcdir)/emulparams/armcoff.sh \
1262 $(srcdir)/emultempl/armcoff.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS}
1263 ${GENSCRIPTS} armcoff "$(tdir_armcoff)"
8959586a
NC
1264earmnbsd.c: $(srcdir)/emulparams/armnbsd.sh \
1265 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1266 ${GENSCRIPTS} armnbsd "$(tdir_armnbsd)"
7e392df6
NC
1267earmnto.c: $(srcdir)/emulparams/armnto.sh \
1268 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
1269 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1270 ${GENSCRIPTS} armnto "$(tdir_armnto)"
cf865442 1271earm_epoc_pe.c: $(srcdir)/emulparams/arm_epoc_pe.sh \
e6869249 1272 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/epocpe.sc ${GEN_DEPENDS}
cf865442 1273 ${GENSCRIPTS} arm_epoc_pe "$(tdir_armpe)"
252b5132
RH
1274earmpe.c: $(srcdir)/emulparams/armpe.sh \
1275 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1276 ${GENSCRIPTS} armpe "$(tdir_armpe)"
e5a52504
MM
1277earmsymbian.c: $(srcdir)/emulparams/armsymbian.sh \
1278 $(srcdir)/emulparams/armelf.sh $(srcdir)/emultempl/elf32.em \
ba916c8a 1279 $(srcdir)/emultempl/armelf.em $(srcdir)/scripttempl/armbpabi.sc \
e5a52504
MM
1280 ${GEN_DEPENDS}
1281 ${GENSCRIPTS} armsymbian "$(tdir_armelf)"
75ca919a 1282eavr2.c: $(srcdir)/emulparams/avr2.sh \
fae1e84f
MM
1283 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
1284 ${GEN_DEPENDS}
75ca919a
MM
1285 ${GENSCRIPTS} avr2 "$(tdir_avr2)"
1286eavr1.c: $(srcdir)/emulparams/avr1.sh \
fae1e84f
MM
1287 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
1288 ${GEN_DEPENDS}
75ca919a 1289 ${GENSCRIPTS} avr1 "$(tdir_avr2)"
fae1e84f
MM
1290eavr3.c: $(srcdir)/emulparams/avr3.sh \
1291 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
1292 ${GEN_DEPENDS}
75ca919a 1293 ${GENSCRIPTS} avr3 "$(tdir_avr2)"
fae1e84f
MM
1294eavr4.c: $(srcdir)/emulparams/avr4.sh \
1295 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
1296 ${GEN_DEPENDS}
75ca919a 1297 ${GENSCRIPTS} avr4 "$(tdir_avr2)"
fae1e84f
MM
1298eavr5.c: $(srcdir)/emulparams/avr5.sh \
1299 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/avr.sc \
1300 ${GEN_DEPENDS}
75ca919a 1301 ${GENSCRIPTS} avr5 "$(tdir_avr2)"
9d7e2ba5
JE
1302ecoff_i860.c: $(srcdir)/emulparams/coff_i860.sh \
1303 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i860coff.sc ${GEN_DEPENDS}
1304 ${GENSCRIPTS} coff_i860 "$(tdir_coff_i860)"
252b5132
RH
1305ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
1306 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
1307 ${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)"
9d06555c
HPN
1308ecrisaout.c: $(srcdir)/emulparams/crisaout.sh \
1309 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/crisaout.sc ${GEN_DEPENDS}
1310 ${GENSCRIPTS} crisaout "$(tdir_cris)"
1311ecriself.c: $(srcdir)/emulparams/criself.sh \
6caa99ab 1312 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
9d06555c
HPN
1313 ${GENSCRIPTS} criself "$(tdir_cris)"
1314ecrislinux.c: $(srcdir)/emulparams/crislinux.sh \
1315 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1316 ${GENSCRIPTS} crislinux "$(tdir_cris)"
252b5132 1317ed10velf.c: $(srcdir)/emulparams/d10velf.sh \
6caa99ab 1318 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfd10v.sc ${GEN_DEPENDS}
252b5132
RH
1319 ${GENSCRIPTS} d10velf "$(tdir_d10v)"
1320ed30velf.c: $(srcdir)/emulparams/d30velf.sh \
1321 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
1322 ${GENSCRIPTS} d30velf "$(tdir_d30v)"
1323ed30v_o.c: $(srcdir)/emulparams/d30v_o.sh \
1324 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
1325 ${GENSCRIPTS} d30v_o "$(tdir_d30v)"
1326ed30v_e.c: $(srcdir)/emulparams/d30v_e.sh \
1327 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
1328 ${GENSCRIPTS} d30v_e "$(tdir_d30v)"
1329edelta68.c: $(srcdir)/emulparams/delta68.sh \
1330 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
1331 ${GENSCRIPTS} delta68 "$(tdir_delta68)"
d172d4ba
NC
1332eelf32_dlx.c: $(srcdir)/emulparams/elf32_dlx.sh \
1333 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/dlx.sc ${GEN_DEPENDS}
1334 ${GENSCRIPTS} elf32_dlx "$(tdir_elf32_dlx)"
252b5132
RH
1335eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
1336 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
1337 ${GENSCRIPTS} ebmon29k "$(tdir_ebmon29k)"
93fbbb04
GK
1338eelf32xstormy16.c: $(srcdir)/emulparams/elf32xstormy16.sh \
1339 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
1ee7cf4c 1340 $(srcdir)/scripttempl/xstormy16.sc ${GEN_DEPENDS}
93fbbb04 1341 ${GENSCRIPTS} elf32xstormy16 "$(tdir_xstormy16)"
4a096548
AO
1342eelf32am33lin.c: $(srcdir)/emulparams/elf32am33lin.sh \
1343 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1344 ${GENSCRIPTS} elf32am33lin "$(tdir_mn10300)"
ab68f3e0
JT
1345eelf32vax.c: $(srcdir)/emulparams/elf32vax.sh \
1346 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1347 ${GENSCRIPTS} elf32vax "$(tdir_elf32vax)"
e0001a05 1348eelf32xtensa.c: $(srcdir)/emulparams/elf32xtensa.sh \
43cd72b9
BW
1349 $(srcdir)/emulparams/xtensa-config.sh $(srcdir)/emultempl/elf32.em \
1350 $(srcdir)/emultempl/xtensaelf.em $(INCDIR)/xtensa-config.h \
1351 $(BFDDIR)/elf-bfd.h $(BFDDIR)/libbfd.h $(INCDIR)/elf/xtensa.h \
e0001a05
NC
1352 $(srcdir)/scripttempl/elfxtensa.sc ${GEN_DEPENDS}
1353 ${GENSCRIPTS} elf32xtensa "$(tdir_elf32xtensa)"
252b5132
RH
1354eelf32fr30.c: $(srcdir)/emulparams/elf32fr30.sh \
1355 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1356 ${GENSCRIPTS} elf32fr30 "$(tdir_fr30)"
7d553a40
DB
1357eelf32frv.c: $(srcdir)/emulparams/elf32frv.sh \
1358 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1359 ${GENSCRIPTS} elf32frv "$(tdir_frv)"
71acc4e8
NC
1360eelf32mcore.c: $(srcdir)/emulparams/elf32mcore.sh \
1361 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1362 ${GENSCRIPTS} elf32mcore "$(tdir_mcore)"
252b5132 1363em32relf.c: $(srcdir)/emulparams/m32relf.sh \
18c7a9a5 1364 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132 1365 ${GENSCRIPTS} m32relf "$(tdir_m32r)"
6edf0760
NC
1366em32rlelf.c: $(srcdir)/emulparams/m32rlelf.sh \
1367 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1368 ${GENSCRIPTS} m32rlelf "$(tdir_m32rlelf)"
1369em32relf_linux.c: $(srcdir)/emulparams/m32relf_linux.sh \
1370 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1371 ${GENSCRIPTS} m32relf_linux "$(tdir_m32relf_linux)"
1372em32rlelf_linux.c: $(srcdir)/emulparams/m32rlelf_linux.sh \
1373 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1374 ${GENSCRIPTS} m32rlelf_linux "$(tdir_m32rlelf_linux)"
252b5132
RH
1375eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
1376 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1377 ${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)"
165589e4
JE
1378eelf32_i860.c: $(srcdir)/emulparams/elf32_i860.sh \
1379 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1380 ${GENSCRIPTS} elf32_i860 "$(tdir_elf32_i860)"
0ccf812a
ILT
1381eelf32_i960.c: $(srcdir)/emulparams/elf32_i960.sh \
1382 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1383 ${GENSCRIPTS} elf32_i960 "$(tdir_elf32_i960)"
252b5132 1384eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \
23867d67 1385 $(srcdir)/emulparams/elf32bmip.sh \
252b5132
RH
1386 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1387 ${GENSCRIPTS} elf32b4300 "$(tdir_elf32b4300)"
0949843d
NC
1388eelf32cr16c.c: $(srcdir)/emulparams/elf32cr16c.sh \
1389 $(srcdir)/emultempl/elf32.em \
1390 $(srcdir)/scripttempl/elf32cr16c.sc ${GEN_DEPENDS}
1391 ${GENSCRIPTS} elf32cr16c "$(tdir_elf32cr16c)"
252b5132
RH
1392eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
1393 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1394 ${GENSCRIPTS} elf32bmip "$(tdir_elf32bmip)"
1395eelf32bsmip.c: $(srcdir)/emulparams/elf32bsmip.sh \
52f89c0a 1396 $(srcdir)/emulparams/elf32bmip.sh $(srcdir)/emultempl/irix.em \
252b5132
RH
1397 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1398 ${GENSCRIPTS} elf32bsmip "$(tdir_elf32bsmip)"
3548145d 1399eelf32btsmip.c: $(srcdir)/emulparams/elf32btsmip.sh \
23867d67 1400 $(srcdir)/emulparams/elf32bmip.sh \
3548145d
UC
1401 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1402 ${GENSCRIPTS} elf32btsmip "$(tdir_elf32btsmip)"
1fe1f39c
NC
1403eelf32crx.c: $(srcdir)/emulparams/elf32crx.sh \
1404 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/crxelf.em \
1405 $(srcdir)/scripttempl/elf32crx.sc ${GEN_DEPENDS}
1406 ${GENSCRIPTS} elf32crx "$(tdir_elf32crx)"
7808a785 1407eelf32btsmipn32.c: $(srcdir)/emulparams/elf32btsmipn32.sh \
23867d67 1408 $(srcdir)/emulparams/elf32bmip.sh \
7808a785
TS
1409 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1410 ${GENSCRIPTS} elf32btsmipn32 "$(tdir_elf32btsmipn32)"
fdec3cfc 1411eelf32ltsmip.c: $(srcdir)/emulparams/elf32ltsmip.sh \
465bc359 1412 $(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
fdec3cfc
L
1413 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1414 ${GENSCRIPTS} elf32ltsmip "$(tdir_elf32ltsmip)"
7808a785
TS
1415eelf32ltsmipn32.c: $(srcdir)/emulparams/elf32ltsmipn32.sh \
1416 $(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
1417 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1418 ${GENSCRIPTS} elf32ltsmipn32 "$(tdir_elf32ltsmipn32)"
252b5132 1419eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
23867d67 1420 $(srcdir)/emulparams/elf32bmip.sh \
252b5132
RH
1421 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1422 ${GENSCRIPTS} elf32ebmip "$(tdir_elf32ebmip)"
1423eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \
465bc359 1424 $(srcdir)/emulparams/elf32lmip.sh $(srcdir)/emulparams/elf32bmip.sh \
252b5132
RH
1425 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1426 ${GENSCRIPTS} elf32elmip "$(tdir_elf32elmip)"
85f70471 1427eelf32bmipn32.c: $(srcdir)/emulparams/elf32bmipn32.sh \
52f89c0a 1428 $(srcdir)/emultempl/irix.em \
85f70471
ILT
1429 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1430 ${GENSCRIPTS} elf32bmipn32 "$(tdir_elf32bmipn32)"
252b5132 1431eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \
465bc359 1432 $(srcdir)/emulparams/elf32b4300.sh $(srcdir)/emulparams/elf32bmip.sh \
252b5132
RH
1433 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1434 ${GENSCRIPTS} elf32l4300 "$(tdir_elf32l4300)"
1435eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
23867d67 1436 $(srcdir)/emulparams/elf32bmip.sh \
252b5132
RH
1437 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1438 ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)"
325fab4e
NC
1439eelf32mipswindiss.c: $(srcdir)/emulparams/elf32mipswindiss.sh \
1440 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1441 ${GENSCRIPTS} elf32mipswindiss "$(tdir_elf32mipswindiss)"
252b5132 1442eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \
f9e6bfa8 1443 $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emultempl/ppc32elf.em \
bdbe5705 1444 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132 1445 ${GENSCRIPTS} elf32lppc "$(tdir_elf32lppc)"
59bc061d 1446eelf32lppcnto.c: $(srcdir)/emulparams/elf32lppcnto.sh \
f9e6bfa8 1447 $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emultempl/ppc32elf.em \
59bc061d
NC
1448 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1449 ${GENSCRIPTS} elf32lppcnto "$(tdir_elf32lppcnto)"
bdbe5705 1450eelf32lppcsim.c: $(srcdir)/emulparams/elf32lppcsim.sh \
465bc359 1451 $(srcdir)/emulparams/elf32lppc.sh $(srcdir)/emulparams/elf32ppc.sh \
f9e6bfa8 1452 $(srcdir)/emultempl/ppc32elf.em \
bdbe5705
GK
1453 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1454 ${GENSCRIPTS} elf32lppcsim "$(tdir_elf32lppcsim)"
59bc061d 1455eelf32ppcnto.c: $(srcdir)/emulparams/elf32ppcnto.sh \
f9e6bfa8 1456 $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emultempl/ppc32elf.em \
59bc061d
NC
1457 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1458 ${GENSCRIPTS} elf32ppcnto "$(tdir_elf32ppcnto)"
4a1359d7
AM
1459eelf32ppcwindiss.c: $(srcdir)/emulparams/elf32ppcwindiss.sh \
1460 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
94349e12 1461 ${GENSCRIPTS} elf32ppcwindiss "$(tdir_elf32ppcwindiss)"
252b5132 1462eelf32lsmip.c: $(srcdir)/emulparams/elf32lsmip.sh \
465bc359 1463 $(srcdir)/emulparams/elf32lmip.sh $(srcdir)/emulparams/elf32bmip.sh \
252b5132
RH
1464 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1465 ${GENSCRIPTS} elf32lsmip "$(tdir_elf32lsmip)"
c7e40348
NC
1466eelf32openrisc.c: $(srcdir)/emulparams/elf32openrisc.sh \
1467 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1468 ${GENSCRIPTS} elf32openrisc "$(tdir_openrisc)"
f9e6bfa8 1469eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emultempl/ppc32elf.em \
bdbe5705 1470 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132 1471 ${GENSCRIPTS} elf32ppc "$(tdir_elf32ppc)"
ac3e50bf 1472eelf32ppc_fbsd.c: $(srcdir)/emulparams/elf32ppc_fbsd.sh \
f9e6bfa8 1473 $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emultempl/ppc32elf.em \
ac3e50bf
DB
1474 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1475 ${GENSCRIPTS} elf32ppc_fbsd "$(tdir_elf32ppc_fbsd)"
bdbe5705 1476eelf32ppcsim.c: $(srcdir)/emulparams/elf32ppcsim.sh \
f9e6bfa8 1477 $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emultempl/ppc32elf.em \
bdbe5705
GK
1478 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1479 ${GENSCRIPTS} elf32ppcsim "$(tdir_elf32ppcsim)"
ec2f040d 1480eelf32ppclinux.c: $(srcdir)/emulparams/elf32ppclinux.sh \
f9e6bfa8 1481 $(srcdir)/emulparams/elf32ppc.sh $(srcdir)/emultempl/ppc32elf.em \
bdbe5705 1482 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
ec2f040d 1483 ${GENSCRIPTS} elf32ppclinux "$(tdir_elf32ppclinux)"
1f808cd5 1484eelf64ppc.c: $(srcdir)/emulparams/elf64ppc.sh $(srcdir)/emultempl/ppc64elf.em \
5c67d4bb
AM
1485 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1486 ${GENSCRIPTS} elf64ppc "$(tdir_elf64ppc)"
1487eelf64lppc.c: $(srcdir)/emulparams/elf64lppc.sh \
1f808cd5 1488 $(srcdir)/emulparams/elf64ppc.sh $(srcdir)/emultempl/ppc64elf.em \
5c67d4bb
AM
1489 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1490 ${GENSCRIPTS} elf64lppc "$(tdir_elf64lppc)"
5b93d8bb
AM
1491eelf32i370.c: $(srcdir)/emulparams/elf32i370.sh \
1492 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfi370.sc ${GEN_DEPENDS}
1493 ${GENSCRIPTS} elf32i370 "$(tdir_elf32i370)"
e09a7106
SC
1494eelf32ip2k.c: $(srcdir)/emulparams/elf32ip2k.sh \
1495 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/ip2k.sc ${GEN_DEPENDS}
1496 ${GENSCRIPTS} elf32ip2k "$(tdir_ip2k)"
1497eelf32iq2000.c: $(srcdir)/emulparams/elf32iq2000.sh \
1498 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/iq2000.sc ${GEN_DEPENDS}
1499 ${GENSCRIPTS} elf32iq2000 "$(tdir_iq2000)"
1500eelf32iq10.c: $(srcdir)/emulparams/elf32iq10.sh \
1501 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/iq2000.sc ${GEN_DEPENDS}
1502 ${GENSCRIPTS} elf32iq10 "$(tdir_iq10)"
252b5132
RH
1503eelf64alpha.c: $(srcdir)/emulparams/elf64alpha.sh \
1504 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1505 ${GENSCRIPTS} elf64alpha "$(tdir_elf64alpha)"
ac3e50bf
DB
1506eelf64alpha_fbsd.c: $(srcdir)/emulparams/elf64alpha_fbsd.sh \
1507 $(srcdir)/emulparams/elf64alpha.sh \
1508 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1509 ${GENSCRIPTS} elf64alpha_fbsd "$(tdir_elf64alpha_fbsd)"
fc18a3f3 1510eelf64alpha_nbsd.c: $(srcdir)/emulparams/elf64alpha_nbsd.sh \
0b69cd08 1511 $(srcdir)/emulparams/elf64alpha.sh \
fc18a3f3
RH
1512 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1513 ${GENSCRIPTS} elf64alpha_nbsd "$(tdir_elf64alpha_nbsd)"
730a39a0 1514eelf64hppa.c: $(srcdir)/emulparams/elf64hppa.sh \
465bc359 1515 $(srcdir)/emulparams/hppa64linux.sh \
730a39a0
JL
1516 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1517 ${GENSCRIPTS} elf64hppa "$(tdir_elf64hppa)"
41c49998
TW
1518eelf64_aix.c: $(srcdir)/emulparams/elf64_aix.sh \
1519 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1520 ${GENSCRIPTS} elf64_aix "$(tdir_elf64_aix)"
800eeca4 1521eelf64_ia64.c: $(srcdir)/emulparams/elf64_ia64.sh \
3f7deb8a
L
1522 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/ia64elf.em \
1523 $(srcdir)/emultempl/needrelax.em \
908d20b3 1524 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
800eeca4 1525 ${GENSCRIPTS} elf64_ia64 "$(tdir_elf64_ia64)"
ac3e50bf
DB
1526eelf64_ia64_fbsd.c: $(srcdir)/emulparams/elf64_ia64_fbsd.sh \
1527 $(srcdir)/emulparams/elf64_ia64.sh \
3f7deb8a
L
1528 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/ia64elf.em \
1529 $(srcdir)/emultempl/needrelax.em \
ac3e50bf
DB
1530 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1531 ${GENSCRIPTS} elf64_ia64_fbsd "$(tdir_elf64_ia64_fbsd)"
a85d7ed0
NC
1532eelf64_s390.c: $(srcdir)/emulparams/elf64_s390.sh \
1533 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1534 ${GENSCRIPTS} elf64_s390 "$(tdir_elf64_s390)"
252b5132
RH
1535eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
1536 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1537 ${GENSCRIPTS} elf64_sparc "$(tdir_elf64_sparc)"
ac3e50bf
DB
1538eelf64_sparc_fbsd.c: $(srcdir)/emulparams/elf64_sparc_fbsd.sh \
1539 $(srcdir)/emulparams/elf64_sparc.sh \
1540 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1541 ${GENSCRIPTS} elf64_sparc_fbsd "$(tdir_elf64_sparc_fbsd)"
22c675a7 1542eelf64bmip.c: $(srcdir)/emulparams/elf64bmip.sh \
52f89c0a 1543 $(srcdir)/emulparams/elf32bmipn32.sh $(srcdir)/emultempl/irix.em \
22c675a7
MM
1544 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1545 ${GENSCRIPTS} elf64bmip "$(tdir_elf64bmip)"
3c3bdf30
NC
1546eelf64mmix.c: $(srcdir)/emulparams/elf64mmix.sh \
1547 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/mmix-elfnmmo.em \
1548 $(srcdir)/emultempl/mmixelf.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1549 ${GENSCRIPTS} elf64mmix "$(tdir_elf64mmix)"
1550emmo.c: $(srcdir)/emulparams/mmo.sh $(srcdir)/emultempl/mmix-elfnmmo.em \
1551 $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/mmo.em \
1552 $(srcdir)/scripttempl/mmo.sc ${GEN_DEPENDS}
1553 ${GENSCRIPTS} mmo "$(tdir_mmo)"
fdec3cfc 1554eelf64btsmip.c: $(srcdir)/emulparams/elf64btsmip.sh \
465bc359 1555 $(srcdir)/emulparams/elf32bmipn32.sh \
fdec3cfc
L
1556 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1557 ${GENSCRIPTS} elf64btsmip "$(tdir_elf64btsmip)"
1558eelf64ltsmip.c: $(srcdir)/emulparams/elf64ltsmip.sh \
465bc359 1559 $(srcdir)/emulparams/elf64btsmip.sh $(srcdir)/emulparams/elf32bmipn32.sh \
fdec3cfc
L
1560 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1561 ${GENSCRIPTS} elf64ltsmip "$(tdir_elf64ltsmip)"
252b5132
RH
1562eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
1563 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1564 ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
2be3aa03
NC
1565eelf_x86_64.c: $(srcdir)/emulparams/elf_x86_64.sh \
1566 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1567 ${GENSCRIPTS} elf_x86_64 "$(tdir_elf_x86_64)"
ac3e50bf
DB
1568eelf_x86_64_fbsd.c: $(srcdir)/emulparams/elf_x86_64_fbsd.sh \
1569 $(srcdir)/emulparams/elf_x86_64.sh \
1570 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1571 ${GENSCRIPTS} elf_x86_64_fbsd "$(tdir_elf_x86_64_fbsd)"
252b5132
RH
1572eelf_i386_be.c: $(srcdir)/emulparams/elf_i386_be.sh \
1573 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1574 ${GENSCRIPTS} elf_i386_be "$(tdir_elf_i386_be)"
59ff2774 1575eelf_i386_chaos.c: $(srcdir)/emulparams/elf_i386_chaos.sh \
b4477fa8 1576 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf_chaos.sc ${GEN_DEPENDS}
59ff2774 1577 ${GENSCRIPTS} elf_i386_chaos "$(tdir_elf_i386_chaos)"
ac3e50bf
DB
1578eelf_i386_fbsd.c: $(srcdir)/emulparams/elf_i386_fbsd.sh \
1579 $(srcdir)/emulparams/elf_i386.sh \
1580 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1581 ${GENSCRIPTS} elf_i386_fbsd "$(tdir_elf_i386_fbsd)"
506eee22
NC
1582eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
1583 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1584 ${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)"
a85d7ed0
NC
1585eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \
1586 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1587 ${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
252b5132
RH
1588egld960.c: $(srcdir)/emulparams/gld960.sh \
1589 $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
1590 ${GENSCRIPTS} gld960 "$(tdir_gld960)"
1591egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
1592 $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
1593 ${GENSCRIPTS} gld960coff "$(tdir_gld960coff)"
252b5132
RH
1594eh8300.c: $(srcdir)/emulparams/h8300.sh \
1595 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
1596 ${GENSCRIPTS} h8300 "$(tdir_h8300)"
1597eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
1598 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
1599 ${GENSCRIPTS} h8300h "$(tdir_h8300h)"
1600eh8300s.c: $(srcdir)/emulparams/h8300s.sh \
1601 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300s.sc ${GEN_DEPENDS}
1602 ${GENSCRIPTS} h8300s "$(tdir_h8300s)"
8d9cd6b1
NC
1603eh8300hn.c: $(srcdir)/emulparams/h8300hn.sh \
1604 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300hn.sc ${GEN_DEPENDS}
1605 ${GENSCRIPTS} h8300hn "$(tdir_h8300hn)"
1606eh8300sn.c: $(srcdir)/emulparams/h8300sn.sh \
1607 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300sn.sc ${GEN_DEPENDS}
1608 ${GENSCRIPTS} h8300sn "$(tdir_h8300sn)"
65982ba6
MS
1609eh8300sx.c: $(srcdir)/emulparams/h8300sx.sh \
1610 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300sx.sc ${GEN_DEPENDS}
1611 ${GENSCRIPTS} h8300sx "$(tdir_h8300sx)"
f4984206
RS
1612eh8300sxn.c: $(srcdir)/emulparams/h8300sxn.sh \
1613 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300sxn.sc ${GEN_DEPENDS}
1614 ${GENSCRIPTS} h8300sxn "$(tdir_h8300sxn)"
8af6dd41
JR
1615eh8300elf.c: $(srcdir)/emulparams/h8300elf.sh \
1616 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1617 ${GENSCRIPTS} h8300elf "$(tdir_h8300elf)"
1618eh8300helf.c: $(srcdir)/emulparams/h8300helf.sh \
465bc359 1619 $(srcdir)/emulparams/h8300elf.sh \
8af6dd41
JR
1620 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1621 ${GENSCRIPTS} h8300helf "$(tdir_h8300helf)"
1622eh8300self.c: $(srcdir)/emulparams/h8300self.sh \
465bc359 1623 $(srcdir)/emulparams/h8300elf.sh \
8af6dd41
JR
1624 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1625 ${GENSCRIPTS} h8300self "$(tdir_h8300self)"
8d9cd6b1
NC
1626eh8300hnelf.c: $(srcdir)/emulparams/h8300hnelf.sh \
1627 $(srcdir)/emulparams/h8300elf.sh \
1628 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1629 ${GENSCRIPTS} h8300hnelf "$(tdir_h8300hnelf)"
1630eh8300snelf.c: $(srcdir)/emulparams/h8300snelf.sh \
1631 $(srcdir)/emulparams/h8300elf.sh \
1632 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1633 ${GENSCRIPTS} h8300snelf "$(tdir_h8300snelf)"
65982ba6
MS
1634eh8300sxelf.c: $(srcdir)/emulparams/h8300sxelf.sh \
1635 $(srcdir)/emulparams/h8300elf.sh \
1636 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1637 ${GENSCRIPTS} h8300sxelf "$(tdir_h8300sxelf)"
f4984206
RS
1638eh8300sxnelf.c: $(srcdir)/emulparams/h8300sxnelf.sh \
1639 $(srcdir)/emulparams/h8300elf.sh \
1640 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1641 ${GENSCRIPTS} h8300sxnelf "$(tdir_h8300sxnelf)"
252b5132
RH
1642eh8500.c: $(srcdir)/emulparams/h8500.sh \
1643 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
1644 ${GENSCRIPTS} h8500 "$(tdir_h8500)"
1645eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
1646 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
1647 ${GENSCRIPTS} h8500b "$(tdir_h8500b)"
1648eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
1649 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
1650 ${GENSCRIPTS} h8500c "$(tdir_h8500c)"
1651eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
1652 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
1653 ${GENSCRIPTS} h8500m "$(tdir_h8500m)"
1654eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
1655 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
1656 ${GENSCRIPTS} h8500s "$(tdir_h8500s)"
1657ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
1658 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1659 ${GENSCRIPTS} hp300bsd "$(tdir_hp300bsd)"
1660ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
1661 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1662 ${GENSCRIPTS} hp3hpux "$(tdir_hp3hpux)"
730a39a0 1663ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
5f992e62
AM
1664 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
1665 $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
730a39a0 1666 ${GENSCRIPTS} hppaelf "$(tdir_hppaelf)"
4900fc06 1667ehppalinux.c: $(srcdir)/emulparams/hppalinux.sh \
5f992e62
AM
1668 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
1669 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
4900fc06 1670 ${GENSCRIPTS} hppalinux "$(tdir_hppalinux)"
006336b8
JT
1671ehppanbsd.c: $(srcdir)/emulparams/hppanbsd.sh \
1672 $(srcdir)/emulparams/hppaelf.sh \
1673 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
1674 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1675 ${GENSCRIPTS} hppanbsd "$(tdir_hppanbsd)"
c29ef4b5
AM
1676ehppaobsd.c: $(srcdir)/emulparams/hppaobsd.sh \
1677 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
1678 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1679 ${GENSCRIPTS} hppaobsd "$(tdir_hppaobsd)"
9f22353f
AM
1680ehppa64linux.c: $(srcdir)/emulparams/hppa64linux.sh \
1681 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1682 ${GENSCRIPTS} hppa64linux "$(tdir_hppa64linux)"
252b5132
RH
1683ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
1684 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1685 ${GENSCRIPTS} i386aout "$(tdir_i386aout)"
1686ei386beos.c: $(srcdir)/emulparams/i386beos.sh \
1687 $(srcdir)/emultempl/beos.em $(srcdir)/scripttempl/i386beos.sc ${GEN_DEPENDS}
1688 ${GENSCRIPTS} i386beos "$(tdir_i386beos)"
1689ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
1690 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1691 ${GENSCRIPTS} i386bsd "$(tdir_i386bsd)"
1692ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
1693 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
1694 ${GENSCRIPTS} i386coff "$(tdir_i386coff)"
1695ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
1696 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
1697 ${GENSCRIPTS} i386go32 "$(tdir_i386go32)"
1698ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
1699 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1700 ${GENSCRIPTS} i386linux "$(tdir_i386linux)"
1701ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
b2d65c0b 1702 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132
RH
1703 ${GENSCRIPTS} i386lynx "$(tdir_i386lynx)"
1704ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
1705 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1706 ${GENSCRIPTS} i386mach "$(tdir_i386mach)"
1707ei386moss.c: $(srcdir)/emulparams/i386moss.sh \
6caa99ab 1708 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132
RH
1709 ${GENSCRIPTS} i386moss "$(tdir_i386moss)"
1710ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \
1711 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS}
1712 ${GENSCRIPTS} i386msdos "$(tdir_i386msdos)"
1713ei386nbsd.c: $(srcdir)/emulparams/i386nbsd.sh \
1714 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1715 ${GENSCRIPTS} i386nbsd "$(tdir_i386nbsd)"
2c538bde
AM
1716ei386nto.c: $(srcdir)/emulparams/i386nto.sh \
1717 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1718 ${GENSCRIPTS} i386nto "$(tdir_i386nto)"
252b5132
RH
1719ei386nw.c: $(srcdir)/emulparams/i386nw.sh \
1720 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
1721 ${GENSCRIPTS} i386nw "$(tdir_i386nw)"
1722ei386pe.c: $(srcdir)/emulparams/i386pe.sh \
1723 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1724 ${GENSCRIPTS} i386pe "$(tdir_i386pe)"
a7e78dae
ILT
1725ei386pe_posix.c: $(srcdir)/emulparams/i386pe_posix.sh \
1726 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1727 ${GENSCRIPTS} i386pe_posix "$(tdir_i386pe_posix)"
252b5132
RH
1728elnk960.c: $(srcdir)/emulparams/lnk960.sh \
1729 $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
1730 ${GENSCRIPTS} lnk960 "$(tdir_lnk960)"
60bcf0fa 1731em68hc11elf.c: $(srcdir)/emulparams/m68hc11elf.sh \
0c7a8e5a
AM
1732 $(srcdir)/emultempl/m68hc1xelf.em $(srcdir)/emultempl/elf32.em \
1733 $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
60bcf0fa
NC
1734 ${GENSCRIPTS} m68hc11elf "$(tdir_m68hc11)"
1735em68hc11elfb.c: $(srcdir)/emulparams/m68hc11elfb.sh \
0c7a8e5a
AM
1736 $(srcdir)/emultempl/m68hc1xelf.em $(srcdir)/emultempl/elf32.em \
1737 $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
60bcf0fa
NC
1738 ${GENSCRIPTS} m68hc11elfb "$(tdir_m68hc11b)"
1739em68hc12elf.c: $(srcdir)/emulparams/m68hc12elf.sh \
0c7a8e5a
AM
1740 $(srcdir)/emultempl/m68hc1xelf.em $(srcdir)/emultempl/elf32.em \
1741 $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
60bcf0fa
NC
1742 ${GENSCRIPTS} m68hc12elf "$(tdir_m68hc12)"
1743em68hc12elfb.c: $(srcdir)/emulparams/m68hc12elfb.sh \
0c7a8e5a
AM
1744 $(srcdir)/emultempl/m68hc1xelf.em $(srcdir)/emultempl/elf32.em \
1745 $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
60bcf0fa 1746 ${GENSCRIPTS} m68hc12elfb "$(tdir_m68hc12b)"
252b5132
RH
1747em68k4knbsd.c: $(srcdir)/emulparams/m68k4knbsd.sh \
1748 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1749 ${GENSCRIPTS} m68k4knbsd "$(tdir_m68k4knbsd)"
1750em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
1751 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1752 ${GENSCRIPTS} m68kaout "$(tdir_m68kaout)"
1753em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \
1754 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS}
1755 ${GENSCRIPTS} m68kaux "$(tdir_m68kaux)"
1756em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
20bccb34 1757 $(srcdir)/emultempl/m68kcoff.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
252b5132
RH
1758 ${GENSCRIPTS} m68kcoff "$(tdir_m68kcoff)"
1759em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \
0752970e
NC
1760 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/m68kelf.em \
1761 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132 1762 ${GENSCRIPTS} m68kelf "$(tdir_m68kelf)"
0b69cd08
MG
1763em68kelfnbsd.c: $(srcdir)/emulparams/m68kelfnbsd.sh \
1764 $(srcdir)/emulparams/m68kelf.sh \
1765 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/m68kelf.em \
1766 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1767 ${GENSCRIPTS} m68kelfnbsd "$(tdir_m68kelfnbsd)"
252b5132
RH
1768em68klinux.c: $(srcdir)/emulparams/m68klinux.sh \
1769 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1770 ${GENSCRIPTS} m68klinux "$(tdir_m68klinux)"
1771em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
1772 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS}
1773 ${GENSCRIPTS} m68klynx "$(tdir_m68klynx)"
1774em68knbsd.c: $(srcdir)/emulparams/m68knbsd.sh \
1775 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1776 ${GENSCRIPTS} m68knbsd "$(tdir_m68knbsd)"
1777em68kpsos.c: $(srcdir)/emulparams/m68kpsos.sh \
1778 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS}
1779 ${GENSCRIPTS} m68kpsos "$(tdir_m68kpsos)"
1780em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
1781 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
1782 ${GENSCRIPTS} m88kbcs "$(tdir_m88kbcs)"
71acc4e8
NC
1783emcorepe.c: $(srcdir)/emulparams/mcorepe.sh \
1784 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1785 ${GENSCRIPTS} mcorepe "$(tdir_mcorepe)"
252b5132
RH
1786emipsbig.c: $(srcdir)/emulparams/mipsbig.sh \
1787 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
1788 ${GENSCRIPTS} mipsbig
1789emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
1790 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
1791 ${GENSCRIPTS} mipsbsd
1792emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
1793 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
1794 ${GENSCRIPTS} mipsidt "$(tdir_mipsidt)"
1795emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
1796 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
1797 ${GENSCRIPTS} mipsidtl "$(tdir_mipsidtl)"
1798emipslit.c: $(srcdir)/emulparams/mipslit.sh \
1799 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
1800 ${GENSCRIPTS} mipslit "$(tdir_mipslit)"
1801emipslnews.c: $(srcdir)/emulparams/mipslnews.sh \
1802 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
1803 ${GENSCRIPTS} mipslnews
344a211f
NC
1804emipspe.c: $(srcdir)/emulparams/mipspe.sh \
1805 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1806 ${GENSCRIPTS} mipspe "$(tdir_mips)"
252b5132 1807emn10300.c: $(srcdir)/emulparams/mn10300.sh \
465bc359 1808 $(srcdir)/emulparams/mn10200.sh \
252b5132
RH
1809 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1810 ${GENSCRIPTS} mn10300 "$(tdir_mn10300)"
1811emn10200.c: $(srcdir)/emulparams/mn10200.sh \
1812 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1813 ${GENSCRIPTS} mn10200 "$(tdir_mn10200)"
aafdb207 1814emsp430x110.c: $(srcdir)/emulparams/msp430all.sh \
3b260895 1815 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1816 ${GEN_DEPENDS}
1817 ${GENSCRIPTS} msp430x110 "$(tdir_msp430x110)" msp430all
aafdb207 1818emsp430x112.c: $(srcdir)/emulparams/msp430all.sh \
3b260895 1819 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1820 ${GEN_DEPENDS}
1821 ${GENSCRIPTS} msp430x112 "$(tdir_msp430x112)" msp430all
aafdb207 1822emsp430x1101.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1823 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1824 ${GEN_DEPENDS}
1825 ${GENSCRIPTS} msp430x1101 "$(tdir_msp430x1101)" msp430all
aafdb207 1826emsp430x1111.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1827 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1828 ${GEN_DEPENDS}
1829 ${GENSCRIPTS} msp430x1111 "$(tdir_msp430x1111)" msp430all
aafdb207 1830emsp430x1121.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1831 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1832 ${GEN_DEPENDS}
1833 ${GENSCRIPTS} msp430x1121 "$(tdir_msp430x1121)" msp430all
aafdb207 1834emsp430x1122.c: $(srcdir)/emulparams/msp430all.sh \
b4275f43 1835 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1836 ${GEN_DEPENDS}
1837 ${GENSCRIPTS} msp430x1122 "$(tdir_msp430x1122)" msp430all
aafdb207 1838emsp430x1132.c: $(srcdir)/emulparams/msp430all.sh \
b4275f43 1839 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1840 ${GEN_DEPENDS}
1841 ${GENSCRIPTS} msp430x1132 "$(tdir_msp430x1132)" msp430all
aafdb207 1842emsp430x122.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1843 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1844 ${GEN_DEPENDS}
1845 ${GENSCRIPTS} msp430x122 "$(tdir_msp430x122)" msp430all
aafdb207 1846emsp430x123.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1847 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1848 ${GEN_DEPENDS}
1849 ${GENSCRIPTS} msp430x123 "$(tdir_msp430x123)" msp430all
aafdb207 1850emsp430x1222.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1851 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1852 ${GEN_DEPENDS}
1853 ${GENSCRIPTS} msp430x1222 "$(tdir_msp430x1222)" msp430all
aafdb207 1854emsp430x1232.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1855 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1856 ${GEN_DEPENDS}
1857 ${GENSCRIPTS} msp430x1232 "$(tdir_msp430x1232)" msp430all
aafdb207 1858emsp430x133.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1859 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1860 ${GEN_DEPENDS}
1861 ${GENSCRIPTS} msp430x133 "$(tdir_msp430x133)" msp430all
aafdb207 1862emsp430x135.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1863 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1864 ${GEN_DEPENDS}
1865 ${GENSCRIPTS} msp430x135 "$(tdir_msp430x135)" msp430all
aafdb207 1866emsp430x1331.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1867 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1868 ${GEN_DEPENDS}
1869 ${GENSCRIPTS} msp430x1331 "$(tdir_msp430x1331)" msp430all
aafdb207 1870emsp430x1351.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1871 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1872 ${GEN_DEPENDS}
1873 ${GENSCRIPTS} msp430x1351 "$(tdir_msp430x1351)" msp430all
aafdb207 1874emsp430x147.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1875 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1876 ${GEN_DEPENDS}
1877 ${GENSCRIPTS} msp430x147 "$(tdir_msp430x147)" msp430all
aafdb207 1878emsp430x148.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1879 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1880 ${GEN_DEPENDS}
1881 ${GENSCRIPTS} msp430x148 "$(tdir_msp430x148)" msp430all
aafdb207 1882emsp430x149.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1883 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1884 ${GEN_DEPENDS}
1885 ${GENSCRIPTS} msp430x149 "$(tdir_msp430x149)" msp430all
aafdb207 1886emsp430x155.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1887 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1888 ${GEN_DEPENDS}
1889 ${GENSCRIPTS} msp430x155 "$(tdir_msp430x155)" msp430all
aafdb207 1890emsp430x156.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1891 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1892 ${GEN_DEPENDS}
1893 ${GENSCRIPTS} msp430x156 "$(tdir_msp430x156)" msp430all
aafdb207 1894emsp430x157.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1895 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1896 ${GEN_DEPENDS}
1897 ${GENSCRIPTS} msp430x157 "$(tdir_msp430x157)" msp430all
aafdb207 1898emsp430x167.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1899 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1900 ${GEN_DEPENDS}
1901 ${GENSCRIPTS} msp430x167 "$(tdir_msp430x167)" msp430all
aafdb207 1902emsp430x168.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1903 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1904 ${GEN_DEPENDS}
1905 ${GENSCRIPTS} msp430x168 "$(tdir_msp430x168)" msp430all
aafdb207 1906emsp430x169.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1907 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1908 ${GEN_DEPENDS}
1909 ${GENSCRIPTS} msp430x169 "$(tdir_msp430x169)" msp430all
c05e9f04
NC
1910emsp430x1610.c: $(srcdir)/emulparams/msp430all.sh \
1911 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1912 ${GEN_DEPENDS}
1913 ${GENSCRIPTS} msp430x1610 "$(tdir_msp430x1610)" msp430all
1914emsp430x1611.c: $(srcdir)/emulparams/msp430all.sh \
1915 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1916 ${GEN_DEPENDS}
1917 ${GENSCRIPTS} msp430x1611 "$(tdir_msp430x1611)" msp430all
1918emsp430x1612.c: $(srcdir)/emulparams/msp430all.sh \
1919 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1920 ${GEN_DEPENDS}
1921 ${GENSCRIPTS} msp430x1612 "$(tdir_msp430x1612)" msp430all
aafdb207 1922emsp430x311.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1923 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430_3.sc \
8fbdf3ab
AM
1924 ${GEN_DEPENDS}
1925 ${GENSCRIPTS} msp430x311 "$(tdir_msp430x311)" msp430all
aafdb207 1926emsp430x312.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1927 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430_3.sc \
8fbdf3ab
AM
1928 ${GEN_DEPENDS}
1929 ${GENSCRIPTS} msp430x312 "$(tdir_msp430x312)" msp430all
aafdb207 1930emsp430x313.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1931 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430_3.sc \
8fbdf3ab
AM
1932 ${GEN_DEPENDS}
1933 ${GENSCRIPTS} msp430x313 "$(tdir_msp430x313)" msp430all
aafdb207 1934emsp430x314.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1935 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430_3.sc \
8fbdf3ab
AM
1936 ${GEN_DEPENDS}
1937 ${GENSCRIPTS} msp430x314 "$(tdir_msp430x314)" msp430all
aafdb207 1938emsp430x315.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1939 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430_3.sc \
8fbdf3ab
AM
1940 ${GEN_DEPENDS}
1941 ${GENSCRIPTS} msp430x315 "$(tdir_msp430x315)" msp430all
aafdb207 1942emsp430x323.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1943 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430_3.sc \
8fbdf3ab
AM
1944 ${GEN_DEPENDS}
1945 ${GENSCRIPTS} msp430x323 "$(tdir_msp430x323)" msp430all
aafdb207 1946emsp430x325.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1947 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430_3.sc \
8fbdf3ab
AM
1948 ${GEN_DEPENDS}
1949 ${GENSCRIPTS} msp430x325 "$(tdir_msp430x325)" msp430all
aafdb207 1950emsp430x336.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1951 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430_3.sc \
8fbdf3ab
AM
1952 ${GEN_DEPENDS}
1953 ${GENSCRIPTS} msp430x336 "$(tdir_msp430x336)" msp430all
aafdb207 1954emsp430x337.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1955 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430_3.sc \
8fbdf3ab
AM
1956 ${GEN_DEPENDS}
1957 ${GENSCRIPTS} msp430x337 "$(tdir_msp430x337)" msp430all
aafdb207 1958emsp430x412.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1959 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1960 ${GEN_DEPENDS}
1961 ${GENSCRIPTS} msp430x412 "$(tdir_msp430x412)" msp430all
aafdb207 1962emsp430x413.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1963 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1964 ${GEN_DEPENDS}
1965 ${GENSCRIPTS} msp430x413 "$(tdir_msp430x413)" msp430all
c05e9f04
NC
1966emsp430x415.c: $(srcdir)/emulparams/msp430all.sh \
1967 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1968 ${GEN_DEPENDS}
1969 ${GENSCRIPTS} msp430x415 "$(tdir_msp430x415)" msp430all
1970emsp430x417.c: $(srcdir)/emulparams/msp430all.sh \
1971 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
1972 ${GEN_DEPENDS}
1973 ${GENSCRIPTS} msp430x417 "$(tdir_msp430x417)" msp430all
aafdb207 1974emsp430xE423.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1975 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1976 ${GEN_DEPENDS}
1977 ${GENSCRIPTS} msp430xE423 "$(tdir_msp430xE423)" msp430all
aafdb207 1978emsp430xE425.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1979 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1980 ${GEN_DEPENDS}
1981 ${GENSCRIPTS} msp430xE425 "$(tdir_msp430xE425)" msp430all
aafdb207 1982emsp430xE427.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1983 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1984 ${GEN_DEPENDS}
1985 ${GENSCRIPTS} msp430xE427 "$(tdir_msp430xE427)" msp430all
aafdb207 1986emsp430xW423.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1987 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1988 ${GEN_DEPENDS}
1989 ${GENSCRIPTS} msp430xW423 "$(tdir_msp430xW423)" msp430all
aafdb207 1990emsp430xW425.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1991 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1992 ${GEN_DEPENDS}
1993 ${GENSCRIPTS} msp430xW425 "$(tdir_msp430xW425)" msp430all
aafdb207 1994emsp430xW427.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 1995 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
1996 ${GEN_DEPENDS}
1997 ${GENSCRIPTS} msp430xW427 "$(tdir_msp430xW427)" msp430all
c05e9f04
NC
1998emsp430xG437.c: $(srcdir)/emulparams/msp430all.sh \
1999 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
2000 ${GEN_DEPENDS}
2001 ${GENSCRIPTS} msp430xG437 "$(tdir_msp430xG437)" msp430all
2002emsp430xG438.c: $(srcdir)/emulparams/msp430all.sh \
2003 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
2004 ${GEN_DEPENDS}
2005 ${GENSCRIPTS} msp430xG438 "$(tdir_msp430xG438)" msp430all
2006emsp430xG439.c: $(srcdir)/emulparams/msp430all.sh \
2007 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
2008 ${GEN_DEPENDS}
2009 ${GENSCRIPTS} msp430xG439 "$(tdir_msp430xG439)" msp430all
aafdb207 2010emsp430x435.c: $(srcdir)/emulparams/msp430all.sh \
2469cfa2 2011 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
2012 ${GEN_DEPENDS}
2013 ${GENSCRIPTS} msp430x435 "$(tdir_msp430x435)" msp430all
aafdb207 2014emsp430x436.c: $(srcdir)/emulparams/msp430all.sh \
3b260895 2015 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
2016 ${GEN_DEPENDS}
2017 ${GENSCRIPTS} msp430x436 "$(tdir_msp430x436)" msp430all
aafdb207 2018emsp430x437.c: $(srcdir)/emulparams/msp430all.sh \
3b260895 2019 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
2020 ${GEN_DEPENDS}
2021 ${GENSCRIPTS} msp430x437 "$(tdir_msp430x437)" msp430all
aafdb207 2022emsp430x447.c: $(srcdir)/emulparams/msp430all.sh \
3b260895 2023 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
2024 ${GEN_DEPENDS}
2025 ${GENSCRIPTS} msp430x447 "$(tdir_msp430x447)" msp430all
aafdb207 2026emsp430x448.c: $(srcdir)/emulparams/msp430all.sh \
3b260895 2027 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
2028 ${GEN_DEPENDS}
2029 ${GENSCRIPTS} msp430x448 "$(tdir_msp430x448)" msp430all
aafdb207 2030emsp430x449.c: $(srcdir)/emulparams/msp430all.sh \
3b260895 2031 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32msp430.sc \
8fbdf3ab
AM
2032 ${GEN_DEPENDS}
2033 ${GENSCRIPTS} msp430x449 "$(tdir_msp430x449)" msp430all
252b5132
RH
2034enews.c: $(srcdir)/emulparams/news.sh \
2035 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
2036 ${GENSCRIPTS} news "$(tdir_news)"
2037ens32knbsd.c: $(srcdir)/emulparams/ns32knbsd.sh \
f2241121
AM
2038 $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/netbsd.em \
2039 $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
252b5132 2040 ${GENSCRIPTS} ns32knbsd "$(tdir_ns32knbsd)"
3b16e843
NC
2041eor32.c: $(srcdir)/emulparams/or32.sh \
2042 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/or32.sc ${GEN_DEPENDS}
2043 ${GENSCRIPTS} or32 "$(tdir_or32)"
2044eor32elf.c: $(srcdir)/emulparams/or32elf.sh \
2045 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2046 ${GENSCRIPTS} or32elf "$(tdir_or32elf)"
252b5132
RH
2047epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \
2048 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
2049 ${GENSCRIPTS} pc532macha "$(tdir_pc532macha)"
e135f41b
NC
2050epdp11.c: $(srcdir)/emulparams/pdp11.sh \
2051 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
2052 ${GENSCRIPTS} pdp11 "$(tdir_pdp11)"
c6c8c6dc
ILT
2053epjelf.c: $(srcdir)/emulparams/pjelf.sh \
2054 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2055 ${GENSCRIPTS} pjelf "$(tdir_pjelf)"
2056epjlelf.c: $(srcdir)/emulparams/pjlelf.sh \
2057 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2058 ${GENSCRIPTS} pjlelf "$(tdir_pjlelf)"
252b5132
RH
2059eppcmacos.c: $(srcdir)/emulparams/ppcmacos.sh \
2060 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
2061 ${GENSCRIPTS} ppcmacos "$(tdir_ppcmacos)"
2062eppcnw.c: $(srcdir)/emulparams/ppcnw.sh \
2063 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
2064 ${GENSCRIPTS} ppcnw "$(tdir_ppcnw)"
2065eppcpe.c: $(srcdir)/emulparams/ppcpe.sh \
2066 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/ppcpe.sc ${GEN_DEPENDS}
2067 ${GENSCRIPTS} ppcpe "$(tdir_ppcpe)"
b2d65c0b
NC
2068eppclynx.c: $(srcdir)/emulparams/ppclynx.sh \
2069 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2070 ${GENSCRIPTS} ppclynx "$(tdir_ppclynx)"
252b5132
RH
2071eriscix.c: $(srcdir)/emulparams/riscix.sh \
2072 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
2073 ${GENSCRIPTS} riscix "$(tdir_riscix)"
2074esa29200.c: $(srcdir)/emulparams/sa29200.sh \
2075 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
2076 ${GENSCRIPTS} sa29200 "$(tdir_sa29200)"
2077esh.c: $(srcdir)/emulparams/sh.sh \
2078 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
2079 ${GENSCRIPTS} sh "$(tdir_sh)"
2080eshelf.c: $(srcdir)/emulparams/shelf.sh \
2081 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2082 ${GENSCRIPTS} shelf "$(tdir_shelf)"
2d92cb7d
AO
2083eshelf32.c: $(srcdir)/emulparams/shelf32.sh \
2084 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
2085 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
2086 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2087 ${GENSCRIPTS} shelf32 "$(tdir_shelf32)"
a2b3c630
SC
2088eshelf32_linux.c: $(srcdir)/emulparams/shelf32_linux.sh \
2089 $(srcdir)/emulparams/shelf32.sh \
2090 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
2091 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
2092 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2093 ${GENSCRIPTS} shelf32_linux "$(tdir_shelf32_linux)"
5b0e55b6
JT
2094eshelf32_nbsd.c: $(srcdir)/emulparams/shelf32_nbsd.sh \
2095 $(srcdir)/emulparams/shelf32.sh \
2096 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
2097 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
2098 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2099 ${GENSCRIPTS} shelf32_nbsd "$(tdir_shelf32_nbsd)"
2d92cb7d
AO
2100eshelf64.c: $(srcdir)/emulparams/shelf64.sh $(srcdir)/emulparams/shelf32.sh \
2101 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2102 ${GENSCRIPTS} shelf64 "$(tdir_shelf64)"
5b0e55b6
JT
2103eshelf64_nbsd.c: $(srcdir)/emulparams/shelf64_nbsd.sh \
2104 $(srcdir)/emulparams/shelf32_nbsd.sh $(srcdir)/emulparams/shelf32.sh \
2105 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2106 ${GENSCRIPTS} shelf64_nbsd "$(tdir_shelf64_nbsd)"
4a428502 2107eshelf_linux.c: $(srcdir)/emulparams/shelf_linux.sh \
465bc359 2108 $(srcdir)/emulparams/shlelf_linux.sh \
4a428502
AO
2109 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2110 ${GENSCRIPTS} shelf_linux "$(tdir_shelf_linux)"
2111eshlelf_linux.c: $(srcdir)/emulparams/shlelf_linux.sh \
2112 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2113 ${GENSCRIPTS} shlelf_linux "$(tdir_shlelf_linux)"
8d05742f
JT
2114eshelf_nbsd.c: $(srcdir)/emulparams/shelf_nbsd.sh \
2115 $(srcdir)/emulparams/shelf.sh \
2116 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2117 ${GENSCRIPTS} shelf_nbsd "$(tdir_shelf_nbsd)"
ed71e111
NC
2118eshelf_nto.c: $(srcdir)/emulparams/shelf_nto.sh \
2119 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2120 ${GENSCRIPTS} shelf_nto "$(tdir_shelf_nto)"
8d05742f
JT
2121eshlelf_nbsd.c: $(srcdir)/emulparams/shlelf_nbsd.sh \
2122 $(srcdir)/emulparams/shelf_nbsd.sh \
2123 $(srcdir)/emulparams/shelf.sh \
2124 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2125 ${GENSCRIPTS} shlelf_nbsd "$(tdir_shlelf_nbsd)"
ed71e111
NC
2126eshlelf_nto.c: $(srcdir)/emulparams/shlelf_nto.sh \
2127 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2128 ${GENSCRIPTS} shlelf_nto "$(tdir_shlelf_nto)"
252b5132 2129eshlelf.c: $(srcdir)/emulparams/shlelf.sh \
465bc359 2130 $(srcdir)/emulparams/shelf.sh \
252b5132
RH
2131 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2132 ${GENSCRIPTS} shlelf "$(tdir_shlelf)"
85fbca6a
NC
2133eshlsymbian.c: $(srcdir)/emulparams/shlsymbian.sh \
2134 $(srcdir)/emulparams/shelf.sh \
2135 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf32sh-symbian.sc ${GEN_DEPENDS}
2136 ${GENSCRIPTS} shlsymbian "$(tdir_shlelf)"
2d92cb7d
AO
2137eshlelf32.c: $(srcdir)/emulparams/shlelf32.sh \
2138 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h $(srcdir)/emulparams/shelf32.sh \
2139 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
2140 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2141 ${GENSCRIPTS} shlelf32 "$(tdir_shlelf32)"
a2b3c630
SC
2142eshlelf32_linux.c: $(srcdir)/emulparams/shlelf32_linux.sh \
2143 $(srcdir)/emulparams/shelf32_linux.sh $(srcdir)/emulparams/shelf32.sh \
2144 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
2145 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
2146 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2147 ${GENSCRIPTS} shlelf32_linux "$(tdir_shlelf32_linux)"
5b0e55b6
JT
2148eshlelf32_nbsd.c: $(srcdir)/emulparams/shlelf32_nbsd.sh \
2149 $(srcdir)/emulparams/shelf32_nbsd.sh $(srcdir)/emulparams/shelf32.sh \
2150 $(BFDDIR)/libbfd.h $(INCDIR)/libiberty.h \
2151 $(srcdir)/emultempl/sh64elf.em $(INCDIR)/elf/sh.h $(BFDDIR)/elf-bfd.h \
2152 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2153 ${GENSCRIPTS} shlelf32_nbsd "$(tdir_shlelf32_nbsd)"
2d92cb7d
AO
2154eshlelf64.c: $(srcdir)/emulparams/shlelf64.sh \
2155 $(srcdir)/emulparams/shelf64.sh $(srcdir)/emulparams/shelf32.sh \
2156 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2157 ${GENSCRIPTS} shlelf64 "$(tdir_shlelf64)"
5b0e55b6
JT
2158eshlelf64_nbsd.c: $(srcdir)/emulparams/shlelf64_nbsd.sh \
2159 $(srcdir)/emulparams/shelf64_nbsd.sh \
2160 $(srcdir)/emulparams/shelf32_nbsd.sh $(srcdir)/emulparams/shelf32.sh \
2161 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2162 ${GENSCRIPTS} shlelf64_nbsd "$(tdir_shlelf64_nbsd)"
252b5132 2163eshl.c: $(srcdir)/emulparams/shl.sh \
465bc359 2164 $(srcdir)/emulparams/sh.sh \
252b5132
RH
2165 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
2166 ${GENSCRIPTS} shl "$(tdir_shl)"
344a211f
NC
2167eshpe.c: $(srcdir)/emulparams/shpe.sh \
2168 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
2169 ${GENSCRIPTS} shpe "$(tdir_shl)"
252b5132
RH
2170esparcaout.c: $(srcdir)/emulparams/sparcaout.sh \
2171 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
2172 ${GENSCRIPTS} sparcaout "$(tdir_sparcaout)"
2173esparclinux.c: $(srcdir)/emulparams/sparclinux.sh \
2174 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
2175 ${GENSCRIPTS} sparclinux "$(tdir_sparclinux)"
2176esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
2177 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS}
2178 ${GENSCRIPTS} sparclynx "$(tdir_sparclynx)"
2179esparcnbsd.c: $(srcdir)/emulparams/sparcnbsd.sh \
2180 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
2181 ${GENSCRIPTS} sparcnbsd "$(tdir_sparcnbsd)"
2182est2000.c: $(srcdir)/emulparams/st2000.sh \
2183 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
2184 ${GENSCRIPTS} st2000 "$(tdir_st2000)"
2185esun3.c: $(srcdir)/emulparams/sun3.sh \
2186 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
2187 ${GENSCRIPTS} sun3 "$(tdir_sun3)"
2188esun4.c: $(srcdir)/emulparams/sun4.sh \
2189 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
2190 ${GENSCRIPTS} sun4 "$(tdir_sun4)"
2191etic30aout.c: $(srcdir)/emulparams/tic30aout.sh \
2192 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30aout.sc ${GEN_DEPENDS}
2193 ${GENSCRIPTS} tic30aout "$(tdir_tic30aout)"
2194etic30coff.c: $(srcdir)/emulparams/tic30coff.sh \
2195 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30coff.sc ${GEN_DEPENDS}
2196 ${GENSCRIPTS} tic30coff "$(tdir_tic30coff)"
0da35f8b
SS
2197etic3xcoff.c: $(srcdir)/emulparams/tic3xcoff.sh \
2198 $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic4xcoff.sc ${GEN_DEPENDS}
2199 ${GENSCRIPTS} tic3xcoff "$(tdir_tic4xcoff)"
2200etic3xcoff_onchip.c: $(srcdir)/emulparams/tic3xcoff_onchip.sh \
2201 $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic4xcoff.sc ${GEN_DEPENDS}
019ac0e3 2202 ${GENSCRIPTS} tic3xcoff_onchip "$(tdir_tic4xcoff)"
026df7c5
NC
2203etic4xcoff.c: $(srcdir)/emulparams/tic4xcoff.sh \
2204 $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic4xcoff.sc ${GEN_DEPENDS}
2205 ${GENSCRIPTS} tic4xcoff "$(tdir_tic4xcoff)"
74459f0e
TW
2206etic54xcoff.c: $(srcdir)/emulparams/tic54xcoff.sh \
2207 $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic54xcoff.sc ${GEN_DEPENDS}
2208 ${GENSCRIPTS} tic54xcoff "$(tdir_tic54xcoff)"
252b5132
RH
2209etic80coff.c: $(srcdir)/emulparams/tic80coff.sh \
2210 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic80coff.sc ${GEN_DEPENDS}
2211 ${GENSCRIPTS} tic80coff "$(tdir_tic80coff)"
2212evanilla.c: $(srcdir)/emulparams/vanilla.sh \
2213 $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
2214 ${GENSCRIPTS} vanilla "$(tdir_vanilla)"
2215evax.c: $(srcdir)/emulparams/vax.sh \
2216 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
2217 ${GENSCRIPTS} vax "$(tdir_vax)"
ab68f3e0
JT
2218evaxnbsd.c: $(srcdir)/emulparams/vaxnbsd.sh \
2219 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
2220 ${GENSCRIPTS} vaxnbsd "$(tdir_vaxnbsd)"
252b5132
RH
2221evsta.c: $(srcdir)/emulparams/vsta.sh \
2222 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
2223 ${GENSCRIPTS} vsta "$(tdir_vsta)"
2224ev850.c: $(srcdir)/emulparams/v850.sh \
2225 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/v850.sc ${GEN_DEPENDS}
2226 ${GENSCRIPTS} v850 "$(tdir_v850)"
2227ew65.c: $(srcdir)/emulparams/w65.sh \
2228 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS}
2229 ${GENSCRIPTS} w65 "$(tdir_w65)"
2230ez8001.c: $(srcdir)/emulparams/z8001.sh \
2231 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
2232 ${GENSCRIPTS} z8001 "$(tdir_z8001)"
2233ez8002.c: $(srcdir)/emulparams/z8002.sh \
2234 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
2235 ${GENSCRIPTS} z8002 "$(tdir_z8002)"
005e1118
AO
2236eelf32frvfd.c: $(srcdir)/emulparams/elf32frvfd.sh \
2237 $(srcdir)/emulparams/elf32frv.sh \
2238 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
2239 ${GENSCRIPTS} elf32frvfd "$(tdir_frv)"
252b5132
RH
2240
2241# The generated emulation files mostly have the same dependencies.
2242$(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
2243 ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \
2244 ldctor.h ldexp.h ldlang.h ldgram.h
2245
2246check-DEJAGNU: site.exp
2247 srcroot=`cd $(srcdir) && pwd`; export srcroot; \
2248 r=`pwd`; export r; \
9282ff41 2249 LC_COLLATE=; LC_ALL=; LANG=; export LC_COLLATE LC_ALL LANG; \
252b5132
RH
2250 EXPECT=$(EXPECT); export EXPECT; \
2251 if [ -f $(top_builddir)/../expect/expect ]; then \
2252 TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
2253 export TCL_LIBRARY; \
2254 fi; \
2255 runtest=$(RUNTEST); \
2256 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
2257 $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \
2258 CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
2259 CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \
2260 CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \
2261 OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" \
af28fce3 2262 LIBIBERTY="$(LIBIBERTY) $(INTLLIBS)" LIBS="$(LIBS)" \
252b5132
RH
2263 $(RUNTESTFLAGS); \
2264 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
2265 fi
2266
2267# Rules for testing by relinking ld itself.
2268# A similar test is in the testsuite. This target is for ease of use
2269# when porting ld.
2270
2271ld-partial.o: ld-new$(EXEEXT)
2272 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
2273ld1$(EXEEXT): ld-partial.o
af28fce3 2274 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1$(EXEEXT) $(HOSTING_CRT0) ld-partial.o $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
252b5132
RH
2275
2276ld1-full$(EXEEXT): ld-new
af28fce3 2277 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1-full$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
252b5132
RH
2278
2279ld2$(EXEEXT): ld1$(EXEEXT)
af28fce3 2280 ./ld1$(EXEEXT) $(HOSTING_EMU) -o ld2$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
252b5132
RH
2281
2282ld3$(EXEEXT): ld2$(EXEEXT)
af28fce3 2283 ./ld2$(EXEEXT) $(HOSTING_EMU) -o ld3$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
252b5132
RH
2284
2285bootstrap: ld3$(EXEEXT)
2286 cmp ld2$(EXEEXT) ld3$(EXEEXT)
2287
2288.PHONY: bootstrap
2289
2290# A test program for C++ constructors and destructors.
2291# This test is now in the testsuite.
2292#
2293#cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
2294# ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
2295# cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS)
2296#
2297#cdtest.out: cdtest
2298# ./cdtest > cdtest.tmp
2299# mv cdtest.tmp cdtest.out
2300#
2301#cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
2302# ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
2303# cdtest-bar.o cdtest-foo.o
2304#
2305#cdtest-ur: cdtest-ur.o
2306# ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
2307# $(HOSTING_LIBS)
2308#
2309#cdtest-ur.out: cdtest-ur
2310# ./cdtest-ur > cdtest-ur.tmp
2311# mv cdtest-ur.tmp cdtest-ur.out
2312#
2313#check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
2314# diff $(srcdir)/cdtest.exp cdtest.out
2315# diff $(srcdir)/cdtest.exp cdtest-ur.out
2316#
2317#.PHONY: check-cdtest
2318
2319# END OF CHECK TARGETS
2320
2321# DOCUMENTATION TARGETS
2322# Manual configuration file; not usually attached to normal configuration,
2323# because almost all configs use "gen" version of manual.
2324# Set DOCVER above to change.
2325configdoc.texi: ${DOCVER}-doc.texi
2326 ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
2327 || ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
2328 || cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
2329
2330ldver.texi: Makefile
2331 rm -f $@
2332 echo '@set VERSION $(VERSION)' > $@
2333
2334ld.info: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
2335 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
2336 $(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc $(srcdir)/ld.texinfo
2337
2338ld.dvi: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
2339 TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
02649152 2340 MAKEINFO="$(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc" $(TEXI2DVI) -I $(BFDDIR)/doc $(srcdir)/ld.texinfo
252b5132 2341
0285c67d
NC
2342# Build the man page from the texinfo file
2343# The sed command removes the no-adjust Nroff command so that
2344# the man output looks standard.
980c112c 2345ld.1: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
c45021f2 2346 touch $@
0285c67d
NC
2347 -$(TEXI2POD) $(MANCONF) < $(srcdir)/ld.texinfo > ld.pod
2348 -($(POD2MAN) ld.pod | \
c45021f2
NC
2349 sed -e '/^.if n .na/d' > $@.T$$$$ && \
2350 mv -f $@.T$$$$ $@) || \
2351 (rm -f $@.T$$$$ && exit 1)
2352 rm -f ld.pod
252b5132
RH
2353mostlyclean-local:
2354 -rm -rf tmpdir
2355
2356.PHONY: install-exec-local install-data-local
2357
2358install-exec-local: ld-new$(EXEEXT)
d3d8a9ee 2359 $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(tooldir)/bin
252b5132
RH
2360 @list='$(noinst_PROGRAMS)'; for p in $$list; do \
2361 if test -f $$p; then \
2362 echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
d3d8a9ee 2363 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
252b5132
RH
2364 else :; fi; \
2365 done
2366 n=`echo ld | sed '$(transform)'`; \
2367 if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/ld$(EXEEXT)" ]; then \
d3d8a9ee
NC
2368 rm -f $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
2369 ln $(DESTDIR)$(bindir)/$$n$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
2370 || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
252b5132
RH
2371 fi
2372
2373install-data-local:
d3d8a9ee 2374 $(mkinstalldirs) $(DESTDIR)$(scriptdir)/ldscripts
252b5132 2375 for f in ldscripts/*; do \
d3d8a9ee 2376 $(INSTALL_DATA) $$f $(DESTDIR)$(scriptdir)/$$f ; \
252b5132 2377 done
cd8e197b
HPN
2378
2379# We want install to imply install-info as per GNU standards, despite the
2380# cygnus option.
2381install: install-info
c45021f2 2382diststuff: info $(EXTRA_DIST)
252b5132
RH
2383distclean-local:
2384 rm -rf ldscripts
2385
d32820f2
AM
2386Makefile: $(BFDDIR)/configure.in
2387
252b5132 2388# Targets to rebuild dependencies in this Makefile.
f4162f5c
ILT
2389# Have to get rid of DEP1 here so that "$?" later includes all of $(CFILES).
2390DEP: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
2391 rm -f DEP1
41b49281 2392 $(MAKE) MKDEP="$(MKDEP)" DEP1
0bdaf48b
AM
2393 sed -f dep.sed < DEP1 > DEPA
2394 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA
2395 if grep ' /' DEPA > /dev/null 2> /dev/null; then \
1581f8c9
AM
2396 echo 'make DEP failed!'; exit 1; \
2397 else \
0bdaf48b 2398 mv -f DEPA $@; \
1581f8c9 2399 fi
252b5132 2400
f4162f5c 2401DEP1: $(CFILES) $(GENERATED_CFILES)
f4162f5c 2402 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
41b49281
AM
2403 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
2404 $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
2405 mv -f DEP2 $@
252b5132
RH
2406
2407dep.sed: dep-in.sed config.status
2408 sed <$(srcdir)/dep-in.sed >dep.sed \
2409 -e 's!@INCDIR@!$(INCDIR)!' \
61bef6f1
AM
2410 -e 's!@BFDDIR@!$(BFDDIR)!' \
2411 -e 's!@SRCDIR@!$(srcdir)!' \
2412 -e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/ld$$,,`'!'
252b5132 2413
f4162f5c 2414dep: DEP
252b5132 2415 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
f4162f5c 2416 cat DEP >> tmp-Makefile
252b5132
RH
2417 $(srcdir)/../move-if-change tmp-Makefile Makefile
2418
f4162f5c 2419dep-in: DEP
252b5132 2420 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
f4162f5c 2421 cat DEP >> tmp-Makefile.in
252b5132
RH
2422 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
2423
f4162f5c 2424dep-am: DEP
252b5132 2425 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
f4162f5c 2426 cat DEP >> tmp-Makefile.am
252b5132
RH
2427 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
2428
2429.PHONY: dep dep-in dep-am
2430
2431# What appears below is generated by a hacked mkdep using gcc -MM.
2432
2433# DO NOT DELETE THIS LINE -- mkdep uses it.
2434# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
01580992 2435ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
2436 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
2437 $(INCDIR)/bfdlink.h $(INCDIR)/safe-ctype.h ld.h $(INCDIR)/bin-bugs.h \
2438 ldexp.h ldlang.h ldmisc.h ldgram.h ldmain.h ldctor.h
01580992 2439ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
2440 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
2441 ld.h $(INCDIR)/bin-bugs.h ldmisc.h ldexp.h ldlang.h \
2442 ldfile.h ldemul.h ldmain.h ldemul-list.h
01580992 2443ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
2444 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
2445 $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldmain.h \
1d3fdf38
AM
2446 ldmisc.h ldexp.h ldgram.h ldlang.h $(INCDIR)/libiberty.h \
2447 $(INCDIR)/safe-ctype.h
01580992 2448ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
2449 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
2450 $(INCDIR)/bfdlink.h $(INCDIR)/safe-ctype.h ld.h $(INCDIR)/bin-bugs.h \
2451 ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldgram.h \
3fe38064 2452 ldlex.h ldemul.h $(INCDIR)/libiberty.h $(INCDIR)/filenames.h
01580992 2453ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
2454 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
2455 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h $(INCDIR)/obstack.h \
2456 $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldmain.h \
1d3fdf38 2457 ldexp.h ldlang.h ldgram.h ldlex.h ldmisc.h ldctor.h \
9fa06c65
AM
2458 ldfile.h ldemul.h $(INCDIR)/fnmatch.h $(INCDIR)/demangle.h \
2459 $(INCDIR)/hashtab.h
01580992 2460ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
2461 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
2462 $(INCDIR)/safe-ctype.h $(INCDIR)/libiberty.h $(INCDIR)/progress.h \
2463 $(INCDIR)/bfdlink.h $(INCDIR)/filenames.h ld.h $(INCDIR)/bin-bugs.h \
1d3fdf38 2464 ldmain.h ldmisc.h ldwrite.h ldexp.h ldlang.h ldgram.h \
d32820f2 2465 ldlex.h ldfile.h ldemul.h ldctor.h
01580992 2466ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
6f6f27f8
L
2467 $(INCDIR)/symcat.h $(INCDIR)/bfdlink.h sysdep.h config.h \
2468 $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h $(INCDIR)/demangle.h \
2469 ld.h $(INCDIR)/bin-bugs.h ldmisc.h ldexp.h ldlang.h \
9c933e04
AM
2470 ldgram.h ldlex.h ldmain.h ldfile.h $(BFDDIR)/elf-bfd.h \
2471 $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h
01580992 2472ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
c6db2f05
AM
2473 $(INCDIR)/symcat.h ../bfd/bfdver.h sysdep.h config.h \
2474 $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h ldver.h \
2475 ldexp.h ldlang.h ldfile.h ldemul.h ldmain.h
01580992 2476ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2 2477 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
9fa06c65
AM
2478 $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \
2479 ld.h $(INCDIR)/bin-bugs.h ldexp.h ldlang.h ldwrite.h \
2480 ldmisc.h ldgram.h ldmain.h
01580992 2481lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
2482 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
2483 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h $(INCDIR)/bfdlink.h \
2484 ld.h $(INCDIR)/bin-bugs.h ldmain.h ldmisc.h ldexp.h \
2485 ldlang.h ldgram.h ldlex.h ldfile.h ldver.h ldemul.h \
2486 $(INCDIR)/demangle.h
2487mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
2488 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
01580992
L
2489 ldexp.h ldlang.h ldmisc.h mri.h ldgram.h $(INCDIR)/libiberty.h
2490ldcref.o: ldcref.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
2491 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
2492 $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h \
2493 ldmain.h ldmisc.h ldexp.h ldlang.h
01580992 2494pe-dll.o: pe-dll.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
2495 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
2496 $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \
2497 ld.h $(INCDIR)/bin-bugs.h ldexp.h ldlang.h ldwrite.h \
2498 ldmisc.h ldgram.h ldmain.h ldfile.h ldemul.h $(INCDIR)/coff/internal.h \
61bef6f1 2499 $(BFDDIR)/libcoff.h deffile.h pe-dll.h
01580992 2500ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
d32820f2
AM
2501 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
2502 $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldexp.h \
2503 ldver.h ldlang.h ldfile.h ldemul.h ldmisc.h ldmain.h \
2504 mri.h ldctor.h ldlex.h
1579bae1 2505ldlex.o: ldlex.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
61bef6f1 2506 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
ce4f7385
AM
2507 $(INCDIR)/safe-ctype.h $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h \
2508 ldmisc.h ldexp.h ldlang.h ldgram.h ldfile.h ldlex.h \
2509 ldmain.h $(INCDIR)/libiberty.h
01580992 2510deffilep.o: deffilep.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
d32820f2
AM
2511 $(INCDIR)/safe-ctype.h ../bfd/bfd.h $(INCDIR)/symcat.h \
2512 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
2513 ldmisc.h deffile.h
252b5132 2514# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
2b282e8b 2515
252b5132
RH
2516# Tell versions [3.59,3.63) of GNU make to not export all variables.
2517# Otherwise a system limit (for SysV at least) may be exceeded.
2518.NOEXPORT: