Fix some gcc -Wall warnings:
[deliverable/binutils-gdb.git] / ld / Makefile.in
CommitLineData
51b9a79b 1# Makefile.in generated automatically by automake 1.2e 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
49c009b5
ILT
35pkgdatadir = $(datadir)/@PACKAGE@
36pkglibdir = $(libdir)/@PACKAGE@
37pkgincludedir = $(includedir)/@PACKAGE@
e06ba18d 38
49c009b5
ILT
39top_builddir = .
40
41ACLOCAL = @ACLOCAL@
42AUTOCONF = @AUTOCONF@
43AUTOMAKE = @AUTOMAKE@
44AUTOHEADER = @AUTOHEADER@
e06ba18d 45
ba69384d 46INSTALL = @INSTALL@
f14a5192
JM
47INSTALL_PROGRAM = @INSTALL_PROGRAM@
48INSTALL_DATA = @INSTALL_DATA@
49c009b5
ILT
49INSTALL_SCRIPT = @INSTALL_SCRIPT@
50transform = @program_transform_name@
51
51b9a79b
ILT
52NORMAL_INSTALL = :
53PRE_INSTALL = :
54POST_INSTALL = :
55NORMAL_UNINSTALL = :
56PRE_UNINSTALL = :
57POST_UNINSTALL = :
49c009b5
ILT
58build_alias = @build_alias@
59build_triplet = @build@
60host_alias = @host_alias@
61host_triplet = @host@
62target_alias = @target_alias@
63target_triplet = @target@
d66c832b 64CC = @CC@
b9a5c27f 65EXEEXT = @EXEEXT@
49c009b5
ILT
66HDEFINES = @HDEFINES@
67LD = @LD@
68LIBTOOL = @LIBTOOL@
69LN_S = @LN_S@
70MAINT = @MAINT@
71MAKEINFO = @MAKEINFO@
72NATIVE_LIB_DIRS = @NATIVE_LIB_DIRS@
12e0afe5 73NM = @NM@
49c009b5
ILT
74PACKAGE = @PACKAGE@
75RANLIB = @RANLIB@
76TDIRS = @TDIRS@
77VERSION = @VERSION@
78
51b9a79b 79AUTOMAKE_OPTIONS = cygnus dejagnu
49c009b5
ILT
80
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
49c009b5 163INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) $(HDEFINES) $(CFLAGS)
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
49c009b5
ILT
295# These all start with e so 'make clean' can find them.
296
297GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} @host@ @target@ @target_alias@ ${EMUL} "@NATIVE_LIB_DIRS@"
298GEN_DEPENDS = $(srcdir)/genscripts.sh $(srcdir)/emultempl/stringify.sed
299
300ld_new_SOURCES = ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c \
301 ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c
24d2330e 302ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(BFDLIB) $(LIBIBERTY)
ab1f47c0 303ld_new_LDADD = $(EMULATION_OFILES) $(BFDLIB) $(LIBIBERTY)
49c009b5
ILT
304
305# This is the real libbfd.a created by libtool.
306TESTBFDLIB = ../bfd/.libs/libbfd.a
307
36977730 308MOSTLYCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) \
49c009b5 309 ldemul-list.h tmpdir crtbegin.o crtend.o
0c0b16f9 310CLEANFILES = dep.sed .dep .dep1 bfdsumm.texi
51b9a79b
ILT
311
312# Stuff that should be included in a distribution. The diststuff
313# target is run by the taz target in ../Makefile.in.
314LDDISTSTUFF = ldgram.c ldgram.h ldlex.c
315
49c009b5
ILT
316DISTCLEANFILES = ldscripts
317ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
318mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
319CONFIG_HEADER = config.h
320CONFIG_CLEAN_FILES =
321noinst_PROGRAMS = ld-new$(EXEEXT)
322PROGRAMS = $(noinst_PROGRAMS)
323
324
325DEFS = @DEFS@ -I. -I$(srcdir) -I.
326CPPFLAGS = @CPPFLAGS@
327LDFLAGS = @LDFLAGS@
328LIBS = @LIBS@
329ld_new_OBJECTS = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o \
330ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o
331ld_new_LDFLAGS =
332LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
333LEXLIB = @LEXLIB@
334CFLAGS = @CFLAGS@
335COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
336LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
337LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
338TEXI2DVI = `if test -f $(top_srcdir)/../texinfo/util/texi2dvi; then echo $(top_srcdir)/../texinfo/util/texi2dvi; else echo texi2dvi; fi`
339TEXINFO_TEX = $(top_srcdir)/../texinfo/texinfo.tex
340INFO_DEPS = ld.info
341DVIS = ld.dvi
342TEXINFOS = ld.texinfo
343MANS = ld.1
344
345NROFF = nroff
346DIST_COMMON = README ChangeLog Makefile.am Makefile.in NEWS TODO \
347acconfig.h acinclude.m4 aclocal.m4 config.in configure configure.in \
348ldgram.c ldlex.c stamp-h.in
349
350
351DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
352
353TAR = tar
354GZIP = --best
355SOURCES = $(ld_new_SOURCES)
356OBJECTS = $(ld_new_OBJECTS)
357
358default: all
359
360.SUFFIXES:
51b9a79b 361.SUFFIXES: .S .c .dvi .info .l .lo .o .ps .s .texi .texinfo .y
49c009b5
ILT
362$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
363 cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
364
365Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
366 cd $(top_builddir) \
367 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
368
369$(ACLOCAL_M4): @MAINT@ configure.in acinclude.m4
370 cd $(srcdir) && $(ACLOCAL)
371
372config.status: $(srcdir)/configure
373 $(SHELL) ./config.status --recheck
374$(srcdir)/configure: @MAINT@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
375 cd $(srcdir) && $(AUTOCONF)
376
51b9a79b
ILT
377config.h: stamp-h
378 @:
49c009b5
ILT
379stamp-h: $(srcdir)/config.in $(top_builddir)/config.status
380 cd $(top_builddir) \
381 && CONFIG_FILES= CONFIG_HEADERS=config.h:config.in \
382 $(SHELL) ./config.status
383 @echo timestamp > stamp-h
384$(srcdir)/config.in: @MAINT@$(srcdir)/stamp-h.in
385$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
386 cd $(top_srcdir) && $(AUTOHEADER)
387 @echo timestamp > $(srcdir)/stamp-h.in
388
389mostlyclean-hdr:
390
391clean-hdr:
392
393distclean-hdr:
51b9a79b 394 -rm -f config.h
49c009b5
ILT
395
396maintainer-clean-hdr:
397
398mostlyclean-noinstPROGRAMS:
399
400clean-noinstPROGRAMS:
51b9a79b 401 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
49c009b5
ILT
402
403distclean-noinstPROGRAMS:
404
405maintainer-clean-noinstPROGRAMS:
406
51b9a79b 407.c.o:
f5870264
DE
408 $(COMPILE) -c $<
409
51b9a79b 410.s.o:
f5870264
DE
411 $(COMPILE) -c $<
412
51b9a79b 413.S.o:
49c009b5
ILT
414 $(COMPILE) -c $<
415
416mostlyclean-compile:
51b9a79b 417 -rm -f *.o core *.core
49c009b5
ILT
418
419clean-compile:
420
421distclean-compile:
51b9a79b 422 -rm -f *.tab.c
49c009b5
ILT
423
424maintainer-clean-compile:
425
426.c.lo:
427 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
428
f5870264
DE
429.s.lo:
430 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
431
432.S.lo:
433 $(LIBTOOL) --mode=compile $(COMPILE) -c $<
434
49c009b5 435mostlyclean-libtool:
51b9a79b 436 -rm -f *.lo
49c009b5
ILT
437
438clean-libtool:
51b9a79b 439 -rm -rf .libs _libs
49c009b5
ILT
440
441distclean-libtool:
442
443maintainer-clean-libtool:
444
445ld-new$(EXEEXT): $(ld_new_OBJECTS) $(ld_new_DEPENDENCIES)
446 @rm -f ld-new$(EXEEXT)
447 $(LINK) $(ld_new_LDFLAGS) $(ld_new_OBJECTS) $(ld_new_LDADD) $(LIBS)
448.y.c:
51b9a79b 449 $(YACC) $(YFLAGS) $< && mv y.tab.c $*.c
49c009b5
ILT
450 if test -f y.tab.h; then \
451 if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \
452 else :; fi
51b9a79b
ILT
453ldgram.h: ldgram.c
454
49c009b5
ILT
455.l.c:
456 $(LEX) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@
457
458ld.info: ld.texinfo
459ld.dvi: ld.texinfo
460
461
462DVIPS = dvips
463
464.texi.info:
465 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
466 $(MAKEINFO) -I $(srcdir) $<
467
468.texi.dvi:
469 TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
470 MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
471
472.texi:
473 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
474 $(MAKEINFO) -I $(srcdir) $<
475
476.texinfo.info:
477 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
478 $(MAKEINFO) -I $(srcdir) $<
479
480.texinfo:
481 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
482 $(MAKEINFO) -I $(srcdir) $<
483
484.texinfo.dvi:
485 TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
486 MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
487.dvi.ps:
488 $(DVIPS) $< -o $@
489
490install-info-am: $(INFO_DEPS)
491 @$(NORMAL_INSTALL)
492 $(mkinstalldirs) $(infodir)
493 @for file in $(INFO_DEPS); do \
494 if test -f $$file; then d=.; else d=$(srcdir); fi; \
495 for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
496 if test -f $$d/$$ifile; then \
497 echo " $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile"; \
498 $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \
499 else : ; fi; \
500 done; \
501 done
502 @$(POST_INSTALL)
503 @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
504 for file in $(INFO_DEPS); do \
505 echo " install-info --info-dir=$(infodir) $(infodir)/$$file";\
506 install-info --info-dir=$(infodir) $(infodir)/$$file || :;\
507 done; \
508 else : ; fi
509
510uninstall-info:
511 $(PRE_UNINSTALL)
512 @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
513 ii=yes; \
514 else ii=; fi; \
515 for file in $(INFO_DEPS); do \
51b9a79b
ILT
516 test -z "$ii" \
517 || install-info --info-dir=$(infodir) --remove $$file; \
49c009b5
ILT
518 done
519 $(NORMAL_UNINSTALL)
520 for file in $(INFO_DEPS); do \
521 (cd $(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
522 done
523
524dist-info: $(INFO_DEPS)
525 for base in $(INFO_DEPS); do \
526 if test -f $$base; then d=.; else d=$(srcdir); fi; \
527 for file in `cd $$d && eval echo $$base*`; do \
528 test -f $(distdir)/$$file \
529 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
530 || cp -p $$d/$$file $(distdir)/$$file; \
531 done; \
532 done
533
534mostlyclean-aminfo:
51b9a79b
ILT
535 -rm -f ld.aux ld.cp ld.cps ld.dvi ld.fn ld.fns ld.ky ld.kys ld.ps \
536 ld.log ld.pg ld.toc ld.tp ld.tps ld.vr ld.vrs ld.op ld.tr \
537 ld.cv ld.cn
49c009b5
ILT
538
539clean-aminfo:
540
541distclean-aminfo:
542
543maintainer-clean-aminfo:
51b9a79b
ILT
544 for i in $(INFO_DEPS); do \
545 rm -f $$i; \
546 if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \
547 rm -f $$i-[0-9]*; \
548 fi; \
549 done
49c009b5
ILT
550clean-info: mostlyclean-aminfo
551install-man: $(MANS)
552 $(NORMAL_INSTALL)
553 $(mkinstalldirs) $(mandir)/man1
554 @sect=1; \
555 inst=`echo "ld" | sed '$(transform)'`.1; \
556 if test -f $(srcdir)/ld.1; then file=$(srcdir)/ld.1; \
557 else file=ld.1; fi; \
558 echo " $(INSTALL_DATA) $$file $(mandir)/man$$sect/$$inst"; \
559 $(INSTALL_DATA) $$file $(mandir)/man$$sect/$$inst
560
561uninstall-man:
562 $(NORMAL_UNINSTALL)
51b9a79b 563 -inst=`echo "ld" | sed '$(transform)'`.1; \
49c009b5
ILT
564 rm -f $(mandir)/man1/$$inst
565
566
567tags: TAGS
568
51b9a79b
ILT
569ID: $(HEADERS) $(SOURCES) $(LISP)
570 here=`pwd` && cd $(srcdir) \
571 && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
49c009b5 572
51b9a79b 573TAGS: $(HEADERS) $(SOURCES) config.in $(TAGS_DEPENDENCIES) $(LISP)
49c009b5
ILT
574 tags=; \
575 here=`pwd`; \
51b9a79b
ILT
576 list='$(SOURCES) $(HEADERS)'; \
577 unique=`for i in $$list; do echo $$i; done | \
578 awk ' { files[$$0] = 1; } \
579 END { for (i in files) print i; }'`; \
580 test -z "$(ETAGS_ARGS)config.in$$unique$(LISP)$$tags" \
581 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.in $$unique $(LISP) -o $$here/TAGS)
49c009b5
ILT
582
583mostlyclean-tags:
584
585clean-tags:
586
587distclean-tags:
51b9a79b 588 -rm -f TAGS ID
49c009b5
ILT
589
590maintainer-clean-tags:
591
592distdir = $(PACKAGE)-$(VERSION)
593top_distdir = $(distdir)
594
595# This target untars the dist file and tries a VPATH configuration. Then
596# it guarantees that the distribution is self-contained by making another
597# tarfile.
598distcheck: dist
51b9a79b 599 -rm -rf $(distdir)
49c009b5
ILT
600 GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
601 mkdir $(distdir)/=build
602 mkdir $(distdir)/=inst
603 dc_install_base=`cd $(distdir)/=inst && pwd`; \
604 cd $(distdir)/=build \
605 && ../configure --srcdir=.. --prefix=$$dc_install_base \
606 && $(MAKE) \
607 && $(MAKE) dvi \
608 && $(MAKE) check \
609 && $(MAKE) install \
610 && $(MAKE) installcheck \
611 && $(MAKE) dist
51b9a79b 612 -rm -rf $(distdir)
49c009b5
ILT
613 @echo "========================"; \
614 echo "$(distdir).tar.gz is ready for distribution"; \
615 echo "========================"
616dist: distdir
617 -chmod -R a+r $(distdir)
618 GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
51b9a79b 619 -rm -rf $(distdir)
49c009b5
ILT
620dist-all: distdir
621 -chmod -R a+r $(distdir)
622 GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
51b9a79b 623 -rm -rf $(distdir)
49c009b5 624distdir: $(DISTFILES)
51b9a79b 625 -rm -rf $(distdir)
49c009b5
ILT
626 mkdir $(distdir)
627 -chmod 777 $(distdir)
628 @for file in $(DISTFILES); do \
629 if test -f $$file; then d=.; else d=$(srcdir); fi; \
630 test -f $(distdir)/$$file \
631 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
632 || cp -p $$d/$$file $(distdir)/$$file; \
633 done
634 $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
635
636DEJATOOL = $(PACKAGE)
51b9a79b
ILT
637
638RUNTESTDEFAULTFLAGS = --tool $(DEJATOOL) --srcdir $$srcdir
49c009b5
ILT
639site.exp: Makefile
640 @echo 'Making a new site.exp file...'
641 -@rm -f site.bak
642 @echo '## these variables are automatically generated by make ##' > $@-t
643 @echo '# Do not edit here. If you wish to override these values' >> $@-t
644 @echo '# edit the last section' >> $@-t
645 @echo 'set tool $(DEJATOOL)' >> $@-t
646 @echo 'set srcdir $(srcdir)' >> $@-t
647 @echo 'set objdir' `pwd` >> $@-t
648 @echo 'set host_alias $(host_alias)' >> $@-t
649 @echo 'set host_triplet $(host_triplet)' >> $@-t
650 @echo 'set target_alias $(target_alias)' >> $@-t
651 @echo 'set target_triplet $(target_triplet)' >> $@-t
652 @echo 'set build_alias $(build_alias)' >> $@-t
653 @echo 'set build_triplet $(build_triplet)' >> $@-t
654 @echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t
655 -@sed '1,/^## All variables above are.*##/ d' site.bak >> $@-t
656 -@mv site.exp site.bak
657 @mv $@-t site.exp
658info: $(INFO_DEPS)
659dvi: $(DVIS)
51b9a79b 660check:
49c009b5
ILT
661 $(MAKE) check-DEJAGNU
662installcheck:
663install-info: install-info-am
664install-exec: install-exec-local
665 @$(NORMAL_INSTALL)
666
667install-data: install-man install-data-local
668 @$(NORMAL_INSTALL)
669
670install: install-exec install-data all
671 @:
672
673uninstall: uninstall-man
674
675all: Makefile $(PROGRAMS) $(MANS) config.h
676
677install-strip:
678 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
679installdirs:
680 $(mkinstalldirs) $(mandir)/man1
681
2ee11735 682
49c009b5 683mostlyclean-generic:
51b9a79b 684 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
49c009b5
ILT
685
686clean-generic:
51b9a79b 687 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
49c009b5
ILT
688
689distclean-generic:
51b9a79b
ILT
690 -rm -f Makefile $(DISTCLEANFILES)
691 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
692 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
49c009b5
ILT
693
694maintainer-clean-generic:
51b9a79b
ILT
695 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
696 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
49c009b5
ILT
697mostlyclean: mostlyclean-hdr mostlyclean-noinstPROGRAMS \
698 mostlyclean-compile mostlyclean-libtool \
699 mostlyclean-aminfo mostlyclean-tags mostlyclean-generic
700
701clean: clean-hdr clean-noinstPROGRAMS clean-compile clean-libtool \
702 clean-aminfo clean-tags clean-generic mostlyclean
703
704distclean: distclean-hdr distclean-noinstPROGRAMS distclean-compile \
705 distclean-libtool distclean-aminfo distclean-tags \
706 distclean-generic clean
51b9a79b
ILT
707 -rm -f config.status
708 -rm -f libtool
49c009b5
ILT
709
710maintainer-clean: maintainer-clean-hdr maintainer-clean-noinstPROGRAMS \
711 maintainer-clean-compile maintainer-clean-libtool \
712 maintainer-clean-aminfo maintainer-clean-tags \
713 maintainer-clean-generic distclean
714 @echo "This command is intended for maintainers to use;"
715 @echo "it deletes files that may require special tools to rebuild."
51b9a79b 716 -rm -f config.status
49c009b5
ILT
717
718.PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \
719maintainer-clean-hdr mostlyclean-noinstPROGRAMS \
720distclean-noinstPROGRAMS clean-noinstPROGRAMS \
721maintainer-clean-noinstPROGRAMS mostlyclean-compile distclean-compile \
722clean-compile maintainer-clean-compile mostlyclean-libtool \
723distclean-libtool clean-libtool maintainer-clean-libtool \
724install-info-am uninstall-info mostlyclean-aminfo distclean-aminfo \
725clean-aminfo maintainer-clean-aminfo install-man uninstall-man tags \
726mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \
727distdir check-DEJAGNU info dvi installcheck install-info install-exec \
728install-data install uninstall all installdirs mostlyclean-generic \
729distclean-generic clean-generic maintainer-clean-generic clean \
730mostlyclean distclean maintainer-clean
cc964c6f 731
32286e08 732
4a6afc88 733ldmain.o: ldmain.c config.status
49c009b5 734 $(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' -DTARGET='"@target@"' $(srcdir)/ldmain.c
4a6afc88 735
82ebe9a2 736ldemul-list.h: Makefile
7e5c1057
PB
737 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
738 for f in `echo " " ${EMULATION_OFILES} "" \
82ebe9a2 739 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
7e5c1057
PB
740 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
741 done;\
742 echo "";\
743 echo "#define EMULATION_LIST \\";\
744 for f in `echo " " ${EMULATION_OFILES} "" \
82ebe9a2 745 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
7e5c1057
PB
746 echo " &ld_$${f}_emulation, \\"; \
747 done;\
4a6afc88
ILT
748 echo " 0") >ldemul-tmp.h
749 mv ldemul-tmp.h ldemul-list.h
95d31c3c 750@TDIRS@
7e5c1057 751
efa6c497
ILT
752ea29k.c: $(srcdir)/emulparams/a29k.sh \
753 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
754 ${GENSCRIPTS} a29k "$(tdir_a29k)"
755eaixppc.c: $(srcdir)/emulparams/aixppc.sh \
756 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
757 ${GENSCRIPTS} aixppc "$(tdir_aixppc)"
758eaixrs6.c: $(srcdir)/emulparams/aixrs6.sh \
759 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
760 ${GENSCRIPTS} aixrs6 "$(tdir_aixrs6)"
761ealpha.c: $(srcdir)/emulparams/alpha.sh \
762 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
763 ${GENSCRIPTS} alpha "$(tdir_alpha)"
efa6c497
ILT
764earcelf.c: $(srcdir)/emulparams/arcelf.sh \
765 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
766 ${GENSCRIPTS} arcelf "$(tdir_arcelf)"
efa6c497
ILT
767earmaoutb.c: $(srcdir)/emulparams/armaoutb.sh \
768 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
769 ${GENSCRIPTS} armaoutb "$(tdir_armaoutb)"
770earmaoutl.c: $(srcdir)/emulparams/armaoutl.sh \
771 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
772 ${GENSCRIPTS} armaoutl "$(tdir_armaoutl)"
773earmcoff.c: $(srcdir)/emulparams/armcoff.sh \
774 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS}
775 ${GENSCRIPTS} armcoff "$(tdir_armcoff)"
28d0c3ce 776earmpe.c: $(srcdir)/emulparams/armpe.sh \
d66c832b 777 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
95d31c3c 778 ${GENSCRIPTS} armpe "$(tdir_armpe)"
efa6c497
ILT
779ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
780 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
781 ${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)"
e9525d96 782ed10velf.c: $(srcdir)/emulparams/d10velf.sh \
10e31c75 783 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd10v.sc ${GEN_DEPENDS}
04c17a75 784 ${GENSCRIPTS} d10velf "$(tdir_d10v)"
49c009b5 785start-sanitize-d30v:
9ae9e582
ILT
786ed30velf.c: $(srcdir)/emulparams/d30velf.sh \
787 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
788 ${GENSCRIPTS} d30velf "$(tdir_d30v)"
f5870264
DE
789ed30v_o.c: $(srcdir)/emulparams/d30v_o.sh \
790 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
791 ${GENSCRIPTS} d30v_o "$(tdir_d30v)"
792ed30v_e.c: $(srcdir)/emulparams/d30v_e.sh \
793 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
794 ${GENSCRIPTS} d30v_e "$(tdir_d30v)"
49c009b5 795end-sanitize-d30v:
efa6c497
ILT
796edelta68.c: $(srcdir)/emulparams/delta68.sh \
797 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
798 ${GENSCRIPTS} delta68 "$(tdir_delta68)"
799eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
800 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
801 ${GENSCRIPTS} ebmon29k "$(tdir_ebmon29k)"
79e9dc20
DE
802em32relf.c: $(srcdir)/emulparams/m32relf.sh \
803 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
804 ${GENSCRIPTS} m32relf "$(tdir_m32r)"
efa6c497
ILT
805eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
806 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
807 ${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)"
808eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \
809 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
810 ${GENSCRIPTS} elf32b4300 "$(tdir_elf32b4300)"
811eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
b9a5c27f 812 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
efa6c497 813 ${GENSCRIPTS} elf32bmip "$(tdir_elf32bmip)"
532fe3e5
ILT
814eelf32bsmip.c: $(srcdir)/emulparams/elf32bsmip.sh \
815 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
816 ${GENSCRIPTS} elf32bsmip "$(tdir_elf32bsmip)"
719de0ea 817eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
b9a5c27f 818 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
719de0ea
ILT
819 ${GENSCRIPTS} elf32ebmip "$(tdir_elf32ebmip)"
820eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \
b9a5c27f 821 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
719de0ea 822 ${GENSCRIPTS} elf32elmip "$(tdir_elf32elmip)"
efa6c497
ILT
823eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \
824 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
825 ${GENSCRIPTS} elf32l4300 "$(tdir_elf32l4300)"
bd8a4ea4
JL
826start-sanitize-r5900:
827eelf32l5900.c: $(srcdir)/emulparams/elf32l5900.sh \
828 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
829 ${GENSCRIPTS} elf32l5900 "$(tdir_elf32l5900)"
830end-sanitize-r5900:
efa6c497 831eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
b9a5c27f 832 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
efa6c497
ILT
833 ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)"
834eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \
835 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS}
836 ${GENSCRIPTS} elf32lppc "$(tdir_elf32lppc)"
532fe3e5
ILT
837eelf32lsmip.c: $(srcdir)/emulparams/elf32lsmip.sh \
838 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
839 ${GENSCRIPTS} elf32lsmip "$(tdir_elf32lsmip)"
efa6c497
ILT
840eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
841 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS}
842 ${GENSCRIPTS} elf32ppc "$(tdir_elf32ppc)"
f14a5192
JM
843eelf64alpha.c: $(srcdir)/emulparams/elf64alpha.sh \
844 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
845 ${GENSCRIPTS} elf64alpha "$(tdir_elf64alpha)"
efa6c497 846eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
e48412a2 847 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
efa6c497
ILT
848 ${GENSCRIPTS} elf64_sparc "$(tdir_elf64_sparc)"
849eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
850 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
851 ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
852egld960.c: $(srcdir)/emulparams/gld960.sh \
853 $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
854 ${GENSCRIPTS} gld960 "$(tdir_gld960)"
855egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
856 $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
857 ${GENSCRIPTS} gld960coff "$(tdir_gld960coff)"
82ebe9a2 858ego32.c: $(srcdir)/emulparams/go32.sh \
8ddef552 859 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
95d31c3c 860 ${GENSCRIPTS} go32 "$(tdir_go32)"
efa6c497
ILT
861eh8300.c: $(srcdir)/emulparams/h8300.sh \
862 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
863 ${GENSCRIPTS} h8300 "$(tdir_h8300)"
864eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
865 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
866 ${GENSCRIPTS} h8300h "$(tdir_h8300h)"
f14a5192
JM
867eh8300s.c: $(srcdir)/emulparams/h8300s.sh \
868 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300s.sc ${GEN_DEPENDS}
869 ${GENSCRIPTS} h8300s "$(tdir_h8300s)"
efa6c497
ILT
870eh8500.c: $(srcdir)/emulparams/h8500.sh \
871 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
872 ${GENSCRIPTS} h8500 "$(tdir_h8500)"
873eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
874 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
875 ${GENSCRIPTS} h8500b "$(tdir_h8500b)"
876eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
877 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
878 ${GENSCRIPTS} h8500c "$(tdir_h8500c)"
879eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
880 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
881 ${GENSCRIPTS} h8500m "$(tdir_h8500m)"
882eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
883 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
884 ${GENSCRIPTS} h8500s "$(tdir_h8500s)"
82ebe9a2 885ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
8ddef552 886 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
95d31c3c 887 ${GENSCRIPTS} hp300bsd "$(tdir_hp300bsd)"
82ebe9a2 888ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
8ddef552 889 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
95d31c3c 890 ${GENSCRIPTS} hp3hpux "$(tdir_hp3hpux)"
82ebe9a2 891ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
db0a7149 892 $(srcdir)/emultempl/hppaelf.em $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
95d31c3c 893 ${GENSCRIPTS} hppaelf "$(tdir_hppaelf)"
82ebe9a2 894ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
8ddef552 895 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
95d31c3c 896 ${GENSCRIPTS} i386aout "$(tdir_i386aout)"
efa6c497
ILT
897ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
898 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
899 ${GENSCRIPTS} i386bsd "$(tdir_i386bsd)"
900ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
901 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
902 ${GENSCRIPTS} i386coff "$(tdir_i386coff)"
82ebe9a2 903ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
6c86b9ff 904 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
95d31c3c 905 ${GENSCRIPTS} i386go32 "$(tdir_i386go32)"
efa6c497
ILT
906ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
907 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
908 ${GENSCRIPTS} i386linux "$(tdir_i386linux)"
909ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
910 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.sc ${GEN_DEPENDS}
911 ${GENSCRIPTS} i386lynx "$(tdir_i386lynx)"
82ebe9a2 912ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
3c1af24d 913 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
95d31c3c 914 ${GENSCRIPTS} i386mach "$(tdir_i386mach)"
943fbd5b
KR
915ei386moss.c: $(srcdir)/emulparams/i386moss.sh \
916 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
95d31c3c 917 ${GENSCRIPTS} i386moss "$(tdir_i386moss)"
943fbd5b
KR
918ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \
919 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS}
95d31c3c 920 ${GENSCRIPTS} i386msdos "$(tdir_i386msdos)"
efa6c497
ILT
921ei386nbsd.c: $(srcdir)/emulparams/i386nbsd.sh \
922 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
923 ${GENSCRIPTS} i386nbsd "$(tdir_i386nbsd)"
924ei386nw.c: $(srcdir)/emulparams/i386nw.sh \
925 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
926 ${GENSCRIPTS} i386nw "$(tdir_i386nw)"
927ei386pe.c: $(srcdir)/emulparams/i386pe.sh \
928 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
929 ${GENSCRIPTS} i386pe "$(tdir_i386pe)"
82ebe9a2 930elnk960.c: $(srcdir)/emulparams/lnk960.sh \
8ddef552 931 $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
95d31c3c 932 ${GENSCRIPTS} lnk960 "$(tdir_lnk960)"
efa6c497
ILT
933em68k4knbsd.c: $(srcdir)/emulparams/m68k4knbsd.sh \
934 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
935 ${GENSCRIPTS} m68k4knbsd "$(tdir_m68k4knbsd)"
936em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
937 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
938 ${GENSCRIPTS} m68kaout "$(tdir_m68kaout)"
2e598345
ILT
939em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \
940 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS}
95d31c3c 941 ${GENSCRIPTS} m68kaux "$(tdir_m68kaux)"
82ebe9a2 942em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
8ddef552 943 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
95d31c3c 944 ${GENSCRIPTS} m68kcoff "$(tdir_m68kcoff)"
417ced0d
MM
945em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \
946 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
95d31c3c 947 ${GENSCRIPTS} m68kelf "$(tdir_m68kelf)"
efa6c497
ILT
948em68klinux.c: $(srcdir)/emulparams/m68klinux.sh \
949 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
950 ${GENSCRIPTS} m68klinux "$(tdir_m68klinux)"
82ebe9a2 951em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
028f8872 952 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS}
95d31c3c 953 ${GENSCRIPTS} m68klynx "$(tdir_m68klynx)"
efa6c497 954em68knbsd.c: $(srcdir)/emulparams/m68knbsd.sh \
8ddef552 955 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
efa6c497
ILT
956 ${GENSCRIPTS} m68knbsd "$(tdir_m68knbsd)"
957em68kpsos.c: $(srcdir)/emulparams/m68kpsos.sh \
958 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS}
959 ${GENSCRIPTS} m68kpsos "$(tdir_m68kpsos)"
960em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
9ae9e582 961 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
efa6c497 962 ${GENSCRIPTS} m88kbcs "$(tdir_m88kbcs)"
82ebe9a2 963emipsbig.c: $(srcdir)/emulparams/mipsbig.sh \
8ddef552 964 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
efa6c497 965 ${GENSCRIPTS} mipsbig
82ebe9a2
KR
966emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
967 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
efa6c497 968 ${GENSCRIPTS} mipsbsd
82ebe9a2 969emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
417ced0d 970 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
95d31c3c 971 ${GENSCRIPTS} mipsidt "$(tdir_mipsidt)"
82ebe9a2 972emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
417ced0d 973 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
95d31c3c 974 ${GENSCRIPTS} mipsidtl "$(tdir_mipsidtl)"
efa6c497
ILT
975emipslit.c: $(srcdir)/emulparams/mipslit.sh \
976 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
977 ${GENSCRIPTS} mipslit "$(tdir_mipslit)"
9ae9e582
ILT
978emipslnews.c: $(srcdir)/emulparams/mipslnews.sh \
979 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
980 ${GENSCRIPTS} mipslnews
10e31c75
JL
981emn10300.c: $(srcdir)/emulparams/mn10300.sh \
982 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
983 ${GENSCRIPTS} mn10300 "$(tdir_mn10300)"
984emn10200.c: $(srcdir)/emulparams/mn10200.sh \
985 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
986 ${GENSCRIPTS} mn10200 "$(tdir_mn10200)"
efa6c497 987enews.c: $(srcdir)/emulparams/news.sh \
dd37f215 988 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
efa6c497
ILT
989 ${GENSCRIPTS} news "$(tdir_news)"
990ens32knbsd.c: $(srcdir)/emulparams/ns32knbsd.sh \
82ebe9a2 991 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
efa6c497 992 ${GENSCRIPTS} ns32knbsd "$(tdir_ns32knbsd)"
1ab4cd57 993epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \
cdf71377 994 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1ab4cd57 995 ${GENSCRIPTS} pc532macha "$(tdir_pc532macha)"
4fe13b2b
MM
996eppcmacos.c: $(srcdir)/emulparams/ppcmacos.sh \
997 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
95d31c3c 998 ${GENSCRIPTS} ppcmacos "$(tdir_ppcmacos)"
32286e08
C
999eppcnw.c: $(srcdir)/emulparams/ppcnw.sh \
1000 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
95d31c3c 1001 ${GENSCRIPTS} ppcnw "$(tdir_ppcnw)"
efa6c497
ILT
1002eppcpe.c: $(srcdir)/emulparams/ppcpe.sh \
1003 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/ppcpe.sc ${GEN_DEPENDS}
1004 ${GENSCRIPTS} ppcpe "$(tdir_ppcpe)"
efa6c497 1005eriscix.c: $(srcdir)/emulparams/riscix.sh \
e93e87cb 1006 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
efa6c497
ILT
1007 ${GENSCRIPTS} riscix "$(tdir_riscix)"
1008esa29200.c: $(srcdir)/emulparams/sa29200.sh \
1009 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
1010 ${GENSCRIPTS} sa29200 "$(tdir_sa29200)"
1011esh.c: $(srcdir)/emulparams/sh.sh \
1012 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
1013 ${GENSCRIPTS} sh "$(tdir_sh)"
79e9dc20
DE
1014eshelf.c: $(srcdir)/emulparams/shelf.sh \
1015 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1016 ${GENSCRIPTS} shelf "$(tdir_shelf)"
1017eshlelf.c: $(srcdir)/emulparams/shlelf.sh \
1018 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
1019 ${GENSCRIPTS} shlelf "$(tdir_shlelf)"
efa6c497
ILT
1020eshl.c: $(srcdir)/emulparams/shl.sh \
1021 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
1022 ${GENSCRIPTS} shl "$(tdir_shl)"
1023esparcaout.c: $(srcdir)/emulparams/sparcaout.sh \
e93e87cb 1024 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
efa6c497 1025 ${GENSCRIPTS} sparcaout "$(tdir_sparcaout)"
ba69384d
ILT
1026esparclinux.c: $(srcdir)/emulparams/sparclinux.sh \
1027 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1028 ${GENSCRIPTS} sparclinux "$(tdir_sparclinux)"
efa6c497
ILT
1029esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
1030 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS}
1031 ${GENSCRIPTS} sparclynx "$(tdir_sparclynx)"
32286e08 1032esparcnbsd.c: $(srcdir)/emulparams/sparcnbsd.sh \
e93e87cb 1033 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
95d31c3c 1034 ${GENSCRIPTS} sparcnbsd "$(tdir_sparcnbsd)"
efa6c497
ILT
1035est2000.c: $(srcdir)/emulparams/st2000.sh \
1036 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
1037 ${GENSCRIPTS} st2000 "$(tdir_st2000)"
1038esun3.c: $(srcdir)/emulparams/sun3.sh \
1039 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1040 ${GENSCRIPTS} sun3 "$(tdir_sun3)"
1041esun4.c: $(srcdir)/emulparams/sun4.sh \
1042 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1043 ${GENSCRIPTS} sun4 "$(tdir_sun4)"
cdf91fe4
ILT
1044etic30aout.c: $(srcdir)/emulparams/tic30aout.sh \
1045 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30aout.sc ${GEN_DEPENDS}
1046 ${GENSCRIPTS} tic30aout "$(tdir_tic30aout)"
1047etic30coff.c: $(srcdir)/emulparams/tic30coff.sh \
1048 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30coff.sc ${GEN_DEPENDS}
1049 ${GENSCRIPTS} tic30coff "$(tdir_tic30coff)"
49c009b5 1050start-sanitize-tic80:
c6c7035c
MM
1051etic80coff.c: $(srcdir)/emulparams/tic80coff.sh \
1052 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic80coff.sc ${GEN_DEPENDS}
1053 ${GENSCRIPTS} tic80coff "$(tdir_tic80coff)"
49c009b5 1054end-sanitize-tic80:
efa6c497
ILT
1055evanilla.c: $(srcdir)/emulparams/vanilla.sh \
1056 $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
1057 ${GENSCRIPTS} vanilla "$(tdir_vanilla)"
1058evax.c: $(srcdir)/emulparams/vax.sh \
1059 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1060 ${GENSCRIPTS} vax "$(tdir_vax)"
1061evsta.c: $(srcdir)/emulparams/vsta.sh \
1062 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1063 ${GENSCRIPTS} vsta "$(tdir_vsta)"
04c17a75 1064ev850.c: $(srcdir)/emulparams/v850.sh \
d27d34c3 1065 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/v850.sc ${GEN_DEPENDS}
04c17a75 1066 ${GENSCRIPTS} v850 "$(tdir_v850)"
efa6c497
ILT
1067ew65.c: $(srcdir)/emulparams/w65.sh \
1068 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS}
1069 ${GENSCRIPTS} w65 "$(tdir_w65)"
65d22248
C
1070ez8001.c: $(srcdir)/emulparams/z8001.sh \
1071 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
95d31c3c 1072 ${GENSCRIPTS} z8001 "$(tdir_z8001)"
65d22248
C
1073ez8002.c: $(srcdir)/emulparams/z8002.sh \
1074 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
95d31c3c 1075 ${GENSCRIPTS} z8002 "$(tdir_z8002)"
eb02fd64 1076
d17eb3db 1077# The generated emulation files mostly have the same dependencies.
d66c832b
ILT
1078$(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
1079 ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \
2a80ec10 1080 ldctor.h ldexp.h ldlang.h ldgram.h
4a6afc88 1081
49c009b5
ILT
1082check-DEJAGNU: site.exp
1083 srcroot=`cd $(srcdir) && pwd`; export srcroot; \
32286e08 1084 r=`pwd`; export r; \
49c009b5
ILT
1085 EXPECT=$(EXPECT); export EXPECT; \
1086 if [ -f $(top_builddir)/../expect/expect ]; then \
1087 TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
1088 export TCL_LIBRARY; \
1089 fi; \
1090 runtest=$(RUNTEST); \
1091 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
1092 $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \
1093 CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
1094 CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \
1095 CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \
1096 OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" \
1097 LIBIBERTY="$(LIBIBERTY)" HOSTING_EMU="$(HOSTING_EMU)" \
1098 HOSTING_CRT0="$(HOSTING_CRT0)" HOSTING_LIBS="$(HOSTING_LIBS)" \
1099 $(RUNTESTFLAGS); \
1100 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
1101 fi
e7921bd4 1102
7e5c1057 1103# Rules for testing by relinking ld itself.
32286e08
C
1104# A similar test is in the testsuite. This target is for ease of use
1105# when porting ld.
eb02fd64 1106
49c009b5
ILT
1107ld-partial.o: ld-new$(EXEEXT)
1108 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
1109ld1$(EXEEXT): ld-partial.o
1110 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1$(EXEEXT) $(HOSTING_CRT0) ld-partial.o $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 1111
49c009b5
ILT
1112ld1-full$(EXEEXT): ld-new
1113 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1-full$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 1114
49c009b5
ILT
1115ld2$(EXEEXT): ld1$(EXEEXT)
1116 ./ld1$(EXEEXT) $(HOSTING_EMU) -o ld2$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
60048a2c 1117
49c009b5
ILT
1118ld3$(EXEEXT): ld2$(EXEEXT)
1119 ./ld2$(EXEEXT) $(HOSTING_EMU) -o ld3$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 1120
49c009b5
ILT
1121bootstrap: ld3$(EXEEXT)
1122 cmp ld2$(EXEEXT) ld3$(EXEEXT)
d20fb445 1123
4a6afc88
ILT
1124.PHONY: bootstrap
1125
8ddef552 1126# A test program for C++ constructors and destructors.
32286e08
C
1127# This test is now in the testsuite.
1128#
1129#cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
1130# ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
1131# cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS)
1132#
1133#cdtest.out: cdtest
1134# ./cdtest > cdtest.tmp
1135# mv cdtest.tmp cdtest.out
1136#
1137#cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
1138# ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
1139# cdtest-bar.o cdtest-foo.o
1140#
1141#cdtest-ur: cdtest-ur.o
1142# ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
1143# $(HOSTING_LIBS)
1144#
1145#cdtest-ur.out: cdtest-ur
1146# ./cdtest-ur > cdtest-ur.tmp
1147# mv cdtest-ur.tmp cdtest-ur.out
1148#
1149#check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
1150# diff $(srcdir)/cdtest.exp cdtest.out
1151# diff $(srcdir)/cdtest.exp cdtest-ur.out
1152#
1153#.PHONY: check-cdtest
4a6afc88 1154
d301e438 1155# END OF CHECK TARGETS
917bffa7 1156
8073190b 1157# DOCUMENTATION TARGETS
2412a768
RP
1158# Manual configuration file; not usually attached to normal configuration,
1159# because almost all configs use "gen" version of manual.
1160# Set DOCVER above to change.
1161configdoc.texi: ${DOCVER}-doc.texi
49c009b5
ILT
1162 ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
1163 || ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
1164 || cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
2412a768 1165
0c0b16f9
DE
1166ld.info: $(srcdir)/ld.texinfo configdoc.texi bfdsumm.texi
1167ld.dvi: $(srcdir)/ld.texinfo configdoc.texi bfdsumm.texi
1168
1169# We want to include a file from the BFD documentation. automake
1170# doesn't give us a way to set the include directories for makeinfo,
1171# so we just create a file locally to include it.
1172bfdsumm.texi: Makefile
1173 echo @include $(BFDDIR)/doc/bfdsumm.texi > bfdsumm.texi
2412a768 1174
51b9a79b
ILT
1175# We want to reconfigure if configure.host or configure.tgt changes.
1176Makefile: configure.host configure.tgt
1177
49c009b5 1178.PHONY: install-exec-local install-data-local
8d317d2a 1179
49c009b5
ILT
1180install-exec-local: ld-new$(EXEEXT)
1181 $(mkinstalldirs) $(bindir) $(tooldir)/bin
1182 @list='$(noinst_PROGRAMS)'; for p in $$list; do \
1183 if test -f $$p; then \
1184 echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/-new//'|sed '$(transform)'`"; \
1185 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/-new//'|sed '$(transform)'`; \
1186 else :; fi; \
d360d135 1187 done
49c009b5
ILT
1188 rm -f $(tooldir)/bin/ld$(EXEEXT)
1189 n=`echo ld | sed '$(transform)'`; \
51b9a79b
ILT
1190 if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/ld$(EXEEXT)" ]; then \
1191 ln $(bindir)/$$n$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
1192 || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT); \
1193 fi
ba69384d 1194
49c009b5
ILT
1195install-data-local:
1196 $(mkinstalldirs) $(scriptdir)
1197 for f in ldscripts/*; do \
1198 $(INSTALL_DATA) $$f $(scriptdir)/$$f ; \
afe3aa73 1199 done
51b9a79b 1200diststuff: $(LDDISTSTUFF) info
afe3aa73 1201
4a6afc88
ILT
1202# Targets to rebuild dependencies in this Makefile.
1203# Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
208bc89e 1204.dep: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
4a6afc88
ILT
1205 rm -f .dep1
1206 $(MAKE) DEP=$(DEP) .dep1
1207 sed -f dep.sed <.dep1 >.dep
eb02fd64 1208
4a6afc88
ILT
1209# This rule really wants a mkdep that runs "gcc -MM".
1210.dep1: $(CFILES) $(GENERATED_CFILES)
1211 rm -f .dep2
1212 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
49c009b5 1213 $(DEP) -f .dep2 $(INCLUDES) $?
4a6afc88 1214 $(srcdir)/../move-if-change .dep2 .dep1
eb02fd64 1215
4a6afc88
ILT
1216dep.sed: dep-in.sed config.status
1217 sed <$(srcdir)/dep-in.sed >dep.sed \
1218 -e 's!@INCDIR@!$(INCDIR)!' \
d66c832b 1219 -e 's!@SRCDIR@!$(srcdir)!'
eb02fd64 1220
4a6afc88
ILT
1221dep: .dep
1222 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
1223 cat .dep >> tmp-Makefile
1224 $(srcdir)/../move-if-change tmp-Makefile Makefile
239d28f3 1225
4a6afc88
ILT
1226dep-in: .dep
1227 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
1228 cat .dep >> tmp-Makefile.in
1229 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
1230
49c009b5
ILT
1231dep-am: .dep
1232 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
1233 cat .dep >> tmp-Makefile.am
1234 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
eb02fd64 1235
49c009b5 1236.PHONY: dep dep-in dep-am
eb02fd64 1237
4a6afc88
ILT
1238# What appears below is generated by a hacked mkdep using gcc -MM.
1239
1240# DO NOT DELETE THIS LINE -- mkdep uses it.
1241# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
1242
dd37f215 1243ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1244 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1245 ld.h ldexp.h ldlang.h ldmisc.h ldgram.h ldmain.h ldctor.h
dd37f215 1246ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1247 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h ldemul.h \
1248 ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldemul-list.h
dd37f215 1249ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1250 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1251 ld.h ldmain.h ldmisc.h ldexp.h ldgram.h ldlang.h
dd37f215 1252ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1253 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1254 ld.h ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldgram.h \
1255 ldlex.h ldemul.h
dd37f215 1256ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1257 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1258 $(INCDIR)/obstack.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
4725fb48 1259 ldgram.h ldexp.h ldlang.h ldemul.h ldlex.h ldmisc.h \
3fac4887 1260 ldctor.h ldfile.h $(INCDIR)/fnmatch.h
dd37f215 1261ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1262 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1263 $(INCDIR)/progress.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
1264 ldmisc.h ldwrite.h ldgram.h ldexp.h ldlang.h ldemul.h \
1265 ldlex.h ldfile.h ldctor.h
dd37f215 1266ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1267 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1268 $(INCDIR)/demangle.h ld.h ldmisc.h ldexp.h ldlang.h \
1269 ldgram.h ldlex.h ldmain.h ldfile.h
dd37f215 1270ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1271 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h ldver.h \
1272 ldemul.h ldmain.h
dd37f215 1273ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1274 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1275 $(INCDIR)/libiberty.h ld.h ldexp.h ldlang.h ldwrite.h \
1276 ldmisc.h ldgram.h ldmain.h
dd37f215 1277lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1278 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1279 $(INCDIR)/getopt.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
1280 ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldfile.h \
1281 ldver.h ldemul.h
1282mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h sysdep.h \
1283 config.h $(INCDIR)/fopen-same.h ld.h ldexp.h ldlang.h \
1284 ldmisc.h mri.h ldgram.h $(INCDIR)/libiberty.h
f14a5192 1285ldcref.o: ldcref.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1286 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1287 $(INCDIR)/libiberty.h ld.h ldmain.h ldmisc.h ldexp.h \
1288 ldlang.h
dd37f215 1289ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1290 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1291 ld.h ldexp.h ldver.h ldlang.h ldemul.h ldfile.h ldmisc.h \
1292 ldmain.h mri.h ldlex.h
1293ldlex.o: ldlex.c ../bfd/bfd.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1294 ld.h ldgram.h ldmisc.h ldexp.h ldlang.h ldfile.h ldlex.h \
1295 ldmain.h
239d28f3
SC
1296
1297# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
49c009b5
ILT
1298
1299# Tell versions [3.59,3.63) of GNU make to not export all variables.
1300# Otherwise a system limit (for SysV at least) may be exceeded.
1301.NOEXPORT:
This page took 0.300055 seconds and 4 git commands to generate.