If xgettext fails, make Sanitize fail
[deliverable/binutils-gdb.git] / ld / Makefile.in
CommitLineData
8bc8f4bc 1# Makefile.in generated automatically by automake 1.3 from Makefile.am
ce4d59e2 2
51b9a79b 3# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
49c009b5 4# This Makefile.in is free software; the Free Software Foundation
51b9a79b
ILT
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.
eb02fd64 12
eb02fd64 13
f5870264 14SHELL = @SHELL@
e06ba18d 15
49c009b5
ILT
16srcdir = @srcdir@
17top_srcdir = @top_srcdir@
18VPATH = @srcdir@
19prefix = @prefix@
d66c832b 20exec_prefix = @exec_prefix@
49c009b5 21
f14a5192 22bindir = @bindir@
49c009b5
ILT
23sbindir = @sbindir@
24libexecdir = @libexecdir@
f14a5192 25datadir = @datadir@
49c009b5
ILT
26sysconfdir = @sysconfdir@
27sharedstatedir = @sharedstatedir@
28localstatedir = @localstatedir@
29libdir = @libdir@
f14a5192 30infodir = @infodir@
49c009b5 31mandir = @mandir@
f14a5192 32includedir = @includedir@
49c009b5 33oldincludedir = /usr/include
f14a5192 34
8bc8f4bc
TT
35DISTDIR =
36
49c009b5
ILT
37pkgdatadir = $(datadir)/@PACKAGE@
38pkglibdir = $(libdir)/@PACKAGE@
39pkgincludedir = $(includedir)/@PACKAGE@
e06ba18d 40
49c009b5
ILT
41top_builddir = .
42
43ACLOCAL = @ACLOCAL@
44AUTOCONF = @AUTOCONF@
45AUTOMAKE = @AUTOMAKE@
46AUTOHEADER = @AUTOHEADER@
e06ba18d 47
ba69384d 48INSTALL = @INSTALL@
f14a5192
JM
49INSTALL_PROGRAM = @INSTALL_PROGRAM@
50INSTALL_DATA = @INSTALL_DATA@
49c009b5
ILT
51INSTALL_SCRIPT = @INSTALL_SCRIPT@
52transform = @program_transform_name@
53
51b9a79b
ILT
54NORMAL_INSTALL = :
55PRE_INSTALL = :
56POST_INSTALL = :
57NORMAL_UNINSTALL = :
58PRE_UNINSTALL = :
59POST_UNINSTALL = :
49c009b5
ILT
60build_alias = @build_alias@
61build_triplet = @build@
62host_alias = @host_alias@
63host_triplet = @host@
64target_alias = @target_alias@
65target_triplet = @target@
d66c832b 66CC = @CC@
8bc8f4bc 67CC_FOR_BUILD = @CC_FOR_BUILD@
b9a5c27f 68EXEEXT = @EXEEXT@
8bc8f4bc 69EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
49c009b5 70HDEFINES = @HDEFINES@
49c009b5 71LIBTOOL = @LIBTOOL@
49c009b5 72NATIVE_LIB_DIRS = @NATIVE_LIB_DIRS@
49c009b5 73RANLIB = @RANLIB@
8bc8f4bc
TT
74
75INTLLIBS = @INTLLIBS@
49c009b5 76
51b9a79b 77AUTOMAKE_OPTIONS = cygnus dejagnu
49c009b5 78
8bc8f4bc
TT
79SUBDIRS = po
80
49c009b5
ILT
81tooldir = $(exec_prefix)/$(target_alias)
82
83YACC = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi`
84YFLAGS = -d
85LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
86
87# We put the scripts in the directory $(scriptdir)/ldscripts.
88# We can't put the scripts in $(datadir) because the SEARCH_DIR
89# directives need to be different for native and cross linkers.
90scriptdir = $(tooldir)/lib
8c32cf6e 91
d66c832b
ILT
92EMUL = @EMUL@
93EMULATION_OFILES = @EMULATION_OFILES@
94
efa6c497 95# Search path to override the default search path for -lfoo libraries.
ee17cac9 96# If LIB_PATH is empty, the ones in the script (if any) are left alone.
208bc89e 97# (The default is usually /lib:/usr/lib:/usr/local/lib, unless building
917bffa7 98# a cross-linker, in which case the default is empty. See genscripts.sh.)
ee17cac9
PB
99# Otherwise, they are replaced with the ones given in LIB_PATH,
100# which may have the form: LIB_PATH=/lib:/usr/local/lib
101LIB_PATH =
102
959eba20
JO
103BASEDIR = $(srcdir)/..
104BFDDIR = $(BASEDIR)/bfd
105INCDIR = $(BASEDIR)/include
4a6afc88 106DEP = mkdep
2ee11735 107
2412a768
RP
108# What version of the manual to build
109DOCVER = gen
110
5cdea2ac 111#stuff for self hosting (can be overridden in config file).
d66c832b
ILT
112HOSTING_CRT0 = @HOSTING_CRT0@
113HOSTING_LIBS = @HOSTING_LIBS@
74e6b793 114HOSTING_EMU = -m $(EMUL)
5cdea2ac 115
3a9149a7 116# Setup the testing framework, if you have one
32286e08
C
117EXPECT = `if [ -f $$r/../expect/expect ] ; \
118 then echo $$r/../expect/expect ; \
119 else echo expect ; fi`
120
121RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; \
122 then echo $${srcroot}/../dejagnu/runtest ; \
123 else echo runtest ; fi`
099c286e 124
03372cf4 125RUNTESTFLAGS =
32286e08
C
126
127CC_FOR_TARGET = ` \
65d22248 128 if [ -f $$r/../gcc/xgcc ] ; then \
32286e08
C
129 if [ -f $$r/../newlib/Makefile ] ; then \
130 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
131 else \
132 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
133 fi; \
134 else \
dfc84b08 135 if [ "@host@" = "@target@" ] ; then \
32286e08
C
136 echo $(CC); \
137 else \
ca7f5c98 138 echo gcc | sed '$(transform)'; \
32286e08
C
139 fi; \
140 fi`
141
142CXX = gcc
143CXX_FOR_TARGET = ` \
65d22248 144 if [ -f $$r/../gcc/xgcc ] ; then \
32286e08
C
145 if [ -f $$r/../newlib/Makefile ] ; then \
146 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
147 else \
148 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
149 fi; \
150 else \
dfc84b08 151 if [ "@host@" = "@target@" ] ; then \
32286e08
C
152 echo $(CXX); \
153 else \
ca7f5c98 154 echo gcc | sed '$(transform)'; \
32286e08
C
155 fi; \
156 fi`
c97b9003 157
49c009b5
ILT
158noinst_PROGRAMS = ld-new
159info_TEXINFOS = ld.texinfo
160noinst_TEXINFOS = ldint.texinfo
161man_MANS = ld.1
565c93e9 162
8bc8f4bc 163INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) -I$(top_srcdir)/../intl -I../intl $(HDEFINES) $(CFLAGS) -DLOCALEDIR="\"$(prefix)/share/locale\""
f78e2569 164
49c009b5 165BFDLIB = ../bfd/libbfd.la
959eba20 166LIBIBERTY = ../libiberty/libiberty.a
eb02fd64 167
efa6c497
ILT
168ALL_EMULATIONS = \
169 ea29k.o \
170 eaixppc.o \
171 eaixrs6.o \
172 ealpha.o \
0c0b16f9 173 earcelf.o \
efa6c497
ILT
174 earmaoutb.o \
175 earmaoutl.o \
176 earmcoff.o \
177 earmpe.o \
178 ecoff_sparc.o \
e48412a2
MM
179 ed10velf.o \
180 $(start-sanitize-d30v) \
181 ed30velf.o \
f5870264
DE
182 ed30v_e.o \
183 ed30v_o.o \
e48412a2 184 $(end-sanitize-d30v) \
efa6c497
ILT
185 edelta68.o \
186 eebmon29k.o \
187 eelf32_sparc.o \
188 eelf32b4300.o \
189 eelf32bmip.o \
719de0ea
ILT
190 eelf32ebmip.o \
191 eelf32elmip.o \
efa6c497 192 eelf32l4300.o \
bd8a4ea4
JL
193 $(start-sanitize-r5900) \
194 eelf32l5900.o \
195 $(end-sanitize-r5900) \
efa6c497
ILT
196 eelf32lmip.o \
197 eelf32lppc.o \
198 eelf32ppc.o \
efa6c497
ILT
199 eelf_i386.o \
200 egld960.o \
201 egld960coff.o \
202 ego32.o \
203 eh8300.o \
204 eh8300h.o \
f14a5192 205 eh8300s.o \
efa6c497
ILT
206 eh8500.o \
207 eh8500b.o \
208 eh8500c.o \
209 eh8500m.o \
210 eh8500s.o \
211 ehp300bsd.o \
212 ehp3hpux.o \
213 ehppaelf.o \
214 ei386aout.o \
215 ei386bsd.o \
216 ei386coff.o \
217 ei386go32.o \
218 ei386linux.o \
219 ei386lynx.o \
220 ei386mach.o \
221 ei386moss.o \
222 ei386msdos.o \
223 ei386nbsd.o \
224 ei386nw.o \
225 ei386pe.o \
226 elnk960.o \
227 em68k4knbsd.o \
228 em68kaout.o \
229 em68kaux.o \
230 em68kcoff.o \
231 em68kelf.o \
232 em68klinux.o \
233 em68klynx.o \
234 em68knbsd.o \
235 em68kpsos.o \
236 em88kbcs.o \
237 emipsbig.o \
238 emipsbsd.o \
239 emipsidt.o \
240 emipsidtl.o \
241 emipslit.o \
9ae9e582 242 emipslnews.o \
efa6c497
ILT
243 enews.o \
244 ens32knbsd.o \
1ab4cd57 245 epc532macha.o \
efa6c497
ILT
246 eppcmacos.o \
247 eppcnw.o \
248 eppcpe.o \
249 eriscix.o \
250 esa29200.o \
251 esh.o \
79e9dc20
DE
252 eshelf.o \
253 eshlelf.o \
efa6c497
ILT
254 eshl.o \
255 esparcaout.o \
ba69384d 256 esparclinux.o \
efa6c497
ILT
257 esparclynx.o \
258 esparcnbsd.o \
259 est2000.o \
260 esun3.o \
261 esun4.o \
cdf91fe4
ILT
262 etic30aout.o \
263 etic30coff.o \
e48412a2
MM
264 $(start-sanitize-tic80) \
265 etic80coff.o \
266 $(end-sanitize-tic80) \
efa6c497
ILT
267 evanilla.o \
268 evax.o \
269 evsta.o \
270 ew65.o \
271 ez8001.o \
272 ez8002.o
7e5c1057 273
30bddd33 274ALL_64_EMULATIONS = \
e48412a2 275 eelf64_sparc.o \
30bddd33
ILT
276 eelf64alpha.o
277
74e6b793 278CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
4a6afc88 279 ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
3fac4887 280 mri.c ldcref.c
eb02fd64 281
74e6b793 282HFILES = config.h ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
4a6afc88 283 ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
3fac4887 284 ldwrite.h mri.h
eb02fd64 285
74e6b793 286GENERATED_CFILES = ldgram.c ldlex.c
208bc89e 287GENERATED_HFILES = ldgram.h ldemul-list.h
eb02fd64 288
74e6b793 289OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
4a6afc88 290 ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \
3fac4887 291 ldfile.o ldcref.o ${EMULATION_OFILES}
eb02fd64 292
82ebe9a2 293STAGESTUFF = *.o ldscripts/* e*.c
e06ba18d 294
8bc8f4bc
TT
295POTFILES = $(CFILES) $(HFILES)
296
49c009b5
ILT
297# These all start with e so 'make clean' can find them.
298
299GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} @host@ @target@ @target_alias@ ${EMUL} "@NATIVE_LIB_DIRS@"
300GEN_DEPENDS = $(srcdir)/genscripts.sh $(srcdir)/emultempl/stringify.sed
301
302ld_new_SOURCES = ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c \
303 ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c
8bc8f4bc
TT
304ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLDEPS)
305ld_new_LDADD = $(EMULATION_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
49c009b5
ILT
306
307# This is the real libbfd.a created by libtool.
8bc8f4bc 308TESTBFDLIB = @TESTBFDLIB@
49c009b5 309
36977730 310MOSTLYCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) \
193bbe85 311 ldemul-list.h crtbegin.o crtend.o ld.log ld.sum
83a33a21 312CLEANFILES = dep.sed .dep .dep1
51b9a79b
ILT
313
314# Stuff that should be included in a distribution. The diststuff
315# target is run by the taz target in ../Makefile.in.
316LDDISTSTUFF = ldgram.c ldgram.h ldlex.c
317
193bbe85 318DISTCLEANFILES = tdirs site.exp site.bak
49c009b5
ILT
319ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
320mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
321CONFIG_HEADER = config.h
322CONFIG_CLEAN_FILES =
323noinst_PROGRAMS = ld-new$(EXEEXT)
324PROGRAMS = $(noinst_PROGRAMS)
325
326
327DEFS = @DEFS@ -I. -I$(srcdir) -I.
328CPPFLAGS = @CPPFLAGS@
329LDFLAGS = @LDFLAGS@
330LIBS = @LIBS@
331ld_new_OBJECTS = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o \
332ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o
333ld_new_LDFLAGS =
334LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
335LEXLIB = @LEXLIB@
336CFLAGS = @CFLAGS@
337COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
338LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
339LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
8bc8f4bc 340MAKEINFO = `if test -f $(top_builddir)/../texinfo/makeinfo/makeinfo; then echo $(top_builddir)/../texinfo/makeinfo/makeinfo; else echo makeinfo; fi`
49c009b5
ILT
341TEXI2DVI = `if test -f $(top_srcdir)/../texinfo/util/texi2dvi; then echo $(top_srcdir)/../texinfo/util/texi2dvi; else echo texi2dvi; fi`
342TEXINFO_TEX = $(top_srcdir)/../texinfo/texinfo.tex
343INFO_DEPS = ld.info
344DVIS = ld.dvi
345TEXINFOS = ld.texinfo
8bc8f4bc
TT
346man1dir = $(mandir)/man1
347MANS = $(man_MANS)
49c009b5
ILT
348
349NROFF = nroff
350DIST_COMMON = README ChangeLog Makefile.am Makefile.in NEWS TODO \
351acconfig.h acinclude.m4 aclocal.m4 config.in configure configure.in \
352ldgram.c ldlex.c stamp-h.in
353
354
8bc8f4bc
TT
355PACKAGE = @PACKAGE@
356VERSION = @VERSION@
357
49c009b5
ILT
358DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
359
360TAR = tar
361GZIP = --best
362SOURCES = $(ld_new_SOURCES)
363OBJECTS = $(ld_new_OBJECTS)
364
8bc8f4bc 365all: all-recursive-am all-am
49c009b5
ILT
366
367.SUFFIXES:
8bc8f4bc
TT
368.SUFFIXES: .S .c .dvi .info .l .lo .o .ps .s .texi .texinfo .txi .y
369$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
49c009b5
ILT
370 cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
371
8bc8f4bc 372Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
49c009b5
ILT
373 cd $(top_builddir) \
374 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
375
376$(ACLOCAL_M4): @MAINT@ configure.in acinclude.m4
377 cd $(srcdir) && $(ACLOCAL)
378
379config.status: $(srcdir)/configure
380 $(SHELL) ./config.status --recheck
381$(srcdir)/configure: @MAINT@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
382 cd $(srcdir) && $(AUTOCONF)
383
51b9a79b
ILT
384config.h: stamp-h
385 @:
49c009b5
ILT
386stamp-h: $(srcdir)/config.in $(top_builddir)/config.status
387 cd $(top_builddir) \
388 && CONFIG_FILES= CONFIG_HEADERS=config.h:config.in \
389 $(SHELL) ./config.status
390 @echo timestamp > stamp-h
391$(srcdir)/config.in: @MAINT@$(srcdir)/stamp-h.in
392$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
393 cd $(top_srcdir) && $(AUTOHEADER)
394 @echo timestamp > $(srcdir)/stamp-h.in
395
396mostlyclean-hdr:
397
398clean-hdr:
399
400distclean-hdr:
51b9a79b 401 -rm -f config.h
49c009b5
ILT
402
403maintainer-clean-hdr:
404
405mostlyclean-noinstPROGRAMS:
406
407clean-noinstPROGRAMS:
51b9a79b 408 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
49c009b5
ILT
409
410distclean-noinstPROGRAMS:
411
412maintainer-clean-noinstPROGRAMS:
413
51b9a79b 414.c.o:
f5870264
DE
415 $(COMPILE) -c $<
416
51b9a79b 417.s.o:
f5870264
DE
418 $(COMPILE) -c $<
419
51b9a79b 420.S.o:
49c009b5
ILT
421 $(COMPILE) -c $<
422
423mostlyclean-compile:
51b9a79b 424 -rm -f *.o core *.core
49c009b5
ILT
425
426clean-compile:
427
428distclean-compile:
51b9a79b 429 -rm -f *.tab.c
49c009b5
ILT
430
431maintainer-clean-compile:
432
433.c.lo:
434 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
435
f5870264
DE
436.s.lo:
437 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
438
439.S.lo:
440 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
441
49c009b5 442mostlyclean-libtool:
51b9a79b 443 -rm -f *.lo
49c009b5
ILT
444
445clean-libtool:
51b9a79b 446 -rm -rf .libs _libs
49c009b5
ILT
447
448distclean-libtool:
449
450maintainer-clean-libtool:
451
452ld-new$(EXEEXT): $(ld_new_OBJECTS) $(ld_new_DEPENDENCIES)
453 @rm -f ld-new$(EXEEXT)
454 $(LINK) $(ld_new_LDFLAGS) $(ld_new_OBJECTS) $(ld_new_LDADD) $(LIBS)
455.y.c:
51b9a79b 456 $(YACC) $(YFLAGS) $< && mv y.tab.c $*.c
49c009b5
ILT
457 if test -f y.tab.h; then \
458 if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \
459 else :; fi
51b9a79b
ILT
460ldgram.h: ldgram.c
461
49c009b5
ILT
462.l.c:
463 $(LEX) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@
464
465ld.info: ld.texinfo
466ld.dvi: ld.texinfo
467
468
469DVIPS = dvips
470
471.texi.info:
472 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
473 $(MAKEINFO) -I $(srcdir) $<
474
475.texi.dvi:
476 TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
477 MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
478
479.texi:
480 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
481 $(MAKEINFO) -I $(srcdir) $<
482
483.texinfo.info:
484 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
485 $(MAKEINFO) -I $(srcdir) $<
486
487.texinfo:
488 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
489 $(MAKEINFO) -I $(srcdir) $<
490
491.texinfo.dvi:
492 TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
493 MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
8bc8f4bc
TT
494
495.txi.info:
496 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
497 $(MAKEINFO) -I $(srcdir) $<
498
499.txi.dvi:
500 TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
501 MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
502
503.txi:
504 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
505 $(MAKEINFO) -I $(srcdir) $<
49c009b5
ILT
506.dvi.ps:
507 $(DVIPS) $< -o $@
508
509install-info-am: $(INFO_DEPS)
510 @$(NORMAL_INSTALL)
8bc8f4bc 511 $(mkinstalldirs) $(DESTDIR)$(infodir)
49c009b5
ILT
512 @for file in $(INFO_DEPS); do \
513 if test -f $$file; then d=.; else d=$(srcdir); fi; \
514 for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
515 if test -f $$d/$$ifile; then \
8bc8f4bc
TT
516 echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
517 $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
49c009b5
ILT
518 else : ; fi; \
519 done; \
520 done
521 @$(POST_INSTALL)
522 @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
523 for file in $(INFO_DEPS); do \
8bc8f4bc
TT
524 echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\
525 install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
49c009b5
ILT
526 done; \
527 else : ; fi
528
529uninstall-info:
530 $(PRE_UNINSTALL)
531 @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
532 ii=yes; \
533 else ii=; fi; \
534 for file in $(INFO_DEPS); do \
51b9a79b 535 test -z "$ii" \
8bc8f4bc 536 || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
49c009b5 537 done
8bc8f4bc 538 @$(NORMAL_UNINSTALL)
49c009b5 539 for file in $(INFO_DEPS); do \
8bc8f4bc 540 (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
49c009b5
ILT
541 done
542
543dist-info: $(INFO_DEPS)
544 for base in $(INFO_DEPS); do \
545 if test -f $$base; then d=.; else d=$(srcdir); fi; \
546 for file in `cd $$d && eval echo $$base*`; do \
547 test -f $(distdir)/$$file \
548 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
549 || cp -p $$d/$$file $(distdir)/$$file; \
550 done; \
551 done
552
553mostlyclean-aminfo:
51b9a79b
ILT
554 -rm -f ld.aux ld.cp ld.cps ld.dvi ld.fn ld.fns ld.ky ld.kys ld.ps \
555 ld.log ld.pg ld.toc ld.tp ld.tps ld.vr ld.vrs ld.op ld.tr \
556 ld.cv ld.cn
49c009b5
ILT
557
558clean-aminfo:
559
560distclean-aminfo:
561
562maintainer-clean-aminfo:
51b9a79b
ILT
563 for i in $(INFO_DEPS); do \
564 rm -f $$i; \
565 if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \
566 rm -f $$i-[0-9]*; \
567 fi; \
568 done
49c009b5 569clean-info: mostlyclean-aminfo
49c009b5 570
8bc8f4bc
TT
571install-man1:
572 $(mkinstalldirs) $(DESTDIR)$(man1dir)
573 @list='$(man1_MANS)'; \
574 l2='$(man_MANS)'; for i in $$l2; do \
575 case "$$i" in \
576 *.1*) list="$$list $$i" ;; \
577 esac; \
578 done; \
579 for i in $$list; do \
580 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
581 else file=$$i; fi; \
582 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
583 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
584 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
585 echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
586 $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
587 done
49c009b5 588
8bc8f4bc
TT
589uninstall-man1:
590 @list='$(man1_MANS)'; \
591 l2='$(man_MANS)'; for i in $$l2; do \
592 case "$$i" in \
593 *.1*) list="$$list $$i" ;; \
594 esac; \
595 done; \
596 for i in $$list; do \
597 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
598 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
599 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
600 echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
601 rm -f $(DESTDIR)$(man1dir)/$$inst; \
602 done
603install-man: $(MANS)
604 @$(NORMAL_INSTALL)
605 $(MAKE) install-man1
606uninstall-man:
607 @$(NORMAL_UNINSTALL)
608 $(MAKE) uninstall-man1
609
610# This directory's subdirectories are mostly independent; you can cd
611# into them and run `make' without going through this Makefile.
612# To change the values of `make' variables: instead of editing Makefiles,
613# (1) if the variable is set in `config.status', edit `config.status'
614# (which will cause the Makefiles to be regenerated when you run `make');
615# (2) otherwise, pass the desired values on the `make' command line.
616
617@SET_MAKE@
618
619all-recursive install-data-recursive install-exec-recursive \
620installdirs-recursive install-recursive uninstall-recursive install-info-recursive \
621check-recursive installcheck-recursive info-recursive dvi-recursive:
622 @set fnord $(MAKEFLAGS); amf=$$2; \
623 list='$(SUBDIRS)'; for subdir in $$list; do \
624 target=`echo $@ | sed s/-recursive//`; \
625 echo "Making $$target in $$subdir"; \
626 (cd $$subdir && $(MAKE) $$target) \
627 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
628 done && test -z "$$fail"
629
630mostlyclean-recursive clean-recursive distclean-recursive \
631maintainer-clean-recursive:
632 @set fnord $(MAKEFLAGS); amf=$$2; \
633 rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
634 rev="$$subdir $$rev"; \
635 done; \
636 for subdir in $$rev; do \
637 target=`echo $@ | sed s/-recursive//`; \
638 echo "Making $$target in $$subdir"; \
639 (cd $$subdir && $(MAKE) $$target) \
640 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
641 done && test -z "$$fail"
642tags-recursive:
643 list='$(SUBDIRS)'; for subdir in $$list; do \
644 (cd $$subdir && $(MAKE) tags); \
645 done
49c009b5
ILT
646
647tags: TAGS
648
51b9a79b
ILT
649ID: $(HEADERS) $(SOURCES) $(LISP)
650 here=`pwd` && cd $(srcdir) \
651 && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
49c009b5 652
8bc8f4bc 653TAGS: tags-recursive $(HEADERS) $(SOURCES) config.in $(TAGS_DEPENDENCIES) $(LISP)
49c009b5
ILT
654 tags=; \
655 here=`pwd`; \
8bc8f4bc
TT
656 list='$(SUBDIRS)'; for subdir in $$list; do \
657 test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
658 done; \
51b9a79b
ILT
659 list='$(SOURCES) $(HEADERS)'; \
660 unique=`for i in $$list; do echo $$i; done | \
661 awk ' { files[$$0] = 1; } \
662 END { for (i in files) print i; }'`; \
663 test -z "$(ETAGS_ARGS)config.in$$unique$(LISP)$$tags" \
664 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.in $$unique $(LISP) -o $$here/TAGS)
49c009b5
ILT
665
666mostlyclean-tags:
667
668clean-tags:
669
670distclean-tags:
51b9a79b 671 -rm -f TAGS ID
49c009b5
ILT
672
673maintainer-clean-tags:
674
675distdir = $(PACKAGE)-$(VERSION)
676top_distdir = $(distdir)
677
678# This target untars the dist file and tries a VPATH configuration. Then
679# it guarantees that the distribution is self-contained by making another
680# tarfile.
681distcheck: dist
51b9a79b 682 -rm -rf $(distdir)
49c009b5
ILT
683 GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
684 mkdir $(distdir)/=build
685 mkdir $(distdir)/=inst
686 dc_install_base=`cd $(distdir)/=inst && pwd`; \
687 cd $(distdir)/=build \
688 && ../configure --srcdir=.. --prefix=$$dc_install_base \
689 && $(MAKE) \
690 && $(MAKE) dvi \
691 && $(MAKE) check \
692 && $(MAKE) install \
693 && $(MAKE) installcheck \
694 && $(MAKE) dist
51b9a79b 695 -rm -rf $(distdir)
49c009b5
ILT
696 @echo "========================"; \
697 echo "$(distdir).tar.gz is ready for distribution"; \
698 echo "========================"
699dist: distdir
700 -chmod -R a+r $(distdir)
701 GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
51b9a79b 702 -rm -rf $(distdir)
49c009b5
ILT
703dist-all: distdir
704 -chmod -R a+r $(distdir)
705 GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
51b9a79b 706 -rm -rf $(distdir)
49c009b5 707distdir: $(DISTFILES)
51b9a79b 708 -rm -rf $(distdir)
49c009b5
ILT
709 mkdir $(distdir)
710 -chmod 777 $(distdir)
711 @for file in $(DISTFILES); do \
712 if test -f $$file; then d=.; else d=$(srcdir); fi; \
713 test -f $(distdir)/$$file \
714 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
715 || cp -p $$d/$$file $(distdir)/$$file; \
716 done
8bc8f4bc
TT
717 for subdir in $(SUBDIRS); do \
718 test -d $(distdir)/$$subdir \
719 || mkdir $(distdir)/$$subdir \
720 || exit 1; \
721 chmod 777 $(distdir)/$$subdir; \
722 (cd $$subdir && $(MAKE) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
723 || exit 1; \
724 done
49c009b5
ILT
725 $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
726
727DEJATOOL = $(PACKAGE)
51b9a79b
ILT
728
729RUNTESTDEFAULTFLAGS = --tool $(DEJATOOL) --srcdir $$srcdir
49c009b5
ILT
730site.exp: Makefile
731 @echo 'Making a new site.exp file...'
732 -@rm -f site.bak
733 @echo '## these variables are automatically generated by make ##' > $@-t
734 @echo '# Do not edit here. If you wish to override these values' >> $@-t
735 @echo '# edit the last section' >> $@-t
736 @echo 'set tool $(DEJATOOL)' >> $@-t
737 @echo 'set srcdir $(srcdir)' >> $@-t
738 @echo 'set objdir' `pwd` >> $@-t
739 @echo 'set host_alias $(host_alias)' >> $@-t
740 @echo 'set host_triplet $(host_triplet)' >> $@-t
741 @echo 'set target_alias $(target_alias)' >> $@-t
742 @echo 'set target_triplet $(target_triplet)' >> $@-t
743 @echo 'set build_alias $(build_alias)' >> $@-t
744 @echo 'set build_triplet $(build_triplet)' >> $@-t
745 @echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t
746 -@sed '1,/^## All variables above are.*##/ d' site.bak >> $@-t
747 -@mv site.exp site.bak
748 @mv $@-t site.exp
8bc8f4bc
TT
749info: $(INFO_DEPS) info-recursive
750dvi: $(DVIS) dvi-recursive
51b9a79b 751check:
8bc8f4bc
TT
752 $(MAKE) check-recursive check-DEJAGNU
753installcheck: installcheck-recursive
754install-info: install-info-am install-info-recursive
755all-recursive-am: config.h
756 $(MAKE) all-recursive
757
758all-am: Makefile $(PROGRAMS) $(MANS) config.h
759
760install-exec-am: install-exec-local
761
762install-data-am: install-man install-data-local
763
764uninstall-am: uninstall-man
765
766install-exec: install-exec-recursive install-exec-am
49c009b5
ILT
767 @$(NORMAL_INSTALL)
768
8bc8f4bc 769install-data: install-data-recursive install-data-am
49c009b5
ILT
770 @$(NORMAL_INSTALL)
771
8bc8f4bc 772install: install-recursive install-exec-am install-data-am
49c009b5
ILT
773 @:
774
8bc8f4bc 775uninstall: uninstall-recursive uninstall-am
49c009b5
ILT
776
777install-strip:
778 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
8bc8f4bc
TT
779installdirs: installdirs-recursive
780 $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
49c009b5 781
2ee11735 782
49c009b5 783mostlyclean-generic:
51b9a79b 784 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
49c009b5
ILT
785
786clean-generic:
51b9a79b 787 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
49c009b5
ILT
788
789distclean-generic:
51b9a79b
ILT
790 -rm -f Makefile $(DISTCLEANFILES)
791 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
792 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
49c009b5
ILT
793
794maintainer-clean-generic:
51b9a79b
ILT
795 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
796 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
8bc8f4bc 797mostlyclean-am: mostlyclean-hdr mostlyclean-noinstPROGRAMS \
49c009b5 798 mostlyclean-compile mostlyclean-libtool \
8bc8f4bc 799 mostlyclean-aminfo mostlyclean-tags mostlyclean-generic
49c009b5 800
8bc8f4bc
TT
801clean-am: clean-hdr clean-noinstPROGRAMS clean-compile clean-libtool \
802 clean-aminfo clean-tags clean-generic mostlyclean-am
49c009b5 803
8bc8f4bc 804distclean-am: distclean-hdr distclean-noinstPROGRAMS distclean-compile \
49c009b5 805 distclean-libtool distclean-aminfo distclean-tags \
8bc8f4bc 806 distclean-generic clean-am
49c009b5 807
8bc8f4bc
TT
808maintainer-clean-am: maintainer-clean-hdr \
809 maintainer-clean-noinstPROGRAMS \
49c009b5
ILT
810 maintainer-clean-compile maintainer-clean-libtool \
811 maintainer-clean-aminfo maintainer-clean-tags \
8bc8f4bc
TT
812 maintainer-clean-generic distclean-am
813
814mostlyclean: mostlyclean-recursive mostlyclean-am mostlyclean-local
815
816clean: clean-recursive clean-am
817
818distclean: distclean-recursive distclean-am distclean-local
819 -rm -f config.status
820 -rm -f libtool
821
822maintainer-clean: maintainer-clean-recursive maintainer-clean-am
49c009b5
ILT
823 @echo "This command is intended for maintainers to use;"
824 @echo "it deletes files that may require special tools to rebuild."
51b9a79b 825 -rm -f config.status
49c009b5 826
8bc8f4bc
TT
827.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
828mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
829clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \
830mostlyclean-compile distclean-compile clean-compile \
831maintainer-clean-compile mostlyclean-libtool distclean-libtool \
832clean-libtool maintainer-clean-libtool install-info-am uninstall-info \
833mostlyclean-aminfo distclean-aminfo clean-aminfo \
834maintainer-clean-aminfo install-man1 uninstall-man1 install-man \
835uninstall-man install-data-recursive uninstall-data-recursive \
836install-exec-recursive uninstall-exec-recursive installdirs-recursive \
837uninstalldirs-recursive all-recursive check-recursive \
838installcheck-recursive info-recursive dvi-recursive \
839mostlyclean-recursive distclean-recursive clean-recursive \
840maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
841distclean-tags clean-tags maintainer-clean-tags distdir check-DEJAGNU \
842info dvi installcheck install-info all-recursive-am all-am \
843install-exec-am install-data-am uninstall-am install-exec install-data \
844install uninstall all installdirs mostlyclean-generic distclean-generic \
845clean-generic maintainer-clean-generic clean mostlyclean distclean \
846maintainer-clean
847
848po/POTFILES.in: @MAINT@ Makefile
849 for file in $(POTFILES); do echo $$file; done | sort > tmp \
850 && mv tmp $(srcdir)/po/POTFILES.in
32286e08 851
4a6afc88 852ldmain.o: ldmain.c config.status
49c009b5 853 $(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' -DTARGET='"@target@"' $(srcdir)/ldmain.c
4a6afc88 854
82ebe9a2 855ldemul-list.h: Makefile
7e5c1057
PB
856 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
857 for f in `echo " " ${EMULATION_OFILES} "" \
82ebe9a2 858 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
7e5c1057
PB
859 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
860 done;\
861 echo "";\
862 echo "#define EMULATION_LIST \\";\
863 for f in `echo " " ${EMULATION_OFILES} "" \
82ebe9a2 864 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
7e5c1057
PB
865 echo " &ld_$${f}_emulation, \\"; \
866 done;\
4a6afc88
ILT
867 echo " 0") >ldemul-tmp.h
868 mv ldemul-tmp.h ldemul-list.h
95d31c3c 869@TDIRS@
7e5c1057 870
efa6c497
ILT
871ea29k.c: $(srcdir)/emulparams/a29k.sh \
872 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
873 ${GENSCRIPTS} a29k "$(tdir_a29k)"
874eaixppc.c: $(srcdir)/emulparams/aixppc.sh \
875 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
876 ${GENSCRIPTS} aixppc "$(tdir_aixppc)"
877eaixrs6.c: $(srcdir)/emulparams/aixrs6.sh \
878 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
879 ${GENSCRIPTS} aixrs6 "$(tdir_aixrs6)"
880ealpha.c: $(srcdir)/emulparams/alpha.sh \
881 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
882 ${GENSCRIPTS} alpha "$(tdir_alpha)"
efa6c497
ILT
883earcelf.c: $(srcdir)/emulparams/arcelf.sh \
884 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
885 ${GENSCRIPTS} arcelf "$(tdir_arcelf)"
efa6c497
ILT
886earmaoutb.c: $(srcdir)/emulparams/armaoutb.sh \
887 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
888 ${GENSCRIPTS} armaoutb "$(tdir_armaoutb)"
889earmaoutl.c: $(srcdir)/emulparams/armaoutl.sh \
890 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
891 ${GENSCRIPTS} armaoutl "$(tdir_armaoutl)"
892earmcoff.c: $(srcdir)/emulparams/armcoff.sh \
893 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS}
894 ${GENSCRIPTS} armcoff "$(tdir_armcoff)"
28d0c3ce 895earmpe.c: $(srcdir)/emulparams/armpe.sh \
d66c832b 896 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
95d31c3c 897 ${GENSCRIPTS} armpe "$(tdir_armpe)"
efa6c497
ILT
898ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
899 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
900 ${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)"
e9525d96 901ed10velf.c: $(srcdir)/emulparams/d10velf.sh \
10e31c75 902 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd10v.sc ${GEN_DEPENDS}
04c17a75 903 ${GENSCRIPTS} d10velf "$(tdir_d10v)"
49c009b5 904start-sanitize-d30v:
9ae9e582
ILT
905ed30velf.c: $(srcdir)/emulparams/d30velf.sh \
906 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
907 ${GENSCRIPTS} d30velf "$(tdir_d30v)"
f5870264
DE
908ed30v_o.c: $(srcdir)/emulparams/d30v_o.sh \
909 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
910 ${GENSCRIPTS} d30v_o "$(tdir_d30v)"
911ed30v_e.c: $(srcdir)/emulparams/d30v_e.sh \
912 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
913 ${GENSCRIPTS} d30v_e "$(tdir_d30v)"
49c009b5 914end-sanitize-d30v:
efa6c497
ILT
915edelta68.c: $(srcdir)/emulparams/delta68.sh \
916 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
917 ${GENSCRIPTS} delta68 "$(tdir_delta68)"
918eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
919 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
920 ${GENSCRIPTS} ebmon29k "$(tdir_ebmon29k)"
79e9dc20
DE
921em32relf.c: $(srcdir)/emulparams/m32relf.sh \
922 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
923 ${GENSCRIPTS} m32relf "$(tdir_m32r)"
efa6c497
ILT
924eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
925 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
926 ${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)"
927eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \
928 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
929 ${GENSCRIPTS} elf32b4300 "$(tdir_elf32b4300)"
930eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
b9a5c27f 931 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
efa6c497 932 ${GENSCRIPTS} elf32bmip "$(tdir_elf32bmip)"
532fe3e5
ILT
933eelf32bsmip.c: $(srcdir)/emulparams/elf32bsmip.sh \
934 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
935 ${GENSCRIPTS} elf32bsmip "$(tdir_elf32bsmip)"
719de0ea 936eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
b9a5c27f 937 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
719de0ea
ILT
938 ${GENSCRIPTS} elf32ebmip "$(tdir_elf32ebmip)"
939eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \
b9a5c27f 940 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
719de0ea 941 ${GENSCRIPTS} elf32elmip "$(tdir_elf32elmip)"
efa6c497
ILT
942eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \
943 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
944 ${GENSCRIPTS} elf32l4300 "$(tdir_elf32l4300)"
bd8a4ea4
JL
945start-sanitize-r5900:
946eelf32l5900.c: $(srcdir)/emulparams/elf32l5900.sh \
947 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
948 ${GENSCRIPTS} elf32l5900 "$(tdir_elf32l5900)"
949end-sanitize-r5900:
efa6c497 950eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
b9a5c27f 951 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
efa6c497
ILT
952 ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)"
953eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \
954 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS}
955 ${GENSCRIPTS} elf32lppc "$(tdir_elf32lppc)"
532fe3e5
ILT
956eelf32lsmip.c: $(srcdir)/emulparams/elf32lsmip.sh \
957 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
958 ${GENSCRIPTS} elf32lsmip "$(tdir_elf32lsmip)"
efa6c497
ILT
959eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
960 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS}
961 ${GENSCRIPTS} elf32ppc "$(tdir_elf32ppc)"
f14a5192
JM
962eelf64alpha.c: $(srcdir)/emulparams/elf64alpha.sh \
963 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
964 ${GENSCRIPTS} elf64alpha "$(tdir_elf64alpha)"
efa6c497 965eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
e48412a2 966 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
efa6c497
ILT
967 ${GENSCRIPTS} elf64_sparc "$(tdir_elf64_sparc)"
968eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
969 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
970 ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
971egld960.c: $(srcdir)/emulparams/gld960.sh \
972 $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
973 ${GENSCRIPTS} gld960 "$(tdir_gld960)"
974egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
975 $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
976 ${GENSCRIPTS} gld960coff "$(tdir_gld960coff)"
82ebe9a2 977ego32.c: $(srcdir)/emulparams/go32.sh \
8ddef552 978 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
95d31c3c 979 ${GENSCRIPTS} go32 "$(tdir_go32)"
efa6c497
ILT
980eh8300.c: $(srcdir)/emulparams/h8300.sh \
981 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
982 ${GENSCRIPTS} h8300 "$(tdir_h8300)"
983eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
984 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
985 ${GENSCRIPTS} h8300h "$(tdir_h8300h)"
f14a5192
JM
986eh8300s.c: $(srcdir)/emulparams/h8300s.sh \
987 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300s.sc ${GEN_DEPENDS}
988 ${GENSCRIPTS} h8300s "$(tdir_h8300s)"
efa6c497
ILT
989eh8500.c: $(srcdir)/emulparams/h8500.sh \
990 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
991 ${GENSCRIPTS} h8500 "$(tdir_h8500)"
992eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
993 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
994 ${GENSCRIPTS} h8500b "$(tdir_h8500b)"
995eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
996 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
997 ${GENSCRIPTS} h8500c "$(tdir_h8500c)"
998eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
999 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
1000 ${GENSCRIPTS} h8500m "$(tdir_h8500m)"
1001eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
1002 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
1003 ${GENSCRIPTS} h8500s "$(tdir_h8500s)"
82ebe9a2 1004ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
8ddef552 1005 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
95d31c3c 1006 ${GENSCRIPTS} hp300bsd "$(tdir_hp300bsd)"
82ebe9a2 1007ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
8ddef552 1008 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
95d31c3c 1009 ${GENSCRIPTS} hp3hpux "$(tdir_hp3hpux)"
82ebe9a2 1010ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
db0a7149 1011 $(srcdir)/emultempl/hppaelf.em $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
95d31c3c 1012 ${GENSCRIPTS} hppaelf "$(tdir_hppaelf)"
82ebe9a2 1013ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
8ddef552 1014 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
95d31c3c 1015 ${GENSCRIPTS} i386aout "$(tdir_i386aout)"
efa6c497
ILT
1016ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
1017 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1018 ${GENSCRIPTS} i386bsd "$(tdir_i386bsd)"
1019ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
1020 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
1021 ${GENSCRIPTS} i386coff "$(tdir_i386coff)"
82ebe9a2 1022ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
6c86b9ff 1023 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
95d31c3c 1024 ${GENSCRIPTS} i386go32 "$(tdir_i386go32)"
efa6c497
ILT
1025ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
1026 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1027 ${GENSCRIPTS} i386linux "$(tdir_i386linux)"
1028ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
1029 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.sc ${GEN_DEPENDS}
1030 ${GENSCRIPTS} i386lynx "$(tdir_i386lynx)"
82ebe9a2 1031ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
3c1af24d 1032 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
95d31c3c 1033 ${GENSCRIPTS} i386mach "$(tdir_i386mach)"
943fbd5b
KR
1034ei386moss.c: $(srcdir)/emulparams/i386moss.sh \
1035 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
95d31c3c 1036 ${GENSCRIPTS} i386moss "$(tdir_i386moss)"
943fbd5b
KR
1037ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \
1038 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS}
95d31c3c 1039 ${GENSCRIPTS} i386msdos "$(tdir_i386msdos)"
efa6c497
ILT
1040ei386nbsd.c: $(srcdir)/emulparams/i386nbsd.sh \
1041 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1042 ${GENSCRIPTS} i386nbsd "$(tdir_i386nbsd)"
1043ei386nw.c: $(srcdir)/emulparams/i386nw.sh \
1044 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
1045 ${GENSCRIPTS} i386nw "$(tdir_i386nw)"
1046ei386pe.c: $(srcdir)/emulparams/i386pe.sh \
1047 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
1048 ${GENSCRIPTS} i386pe "$(tdir_i386pe)"
82ebe9a2 1049elnk960.c: $(srcdir)/emulparams/lnk960.sh \
8ddef552 1050 $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
95d31c3c 1051 ${GENSCRIPTS} lnk960 "$(tdir_lnk960)"
efa6c497
ILT
1052em68k4knbsd.c: $(srcdir)/emulparams/m68k4knbsd.sh \
1053 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1054 ${GENSCRIPTS} m68k4knbsd "$(tdir_m68k4knbsd)"
1055em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
1056 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1057 ${GENSCRIPTS} m68kaout "$(tdir_m68kaout)"
2e598345
ILT
1058em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \
1059 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS}
95d31c3c 1060 ${GENSCRIPTS} m68kaux "$(tdir_m68kaux)"
82ebe9a2 1061em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
8ddef552 1062 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
95d31c3c 1063 ${GENSCRIPTS} m68kcoff "$(tdir_m68kcoff)"
417ced0d
MM
1064em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \
1065 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
95d31c3c 1066 ${GENSCRIPTS} m68kelf "$(tdir_m68kelf)"
efa6c497
ILT
1067em68klinux.c: $(srcdir)/emulparams/m68klinux.sh \
1068 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1069 ${GENSCRIPTS} m68klinux "$(tdir_m68klinux)"
82ebe9a2 1070em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
028f8872 1071 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS}
95d31c3c 1072 ${GENSCRIPTS} m68klynx "$(tdir_m68klynx)"
efa6c497 1073em68knbsd.c: $(srcdir)/emulparams/m68knbsd.sh \
8ddef552 1074 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
efa6c497
ILT
1075 ${GENSCRIPTS} m68knbsd "$(tdir_m68knbsd)"
1076em68kpsos.c: $(srcdir)/emulparams/m68kpsos.sh \
1077 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS}
1078 ${GENSCRIPTS} m68kpsos "$(tdir_m68kpsos)"
1079em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
9ae9e582 1080 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
efa6c497 1081 ${GENSCRIPTS} m88kbcs "$(tdir_m88kbcs)"
82ebe9a2 1082emipsbig.c: $(srcdir)/emulparams/mipsbig.sh \
8ddef552 1083 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
efa6c497 1084 ${GENSCRIPTS} mipsbig
82ebe9a2
KR
1085emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
1086 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
efa6c497 1087 ${GENSCRIPTS} mipsbsd
82ebe9a2 1088emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
417ced0d 1089 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
95d31c3c 1090 ${GENSCRIPTS} mipsidt "$(tdir_mipsidt)"
82ebe9a2 1091emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
417ced0d 1092 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
95d31c3c 1093 ${GENSCRIPTS} mipsidtl "$(tdir_mipsidtl)"
efa6c497
ILT
1094emipslit.c: $(srcdir)/emulparams/mipslit.sh \
1095 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
1096 ${GENSCRIPTS} mipslit "$(tdir_mipslit)"
9ae9e582
ILT
1097emipslnews.c: $(srcdir)/emulparams/mipslnews.sh \
1098 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
1099 ${GENSCRIPTS} mipslnews
10e31c75
JL
1100emn10300.c: $(srcdir)/emulparams/mn10300.sh \
1101 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1102 ${GENSCRIPTS} mn10300 "$(tdir_mn10300)"
1103emn10200.c: $(srcdir)/emulparams/mn10200.sh \
1104 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1105 ${GENSCRIPTS} mn10200 "$(tdir_mn10200)"
efa6c497 1106enews.c: $(srcdir)/emulparams/news.sh \
dd37f215 1107 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
efa6c497
ILT
1108 ${GENSCRIPTS} news "$(tdir_news)"
1109ens32knbsd.c: $(srcdir)/emulparams/ns32knbsd.sh \
82ebe9a2 1110 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
efa6c497 1111 ${GENSCRIPTS} ns32knbsd "$(tdir_ns32knbsd)"
1ab4cd57 1112epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \
cdf71377 1113 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1ab4cd57 1114 ${GENSCRIPTS} pc532macha "$(tdir_pc532macha)"
4fe13b2b
MM
1115eppcmacos.c: $(srcdir)/emulparams/ppcmacos.sh \
1116 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
95d31c3c 1117 ${GENSCRIPTS} ppcmacos "$(tdir_ppcmacos)"
32286e08
C
1118eppcnw.c: $(srcdir)/emulparams/ppcnw.sh \
1119 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
95d31c3c 1120 ${GENSCRIPTS} ppcnw "$(tdir_ppcnw)"
efa6c497
ILT
1121eppcpe.c: $(srcdir)/emulparams/ppcpe.sh \
1122 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/ppcpe.sc ${GEN_DEPENDS}
1123 ${GENSCRIPTS} ppcpe "$(tdir_ppcpe)"
efa6c497 1124eriscix.c: $(srcdir)/emulparams/riscix.sh \
e93e87cb 1125 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
efa6c497
ILT
1126 ${GENSCRIPTS} riscix "$(tdir_riscix)"
1127esa29200.c: $(srcdir)/emulparams/sa29200.sh \
1128 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
1129 ${GENSCRIPTS} sa29200 "$(tdir_sa29200)"
1130esh.c: $(srcdir)/emulparams/sh.sh \
1131 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
1132 ${GENSCRIPTS} sh "$(tdir_sh)"
79e9dc20
DE
1133eshelf.c: $(srcdir)/emulparams/shelf.sh \
1134 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1135 ${GENSCRIPTS} shelf "$(tdir_shelf)"
1136eshlelf.c: $(srcdir)/emulparams/shlelf.sh \
1137 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1138 ${GENSCRIPTS} shlelf "$(tdir_shlelf)"
efa6c497
ILT
1139eshl.c: $(srcdir)/emulparams/shl.sh \
1140 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
1141 ${GENSCRIPTS} shl "$(tdir_shl)"
1142esparcaout.c: $(srcdir)/emulparams/sparcaout.sh \
e93e87cb 1143 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
efa6c497 1144 ${GENSCRIPTS} sparcaout "$(tdir_sparcaout)"
ba69384d
ILT
1145esparclinux.c: $(srcdir)/emulparams/sparclinux.sh \
1146 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1147 ${GENSCRIPTS} sparclinux "$(tdir_sparclinux)"
efa6c497
ILT
1148esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
1149 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS}
1150 ${GENSCRIPTS} sparclynx "$(tdir_sparclynx)"
32286e08 1151esparcnbsd.c: $(srcdir)/emulparams/sparcnbsd.sh \
e93e87cb 1152 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
95d31c3c 1153 ${GENSCRIPTS} sparcnbsd "$(tdir_sparcnbsd)"
efa6c497
ILT
1154est2000.c: $(srcdir)/emulparams/st2000.sh \
1155 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
1156 ${GENSCRIPTS} st2000 "$(tdir_st2000)"
1157esun3.c: $(srcdir)/emulparams/sun3.sh \
1158 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1159 ${GENSCRIPTS} sun3 "$(tdir_sun3)"
1160esun4.c: $(srcdir)/emulparams/sun4.sh \
1161 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1162 ${GENSCRIPTS} sun4 "$(tdir_sun4)"
cdf91fe4
ILT
1163etic30aout.c: $(srcdir)/emulparams/tic30aout.sh \
1164 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30aout.sc ${GEN_DEPENDS}
1165 ${GENSCRIPTS} tic30aout "$(tdir_tic30aout)"
1166etic30coff.c: $(srcdir)/emulparams/tic30coff.sh \
1167 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30coff.sc ${GEN_DEPENDS}
1168 ${GENSCRIPTS} tic30coff "$(tdir_tic30coff)"
49c009b5 1169start-sanitize-tic80:
c6c7035c
MM
1170etic80coff.c: $(srcdir)/emulparams/tic80coff.sh \
1171 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic80coff.sc ${GEN_DEPENDS}
1172 ${GENSCRIPTS} tic80coff "$(tdir_tic80coff)"
49c009b5 1173end-sanitize-tic80:
efa6c497
ILT
1174evanilla.c: $(srcdir)/emulparams/vanilla.sh \
1175 $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
1176 ${GENSCRIPTS} vanilla "$(tdir_vanilla)"
1177evax.c: $(srcdir)/emulparams/vax.sh \
1178 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1179 ${GENSCRIPTS} vax "$(tdir_vax)"
1180evsta.c: $(srcdir)/emulparams/vsta.sh \
1181 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1182 ${GENSCRIPTS} vsta "$(tdir_vsta)"
04c17a75 1183ev850.c: $(srcdir)/emulparams/v850.sh \
d27d34c3 1184 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/v850.sc ${GEN_DEPENDS}
04c17a75 1185 ${GENSCRIPTS} v850 "$(tdir_v850)"
efa6c497
ILT
1186ew65.c: $(srcdir)/emulparams/w65.sh \
1187 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS}
1188 ${GENSCRIPTS} w65 "$(tdir_w65)"
65d22248
C
1189ez8001.c: $(srcdir)/emulparams/z8001.sh \
1190 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
95d31c3c 1191 ${GENSCRIPTS} z8001 "$(tdir_z8001)"
65d22248
C
1192ez8002.c: $(srcdir)/emulparams/z8002.sh \
1193 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
95d31c3c 1194 ${GENSCRIPTS} z8002 "$(tdir_z8002)"
eb02fd64 1195
d17eb3db 1196# The generated emulation files mostly have the same dependencies.
d66c832b
ILT
1197$(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
1198 ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \
2a80ec10 1199 ldctor.h ldexp.h ldlang.h ldgram.h
4a6afc88 1200
49c009b5
ILT
1201check-DEJAGNU: site.exp
1202 srcroot=`cd $(srcdir) && pwd`; export srcroot; \
32286e08 1203 r=`pwd`; export r; \
49c009b5
ILT
1204 EXPECT=$(EXPECT); export EXPECT; \
1205 if [ -f $(top_builddir)/../expect/expect ]; then \
1206 TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
1207 export TCL_LIBRARY; \
1208 fi; \
1209 runtest=$(RUNTEST); \
1210 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
1211 $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \
1212 CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
1213 CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \
1214 CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \
1215 OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" \
1216 LIBIBERTY="$(LIBIBERTY)" HOSTING_EMU="$(HOSTING_EMU)" \
1217 HOSTING_CRT0="$(HOSTING_CRT0)" HOSTING_LIBS="$(HOSTING_LIBS)" \
1218 $(RUNTESTFLAGS); \
1219 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
1220 fi
e7921bd4 1221
7e5c1057 1222# Rules for testing by relinking ld itself.
32286e08
C
1223# A similar test is in the testsuite. This target is for ease of use
1224# when porting ld.
eb02fd64 1225
49c009b5
ILT
1226ld-partial.o: ld-new$(EXEEXT)
1227 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
1228ld1$(EXEEXT): ld-partial.o
1229 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1$(EXEEXT) $(HOSTING_CRT0) ld-partial.o $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 1230
49c009b5
ILT
1231ld1-full$(EXEEXT): ld-new
1232 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1-full$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 1233
49c009b5
ILT
1234ld2$(EXEEXT): ld1$(EXEEXT)
1235 ./ld1$(EXEEXT) $(HOSTING_EMU) -o ld2$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
60048a2c 1236
49c009b5
ILT
1237ld3$(EXEEXT): ld2$(EXEEXT)
1238 ./ld2$(EXEEXT) $(HOSTING_EMU) -o ld3$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 1239
49c009b5
ILT
1240bootstrap: ld3$(EXEEXT)
1241 cmp ld2$(EXEEXT) ld3$(EXEEXT)
d20fb445 1242
4a6afc88
ILT
1243.PHONY: bootstrap
1244
8ddef552 1245# A test program for C++ constructors and destructors.
32286e08
C
1246# This test is now in the testsuite.
1247#
1248#cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
1249# ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
1250# cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS)
1251#
1252#cdtest.out: cdtest
1253# ./cdtest > cdtest.tmp
1254# mv cdtest.tmp cdtest.out
1255#
1256#cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
1257# ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
1258# cdtest-bar.o cdtest-foo.o
1259#
1260#cdtest-ur: cdtest-ur.o
1261# ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
1262# $(HOSTING_LIBS)
1263#
1264#cdtest-ur.out: cdtest-ur
1265# ./cdtest-ur > cdtest-ur.tmp
1266# mv cdtest-ur.tmp cdtest-ur.out
1267#
1268#check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
1269# diff $(srcdir)/cdtest.exp cdtest.out
1270# diff $(srcdir)/cdtest.exp cdtest-ur.out
1271#
1272#.PHONY: check-cdtest
4a6afc88 1273
d301e438 1274# END OF CHECK TARGETS
917bffa7 1275
8073190b 1276# DOCUMENTATION TARGETS
2412a768
RP
1277# Manual configuration file; not usually attached to normal configuration,
1278# because almost all configs use "gen" version of manual.
1279# Set DOCVER above to change.
1280configdoc.texi: ${DOCVER}-doc.texi
49c009b5
ILT
1281 ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
1282 || ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
1283 || cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
2412a768 1284
83a33a21
ILT
1285ld.info: $(srcdir)/ld.texinfo configdoc.texi
1286 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
1287 $(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc $(srcdir)/ld.texinfo
0c0b16f9 1288
83a33a21
ILT
1289ld.dvi: $(srcdir)/ld.texinfo configdoc.texi
1290 TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
1291 MAKEINFO='$(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc' $(TEXI2DVI) $(srcdir)/ld.texinfo
2412a768 1292
51b9a79b
ILT
1293# We want to reconfigure if configure.host or configure.tgt changes.
1294Makefile: configure.host configure.tgt
437a04cb
ILT
1295mostlyclean-local:
1296 -rm -rf tmpdir
51b9a79b 1297
49c009b5 1298.PHONY: install-exec-local install-data-local
8d317d2a 1299
49c009b5
ILT
1300install-exec-local: ld-new$(EXEEXT)
1301 $(mkinstalldirs) $(bindir) $(tooldir)/bin
1302 @list='$(noinst_PROGRAMS)'; for p in $$list; do \
1303 if test -f $$p; then \
1304 echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/-new//'|sed '$(transform)'`"; \
1305 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/-new//'|sed '$(transform)'`; \
1306 else :; fi; \
d360d135 1307 done
49c009b5
ILT
1308 rm -f $(tooldir)/bin/ld$(EXEEXT)
1309 n=`echo ld | sed '$(transform)'`; \
51b9a79b
ILT
1310 if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/ld$(EXEEXT)" ]; then \
1311 ln $(bindir)/$$n$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
1312 || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT); \
1313 fi
ba69384d 1314
49c009b5
ILT
1315install-data-local:
1316 $(mkinstalldirs) $(scriptdir)
1317 for f in ldscripts/*; do \
1318 $(INSTALL_DATA) $$f $(scriptdir)/$$f ; \
afe3aa73 1319 done
51b9a79b 1320diststuff: $(LDDISTSTUFF) info
03abc2bd
ILT
1321distclean-local:
1322 rm -rf ldscripts
afe3aa73 1323
4a6afc88
ILT
1324# Targets to rebuild dependencies in this Makefile.
1325# Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
208bc89e 1326.dep: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
4a6afc88
ILT
1327 rm -f .dep1
1328 $(MAKE) DEP=$(DEP) .dep1
1329 sed -f dep.sed <.dep1 >.dep
eb02fd64 1330
4a6afc88
ILT
1331# This rule really wants a mkdep that runs "gcc -MM".
1332.dep1: $(CFILES) $(GENERATED_CFILES)
1333 rm -f .dep2
1334 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
49c009b5 1335 $(DEP) -f .dep2 $(INCLUDES) $?
4a6afc88 1336 $(srcdir)/../move-if-change .dep2 .dep1
eb02fd64 1337
4a6afc88
ILT
1338dep.sed: dep-in.sed config.status
1339 sed <$(srcdir)/dep-in.sed >dep.sed \
1340 -e 's!@INCDIR@!$(INCDIR)!' \
d66c832b 1341 -e 's!@SRCDIR@!$(srcdir)!'
eb02fd64 1342
4a6afc88
ILT
1343dep: .dep
1344 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
1345 cat .dep >> tmp-Makefile
1346 $(srcdir)/../move-if-change tmp-Makefile Makefile
239d28f3 1347
4a6afc88
ILT
1348dep-in: .dep
1349 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
1350 cat .dep >> tmp-Makefile.in
1351 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
1352
49c009b5
ILT
1353dep-am: .dep
1354 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
1355 cat .dep >> tmp-Makefile.am
1356 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
eb02fd64 1357
49c009b5 1358.PHONY: dep dep-in dep-am
eb02fd64 1359
4a6afc88
ILT
1360# What appears below is generated by a hacked mkdep using gcc -MM.
1361
1362# DO NOT DELETE THIS LINE -- mkdep uses it.
1363# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
1364
dd37f215 1365ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1366 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1367 ld.h ldexp.h ldlang.h ldmisc.h ldgram.h ldmain.h ldctor.h
dd37f215 1368ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1369 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h ldemul.h \
1370 ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldemul-list.h
dd37f215 1371ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1372 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1373 ld.h ldmain.h ldmisc.h ldexp.h ldgram.h ldlang.h
dd37f215 1374ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1375 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1376 ld.h ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldgram.h \
1377 ldlex.h ldemul.h
dd37f215 1378ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1379 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1380 $(INCDIR)/obstack.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
4725fb48 1381 ldgram.h ldexp.h ldlang.h ldemul.h ldlex.h ldmisc.h \
3fac4887 1382 ldctor.h ldfile.h $(INCDIR)/fnmatch.h
dd37f215 1383ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1384 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1385 $(INCDIR)/progress.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
1386 ldmisc.h ldwrite.h ldgram.h ldexp.h ldlang.h ldemul.h \
1387 ldlex.h ldfile.h ldctor.h
dd37f215 1388ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1389 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1390 $(INCDIR)/demangle.h ld.h ldmisc.h ldexp.h ldlang.h \
1391 ldgram.h ldlex.h ldmain.h ldfile.h
dd37f215 1392ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1393 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h ldver.h \
1394 ldemul.h ldmain.h
dd37f215 1395ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1396 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1397 $(INCDIR)/libiberty.h ld.h ldexp.h ldlang.h ldwrite.h \
1398 ldmisc.h ldgram.h ldmain.h
dd37f215 1399lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1400 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1401 $(INCDIR)/getopt.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
1402 ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldfile.h \
1403 ldver.h ldemul.h
1404mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h sysdep.h \
1405 config.h $(INCDIR)/fopen-same.h ld.h ldexp.h ldlang.h \
1406 ldmisc.h mri.h ldgram.h $(INCDIR)/libiberty.h
f14a5192 1407ldcref.o: ldcref.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1408 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1409 $(INCDIR)/libiberty.h ld.h ldmain.h ldmisc.h ldexp.h \
1410 ldlang.h
dd37f215 1411ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1412 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1413 ld.h ldexp.h ldver.h ldlang.h ldemul.h ldfile.h ldmisc.h \
1414 ldmain.h mri.h ldlex.h
1415ldlex.o: ldlex.c ../bfd/bfd.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1416 ld.h ldgram.h ldmisc.h ldexp.h ldlang.h ldfile.h ldlex.h \
1417 ldmain.h
239d28f3
SC
1418
1419# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
49c009b5
ILT
1420
1421# Tell versions [3.59,3.63) of GNU make to not export all variables.
1422# Otherwise a system limit (for SysV at least) may be exceeded.
1423.NOEXPORT:
This page took 0.317724 seconds and 4 git commands to generate.