]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/Makefile.in
Add support for x86_64-*-linux-gnu* target
[thirdparty/binutils-gdb.git] / ld / Makefile.in
CommitLineData
3a9d486c 1# Makefile.in generated automatically by automake 1.4 from Makefile.am
252b5132 2
a2d91340 3# Copyright (C) 1994, 1995-8, 1999 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
a2d91340 13
252b5132
RH
14SHELL = @SHELL@
15
16srcdir = @srcdir@
17top_srcdir = @top_srcdir@
18VPATH = @srcdir@
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
37pkgdatadir = $(datadir)/@PACKAGE@
38pkglibdir = $(libdir)/@PACKAGE@
39pkgincludedir = $(includedir)/@PACKAGE@
40
41top_builddir = .
42
43ACLOCAL = @ACLOCAL@
44AUTOCONF = @AUTOCONF@
45AUTOMAKE = @AUTOMAKE@
46AUTOHEADER = @AUTOHEADER@
47
48INSTALL = @INSTALL@
3a9d486c 49INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
252b5132
RH
50INSTALL_DATA = @INSTALL_DATA@
51INSTALL_SCRIPT = @INSTALL_SCRIPT@
52transform = @program_transform_name@
53
54NORMAL_INSTALL = :
55PRE_INSTALL = :
56POST_INSTALL = :
57NORMAL_UNINSTALL = :
58PRE_UNINSTALL = :
59POST_UNINSTALL = :
60build_alias = @build_alias@
61build_triplet = @build@
62host_alias = @host_alias@
63host_triplet = @host@
64target_alias = @target_alias@
65target_triplet = @target@
66AS = @AS@
67CATALOGS = @CATALOGS@
68CATOBJEXT = @CATOBJEXT@
69CC = @CC@
70CC_FOR_BUILD = @CC_FOR_BUILD@
3a9d486c 71CXXCPP = @CXXCPP@
252b5132
RH
72DATADIRNAME = @DATADIRNAME@
73DLLTOOL = @DLLTOOL@
3336653a 74EMULATION_LIBPATH = @EMULATION_LIBPATH@
252b5132
RH
75EXEEXT = @EXEEXT@
76EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
dd94604f
L
77GCJ = @GCJ@
78GCJFLAGS = @GCJFLAGS@
252b5132
RH
79GMOFILES = @GMOFILES@
80GMSGFMT = @GMSGFMT@
81GT_NO = @GT_NO@
82GT_YES = @GT_YES@
83HDEFINES = @HDEFINES@
84INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
85INSTOBJEXT = @INSTOBJEXT@
86INTLDEPS = @INTLDEPS@
87INTLOBJS = @INTLOBJS@
252b5132
RH
88LIBTOOL = @LIBTOOL@
89LN_S = @LN_S@
90MAINT = @MAINT@
91MAKEINFO = @MAKEINFO@
92MKINSTALLDIRS = @MKINSTALLDIRS@
93MSGFMT = @MSGFMT@
94NATIVE_LIB_DIRS = @NATIVE_LIB_DIRS@
a74801ba 95OBJDUMP = @OBJDUMP@
3a9d486c 96OBJEXT = @OBJEXT@
252b5132
RH
97PACKAGE = @PACKAGE@
98POFILES = @POFILES@
99POSUB = @POSUB@
100RANLIB = @RANLIB@
597e2591 101STRINGIFY = @STRINGIFY@
3a9d486c 102STRIP = @STRIP@
252b5132
RH
103USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
104USE_NLS = @USE_NLS@
252b5132
RH
105VERSION = @VERSION@
106l = @l@
107
108INTLLIBS = @INTLLIBS@
109
110AUTOMAKE_OPTIONS = cygnus dejagnu
111
112SUBDIRS = po
113
114tooldir = $(exec_prefix)/$(target_alias)
115
a7e78dae 116YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
252b5132 117YFLAGS = -d
a7e78dae 118LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
252b5132 119
a2d91340
AC
120WARN_CFLAGS = @WARN_CFLAGS@
121AM_CFLAGS = $(WARN_CFLAGS)
122
252b5132
RH
123# We put the scripts in the directory $(scriptdir)/ldscripts.
124# We can't put the scripts in $(datadir) because the SEARCH_DIR
125# directives need to be different for native and cross linkers.
126scriptdir = $(tooldir)/lib
127
128EMUL = @EMUL@
129EMULATION_OFILES = @EMULATION_OFILES@
130EMUL_EXTRA_OFILES = @EMUL_EXTRA_OFILES@
131
132# Search path to override the default search path for -lfoo libraries.
133# If LIB_PATH is empty, the ones in the script (if any) are left alone.
134# (The default is usually /lib:/usr/lib:/usr/local/lib, unless building
135# a cross-linker, in which case the default is empty. See genscripts.sh.)
136# Otherwise, they are replaced with the ones given in LIB_PATH,
137# which may have the form: LIB_PATH=/lib:/usr/local/lib
138LIB_PATH =
139
140BASEDIR = $(srcdir)/..
141BFDDIR = $(BASEDIR)/bfd
142INCDIR = $(BASEDIR)/include
41b49281 143MKDEP = gcc -MM
252b5132
RH
144
145# What version of the manual to build
146DOCVER = gen
147
148#stuff for self hosting (can be overridden in config file).
149HOSTING_CRT0 = @HOSTING_CRT0@
150HOSTING_LIBS = @HOSTING_LIBS@
151HOSTING_EMU = -m $(EMUL)
152
153# Setup the testing framework, if you have one
3a9d486c
NC
154EXPECT = `if [ -f $$r/../expect/expect ] ; \
155 then echo $$r/../expect/expect ; \
156 else echo expect ; fi`
252b5132
RH
157
158
3a9d486c
NC
159RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; \
160 then echo $${srcroot}/../dejagnu/runtest ; \
161 else echo runtest ; fi`
252b5132
RH
162
163
164RUNTESTFLAGS =
165
3a9d486c
NC
166CC_FOR_TARGET = ` \
167 if [ -f $$r/../gcc/xgcc ] ; then \
168 if [ -f $$r/../newlib/Makefile ] ; then \
169 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
170 else \
171 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
172 fi; \
173 else \
174 if [ "@host@" = "@target@" ] ; then \
175 echo $(CC); \
176 else \
177 echo gcc | sed '$(transform)'; \
178 fi; \
179 fi`
252b5132
RH
180
181
182CXX = gcc
3a9d486c
NC
183CXX_FOR_TARGET = ` \
184 if [ -f $$r/../gcc/xgcc ] ; then \
185 if [ -f $$r/../newlib/Makefile ] ; then \
186 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
187 else \
188 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
189 fi; \
190 else \
191 if [ "@host@" = "@target@" ] ; then \
192 echo $(CXX); \
193 else \
194 echo gcc | sed '$(transform)'; \
195 fi; \
196 fi`
252b5132
RH
197
198
199noinst_PROGRAMS = ld-new
200info_TEXINFOS = ld.texinfo
201noinst_TEXINFOS = ldint.texinfo
202man_MANS = ld.1
203
204INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) -I$(top_srcdir)/../intl -I../intl $(HDEFINES) $(CFLAGS) -DLOCALEDIR="\"$(prefix)/share/locale\""
205
206BFDLIB = ../bfd/libbfd.la
207LIBIBERTY = ../libiberty/libiberty.a
208
3a9d486c
NC
209ALL_EMULATIONS = \
210 ea29k.o \
211 eaixppc.o \
212 eaixrs6.o \
213 ealpha.o \
214 earcelf.o \
215 earm_epoc_pe.o \
216 earmaoutb.o \
217 earmaoutl.o \
218 earmcoff.o \
219 earmelf.o \
220 earmelf_linux.o \
221 earmelf_linux26.o \
222 earmelf_oabi.o \
223 earmnbsd.o \
224 earmpe.o \
225 eavr1200.o \
226 eavr23xx.o \
227 eavr4433.o \
228 eavr44x4.o \
229 eavr85xx.o \
230 eavrmega103.o \
231 eavrmega161.o \
232 eavrmega603.o \
233 ecoff_sparc.o \
234 ecrisaout.o \
235 ecriself.o \
236 ecrislinux.o \
237 ed10velf.o \
238 ed30v_e.o \
239 ed30v_o.o \
240 ed30velf.o \
241 edelta68.o \
242 eebmon29k.o \
243 eelf32_i960.o \
244 eelf32_i860.o \
245 eelf32_sparc.o \
246 eelf32b4300.o \
247 eelf32bmip.o \
248 eelf32bmipn32.o \
249 eelf32btsmip.o \
250 eelf32ebmip.o \
251 eelf32elmip.o \
252 eelf32fr30.o \
253 eelf32i370.o \
254 eelf32l4300.o \
255 eelf32lmip.o \
256 eelf32lppc.o \
257 eelf32lppcsim.o \
258 eelf32mcore.o \
259 eelf32ppc.o \
260 eelf32ppclinux.o \
261 eelf32ppcsim.o \
262 eelf_i386.o \
263 eelf_i386_be.o \
59ff2774 264 eelf_i386_chaos.o \
3a9d486c
NC
265 egld960.o \
266 egld960coff.o \
267 eh8300.o \
268 eh8300h.o \
269 eh8300s.o \
270 eh8500.o \
271 eh8500b.o \
272 eh8500c.o \
273 eh8500m.o \
274 eh8500s.o \
275 ehp300bsd.o \
276 ehp3hpux.o \
277 ehppaelf.o \
278 ehppalinux.o \
279 ei386aout.o \
280 ei386beos.o \
281 ei386bsd.o \
282 ei386coff.o \
283 ei386go32.o \
284 ei386linux.o \
285 ei386lynx.o \
286 ei386mach.o \
287 ei386moss.o \
288 ei386msdos.o \
289 ei386nbsd.o \
290 ei386nw.o \
291 ei386pe.o \
292 ei386pe_posix.o \
293 elnk960.o \
294 em68hc11elf.o \
295 em68hc11elfb.o \
296 em68hc12elf.o \
297 em68hc12elfb.o \
298 em68k4knbsd.o \
299 em68kaout.o \
300 em68kaux.o \
301 em68kcoff.o \
302 em68kelf.o \
303 em68klinux.o \
304 em68klynx.o \
305 em68knbsd.o \
306 em68kpsos.o \
307 em88kbcs.o \
308 emcorepe.o \
309 emipsbig.o \
310 emipsbsd.o \
311 emipsidt.o \
312 emipsidtl.o \
313 emipslit.o \
314 emipslnews.o \
315 emipspe.o \
316 enews.o \
317 ens32knbsd.o \
318 epc532macha.o \
319 epjelf.o \
320 epjlelf.o \
321 eppcmacos.o \
322 eppcnw.o \
323 eppcpe.o \
324 eriscix.o \
325 esa29200.o \
326 esh.o \
327 eshelf.o \
4a428502
AO
328 eshelf_linux.o \
329 eshlelf_linux.o \
3a9d486c
NC
330 eshl.o \
331 eshlelf.o \
332 eshpe.o \
333 esparcaout.o \
334 esparclinux.o \
335 esparclynx.o \
336 esparcnbsd.o \
337 est2000.o \
338 esun3.o \
339 esun4.o \
340 etic30aout.o \
341 etic30coff.o \
342 etic54xcoff.o \
343 etic80coff.o \
344 evanilla.o \
345 evax.o \
346 evsta.o \
347 ew65.o \
348 ez8001.o \
349 ez8002.o
350
351
352ALL_64_EMULATIONS = \
353 eelf64_ia64.o \
354 eelf64_sparc.o \
355 eelf64alpha.o \
356 eelf64bmip.o \
357 eelf64hppa.o
358
359
360ALL_EMUL_EXTRA_OFILES = \
361 deffilep.o \
362 pe-dll.o
363
364
365CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
366 ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
367 mri.c ldcref.c pe-dll.c
368
369
370HFILES = ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
371 ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
372 ldwrite.h mri.h deffile.h pe-dll.h
252b5132
RH
373
374
375GENERATED_CFILES = ldgram.c ldlex.c deffilep.c
376GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h
377
3a9d486c
NC
378OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
379 ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \
380 ldfile.o ldcref.o ${EMULATION_OFILES} ${EMUL_EXTRA_OFILES}
252b5132
RH
381
382
383STAGESTUFF = *.o ldscripts/* e*.c
384
385# At the moment this is just a list of those emulation template files
386# that contain internationalised strings.
387EMULATION_FILES = emultempl/pe.em emultempl/armcoff.em
388
389POTFILES = $(CFILES) $(HFILES) $(EMULATION_FILES)
390
391# These all start with e so 'make clean' can find them.
392
3336653a 393GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@"
597e2591 394GEN_DEPENDS = $(srcdir)/genscripts.sh stringify.sed
252b5132 395
67798033
L
396# We need this for automake to use YLWRAP.
397EXTRA_ld_new_SOURCES = deffilep.y
398
3a9d486c
NC
399ld_new_SOURCES = ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c \
400 ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c
252b5132
RH
401
402ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLDEPS)
403ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
404
405# This is the real libbfd.a created by libtool.
406TESTBFDLIB = @TESTBFDLIB@
407
408MAINTAINERCLEANFILES = ldver.texi
409
3a9d486c
NC
410MOSTLYCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) \
411 ldemul-list.h crtbegin.o crtend.o ld.log ld.sum
252b5132 412
0bdaf48b 413CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
252b5132
RH
414
415# Stuff that should be included in a distribution. The diststuff
416# target is run by the taz target in ../Makefile.in.
417LDDISTSTUFF = ldgram.c ldgram.h ldlex.c
418
dca7760f 419DISTCLEANFILES = tdirs site.exp site.bak stringify.sed
252b5132
RH
420ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
421mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
422CONFIG_HEADER = config.h
423CONFIG_CLEAN_FILES =
424noinst_PROGRAMS = ld-new$(EXEEXT)
425PROGRAMS = $(noinst_PROGRAMS)
426
427
428DEFS = @DEFS@ -I. -I$(srcdir) -I.
429CPPFLAGS = @CPPFLAGS@
430LDFLAGS = @LDFLAGS@
431LIBS = @LIBS@
3a9d486c
NC
432ld_new_OBJECTS = ldgram.$(OBJEXT) ldlex.$(OBJEXT) lexsup.$(OBJEXT) \
433ldlang.$(OBJEXT) mri.$(OBJEXT) ldctor.$(OBJEXT) ldmain.$(OBJEXT) \
434ldwrite.$(OBJEXT) ldexp.$(OBJEXT) ldemul.$(OBJEXT) ldver.$(OBJEXT) \
435ldmisc.$(OBJEXT) ldfile.$(OBJEXT) ldcref.$(OBJEXT)
252b5132 436ld_new_LDFLAGS =
41b49281
AM
437LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
438LEXLIB = @LEXLIB@
67798033 439YLWRAP = $(top_srcdir)/../ylwrap
a2d91340
AC
440CFLAGS = @CFLAGS@
441COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
442LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
252b5132 443CCLD = $(CC)
a2d91340 444LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
252b5132
RH
445TEXI2DVI = `if test -f $(top_srcdir)/../texinfo/util/texi2dvi; then echo $(top_srcdir)/../texinfo/util/texi2dvi; else echo texi2dvi; fi`
446TEXINFO_TEX = $(top_srcdir)/../texinfo/texinfo.tex
447INFO_DEPS = ld.info
448DVIS = ld.dvi
449TEXINFOS = ld.texinfo
450man1dir = $(mandir)/man1
451MANS = $(man_MANS)
452
453NROFF = nroff
a2d91340
AC
454DIST_COMMON = README ./stamp-h.in ChangeLog Makefile.am Makefile.in \
455NEWS TODO acinclude.m4 aclocal.m4 config.in configure configure.in \
67798033 456deffilep.c ldgram.c ldlex.c
252b5132
RH
457
458
a2d91340 459DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
252b5132 460
dca7760f 461TAR = tar
252b5132 462GZIP_ENV = --best
67798033 463SOURCES = $(ld_new_SOURCES) $(EXTRA_ld_new_SOURCES)
a2d91340 464OBJECTS = $(ld_new_OBJECTS)
252b5132
RH
465
466all: all-redirect
467.SUFFIXES:
3a9d486c 468.SUFFIXES: .S .c .dvi .info .l .lo .o .obj .ps .s .texi .texinfo .txi .y
252b5132
RH
469$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
470 cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
471
472Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
473 cd $(top_builddir) \
474 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
475
476$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in acinclude.m4
477 cd $(srcdir) && $(ACLOCAL)
478$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
479 cd $(srcdir) && $(AUTOCONF)
480
481config.h: stamp-h
482 @if test ! -f $@; then \
483 rm -f stamp-h; \
484 $(MAKE) stamp-h; \
485 else :; fi
486stamp-h: $(srcdir)/config.in $(top_builddir)/config.status
487 cd $(top_builddir) \
488 && CONFIG_FILES= CONFIG_HEADERS=config.h:config.in \
489 $(SHELL) ./config.status
a2d91340
AC
490 @echo timestamp > stamp-h 2> /dev/null
491$(srcdir)/config.in: @MAINTAINER_MODE_TRUE@$(srcdir)/stamp-h.in
252b5132 492 @if test ! -f $@; then \
a2d91340
AC
493 rm -f $(srcdir)/stamp-h.in; \
494 $(MAKE) $(srcdir)/stamp-h.in; \
252b5132 495 else :; fi
a2d91340 496$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
252b5132 497 cd $(top_srcdir) && $(AUTOHEADER)
a2d91340 498 @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
252b5132
RH
499
500mostlyclean-hdr:
501
502clean-hdr:
503
504distclean-hdr:
505 -rm -f config.h
506
507maintainer-clean-hdr:
508
509mostlyclean-noinstPROGRAMS:
510
511clean-noinstPROGRAMS:
512 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
513
514distclean-noinstPROGRAMS:
515
516maintainer-clean-noinstPROGRAMS:
517
a2d91340
AC
518.c.o:
519 $(COMPILE) -c $<
520
3a9d486c
NC
521# FIXME: We should only use cygpath when building on Windows,
522# and only if it is available.
523.c.obj:
524 $(COMPILE) -c `cygpath -w $<`
525
a2d91340
AC
526.s.o:
527 $(COMPILE) -c $<
528
529.S.o:
530 $(COMPILE) -c $<
531
252b5132
RH
532mostlyclean-compile:
533 -rm -f *.o core *.core
3a9d486c 534 -rm -f *.$(OBJEXT)
252b5132
RH
535
536clean-compile:
537
538distclean-compile:
539 -rm -f *.tab.c
540
541maintainer-clean-compile:
542
a2d91340
AC
543.c.lo:
544 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
545
546.s.lo:
547 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
548
549.S.lo:
550 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
551
252b5132
RH
552mostlyclean-libtool:
553 -rm -f *.lo
554
555clean-libtool:
556 -rm -rf .libs _libs
557
558distclean-libtool:
559
560maintainer-clean-libtool:
561
562ld-new$(EXEEXT): $(ld_new_OBJECTS) $(ld_new_DEPENDENCIES)
563 @rm -f ld-new$(EXEEXT)
564 $(LINK) $(ld_new_LDFLAGS) $(ld_new_OBJECTS) $(ld_new_LDADD) $(LIBS)
565.l.c:
566 $(LEX) $(AM_LFLAGS) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@
567.y.c:
67798033
L
568 $(SHELL) $(YLWRAP) "$(YACC)" $< y.tab.c $*.c y.tab.h $*.h -- $(AM_YFLAGS) $(YFLAGS)
569deffilep.h: deffilep.c
252b5132
RH
570ldgram.h: ldgram.c
571
572
573ld.info: ld.texinfo
574ld.dvi: ld.texinfo
575
576
577DVIPS = dvips
578
579.texi.info:
580 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
581 $(MAKEINFO) -I $(srcdir) $<
582
583.texi.dvi:
a2d91340 584 TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
252b5132
RH
585 MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
586
587.texi:
588 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
589 $(MAKEINFO) -I $(srcdir) $<
590
591.texinfo.info:
592 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
593 $(MAKEINFO) -I $(srcdir) $<
594
595.texinfo:
596 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
597 $(MAKEINFO) -I $(srcdir) $<
598
599.texinfo.dvi:
a2d91340 600 TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
252b5132
RH
601 MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
602
603.txi.info:
604 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
605 $(MAKEINFO) -I $(srcdir) $<
606
607.txi.dvi:
a2d91340 608 TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
252b5132
RH
609 MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
610
611.txi:
612 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
613 $(MAKEINFO) -I $(srcdir) $<
614.dvi.ps:
615 $(DVIPS) $< -o $@
616
617install-info-am: $(INFO_DEPS)
618 @$(NORMAL_INSTALL)
619 $(mkinstalldirs) $(DESTDIR)$(infodir)
620 @list='$(INFO_DEPS)'; \
621 for file in $$list; do \
622 if test -f $$file; then d=.; else d=$(srcdir); fi; \
a2d91340 623 for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
252b5132
RH
624 if test -f $$d/$$ifile; then \
625 echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
626 $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
627 else : ; fi; \
628 done; \
629 done
630 @$(POST_INSTALL)
631 @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
632 list='$(INFO_DEPS)'; \
633 for file in $$list; do \
634 echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\
635 install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
636 done; \
637 else : ; fi
638
639uninstall-info:
640 $(PRE_UNINSTALL)
641 @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
a2d91340
AC
642 ii=yes; \
643 else ii=; fi; \
644 list='$(INFO_DEPS)'; \
645 for file in $$list; do \
646 test -z "$ii" \
647 || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
648 done
252b5132 649 @$(NORMAL_UNINSTALL)
a2d91340 650 list='$(INFO_DEPS)'; \
252b5132 651 for file in $$list; do \
a2d91340 652 (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
252b5132
RH
653 done
654
655dist-info: $(INFO_DEPS)
656 list='$(INFO_DEPS)'; \
657 for base in $$list; do \
658 if test -f $$base; then d=.; else d=$(srcdir); fi; \
a2d91340 659 for file in `cd $$d && eval echo $$base*`; do \
252b5132 660 test -f $(distdir)/$$file \
a2d91340 661 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
252b5132
RH
662 || cp -p $$d/$$file $(distdir)/$$file; \
663 done; \
664 done
665
666mostlyclean-aminfo:
a2d91340
AC
667 -rm -f ld.aux ld.cp ld.cps ld.dvi ld.fn ld.fns ld.ky ld.kys ld.ps \
668 ld.log ld.pg ld.toc ld.tp ld.tps ld.vr ld.vrs ld.op ld.tr \
669 ld.cv ld.cn
252b5132
RH
670
671clean-aminfo:
672
673distclean-aminfo:
674
675maintainer-clean-aminfo:
676 for i in $(INFO_DEPS); do \
677 rm -f $$i; \
678 if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \
679 rm -f $$i-[0-9]*; \
680 fi; \
681 done
682clean-info: mostlyclean-aminfo
683
684install-man1:
685 $(mkinstalldirs) $(DESTDIR)$(man1dir)
686 @list='$(man1_MANS)'; \
687 l2='$(man_MANS)'; for i in $$l2; do \
688 case "$$i" in \
689 *.1*) list="$$list $$i" ;; \
690 esac; \
691 done; \
692 for i in $$list; do \
693 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
694 else file=$$i; fi; \
695 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
696 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
697 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
698 echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
699 $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
700 done
701
702uninstall-man1:
703 @list='$(man1_MANS)'; \
704 l2='$(man_MANS)'; for i in $$l2; do \
705 case "$$i" in \
706 *.1*) list="$$list $$i" ;; \
707 esac; \
708 done; \
709 for i in $$list; do \
710 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
711 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
712 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
713 echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
714 rm -f $(DESTDIR)$(man1dir)/$$inst; \
715 done
716install-man: $(MANS)
717 @$(NORMAL_INSTALL)
718 $(MAKE) $(AM_MAKEFLAGS) install-man1
719uninstall-man:
720 @$(NORMAL_UNINSTALL)
721 $(MAKE) $(AM_MAKEFLAGS) uninstall-man1
722
723# This directory's subdirectories are mostly independent; you can cd
724# into them and run `make' without going through this Makefile.
725# To change the values of `make' variables: instead of editing Makefiles,
726# (1) if the variable is set in `config.status', edit `config.status'
727# (which will cause the Makefiles to be regenerated when you run `make');
728# (2) otherwise, pass the desired values on the `make' command line.
729
a2d91340
AC
730@SET_MAKE@
731
252b5132
RH
732all-recursive install-data-recursive install-exec-recursive \
733installdirs-recursive install-recursive uninstall-recursive install-info-recursive \
734check-recursive installcheck-recursive info-recursive dvi-recursive:
735 @set fnord $(MAKEFLAGS); amf=$$2; \
736 dot_seen=no; \
737 target=`echo $@ | sed s/-recursive//`; \
738 list='$(SUBDIRS)'; for subdir in $$list; do \
739 echo "Making $$target in $$subdir"; \
740 if test "$$subdir" = "."; then \
741 dot_seen=yes; \
742 local_target="$$target-am"; \
743 else \
744 local_target="$$target"; \
745 fi; \
746 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
747 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
748 done; \
749 if test "$$dot_seen" = "no"; then \
750 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
751 fi; test -z "$$fail"
752
753mostlyclean-recursive clean-recursive distclean-recursive \
754maintainer-clean-recursive:
755 @set fnord $(MAKEFLAGS); amf=$$2; \
756 dot_seen=no; \
757 rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
758 rev="$$subdir $$rev"; \
a2d91340 759 test "$$subdir" = "." && dot_seen=yes; \
252b5132
RH
760 done; \
761 test "$$dot_seen" = "no" && rev=". $$rev"; \
762 target=`echo $@ | sed s/-recursive//`; \
763 for subdir in $$rev; do \
764 echo "Making $$target in $$subdir"; \
765 if test "$$subdir" = "."; then \
766 local_target="$$target-am"; \
767 else \
768 local_target="$$target"; \
769 fi; \
770 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
771 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
772 done && test -z "$$fail"
773tags-recursive:
774 list='$(SUBDIRS)'; for subdir in $$list; do \
775 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
776 done
777
778tags: TAGS
779
a2d91340
AC
780ID: $(HEADERS) $(SOURCES) $(LISP)
781 list='$(SOURCES) $(HEADERS)'; \
782 unique=`for i in $$list; do echo $$i; done | \
783 awk ' { files[$$0] = 1; } \
252b5132 784 END { for (i in files) print i; }'`; \
a2d91340
AC
785 here=`pwd` && cd $(srcdir) \
786 && mkid -f$$here/ID $$unique $(LISP)
252b5132 787
a2d91340 788TAGS: tags-recursive $(HEADERS) $(SOURCES) config.in $(TAGS_DEPENDENCIES) $(LISP)
252b5132
RH
789 tags=; \
790 here=`pwd`; \
791 list='$(SUBDIRS)'; for subdir in $$list; do \
792 if test "$$subdir" = .; then :; else \
793 test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
794 fi; \
795 done; \
a2d91340
AC
796 list='$(SOURCES) $(HEADERS)'; \
797 unique=`for i in $$list; do echo $$i; done | \
798 awk ' { files[$$0] = 1; } \
252b5132
RH
799 END { for (i in files) print i; }'`; \
800 test -z "$(ETAGS_ARGS)config.in$$unique$(LISP)$$tags" \
a2d91340 801 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.in $$unique $(LISP) -o $$here/TAGS)
252b5132
RH
802
803mostlyclean-tags:
804
805clean-tags:
806
807distclean-tags:
808 -rm -f TAGS ID
809
810maintainer-clean-tags:
811
812distdir = $(PACKAGE)-$(VERSION)
813top_distdir = $(distdir)
814
815# This target untars the dist file and tries a VPATH configuration. Then
816# it guarantees that the distribution is self-contained by making another
817# tarfile.
818distcheck: dist
a2d91340
AC
819 -rm -rf $(distdir)
820 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
252b5132
RH
821 mkdir $(distdir)/=build
822 mkdir $(distdir)/=inst
a2d91340
AC
823 dc_install_base=`cd $(distdir)/=inst && pwd`; \
824 cd $(distdir)/=build \
252b5132
RH
825 && ../configure --srcdir=.. --prefix=$$dc_install_base \
826 && $(MAKE) $(AM_MAKEFLAGS) \
827 && $(MAKE) $(AM_MAKEFLAGS) dvi \
828 && $(MAKE) $(AM_MAKEFLAGS) check \
829 && $(MAKE) $(AM_MAKEFLAGS) install \
830 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
a2d91340
AC
831 && $(MAKE) $(AM_MAKEFLAGS) dist
832 -rm -rf $(distdir)
252b5132
RH
833 @banner="$(distdir).tar.gz is ready for distribution"; \
834 dashes=`echo "$$banner" | sed s/./=/g`; \
835 echo "$$dashes"; \
836 echo "$$banner"; \
837 echo "$$dashes"
838dist: distdir
a2d91340
AC
839 -chmod -R a+r $(distdir)
840 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
841 -rm -rf $(distdir)
252b5132 842dist-all: distdir
a2d91340
AC
843 -chmod -R a+r $(distdir)
844 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
845 -rm -rf $(distdir)
252b5132 846distdir: $(DISTFILES)
a2d91340 847 -rm -rf $(distdir)
252b5132 848 mkdir $(distdir)
a2d91340 849 -chmod 777 $(distdir)
252b5132
RH
850 @for file in $(DISTFILES); do \
851 if test -f $$file; then d=.; else d=$(srcdir); fi; \
852 if test -d $$d/$$file; then \
a2d91340 853 cp -pr $$d/$$file $(distdir)/$$file; \
252b5132
RH
854 else \
855 test -f $(distdir)/$$file \
a2d91340
AC
856 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
857 || cp -p $$d/$$file $(distdir)/$$file || :; \
252b5132
RH
858 fi; \
859 done
860 for subdir in $(SUBDIRS); do \
861 if test "$$subdir" = .; then :; else \
862 test -d $(distdir)/$$subdir \
863 || mkdir $(distdir)/$$subdir \
864 || exit 1; \
a2d91340 865 chmod 777 $(distdir)/$$subdir; \
252b5132
RH
866 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
867 || exit 1; \
868 fi; \
869 done
870 $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
a2d91340
AC
871
872DEJATOOL = $(PACKAGE)
873
874RUNTESTDEFAULTFLAGS = --tool $(DEJATOOL) --srcdir $$srcdir
875site.exp: Makefile
876 @echo 'Making a new site.exp file...'
877 @test ! -f site.bak || rm -f site.bak
878 @echo '## these variables are automatically generated by make ##' > $@-t
879 @echo '# Do not edit here. If you wish to override these values' >> $@-t
880 @echo '# edit the last section' >> $@-t
881 @echo 'set tool $(DEJATOOL)' >> $@-t
882 @echo 'set srcdir $(srcdir)' >> $@-t
883 @echo 'set objdir' `pwd` >> $@-t
884 @echo 'set host_alias $(host_alias)' >> $@-t
885 @echo 'set host_triplet $(host_triplet)' >> $@-t
886 @echo 'set target_alias $(target_alias)' >> $@-t
887 @echo 'set target_triplet $(target_triplet)' >> $@-t
888 @echo 'set build_alias $(build_alias)' >> $@-t
889 @echo 'set build_triplet $(build_triplet)' >> $@-t
890 @echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t
891 @test ! -f site.exp || sed '1,/^## All variables above are.*##/ d' site.exp >> $@-t
892 @test ! -f site.exp || mv site.exp site.bak
893 @mv $@-t site.exp
252b5132
RH
894info-am: $(INFO_DEPS)
895info: info-recursive
896dvi-am: $(DVIS)
897dvi: dvi-recursive
898check-am:
899 $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU
900check: check-recursive
901installcheck-am:
902installcheck: installcheck-recursive
903install-info-am:
904install-info: install-info-recursive
905all-recursive-am: config.h
906 $(MAKE) $(AM_MAKEFLAGS) all-recursive
907
908install-exec-am: install-exec-local
909install-exec: install-exec-recursive
910
911install-data-am: install-man install-data-local
912install-data: install-data-recursive
913
914install-am: all-am
915 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
916install: install-recursive
917uninstall-am: uninstall-man
918uninstall: uninstall-recursive
919all-am: Makefile $(PROGRAMS) $(MANS) config.h
920all-redirect: all-recursive-am
921install-strip:
3a9d486c 922 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
252b5132
RH
923installdirs: installdirs-recursive
924installdirs-am:
925 $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
926
927
928mostlyclean-generic:
929 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
930
931clean-generic:
932 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
933
934distclean-generic:
935 -rm -f Makefile $(CONFIG_CLEAN_FILES)
936 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
937 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
938
939maintainer-clean-generic:
67798033 940 -test -z "ldlexldeffilephdeffilepcldgramhldgramc$(MAINTAINERCLEANFILES)" || rm -f ldlexl deffileph deffilepc ldgramh ldgramc $(MAINTAINERCLEANFILES)
252b5132
RH
941mostlyclean-am: mostlyclean-hdr mostlyclean-noinstPROGRAMS \
942 mostlyclean-compile mostlyclean-libtool \
943 mostlyclean-aminfo mostlyclean-tags mostlyclean-generic \
944 mostlyclean-local
945
946mostlyclean: mostlyclean-recursive
947
948clean-am: clean-hdr clean-noinstPROGRAMS clean-compile clean-libtool \
949 clean-aminfo clean-tags clean-generic mostlyclean-am
950
951clean: clean-recursive
952
953distclean-am: distclean-hdr distclean-noinstPROGRAMS distclean-compile \
954 distclean-libtool distclean-aminfo distclean-tags \
955 distclean-generic clean-am distclean-local
956 -rm -f libtool
957
958distclean: distclean-recursive
959 -rm -f config.status
960
961maintainer-clean-am: maintainer-clean-hdr \
962 maintainer-clean-noinstPROGRAMS \
963 maintainer-clean-compile maintainer-clean-libtool \
964 maintainer-clean-aminfo maintainer-clean-tags \
965 maintainer-clean-generic distclean-am
966 @echo "This command is intended for maintainers to use;"
967 @echo "it deletes files that may require special tools to rebuild."
968
969maintainer-clean: maintainer-clean-recursive
970 -rm -f config.status
971
972.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
973mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
974clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \
975mostlyclean-compile distclean-compile clean-compile \
976maintainer-clean-compile mostlyclean-libtool distclean-libtool \
977clean-libtool maintainer-clean-libtool install-info-am uninstall-info \
978mostlyclean-aminfo distclean-aminfo clean-aminfo \
979maintainer-clean-aminfo install-man1 uninstall-man1 install-man \
a2d91340
AC
980uninstall-man install-data-recursive uninstall-data-recursive \
981install-exec-recursive uninstall-exec-recursive installdirs-recursive \
982uninstalldirs-recursive all-recursive check-recursive \
983installcheck-recursive info-recursive dvi-recursive \
984mostlyclean-recursive distclean-recursive clean-recursive \
252b5132 985maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
a2d91340 986distclean-tags clean-tags maintainer-clean-tags distdir check-DEJAGNU \
252b5132
RH
987info-am info dvi-am dvi check check-am installcheck-am installcheck \
988install-info-am install-info all-recursive-am install-exec-local \
989install-exec-am install-exec install-data-local install-data-am \
990install-data install-am install uninstall-am uninstall all-redirect \
a2d91340 991all-am all installdirs-am installdirs mostlyclean-generic \
252b5132
RH
992distclean-generic clean-generic maintainer-clean-generic clean \
993mostlyclean distclean maintainer-clean
994
995
996po/POTFILES.in: @MAINT@ Makefile
997 for file in $(POTFILES); do echo $$file; done | sort > tmp \
998 && mv tmp $(srcdir)/po/POTFILES.in
999
1000ldmain.o: ldmain.c config.status
1001 $(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' -DTARGET='"@target@"' $(srcdir)/ldmain.c
1002
1003ldemul-list.h: Makefile
1004 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
1005 for f in `echo " " ${EMULATION_OFILES} "" \
1006 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
1007 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
1008 done;\
1009 echo "";\
1010 echo "#define EMULATION_LIST \\";\
1011 for f in `echo " " ${EMULATION_OFILES} "" \
1012 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
1013 echo " &ld_$${f}_emulation, \\"; \
1014 done;\
1015 echo " 0") >ldemul-tmp.h
1016 mv ldemul-tmp.h ldemul-list.h
597e2591
ILT
1017
1018stringify.sed: ${srcdir}/emultempl/$(STRINGIFY)
1019 cp ${srcdir}/emultempl/$(STRINGIFY) stringify.sed
252b5132
RH
1020@TDIRS@
1021
1022ea29k.c: $(srcdir)/emulparams/a29k.sh \
1023 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
1024 ${GENSCRIPTS} a29k "$(tdir_a29k)"
1025eaixppc.c: $(srcdir)/emulparams/aixppc.sh \
1026 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
1027 ${GENSCRIPTS} aixppc "$(tdir_aixppc)"
1028eaixrs6.c: $(srcdir)/emulparams/aixrs6.sh \
1029 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
1030 ${GENSCRIPTS} aixrs6 "$(tdir_aixrs6)"
1031ealpha.c: $(srcdir)/emulparams/alpha.sh \
1032 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
1033 ${GENSCRIPTS} alpha "$(tdir_alpha)"
1034earcelf.c: $(srcdir)/emulparams/arcelf.sh \
1035 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1036 ${GENSCRIPTS} arcelf "$(tdir_arcelf)"
1037earmelf.c: $(srcdir)/emulparams/armelf.sh \
5f992e62
AM
1038 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
1039 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132
RH
1040 ${GENSCRIPTS} armelf "$(tdir_armelf)"
1041earmelf_oabi.c: $(srcdir)/emulparams/armelf_oabi.sh \
1042 $(srcdir)/emultempl/armelf_oabi.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1043 ${GENSCRIPTS} armelf_oabi "$(tdir_armelf)"
1044earmelf_linux.c: $(srcdir)/emulparams/armelf_linux.sh \
5f992e62
AM
1045 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
1046 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132
RH
1047 ${GENSCRIPTS} armelf_linux "$(tdir_armelf_linux)"
1048earmelf_linux26.c: $(srcdir)/emulparams/armelf_linux26.sh \
5f992e62
AM
1049 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
1050 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132
RH
1051 ${GENSCRIPTS} armelf_linux26 "$(tdir_armelf_linux26)"
1052earmaoutb.c: $(srcdir)/emulparams/armaoutb.sh \
1053 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
1054 ${GENSCRIPTS} armaoutb "$(tdir_armaoutb)"
1055earmaoutl.c: $(srcdir)/emulparams/armaoutl.sh \
1056 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
1057 ${GENSCRIPTS} armaoutl "$(tdir_armaoutl)"
1058earmcoff.c: $(srcdir)/emulparams/armcoff.sh \
1059 $(srcdir)/emultempl/armcoff.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS}
1060 ${GENSCRIPTS} armcoff "$(tdir_armcoff)"
8959586a
NC
1061earmnbsd.c: $(srcdir)/emulparams/armnbsd.sh \
1062 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1063 ${GENSCRIPTS} armnbsd "$(tdir_armnbsd)"
cf865442 1064earm_epoc_pe.c: $(srcdir)/emulparams/arm_epoc_pe.sh \
e6869249 1065 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/epocpe.sc ${GEN_DEPENDS}
cf865442 1066 ${GENSCRIPTS} arm_epoc_pe "$(tdir_armpe)"
252b5132
RH
1067earmpe.c: $(srcdir)/emulparams/armpe.sh \
1068 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1069 ${GENSCRIPTS} armpe "$(tdir_armpe)"
adde6300
AM
1070eavr85xx.c: $(srcdir)/emulparams/avr85xx.sh \
1071 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
1072 ${GEN_DEPENDS}
1073 ${GENSCRIPTS} avr85xx "$(tdir_avr85xx)"
1074eavr1200.c: $(srcdir)/emulparams/avr1200.sh \
1075 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
1076 ${GEN_DEPENDS}
1077 ${GENSCRIPTS} avr1200 "$(tdir_avr85xx)"
1078eavr23xx.c: $(srcdir)/emulparams/avr23xx.sh \
1079 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
1080 ${GEN_DEPENDS}
1081 ${GENSCRIPTS} avr23xx "$(tdir_avr85xx)"
1082eavr44x4.c: $(srcdir)/emulparams/avr44x4.sh \
1083 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
1084 ${GEN_DEPENDS}
1085 ${GENSCRIPTS} avr44x4 "$(tdir_avr85xx)"
1086eavr4433.c: $(srcdir)/emulparams/avr4433.sh \
1087 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
1088 ${GEN_DEPENDS}
1089 ${GENSCRIPTS} avr4433 "$(tdir_avr85xx)"
1090eavrmega603.c: $(srcdir)/emulparams/avrmega603.sh \
1091 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
1092 ${GEN_DEPENDS}
1093 ${GENSCRIPTS} avrmega603 "$(tdir_avr85xx)"
1094eavrmega103.c: $(srcdir)/emulparams/avrmega103.sh \
1095 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
1096 ${GEN_DEPENDS}
1097 ${GENSCRIPTS} avrmega103 "$(tdir_avr85xx)"
1098eavrmega161.c: $(srcdir)/emulparams/avrmega161.sh \
1099 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
1100 ${GEN_DEPENDS}
1101 ${GENSCRIPTS} avrmega161 "$(tdir_avr85xx)"
252b5132
RH
1102ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
1103 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
1104 ${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)"
9d06555c
HPN
1105ecrisaout.c: $(srcdir)/emulparams/crisaout.sh \
1106 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/crisaout.sc ${GEN_DEPENDS}
1107 ${GENSCRIPTS} crisaout "$(tdir_cris)"
1108ecriself.c: $(srcdir)/emulparams/criself.sh \
1109 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1110 ${GENSCRIPTS} criself "$(tdir_cris)"
1111ecrislinux.c: $(srcdir)/emulparams/crislinux.sh \
1112 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1113 ${GENSCRIPTS} crislinux "$(tdir_cris)"
252b5132
RH
1114ed10velf.c: $(srcdir)/emulparams/d10velf.sh \
1115 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd10v.sc ${GEN_DEPENDS}
1116 ${GENSCRIPTS} d10velf "$(tdir_d10v)"
1117ed30velf.c: $(srcdir)/emulparams/d30velf.sh \
1118 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
1119 ${GENSCRIPTS} d30velf "$(tdir_d30v)"
1120ed30v_o.c: $(srcdir)/emulparams/d30v_o.sh \
1121 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
1122 ${GENSCRIPTS} d30v_o "$(tdir_d30v)"
1123ed30v_e.c: $(srcdir)/emulparams/d30v_e.sh \
1124 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
1125 ${GENSCRIPTS} d30v_e "$(tdir_d30v)"
1126edelta68.c: $(srcdir)/emulparams/delta68.sh \
1127 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
1128 ${GENSCRIPTS} delta68 "$(tdir_delta68)"
1129eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
1130 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
1131 ${GENSCRIPTS} ebmon29k "$(tdir_ebmon29k)"
1132eelf32fr30.c: $(srcdir)/emulparams/elf32fr30.sh \
1133 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1134 ${GENSCRIPTS} elf32fr30 "$(tdir_fr30)"
71acc4e8
NC
1135eelf32mcore.c: $(srcdir)/emulparams/elf32mcore.sh \
1136 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1137 ${GENSCRIPTS} elf32mcore "$(tdir_mcore)"
252b5132
RH
1138em32relf.c: $(srcdir)/emulparams/m32relf.sh \
1139 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1140 ${GENSCRIPTS} m32relf "$(tdir_m32r)"
1141eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
1142 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1143 ${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)"
165589e4
JE
1144eelf32_i860.c: $(srcdir)/emulparams/elf32_i860.sh \
1145 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1146 ${GENSCRIPTS} elf32_i860 "$(tdir_elf32_i860)"
0ccf812a
ILT
1147eelf32_i960.c: $(srcdir)/emulparams/elf32_i960.sh \
1148 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1149 ${GENSCRIPTS} elf32_i960 "$(tdir_elf32_i960)"
252b5132
RH
1150eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \
1151 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1152 ${GENSCRIPTS} elf32b4300 "$(tdir_elf32b4300)"
1153eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
1154 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1155 ${GENSCRIPTS} elf32bmip "$(tdir_elf32bmip)"
1156eelf32bsmip.c: $(srcdir)/emulparams/elf32bsmip.sh \
1157 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1158 ${GENSCRIPTS} elf32bsmip "$(tdir_elf32bsmip)"
3548145d
UC
1159eelf32btsmip.c: $(srcdir)/emulparams/elf32btsmip.sh \
1160 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1161 ${GENSCRIPTS} elf32btsmip "$(tdir_elf32btsmip)"
252b5132
RH
1162eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
1163 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1164 ${GENSCRIPTS} elf32ebmip "$(tdir_elf32ebmip)"
1165eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \
1166 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1167 ${GENSCRIPTS} elf32elmip "$(tdir_elf32elmip)"
85f70471
ILT
1168eelf32bmipn32.c: $(srcdir)/emulparams/elf32bmipn32.sh \
1169 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1170 ${GENSCRIPTS} elf32bmipn32 "$(tdir_elf32bmipn32)"
252b5132
RH
1171eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \
1172 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1173 ${GENSCRIPTS} elf32l4300 "$(tdir_elf32l4300)"
1174eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
1175 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1176 ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)"
1177eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \
bdbe5705 1178 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132 1179 ${GENSCRIPTS} elf32lppc "$(tdir_elf32lppc)"
bdbe5705
GK
1180eelf32lppcsim.c: $(srcdir)/emulparams/elf32lppcsim.sh \
1181 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1182 ${GENSCRIPTS} elf32lppcsim "$(tdir_elf32lppcsim)"
252b5132
RH
1183eelf32lsmip.c: $(srcdir)/emulparams/elf32lsmip.sh \
1184 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1185 ${GENSCRIPTS} elf32lsmip "$(tdir_elf32lsmip)"
1186eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
bdbe5705 1187 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132 1188 ${GENSCRIPTS} elf32ppc "$(tdir_elf32ppc)"
bdbe5705
GK
1189eelf32ppcsim.c: $(srcdir)/emulparams/elf32ppcsim.sh \
1190 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1191 ${GENSCRIPTS} elf32ppcsim "$(tdir_elf32ppcsim)"
ec2f040d 1192eelf32ppclinux.c: $(srcdir)/emulparams/elf32ppclinux.sh \
bdbe5705 1193 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
ec2f040d 1194 ${GENSCRIPTS} elf32ppclinux "$(tdir_elf32ppclinux)"
5b93d8bb
AM
1195eelf32i370.c: $(srcdir)/emulparams/elf32i370.sh \
1196 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfi370.sc ${GEN_DEPENDS}
1197 ${GENSCRIPTS} elf32i370 "$(tdir_elf32i370)"
252b5132
RH
1198eelf64alpha.c: $(srcdir)/emulparams/elf64alpha.sh \
1199 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1200 ${GENSCRIPTS} elf64alpha "$(tdir_elf64alpha)"
730a39a0
JL
1201eelf64hppa.c: $(srcdir)/emulparams/elf64hppa.sh \
1202 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1203 ${GENSCRIPTS} elf64hppa "$(tdir_elf64hppa)"
800eeca4
JW
1204eelf64_ia64.c: $(srcdir)/emulparams/elf64_ia64.sh \
1205 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1206 ${GENSCRIPTS} elf64_ia64 "$(tdir_elf64_ia64)"
252b5132
RH
1207eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
1208 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1209 ${GENSCRIPTS} elf64_sparc "$(tdir_elf64_sparc)"
22c675a7
MM
1210eelf64bmip.c: $(srcdir)/emulparams/elf64bmip.sh \
1211 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1212 ${GENSCRIPTS} elf64bmip "$(tdir_elf64bmip)"
252b5132
RH
1213eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
1214 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1215 ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
1216eelf_i386_be.c: $(srcdir)/emulparams/elf_i386_be.sh \
1217 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1218 ${GENSCRIPTS} elf_i386_be "$(tdir_elf_i386_be)"
59ff2774
NC
1219eelf_i386_chaos.c: $(srcdir)/emulparams/elf_i386_chaos.sh \
1220 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1221 ${GENSCRIPTS} elf_i386_chaos "$(tdir_elf_i386_chaos)"
252b5132
RH
1222egld960.c: $(srcdir)/emulparams/gld960.sh \
1223 $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
1224 ${GENSCRIPTS} gld960 "$(tdir_gld960)"
1225egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
1226 $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
1227 ${GENSCRIPTS} gld960coff "$(tdir_gld960coff)"
252b5132
RH
1228eh8300.c: $(srcdir)/emulparams/h8300.sh \
1229 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
1230 ${GENSCRIPTS} h8300 "$(tdir_h8300)"
1231eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
1232 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
1233 ${GENSCRIPTS} h8300h "$(tdir_h8300h)"
1234eh8300s.c: $(srcdir)/emulparams/h8300s.sh \
1235 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300s.sc ${GEN_DEPENDS}
1236 ${GENSCRIPTS} h8300s "$(tdir_h8300s)"
1237eh8500.c: $(srcdir)/emulparams/h8500.sh \
1238 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
1239 ${GENSCRIPTS} h8500 "$(tdir_h8500)"
1240eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
1241 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
1242 ${GENSCRIPTS} h8500b "$(tdir_h8500b)"
1243eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
1244 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
1245 ${GENSCRIPTS} h8500c "$(tdir_h8500c)"
1246eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
1247 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
1248 ${GENSCRIPTS} h8500m "$(tdir_h8500m)"
1249eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
1250 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
1251 ${GENSCRIPTS} h8500s "$(tdir_h8500s)"
1252ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
1253 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1254 ${GENSCRIPTS} hp300bsd "$(tdir_hp300bsd)"
1255ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
1256 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1257 ${GENSCRIPTS} hp3hpux "$(tdir_hp3hpux)"
730a39a0 1258ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
5f992e62
AM
1259 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
1260 $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
730a39a0 1261 ${GENSCRIPTS} hppaelf "$(tdir_hppaelf)"
4900fc06 1262ehppalinux.c: $(srcdir)/emulparams/hppalinux.sh \
5f992e62
AM
1263 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
1264 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
4900fc06 1265 ${GENSCRIPTS} hppalinux "$(tdir_hppalinux)"
252b5132
RH
1266ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
1267 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1268 ${GENSCRIPTS} i386aout "$(tdir_i386aout)"
1269ei386beos.c: $(srcdir)/emulparams/i386beos.sh \
1270 $(srcdir)/emultempl/beos.em $(srcdir)/scripttempl/i386beos.sc ${GEN_DEPENDS}
1271 ${GENSCRIPTS} i386beos "$(tdir_i386beos)"
1272ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
1273 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1274 ${GENSCRIPTS} i386bsd "$(tdir_i386bsd)"
1275ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
1276 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
1277 ${GENSCRIPTS} i386coff "$(tdir_i386coff)"
1278ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
1279 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
1280 ${GENSCRIPTS} i386go32 "$(tdir_i386go32)"
1281ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
1282 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1283 ${GENSCRIPTS} i386linux "$(tdir_i386linux)"
1284ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
1285 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.sc ${GEN_DEPENDS}
1286 ${GENSCRIPTS} i386lynx "$(tdir_i386lynx)"
1287ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
1288 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1289 ${GENSCRIPTS} i386mach "$(tdir_i386mach)"
1290ei386moss.c: $(srcdir)/emulparams/i386moss.sh \
1291 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1292 ${GENSCRIPTS} i386moss "$(tdir_i386moss)"
1293ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \
1294 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS}
1295 ${GENSCRIPTS} i386msdos "$(tdir_i386msdos)"
1296ei386nbsd.c: $(srcdir)/emulparams/i386nbsd.sh \
1297 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1298 ${GENSCRIPTS} i386nbsd "$(tdir_i386nbsd)"
1299ei386nw.c: $(srcdir)/emulparams/i386nw.sh \
1300 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
1301 ${GENSCRIPTS} i386nw "$(tdir_i386nw)"
1302ei386pe.c: $(srcdir)/emulparams/i386pe.sh \
1303 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1304 ${GENSCRIPTS} i386pe "$(tdir_i386pe)"
a7e78dae
ILT
1305ei386pe_posix.c: $(srcdir)/emulparams/i386pe_posix.sh \
1306 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1307 ${GENSCRIPTS} i386pe_posix "$(tdir_i386pe_posix)"
252b5132
RH
1308elnk960.c: $(srcdir)/emulparams/lnk960.sh \
1309 $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
1310 ${GENSCRIPTS} lnk960 "$(tdir_lnk960)"
60bcf0fa
NC
1311em68hc11elf.c: $(srcdir)/emulparams/m68hc11elf.sh \
1312 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
1313 ${GENSCRIPTS} m68hc11elf "$(tdir_m68hc11)"
1314em68hc11elfb.c: $(srcdir)/emulparams/m68hc11elfb.sh \
1315 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
1316 ${GENSCRIPTS} m68hc11elfb "$(tdir_m68hc11b)"
1317em68hc12elf.c: $(srcdir)/emulparams/m68hc12elf.sh \
1318 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
1319 ${GENSCRIPTS} m68hc12elf "$(tdir_m68hc12)"
1320em68hc12elfb.c: $(srcdir)/emulparams/m68hc12elfb.sh \
1321 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
1322 ${GENSCRIPTS} m68hc12elfb "$(tdir_m68hc12b)"
252b5132
RH
1323em68k4knbsd.c: $(srcdir)/emulparams/m68k4knbsd.sh \
1324 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1325 ${GENSCRIPTS} m68k4knbsd "$(tdir_m68k4knbsd)"
1326em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
1327 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1328 ${GENSCRIPTS} m68kaout "$(tdir_m68kaout)"
1329em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \
1330 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS}
1331 ${GENSCRIPTS} m68kaux "$(tdir_m68kaux)"
1332em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
20bccb34 1333 $(srcdir)/emultempl/m68kcoff.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
252b5132
RH
1334 ${GENSCRIPTS} m68kcoff "$(tdir_m68kcoff)"
1335em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \
0752970e
NC
1336 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/m68kelf.em \
1337 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
252b5132
RH
1338 ${GENSCRIPTS} m68kelf "$(tdir_m68kelf)"
1339em68klinux.c: $(srcdir)/emulparams/m68klinux.sh \
1340 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1341 ${GENSCRIPTS} m68klinux "$(tdir_m68klinux)"
1342em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
1343 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS}
1344 ${GENSCRIPTS} m68klynx "$(tdir_m68klynx)"
1345em68knbsd.c: $(srcdir)/emulparams/m68knbsd.sh \
1346 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1347 ${GENSCRIPTS} m68knbsd "$(tdir_m68knbsd)"
1348em68kpsos.c: $(srcdir)/emulparams/m68kpsos.sh \
1349 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS}
1350 ${GENSCRIPTS} m68kpsos "$(tdir_m68kpsos)"
1351em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
1352 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
1353 ${GENSCRIPTS} m88kbcs "$(tdir_m88kbcs)"
71acc4e8
NC
1354emcorepe.c: $(srcdir)/emulparams/mcorepe.sh \
1355 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1356 ${GENSCRIPTS} mcorepe "$(tdir_mcorepe)"
252b5132
RH
1357emipsbig.c: $(srcdir)/emulparams/mipsbig.sh \
1358 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
1359 ${GENSCRIPTS} mipsbig
1360emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
1361 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
1362 ${GENSCRIPTS} mipsbsd
1363emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
1364 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
1365 ${GENSCRIPTS} mipsidt "$(tdir_mipsidt)"
1366emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
1367 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
1368 ${GENSCRIPTS} mipsidtl "$(tdir_mipsidtl)"
1369emipslit.c: $(srcdir)/emulparams/mipslit.sh \
1370 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
1371 ${GENSCRIPTS} mipslit "$(tdir_mipslit)"
1372emipslnews.c: $(srcdir)/emulparams/mipslnews.sh \
1373 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
1374 ${GENSCRIPTS} mipslnews
344a211f
NC
1375emipspe.c: $(srcdir)/emulparams/mipspe.sh \
1376 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1377 ${GENSCRIPTS} mipspe "$(tdir_mips)"
252b5132
RH
1378emn10300.c: $(srcdir)/emulparams/mn10300.sh \
1379 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1380 ${GENSCRIPTS} mn10300 "$(tdir_mn10300)"
1381emn10200.c: $(srcdir)/emulparams/mn10200.sh \
1382 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1383 ${GENSCRIPTS} mn10200 "$(tdir_mn10200)"
1384enews.c: $(srcdir)/emulparams/news.sh \
1385 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1386 ${GENSCRIPTS} news "$(tdir_news)"
1387ens32knbsd.c: $(srcdir)/emulparams/ns32knbsd.sh \
1388 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1389 ${GENSCRIPTS} ns32knbsd "$(tdir_ns32knbsd)"
1390epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \
1391 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1392 ${GENSCRIPTS} pc532macha "$(tdir_pc532macha)"
c6c8c6dc
ILT
1393epjelf.c: $(srcdir)/emulparams/pjelf.sh \
1394 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1395 ${GENSCRIPTS} pjelf "$(tdir_pjelf)"
1396epjlelf.c: $(srcdir)/emulparams/pjlelf.sh \
1397 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1398 ${GENSCRIPTS} pjlelf "$(tdir_pjlelf)"
252b5132
RH
1399eppcmacos.c: $(srcdir)/emulparams/ppcmacos.sh \
1400 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
1401 ${GENSCRIPTS} ppcmacos "$(tdir_ppcmacos)"
1402eppcnw.c: $(srcdir)/emulparams/ppcnw.sh \
1403 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
1404 ${GENSCRIPTS} ppcnw "$(tdir_ppcnw)"
1405eppcpe.c: $(srcdir)/emulparams/ppcpe.sh \
1406 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/ppcpe.sc ${GEN_DEPENDS}
1407 ${GENSCRIPTS} ppcpe "$(tdir_ppcpe)"
1408eriscix.c: $(srcdir)/emulparams/riscix.sh \
1409 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1410 ${GENSCRIPTS} riscix "$(tdir_riscix)"
1411esa29200.c: $(srcdir)/emulparams/sa29200.sh \
1412 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
1413 ${GENSCRIPTS} sa29200 "$(tdir_sa29200)"
1414esh.c: $(srcdir)/emulparams/sh.sh \
1415 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
1416 ${GENSCRIPTS} sh "$(tdir_sh)"
1417eshelf.c: $(srcdir)/emulparams/shelf.sh \
1418 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1419 ${GENSCRIPTS} shelf "$(tdir_shelf)"
4a428502
AO
1420eshelf_linux.c: $(srcdir)/emulparams/shelf_linux.sh \
1421 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1422 ${GENSCRIPTS} shelf_linux "$(tdir_shelf_linux)"
1423eshlelf_linux.c: $(srcdir)/emulparams/shlelf_linux.sh \
1424 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1425 ${GENSCRIPTS} shlelf_linux "$(tdir_shlelf_linux)"
252b5132
RH
1426eshlelf.c: $(srcdir)/emulparams/shlelf.sh \
1427 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1428 ${GENSCRIPTS} shlelf "$(tdir_shlelf)"
1429eshl.c: $(srcdir)/emulparams/shl.sh \
1430 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
1431 ${GENSCRIPTS} shl "$(tdir_shl)"
344a211f
NC
1432eshpe.c: $(srcdir)/emulparams/shpe.sh \
1433 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1434 ${GENSCRIPTS} shpe "$(tdir_shl)"
252b5132
RH
1435esparcaout.c: $(srcdir)/emulparams/sparcaout.sh \
1436 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1437 ${GENSCRIPTS} sparcaout "$(tdir_sparcaout)"
1438esparclinux.c: $(srcdir)/emulparams/sparclinux.sh \
1439 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1440 ${GENSCRIPTS} sparclinux "$(tdir_sparclinux)"
1441esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
1442 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS}
1443 ${GENSCRIPTS} sparclynx "$(tdir_sparclynx)"
1444esparcnbsd.c: $(srcdir)/emulparams/sparcnbsd.sh \
1445 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1446 ${GENSCRIPTS} sparcnbsd "$(tdir_sparcnbsd)"
1447est2000.c: $(srcdir)/emulparams/st2000.sh \
1448 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
1449 ${GENSCRIPTS} st2000 "$(tdir_st2000)"
1450esun3.c: $(srcdir)/emulparams/sun3.sh \
1451 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1452 ${GENSCRIPTS} sun3 "$(tdir_sun3)"
1453esun4.c: $(srcdir)/emulparams/sun4.sh \
1454 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1455 ${GENSCRIPTS} sun4 "$(tdir_sun4)"
1456etic30aout.c: $(srcdir)/emulparams/tic30aout.sh \
1457 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30aout.sc ${GEN_DEPENDS}
1458 ${GENSCRIPTS} tic30aout "$(tdir_tic30aout)"
1459etic30coff.c: $(srcdir)/emulparams/tic30coff.sh \
1460 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30coff.sc ${GEN_DEPENDS}
1461 ${GENSCRIPTS} tic30coff "$(tdir_tic30coff)"
74459f0e
TW
1462etic54xcoff.c: $(srcdir)/emulparams/tic54xcoff.sh \
1463 $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic54xcoff.sc ${GEN_DEPENDS}
1464 ${GENSCRIPTS} tic54xcoff "$(tdir_tic54xcoff)"
252b5132
RH
1465etic80coff.c: $(srcdir)/emulparams/tic80coff.sh \
1466 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic80coff.sc ${GEN_DEPENDS}
1467 ${GENSCRIPTS} tic80coff "$(tdir_tic80coff)"
1468evanilla.c: $(srcdir)/emulparams/vanilla.sh \
1469 $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
1470 ${GENSCRIPTS} vanilla "$(tdir_vanilla)"
1471evax.c: $(srcdir)/emulparams/vax.sh \
1472 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1473 ${GENSCRIPTS} vax "$(tdir_vax)"
1474evsta.c: $(srcdir)/emulparams/vsta.sh \
1475 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1476 ${GENSCRIPTS} vsta "$(tdir_vsta)"
1477ev850.c: $(srcdir)/emulparams/v850.sh \
1478 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/v850.sc ${GEN_DEPENDS}
1479 ${GENSCRIPTS} v850 "$(tdir_v850)"
1480ew65.c: $(srcdir)/emulparams/w65.sh \
1481 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS}
1482 ${GENSCRIPTS} w65 "$(tdir_w65)"
1483ez8001.c: $(srcdir)/emulparams/z8001.sh \
1484 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
1485 ${GENSCRIPTS} z8001 "$(tdir_z8001)"
1486ez8002.c: $(srcdir)/emulparams/z8002.sh \
1487 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
1488 ${GENSCRIPTS} z8002 "$(tdir_z8002)"
1489
1490# The generated emulation files mostly have the same dependencies.
1491$(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
1492 ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \
1493 ldctor.h ldexp.h ldlang.h ldgram.h
1494
1495check-DEJAGNU: site.exp
1496 srcroot=`cd $(srcdir) && pwd`; export srcroot; \
1497 r=`pwd`; export r; \
9282ff41 1498 LC_COLLATE=; LC_ALL=; LANG=; export LC_COLLATE LC_ALL LANG; \
252b5132
RH
1499 EXPECT=$(EXPECT); export EXPECT; \
1500 if [ -f $(top_builddir)/../expect/expect ]; then \
1501 TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
1502 export TCL_LIBRARY; \
1503 fi; \
1504 runtest=$(RUNTEST); \
1505 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
1506 $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \
1507 CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
1508 CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \
1509 CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \
1510 OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" \
af28fce3 1511 LIBIBERTY="$(LIBIBERTY) $(INTLLIBS)" LIBS="$(LIBS)" \
252b5132
RH
1512 $(RUNTESTFLAGS); \
1513 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
1514 fi
1515
1516# Rules for testing by relinking ld itself.
1517# A similar test is in the testsuite. This target is for ease of use
1518# when porting ld.
1519
1520ld-partial.o: ld-new$(EXEEXT)
1521 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
1522ld1$(EXEEXT): ld-partial.o
af28fce3 1523 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1$(EXEEXT) $(HOSTING_CRT0) ld-partial.o $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
252b5132
RH
1524
1525ld1-full$(EXEEXT): ld-new
af28fce3 1526 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1-full$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
252b5132
RH
1527
1528ld2$(EXEEXT): ld1$(EXEEXT)
af28fce3 1529 ./ld1$(EXEEXT) $(HOSTING_EMU) -o ld2$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
252b5132
RH
1530
1531ld3$(EXEEXT): ld2$(EXEEXT)
af28fce3 1532 ./ld2$(EXEEXT) $(HOSTING_EMU) -o ld3$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
252b5132
RH
1533
1534bootstrap: ld3$(EXEEXT)
1535 cmp ld2$(EXEEXT) ld3$(EXEEXT)
1536
1537.PHONY: bootstrap
1538
1539# A test program for C++ constructors and destructors.
1540# This test is now in the testsuite.
1541#
1542#cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
1543# ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
1544# cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS)
1545#
1546#cdtest.out: cdtest
1547# ./cdtest > cdtest.tmp
1548# mv cdtest.tmp cdtest.out
1549#
1550#cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
1551# ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
1552# cdtest-bar.o cdtest-foo.o
1553#
1554#cdtest-ur: cdtest-ur.o
1555# ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
1556# $(HOSTING_LIBS)
1557#
1558#cdtest-ur.out: cdtest-ur
1559# ./cdtest-ur > cdtest-ur.tmp
1560# mv cdtest-ur.tmp cdtest-ur.out
1561#
1562#check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
1563# diff $(srcdir)/cdtest.exp cdtest.out
1564# diff $(srcdir)/cdtest.exp cdtest-ur.out
1565#
1566#.PHONY: check-cdtest
1567
1568# END OF CHECK TARGETS
1569
1570# DOCUMENTATION TARGETS
1571# Manual configuration file; not usually attached to normal configuration,
1572# because almost all configs use "gen" version of manual.
1573# Set DOCVER above to change.
1574configdoc.texi: ${DOCVER}-doc.texi
1575 ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
1576 || ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
1577 || cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
1578
1579ldver.texi: Makefile
1580 rm -f $@
1581 echo '@set VERSION $(VERSION)' > $@
1582
1583ld.info: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
1584 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
1585 $(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc $(srcdir)/ld.texinfo
1586
1587ld.dvi: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
1588 TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
1589 MAKEINFO="$(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc" $(TEXI2DVI) $(srcdir)/ld.texinfo
1590
1591# We want to reconfigure if configure.host or configure.tgt changes.
1592config.status: $(srcdir)/configure $(srcdir)/configure.host $(srcdir)/configure.tgt
1593 $(SHELL) ./config.status --recheck
1594mostlyclean-local:
1595 -rm -rf tmpdir
1596
1597.PHONY: install-exec-local install-data-local
1598
1599install-exec-local: ld-new$(EXEEXT)
1600 $(mkinstalldirs) $(bindir) $(tooldir)/bin
1601 @list='$(noinst_PROGRAMS)'; for p in $$list; do \
1602 if test -f $$p; then \
1603 echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
1604 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
1605 else :; fi; \
1606 done
1607 n=`echo ld | sed '$(transform)'`; \
1608 if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/ld$(EXEEXT)" ]; then \
1609 rm -f $(tooldir)/bin/ld$(EXEEXT); \
1610 ln $(bindir)/$$n$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
1611 || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT); \
1612 fi
1613
1614install-data-local:
1615 $(mkinstalldirs) $(scriptdir)/ldscripts
1616 for f in ldscripts/*; do \
1617 $(INSTALL_DATA) $$f $(scriptdir)/$$f ; \
1618 done
1619diststuff: $(LDDISTSTUFF) info
1620distclean-local:
1621 rm -rf ldscripts
1622
1623# Targets to rebuild dependencies in this Makefile.
f4162f5c
ILT
1624# Have to get rid of DEP1 here so that "$?" later includes all of $(CFILES).
1625DEP: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
1626 rm -f DEP1
41b49281 1627 $(MAKE) MKDEP="$(MKDEP)" DEP1
0bdaf48b
AM
1628 sed -f dep.sed < DEP1 > DEPA
1629 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA
1630 if grep ' /' DEPA > /dev/null 2> /dev/null; then \
1581f8c9
AM
1631 echo 'make DEP failed!'; exit 1; \
1632 else \
0bdaf48b 1633 mv -f DEPA $@; \
1581f8c9 1634 fi
252b5132 1635
f4162f5c 1636DEP1: $(CFILES) $(GENERATED_CFILES)
f4162f5c 1637 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
41b49281
AM
1638 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
1639 $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
1640 mv -f DEP2 $@
252b5132
RH
1641
1642dep.sed: dep-in.sed config.status
1643 sed <$(srcdir)/dep-in.sed >dep.sed \
1644 -e 's!@INCDIR@!$(INCDIR)!' \
1645 -e 's!@SRCDIR@!$(srcdir)!'
1646
f4162f5c 1647dep: DEP
252b5132 1648 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
f4162f5c 1649 cat DEP >> tmp-Makefile
252b5132
RH
1650 $(srcdir)/../move-if-change tmp-Makefile Makefile
1651
f4162f5c 1652dep-in: DEP
252b5132 1653 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
f4162f5c 1654 cat DEP >> tmp-Makefile.in
252b5132
RH
1655 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
1656
f4162f5c 1657dep-am: DEP
252b5132 1658 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
f4162f5c 1659 cat DEP >> tmp-Makefile.am
252b5132
RH
1660 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
1661
1662.PHONY: dep dep-in dep-am
1663
1664# What appears below is generated by a hacked mkdep using gcc -MM.
1665
1666# DO NOT DELETE THIS LINE -- mkdep uses it.
1667# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
01580992
L
1668ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1669 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
41b49281 1670 ld.h $(INCDIR)/bin-bugs.h ldexp.h ldlang.h ldmisc.h \
01580992
L
1671 ldgram.h ldmain.h ldctor.h
1672ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
41b49281 1673 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
9d06555c 1674 ldmisc.h ldexp.h ldlang.h ldfile.h ldemul.h ldmain.h \
01580992
L
1675 ldemul-list.h
1676ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1677 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1678 ld.h $(INCDIR)/bin-bugs.h ldmain.h ldmisc.h ldexp.h \
1679 ldgram.h ldlang.h
1680ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1681 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1682 ld.h $(INCDIR)/bin-bugs.h ldmisc.h ldexp.h ldlang.h \
1683 ldfile.h ldmain.h ldgram.h ldlex.h ldemul.h
1684ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1685 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1686 $(INCDIR)/obstack.h $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h \
9d06555c
HPN
1687 ldmain.h ldgram.h ldexp.h ldlang.h ldlex.h ldmisc.h \
1688 ldctor.h ldfile.h ldemul.h $(INCDIR)/fnmatch.h $(INCDIR)/demangle.h
01580992
L
1689ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1690 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1691 $(INCDIR)/progress.h $(INCDIR)/bfdlink.h $(INCDIR)/filenames.h \
1692 ld.h $(INCDIR)/bin-bugs.h ldmain.h ldmisc.h ldwrite.h \
9d06555c 1693 ldgram.h ldexp.h ldlang.h ldlex.h ldfile.h ldemul.h \
01580992
L
1694 ldctor.h
1695ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1696 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1697 $(INCDIR)/demangle.h ld.h $(INCDIR)/bin-bugs.h ldmisc.h \
1698 ldexp.h ldlang.h ldgram.h ldlex.h ldmain.h ldfile.h
1699ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1700 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
9d06555c 1701 ldver.h ldexp.h ldlang.h ldfile.h ldemul.h ldmain.h
01580992
L
1702ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1703 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1704 $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h ldexp.h \
1705 ldlang.h ldwrite.h ldmisc.h ldgram.h ldmain.h
1706lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1707 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
9d06555c
HPN
1708 $(INCDIR)/getopt.h $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h \
1709 ldmain.h ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h \
dd94604f 1710 ldfile.h ldver.h ldemul.h $(INCDIR)/demangle.h
01580992 1711mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h sysdep.h \
bbeb2e03 1712 config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
01580992
L
1713 ldexp.h ldlang.h ldmisc.h mri.h ldgram.h $(INCDIR)/libiberty.h
1714ldcref.o: ldcref.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1715 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1716 $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h ldmain.h \
1717 ldmisc.h ldexp.h ldlang.h
1718pe-dll.o: pe-dll.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1719 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1720 $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h ldexp.h \
9d06555c
HPN
1721 ldlang.h ldwrite.h ldmisc.h ldgram.h ldmain.h ldfile.h \
1722 ldemul.h $(INCDIR)/coff/internal.h ../bfd/libcoff.h \
1723 deffile.h pe-dll.h
01580992
L
1724ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1725 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1726 ld.h $(INCDIR)/bin-bugs.h ldexp.h ldver.h ldlang.h \
9d06555c 1727 ldfile.h ldemul.h ldmisc.h ldmain.h mri.h ldctor.h \
01580992
L
1728 ldlex.h
1729ldlex.o: ldlex.c ../bfd/bfd.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1730 ld.h $(INCDIR)/bin-bugs.h ldgram.h ldmisc.h ldexp.h \
1731 ldlang.h ldfile.h ldlex.h ldmain.h
1732deffilep.o: deffilep.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
1733 ../bfd/bfd.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1734 ld.h $(INCDIR)/bin-bugs.h ldmisc.h deffile.h
252b5132
RH
1735# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
1736
1737# Tell versions [3.59,3.63) of GNU make to not export all variables.
1738# Otherwise a system limit (for SysV at least) may be exceeded.
1739.NOEXPORT: