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