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