* sim-calls.c (sim_store_register): Allow accumulators
[deliverable/binutils-gdb.git] / ld / Makefile.in
CommitLineData
ce4d59e2 1# Makefile for the GNU linker ld (version 2)
9ae9e582 2# Copyright (C) 1989, 90, 91, 92, 93, 94, 95, 96, 1997
6014cea7 3# Free Software Foundation, Inc.
ce4d59e2 4
d4e5e3c3 5# This file is part of GNU ld.
ce4d59e2
SC
6
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
943fbd5b 19# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
ce4d59e2 20
eb02fd64 21
d66c832b
ILT
22VPATH = @srcdir@
23srcdir = @srcdir@
3a9149a7 24objdir = .
eb02fd64 25
d66c832b
ILT
26target_alias = @target_alias@
27prefix = @prefix@
e06ba18d 28
d66c832b
ILT
29program_transform_name = @program_transform_name@
30exec_prefix = @exec_prefix@
f14a5192
JM
31bindir = @bindir@
32libdir = @libdir@
034351e3 33tooldir = $(exec_prefix)/$(target_alias)
f14a5192
JM
34datadir = @datadir@
35mandir = @mandir@
e06ba18d
PB
36man1dir = $(mandir)/man1
37man2dir = $(mandir)/man2
38man3dir = $(mandir)/man3
39man4dir = $(mandir)/man4
40man5dir = $(mandir)/man5
41man6dir = $(mandir)/man6
42man7dir = $(mandir)/man7
43man8dir = $(mandir)/man8
44man9dir = $(mandir)/man9
f14a5192
JM
45infodir = @infodir@
46includedir = @includedir@
47
173a0c3d 48# We put the scripts in the directory $(scriptdir)/ldscripts.
559d7baf
RP
49# We can't put the scripts in $(datadir) because the SEARCH_DIR
50# directives need to be different for native and cross linkers.
173a0c3d 51scriptdir = $(tooldir)/lib
e06ba18d
PB
52
53SHELL = /bin/sh
54
ba69384d 55INSTALL = @INSTALL@
f14a5192
JM
56INSTALL_PROGRAM = @INSTALL_PROGRAM@
57INSTALL_DATA = @INSTALL_DATA@
c97b9003 58
e06ba18d
PB
59AR = ar
60AR_FLAGS = qv
d66c832b 61CC = @CC@
b9a5c27f 62EXEEXT = @EXEEXT@
d66c832b 63CFLAGS = @CFLAGS@
c99fbc42 64LDFLAGS = @LDFLAGS@
2e598345 65HLDFLAGS = @HLDFLAGS@
79e9dc20 66HLDENV = @HLDENV@
ad43e45b 67RPATH_ENVVAR = @RPATH_ENVVAR@
e06ba18d 68MAKEINFO = makeinfo
2412a768 69TEXI2DVI = texi2dvi
e06ba18d 70RANLIB = ranlib
bf3acf44 71BISON = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi`
2df68136 72LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
8c32cf6e 73
d66c832b
ILT
74EMUL = @EMUL@
75EMULATION_OFILES = @EMULATION_OFILES@
76
efa6c497 77# Search path to override the default search path for -lfoo libraries.
ee17cac9 78# If LIB_PATH is empty, the ones in the script (if any) are left alone.
208bc89e 79# (The default is usually /lib:/usr/lib:/usr/local/lib, unless building
917bffa7 80# a cross-linker, in which case the default is empty. See genscripts.sh.)
ee17cac9
PB
81# Otherwise, they are replaced with the ones given in LIB_PATH,
82# which may have the form: LIB_PATH=/lib:/usr/local/lib
83LIB_PATH =
84
959eba20
JO
85BASEDIR = $(srcdir)/..
86BFDDIR = $(BASEDIR)/bfd
87INCDIR = $(BASEDIR)/include
88INCLUDES = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR)
4a6afc88 89DEP = mkdep
2ee11735 90
2412a768
RP
91# What version of the manual to build
92DOCVER = gen
93
8073190b 94# Where to find texinfo.tex to format docn with TeX
d17eb3db 95TEXIDIR = $(srcdir)/../texinfo
8d317d2a 96
959eba20
JO
97# Where to find other docs needed to format with TeX
98TEXINPUTS = $(TEXIDIR):$(BFDDIR)/doc:$(srcdir)
99
10a69a37 100# Whether to get roff to put indexing entries on stderr
954ac2ea
RP
101TEXI2OPT =
102# You neeed this to generate ld-index.ms (or .mm or .me)
103# TEXI2OPT = -i
8073190b 104
e06ba18d
PB
105TEXI2ROFF=texi2roff
106
8073190b
RP
107# Which roff program to use to generate index for texi2roff'd doc
108ROFF = groff
109
5cdea2ac 110#stuff for self hosting (can be overridden in config file).
d66c832b
ILT
111HOSTING_CRT0 = @HOSTING_CRT0@
112HOSTING_LIBS = @HOSTING_LIBS@
74e6b793 113HOSTING_EMU = -m $(EMUL)
5cdea2ac 114
32286e08
C
115# These were used by `make check-cdtest'
116#
117#CXX = `if [ -f ../gcc/xgcc ] ; then \
118# echo ../gcc/xgcc -B../gcc/; \
119# else echo gcc; \
120# fi`
121#CXXFLAGS = -fgnu-linker
122#
8a6665ae 123# FIX_ME: using ../gcc/xgcc breaks the cdtest.
32286e08 124#CXX = g++
8a6665ae 125
3a9149a7 126# Setup the testing framework, if you have one
32286e08
C
127EXPECT = `if [ -f $$r/../expect/expect ] ; \
128 then echo $$r/../expect/expect ; \
129 else echo expect ; fi`
130
131RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; \
132 then echo $${srcroot}/../dejagnu/runtest ; \
133 else echo runtest ; fi`
099c286e 134
03372cf4 135RUNTESTFLAGS =
32286e08
C
136
137CC_FOR_TARGET = ` \
65d22248 138 if [ -f $$r/../gcc/xgcc ] ; then \
32286e08
C
139 if [ -f $$r/../newlib/Makefile ] ; then \
140 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
141 else \
142 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
143 fi; \
144 else \
dfc84b08 145 if [ "@host@" = "@target@" ] ; then \
32286e08
C
146 echo $(CC); \
147 else \
b5f076d4 148 echo gcc | sed '$(program_transform_name)'; \
32286e08
C
149 fi; \
150 fi`
151
152CXX = gcc
153CXX_FOR_TARGET = ` \
65d22248 154 if [ -f $$r/../gcc/xgcc ] ; then \
32286e08
C
155 if [ -f $$r/../newlib/Makefile ] ; then \
156 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
157 else \
158 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
159 fi; \
160 else \
dfc84b08 161 if [ "@host@" = "@target@" ] ; then \
32286e08
C
162 echo $(CXX); \
163 else \
b5f076d4 164 echo gcc | sed '$(program_transform_name)'; \
32286e08
C
165 fi; \
166 fi`
c97b9003 167
4a6afc88
ILT
168# go directly to ld.new in case this ld isn't capable of
169# linking native object on this host. It can be renamed on
170# install.
b9a5c27f 171LD_PROG = ld.new$(EXEEXT)
4a6afc88
ILT
172
173all: $(LD_PROG)
174.PHONY: all
58bf66f9 175
74e6b793 176LINTFLAGS = $(INCLUDES) $(EXTRA_DEF)
2ee11735 177
32286e08 178# The .cc suffix was used by `make check-cdtest'.
565c93e9
DM
179
180.SUFFIXES: .y $(SUFFIXES) .cc
181
173a0c3d
DM
182# Suppress smart makes who think they know how to automake Yacc files
183.y.c:
184
32286e08
C
185# This rule was used for the check-cdtest target.
186#.cc.o:
187# $(CXX) -c -I$(srcdir) $(CXXFLAGS) $(CFLAGS) $<
565c93e9 188
6ded6615 189ALL_CFLAGS = -D_GNU_SOURCE $(INCLUDES) @HDEFINES@ $(CFLAGS)
77b19d3d 190.c.o:
4a6afc88 191 $(CC) -c $(ALL_CFLAGS) $<
f78e2569 192
2e598345
ILT
193BFDDEP = ../bfd/libbfd.a
194BFDLIB = @BFDLIB@
959eba20 195LIBIBERTY = ../libiberty/libiberty.a
eb02fd64 196
efa6c497
ILT
197ALL_EMULATIONS = \
198 ea29k.o \
199 eaixppc.o \
200 eaixrs6.o \
201 ealpha.o \
202 earmaoutb.o \
203 earmaoutl.o \
204 earmcoff.o \
205 earmpe.o \
206 ecoff_sparc.o \
207 edelta68.o \
208 eebmon29k.o \
209 eelf32_sparc.o \
210 eelf32b4300.o \
211 eelf32bmip.o \
719de0ea
ILT
212 eelf32ebmip.o \
213 eelf32elmip.o \
efa6c497
ILT
214 eelf32l4300.o \
215 eelf32lmip.o \
216 eelf32lppc.o \
217 eelf32ppc.o \
218 eelf64_sparc.o \
219 eelf_i386.o \
220 egld960.o \
221 egld960coff.o \
222 ego32.o \
223 eh8300.o \
224 eh8300h.o \
f14a5192 225 eh8300s.o \
efa6c497
ILT
226 eh8500.o \
227 eh8500b.o \
228 eh8500c.o \
229 eh8500m.o \
230 eh8500s.o \
231 ehp300bsd.o \
232 ehp3hpux.o \
233 ehppaelf.o \
234 ei386aout.o \
235 ei386bsd.o \
236 ei386coff.o \
237 ei386go32.o \
238 ei386linux.o \
239 ei386lynx.o \
240 ei386mach.o \
241 ei386moss.o \
242 ei386msdos.o \
243 ei386nbsd.o \
244 ei386nw.o \
245 ei386pe.o \
246 elnk960.o \
247 em68k4knbsd.o \
248 em68kaout.o \
249 em68kaux.o \
250 em68kcoff.o \
251 em68kelf.o \
252 em68klinux.o \
253 em68klynx.o \
254 em68knbsd.o \
255 em68kpsos.o \
256 em88kbcs.o \
257 emipsbig.o \
258 emipsbsd.o \
259 emipsidt.o \
260 emipsidtl.o \
261 emipslit.o \
9ae9e582 262 emipslnews.o \
efa6c497
ILT
263 enews.o \
264 ens32knbsd.o \
1ab4cd57 265 epc532macha.o \
efa6c497
ILT
266 eppcmacos.o \
267 eppcnw.o \
268 eppcpe.o \
269 eriscix.o \
270 esa29200.o \
271 esh.o \
79e9dc20
DE
272 eshelf.o \
273 eshlelf.o \
efa6c497
ILT
274 eshl.o \
275 esparcaout.o \
ba69384d 276 esparclinux.o \
efa6c497
ILT
277 esparclynx.o \
278 esparcnbsd.o \
279 est2000.o \
280 esun3.o \
281 esun4.o \
282 evanilla.o \
283 evax.o \
284 evsta.o \
285 ew65.o \
286 ez8001.o \
287 ez8002.o
7e5c1057 288
30bddd33
ILT
289ALL_64_EMULATIONS = \
290 eelf64alpha.o
291
74e6b793 292CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
4a6afc88 293 ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
3fac4887 294 mri.c ldcref.c
eb02fd64 295
74e6b793 296HFILES = config.h ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
4a6afc88 297 ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
3fac4887 298 ldwrite.h mri.h
eb02fd64 299
74e6b793 300GENERATED_CFILES = ldgram.c ldlex.c
208bc89e 301GENERATED_HFILES = ldgram.h ldemul-list.h
eb02fd64 302
74e6b793 303OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
4a6afc88 304 ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \
3fac4887 305 ldfile.o ldcref.o ${EMULATION_OFILES}
eb02fd64 306
82ebe9a2 307LINTSOURCES = $(CFILES) $(GENERATED_CFILES) e*.c
eb02fd64 308
82ebe9a2 309STAGESTUFF = *.o ldscripts/* e*.c
e06ba18d
PB
310
311info: ld.info
4a6afc88 312.PHONY: info
2ee11735 313
32286e08 314ldgram.c: ldgram.y
5ff21fa5 315 $(BISON) $(BISONFLAGS) -d $(srcdir)/ldgram.y
31e54f5d
RP
316 mv -f y.tab.c ldgram.c
317 mv -f y.tab.h ldgram.h
cc964c6f 318
32286e08
C
319# Separate from ldgram.c so that a parallel make doesn't try to build
320# both ldgram.c and ldgram.h simultaneously.
321ldgram.h: ldgram.c
322
4a6afc88 323ldmain.o: ldmain.c config.status
22f9f902 324 $(CC) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' -DTARGET='"@target@"' $(ALL_CFLAGS) $<
4a6afc88 325
82ebe9a2 326ldemul-list.h: Makefile
7e5c1057
PB
327 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
328 for f in `echo " " ${EMULATION_OFILES} "" \
82ebe9a2 329 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
7e5c1057
PB
330 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
331 done;\
332 echo "";\
333 echo "#define EMULATION_LIST \\";\
334 for f in `echo " " ${EMULATION_OFILES} "" \
82ebe9a2 335 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
7e5c1057
PB
336 echo " &ld_$${f}_emulation, \\"; \
337 done;\
4a6afc88
ILT
338 echo " 0") >ldemul-tmp.h
339 mv ldemul-tmp.h ldemul-list.h
7e5c1057 340
4a6afc88 341ldlex.c: ldlex.l
40d53fdf 342 $(LEX) $(srcdir)/ldlex.l
4a6afc88
ILT
343 -sed -e '/^int.*free();/d' \
344 -e '/^char.*malloc();/d' \
0b2f8d2e 345 -e 's/malloc/xmalloc/g' \
4a6afc88
ILT
346 < lex.yy.c > ldlex.c.new
347 -rm lex.yy.c
348 mv ldlex.c.new ./ldlex.c
19b03b7a 349
82ebe9a2 350# These all start with e so 'make clean' can find them.
c61b4184 351
2e598345 352GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} @host@ @target@ @target_alias@ ${EMUL} "@NATIVE_LIB_DIRS@"
c06e55d9 353GEN_DEPENDS = $(srcdir)/genscripts.sh $(srcdir)/emultempl/stringify.sed
95d31c3c 354@TDIRS@
7e5c1057 355
efa6c497
ILT
356ea29k.c: $(srcdir)/emulparams/a29k.sh \
357 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
358 ${GENSCRIPTS} a29k "$(tdir_a29k)"
359eaixppc.c: $(srcdir)/emulparams/aixppc.sh \
360 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
361 ${GENSCRIPTS} aixppc "$(tdir_aixppc)"
362eaixrs6.c: $(srcdir)/emulparams/aixrs6.sh \
363 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
364 ${GENSCRIPTS} aixrs6 "$(tdir_aixrs6)"
365ealpha.c: $(srcdir)/emulparams/alpha.sh \
366 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
367 ${GENSCRIPTS} alpha "$(tdir_alpha)"
368# start-sanitize-arc
369earcelf.c: $(srcdir)/emulparams/arcelf.sh \
370 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
371 ${GENSCRIPTS} arcelf "$(tdir_arcelf)"
372# end-sanitize-arc
373earmaoutb.c: $(srcdir)/emulparams/armaoutb.sh \
374 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
375 ${GENSCRIPTS} armaoutb "$(tdir_armaoutb)"
376earmaoutl.c: $(srcdir)/emulparams/armaoutl.sh \
377 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
378 ${GENSCRIPTS} armaoutl "$(tdir_armaoutl)"
379earmcoff.c: $(srcdir)/emulparams/armcoff.sh \
380 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS}
381 ${GENSCRIPTS} armcoff "$(tdir_armcoff)"
28d0c3ce 382earmpe.c: $(srcdir)/emulparams/armpe.sh \
d66c832b 383 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
95d31c3c 384 ${GENSCRIPTS} armpe "$(tdir_armpe)"
efa6c497
ILT
385ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
386 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
387 ${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)"
e9525d96 388ed10velf.c: $(srcdir)/emulparams/d10velf.sh \
10e31c75 389 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd10v.sc ${GEN_DEPENDS}
04c17a75 390 ${GENSCRIPTS} d10velf "$(tdir_d10v)"
9ae9e582
ILT
391# start-sanitize-d30v
392ed30velf.c: $(srcdir)/emulparams/d30velf.sh \
393 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
394 ${GENSCRIPTS} d30velf "$(tdir_d30v)"
395# end-sanitize-d30v
efa6c497
ILT
396edelta68.c: $(srcdir)/emulparams/delta68.sh \
397 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
398 ${GENSCRIPTS} delta68 "$(tdir_delta68)"
399eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
400 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
401 ${GENSCRIPTS} ebmon29k "$(tdir_ebmon29k)"
79e9dc20
DE
402em32relf.c: $(srcdir)/emulparams/m32relf.sh \
403 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
404 ${GENSCRIPTS} m32relf "$(tdir_m32r)"
efa6c497
ILT
405eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
406 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
407 ${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)"
408eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \
409 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
410 ${GENSCRIPTS} elf32b4300 "$(tdir_elf32b4300)"
411eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
b9a5c27f 412 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
efa6c497 413 ${GENSCRIPTS} elf32bmip "$(tdir_elf32bmip)"
719de0ea 414eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
b9a5c27f 415 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
719de0ea
ILT
416 ${GENSCRIPTS} elf32ebmip "$(tdir_elf32ebmip)"
417eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \
b9a5c27f 418 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
719de0ea 419 ${GENSCRIPTS} elf32elmip "$(tdir_elf32elmip)"
efa6c497
ILT
420eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \
421 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
422 ${GENSCRIPTS} elf32l4300 "$(tdir_elf32l4300)"
423eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
b9a5c27f 424 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
efa6c497
ILT
425 ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)"
426eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \
427 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS}
428 ${GENSCRIPTS} elf32lppc "$(tdir_elf32lppc)"
429eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
430 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS}
431 ${GENSCRIPTS} elf32ppc "$(tdir_elf32ppc)"
f14a5192
JM
432eelf64alpha.c: $(srcdir)/emulparams/elf64alpha.sh \
433 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
434 ${GENSCRIPTS} elf64alpha "$(tdir_elf64alpha)"
efa6c497
ILT
435eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
436 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
437 ${GENSCRIPTS} elf64_sparc "$(tdir_elf64_sparc)"
438eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
439 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
440 ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
441egld960.c: $(srcdir)/emulparams/gld960.sh \
442 $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
443 ${GENSCRIPTS} gld960 "$(tdir_gld960)"
444egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
445 $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
446 ${GENSCRIPTS} gld960coff "$(tdir_gld960coff)"
82ebe9a2 447ego32.c: $(srcdir)/emulparams/go32.sh \
8ddef552 448 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
95d31c3c 449 ${GENSCRIPTS} go32 "$(tdir_go32)"
efa6c497
ILT
450eh8300.c: $(srcdir)/emulparams/h8300.sh \
451 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
452 ${GENSCRIPTS} h8300 "$(tdir_h8300)"
453eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
454 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
455 ${GENSCRIPTS} h8300h "$(tdir_h8300h)"
f14a5192
JM
456eh8300s.c: $(srcdir)/emulparams/h8300s.sh \
457 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300s.sc ${GEN_DEPENDS}
458 ${GENSCRIPTS} h8300s "$(tdir_h8300s)"
efa6c497
ILT
459eh8500.c: $(srcdir)/emulparams/h8500.sh \
460 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
461 ${GENSCRIPTS} h8500 "$(tdir_h8500)"
462eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
463 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
464 ${GENSCRIPTS} h8500b "$(tdir_h8500b)"
465eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
466 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
467 ${GENSCRIPTS} h8500c "$(tdir_h8500c)"
468eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
469 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
470 ${GENSCRIPTS} h8500m "$(tdir_h8500m)"
471eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
472 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
473 ${GENSCRIPTS} h8500s "$(tdir_h8500s)"
82ebe9a2 474ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
8ddef552 475 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
95d31c3c 476 ${GENSCRIPTS} hp300bsd "$(tdir_hp300bsd)"
82ebe9a2 477ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
8ddef552 478 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
95d31c3c 479 ${GENSCRIPTS} hp3hpux "$(tdir_hp3hpux)"
82ebe9a2 480ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
db0a7149 481 $(srcdir)/emultempl/hppaelf.em $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
95d31c3c 482 ${GENSCRIPTS} hppaelf "$(tdir_hppaelf)"
82ebe9a2 483ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
8ddef552 484 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
95d31c3c 485 ${GENSCRIPTS} i386aout "$(tdir_i386aout)"
efa6c497
ILT
486ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
487 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
488 ${GENSCRIPTS} i386bsd "$(tdir_i386bsd)"
489ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
490 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
491 ${GENSCRIPTS} i386coff "$(tdir_i386coff)"
82ebe9a2 492ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
6c86b9ff 493 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
95d31c3c 494 ${GENSCRIPTS} i386go32 "$(tdir_i386go32)"
efa6c497
ILT
495ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
496 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
497 ${GENSCRIPTS} i386linux "$(tdir_i386linux)"
498ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
499 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.sc ${GEN_DEPENDS}
500 ${GENSCRIPTS} i386lynx "$(tdir_i386lynx)"
82ebe9a2 501ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
3c1af24d 502 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
95d31c3c 503 ${GENSCRIPTS} i386mach "$(tdir_i386mach)"
943fbd5b
KR
504ei386moss.c: $(srcdir)/emulparams/i386moss.sh \
505 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
95d31c3c 506 ${GENSCRIPTS} i386moss "$(tdir_i386moss)"
943fbd5b
KR
507ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \
508 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS}
95d31c3c 509 ${GENSCRIPTS} i386msdos "$(tdir_i386msdos)"
efa6c497
ILT
510ei386nbsd.c: $(srcdir)/emulparams/i386nbsd.sh \
511 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
512 ${GENSCRIPTS} i386nbsd "$(tdir_i386nbsd)"
513ei386nw.c: $(srcdir)/emulparams/i386nw.sh \
514 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
515 ${GENSCRIPTS} i386nw "$(tdir_i386nw)"
516ei386pe.c: $(srcdir)/emulparams/i386pe.sh \
517 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
518 ${GENSCRIPTS} i386pe "$(tdir_i386pe)"
82ebe9a2 519elnk960.c: $(srcdir)/emulparams/lnk960.sh \
8ddef552 520 $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
95d31c3c 521 ${GENSCRIPTS} lnk960 "$(tdir_lnk960)"
efa6c497
ILT
522em68k4knbsd.c: $(srcdir)/emulparams/m68k4knbsd.sh \
523 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
524 ${GENSCRIPTS} m68k4knbsd "$(tdir_m68k4knbsd)"
525em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
526 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
527 ${GENSCRIPTS} m68kaout "$(tdir_m68kaout)"
2e598345
ILT
528em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \
529 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS}
95d31c3c 530 ${GENSCRIPTS} m68kaux "$(tdir_m68kaux)"
82ebe9a2 531em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
8ddef552 532 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
95d31c3c 533 ${GENSCRIPTS} m68kcoff "$(tdir_m68kcoff)"
417ced0d
MM
534em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \
535 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
95d31c3c 536 ${GENSCRIPTS} m68kelf "$(tdir_m68kelf)"
efa6c497
ILT
537em68klinux.c: $(srcdir)/emulparams/m68klinux.sh \
538 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
539 ${GENSCRIPTS} m68klinux "$(tdir_m68klinux)"
82ebe9a2 540em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
028f8872 541 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS}
95d31c3c 542 ${GENSCRIPTS} m68klynx "$(tdir_m68klynx)"
efa6c497 543em68knbsd.c: $(srcdir)/emulparams/m68knbsd.sh \
8ddef552 544 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
efa6c497
ILT
545 ${GENSCRIPTS} m68knbsd "$(tdir_m68knbsd)"
546em68kpsos.c: $(srcdir)/emulparams/m68kpsos.sh \
547 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS}
548 ${GENSCRIPTS} m68kpsos "$(tdir_m68kpsos)"
549em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
9ae9e582 550 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
efa6c497 551 ${GENSCRIPTS} m88kbcs "$(tdir_m88kbcs)"
82ebe9a2 552emipsbig.c: $(srcdir)/emulparams/mipsbig.sh \
8ddef552 553 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
efa6c497 554 ${GENSCRIPTS} mipsbig
82ebe9a2
KR
555emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
556 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
efa6c497 557 ${GENSCRIPTS} mipsbsd
82ebe9a2 558emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
417ced0d 559 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
95d31c3c 560 ${GENSCRIPTS} mipsidt "$(tdir_mipsidt)"
82ebe9a2 561emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
417ced0d 562 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
95d31c3c 563 ${GENSCRIPTS} mipsidtl "$(tdir_mipsidtl)"
efa6c497
ILT
564emipslit.c: $(srcdir)/emulparams/mipslit.sh \
565 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
566 ${GENSCRIPTS} mipslit "$(tdir_mipslit)"
9ae9e582
ILT
567emipslnews.c: $(srcdir)/emulparams/mipslnews.sh \
568 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
569 ${GENSCRIPTS} mipslnews
10e31c75
JL
570emn10300.c: $(srcdir)/emulparams/mn10300.sh \
571 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
572 ${GENSCRIPTS} mn10300 "$(tdir_mn10300)"
573emn10200.c: $(srcdir)/emulparams/mn10200.sh \
574 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
575 ${GENSCRIPTS} mn10200 "$(tdir_mn10200)"
efa6c497 576enews.c: $(srcdir)/emulparams/news.sh \
dd37f215 577 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
efa6c497
ILT
578 ${GENSCRIPTS} news "$(tdir_news)"
579ens32knbsd.c: $(srcdir)/emulparams/ns32knbsd.sh \
82ebe9a2 580 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
efa6c497 581 ${GENSCRIPTS} ns32knbsd "$(tdir_ns32knbsd)"
1ab4cd57 582epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \
cdf71377 583 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
1ab4cd57 584 ${GENSCRIPTS} pc532macha "$(tdir_pc532macha)"
4fe13b2b
MM
585eppcmacos.c: $(srcdir)/emulparams/ppcmacos.sh \
586 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
95d31c3c 587 ${GENSCRIPTS} ppcmacos "$(tdir_ppcmacos)"
32286e08
C
588eppcnw.c: $(srcdir)/emulparams/ppcnw.sh \
589 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
95d31c3c 590 ${GENSCRIPTS} ppcnw "$(tdir_ppcnw)"
efa6c497
ILT
591eppcpe.c: $(srcdir)/emulparams/ppcpe.sh \
592 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/ppcpe.sc ${GEN_DEPENDS}
593 ${GENSCRIPTS} ppcpe "$(tdir_ppcpe)"
efa6c497 594eriscix.c: $(srcdir)/emulparams/riscix.sh \
e93e87cb 595 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
efa6c497
ILT
596 ${GENSCRIPTS} riscix "$(tdir_riscix)"
597esa29200.c: $(srcdir)/emulparams/sa29200.sh \
598 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
599 ${GENSCRIPTS} sa29200 "$(tdir_sa29200)"
600esh.c: $(srcdir)/emulparams/sh.sh \
601 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
602 ${GENSCRIPTS} sh "$(tdir_sh)"
79e9dc20
DE
603eshelf.c: $(srcdir)/emulparams/shelf.sh \
604 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
605 ${GENSCRIPTS} shelf "$(tdir_shelf)"
606eshlelf.c: $(srcdir)/emulparams/shlelf.sh \
607 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
608 ${GENSCRIPTS} shlelf "$(tdir_shlelf)"
efa6c497
ILT
609eshl.c: $(srcdir)/emulparams/shl.sh \
610 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
611 ${GENSCRIPTS} shl "$(tdir_shl)"
612esparcaout.c: $(srcdir)/emulparams/sparcaout.sh \
e93e87cb 613 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
efa6c497 614 ${GENSCRIPTS} sparcaout "$(tdir_sparcaout)"
ba69384d
ILT
615esparclinux.c: $(srcdir)/emulparams/sparclinux.sh \
616 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
617 ${GENSCRIPTS} sparclinux "$(tdir_sparclinux)"
efa6c497
ILT
618esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
619 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS}
620 ${GENSCRIPTS} sparclynx "$(tdir_sparclynx)"
32286e08 621esparcnbsd.c: $(srcdir)/emulparams/sparcnbsd.sh \
e93e87cb 622 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
95d31c3c 623 ${GENSCRIPTS} sparcnbsd "$(tdir_sparcnbsd)"
efa6c497
ILT
624est2000.c: $(srcdir)/emulparams/st2000.sh \
625 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
626 ${GENSCRIPTS} st2000 "$(tdir_st2000)"
627esun3.c: $(srcdir)/emulparams/sun3.sh \
628 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
629 ${GENSCRIPTS} sun3 "$(tdir_sun3)"
630esun4.c: $(srcdir)/emulparams/sun4.sh \
631 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
632 ${GENSCRIPTS} sun4 "$(tdir_sun4)"
c6c7035c
MM
633# start-sanitize-tic80
634etic80coff.c: $(srcdir)/emulparams/tic80coff.sh \
635 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic80coff.sc ${GEN_DEPENDS}
636 ${GENSCRIPTS} tic80coff "$(tdir_tic80coff)"
637# end-sanitize-tic80
efa6c497
ILT
638evanilla.c: $(srcdir)/emulparams/vanilla.sh \
639 $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
640 ${GENSCRIPTS} vanilla "$(tdir_vanilla)"
641evax.c: $(srcdir)/emulparams/vax.sh \
642 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
643 ${GENSCRIPTS} vax "$(tdir_vax)"
644evsta.c: $(srcdir)/emulparams/vsta.sh \
645 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
646 ${GENSCRIPTS} vsta "$(tdir_vsta)"
04c17a75
JL
647# start-sanitize-v850
648ev850.c: $(srcdir)/emulparams/v850.sh \
d27d34c3 649 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/v850.sc ${GEN_DEPENDS}
04c17a75
JL
650 ${GENSCRIPTS} v850 "$(tdir_v850)"
651# end-sanitize-v850
efa6c497
ILT
652ew65.c: $(srcdir)/emulparams/w65.sh \
653 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS}
654 ${GENSCRIPTS} w65 "$(tdir_w65)"
65d22248
C
655ez8001.c: $(srcdir)/emulparams/z8001.sh \
656 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
95d31c3c 657 ${GENSCRIPTS} z8001 "$(tdir_z8001)"
65d22248
C
658ez8002.c: $(srcdir)/emulparams/z8002.sh \
659 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
95d31c3c 660 ${GENSCRIPTS} z8002 "$(tdir_z8002)"
eb02fd64 661
2e598345 662$(LD_PROG): $(OFILES) $(BFDDEP) $(LIBIBERTY)
79e9dc20 663 $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(EXTRALIBS)
d17eb3db
ILT
664
665# The generated emulation files mostly have the same dependencies.
d66c832b
ILT
666$(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
667 ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \
2a80ec10 668 ldctor.h ldexp.h ldlang.h ldgram.h
4a6afc88 669
3a9149a7
JW
670# These targets are for the dejagnu testsuites. The file site.exp
671# contains global variables that all the testsuites will use.
3a9149a7 672
d301e438
JW
673site.exp: ./config.status Makefile
674 @echo "Making a new config file..."
3a9149a7 675 @rm -f ./tmp?
d301e438 676 @touch site.exp
3a9149a7 677 @mv site.exp site.bak
d301e438
JW
678 @echo "## variables are automatically generated by make ##" > ./tmp0
679 @echo "# Do not edit here. If you wish to override these" >> ./tmp0
680 @echo "# values, add them to the last section" >> ./tmp0
3a9149a7 681 @echo "# HOST AND TARGET INFO" >> ./tmp0
d66c832b
ILT
682 @echo "set host_os @host_os@" >> ./tmp0
683 @echo "set host_alias @host_alias@" >> ./tmp0
684 @echo "set host_cpu @host_cpu@" >> ./tmp0
685 @echo "set host_vendor @host_vendor@" >> ./tmp0
686 @echo "set target_os @target_os@" >> ./tmp0
687 @echo "set target_alias @target_alias@" >> ./tmp0
688 @echo "set target_cpu @target_cpu@" >> ./tmp0
689 @echo "set target_vendor @target_vendor@" >> ./tmp0
690 @echo "set host_triplet @host@" >> ./tmp0
691 @echo "set target_triplet @target@" >> ./tmp0
3a9149a7 692 @echo "# DIRECTORY INFO" >> ./tmp0
d301e438 693 @echo "set objdir `pwd`" >> ./tmp0
d301e438 694 @echo "" >> ./tmp0
32286e08 695 @echo "# LD DEPENDENCIES" >> ./tmp0
3a9149a7
JW
696 @echo "set OFILES \"$(OFILES)\"" >> ./tmp0
697 @echo "set BFDLIB \"$(BFDLIB)\"" >> ./tmp0
698 @echo "set LIBIBERTY \"$(LIBIBERTY)\"" >> ./tmp0
699 @echo "set HOSTING_EMU \"$(HOSTING_EMU)\"" >> ./tmp0
700 @echo "set HOSTING_CRT0 \"$(HOSTING_CRT0)\"" >> ./tmp0
701 @echo "set HOSTING_LIBS \"$(HOSTING_LIBS)\"" >> ./tmp0
d301e438
JW
702 @echo "" >> ./tmp0
703 @echo "## Variables generated by configure. Do Not Edit ##" >> ./tmp0
704 @cat ./tmp0 > site.exp
705 @cat site.bak | sed \
706 -e '1,/^## Variables generated by.*##/ d' >> site.exp
707 -@rm -f ./tmp?
8ddef552 708
64bb143c 709check: site.exp
32286e08
C
710 r=`pwd`; export r; \
711 srcroot=`cd ${srcdir}; pwd` ; export srcroot ; \
712 EXPECT=${EXPECT} ; export EXPECT ; \
ad43e45b
ILT
713 $(RPATH_ENVVAR)=$$r/../bfd:$$r/../opcodes:$$$(RPATH_ENVVAR); \
714 export $(RPATH_ENVVAR); \
32286e08
C
715 if [ -f $$r/../expect/expect ] ; then \
716 TCL_LIBRARY=$${srcroot}/../tcl/library ; \
0128cbae
KR
717 export TCL_LIBRARY ; \
718 else true ; fi ; \
32286e08
C
719 $(RUNTEST) --tool ld --srcdir $(srcdir)/testsuite $(RUNTESTFLAGS) \
720 CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
417ced0d
MM
721 CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \
722 CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)"
d301e438 723
8ddef552 724installcheck:
4a6afc88 725.PHONY: check installcheck
e7921bd4 726
7e5c1057 727# Rules for testing by relinking ld itself.
32286e08
C
728# A similar test is in the testsuite. This target is for ease of use
729# when porting ld.
eb02fd64 730
7e5c1057 731ld-partial.o: ld.new
a04f1d00 732 ./ld.new $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
7e5c1057 733ld1: ld-partial.o
a04f1d00 734 ./ld.new $(HOSTING_EMU) -o ld1 $(HOSTING_CRT0) ld-partial.o $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 735
7e5c1057 736ld1-full: ld.new
a04f1d00 737 ./ld.new $(HOSTING_EMU) -o ld1-full $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 738
d20fb445 739ld2: ld1
a04f1d00 740 ./ld1 $(HOSTING_EMU) -o ld2 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
60048a2c 741
eb02fd64 742ld3: ld2
a04f1d00 743 ./ld2 $(HOSTING_EMU) -o ld3 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 744
d20fb445
SC
745bootstrap: ld3
746 cmp ld2 ld3
747
4a6afc88
ILT
748.PHONY: bootstrap
749
8ddef552 750# A test program for C++ constructors and destructors.
32286e08
C
751# This test is now in the testsuite.
752#
753#cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
754# ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
755# cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS)
756#
757#cdtest.out: cdtest
758# ./cdtest > cdtest.tmp
759# mv cdtest.tmp cdtest.out
760#
761#cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
762# ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
763# cdtest-bar.o cdtest-foo.o
764#
765#cdtest-ur: cdtest-ur.o
766# ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
767# $(HOSTING_LIBS)
768#
769#cdtest-ur.out: cdtest-ur
770# ./cdtest-ur > cdtest-ur.tmp
771# mv cdtest-ur.tmp cdtest-ur.out
772#
773#check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
774# diff $(srcdir)/cdtest.exp cdtest.out
775# diff $(srcdir)/cdtest.exp cdtest-ur.out
776#
777#.PHONY: check-cdtest
4a6afc88 778
d301e438 779# END OF CHECK TARGETS
917bffa7 780
8073190b 781# DOCUMENTATION TARGETS
2412a768
RP
782# Manual configuration file; not usually attached to normal configuration,
783# because almost all configs use "gen" version of manual.
784# Set DOCVER above to change.
785configdoc.texi: ${DOCVER}-doc.texi
034351e3
PB
786 ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi || \
787 ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi || \
788 cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
2412a768 789
8073190b 790# TeX output
2412a768 791dvi: ld.dvi
d4e5e3c3 792ld.dvi: $(srcdir)/ld.texinfo configdoc.texi $(BFDDIR)/doc/bfdsumm.texi
ba69384d
ILT
793 TEXINPUTS=$(BFDDIR)/doc:$$TEXINPUTS MAKEINFO='$(MAKEINFO) -I$(BFDDIR)/doc -I$(srcdir)' \
794 $(TEXI2DVI) $(srcdir)/ld.texinfo
2412a768 795
4b91c519 796ldint.dvi: $(srcdir)/ldint.texinfo
2412a768 797 $(TEXI2DVI) $(srcdir)/ldint.texinfo
8d317d2a 798
8073190b 799# info file for online browsing
4ecfad79 800ld.info: $(srcdir)/ld.texinfo configdoc.texi $(BFDDIR)/doc/bfdsumm.texi
93d7eb0f 801 $(MAKEINFO) -I$(BFDDIR)/doc -I$(srcdir) -o ld.info $(srcdir)/ld.texinfo
eb02fd64 802
4b91c519
PB
803ldint.info: $(srcdir)/ldint.texinfo
804 $(MAKEINFO) -o ldint.info $(srcdir)/ldint.texinfo
805
4a6afc88
ILT
806.PHONY: dvi
807
954ac2ea 808#separate targets for "ms", "me", and "mm" forms of roff doc
e06ba18d
PB
809# Try to use a recent texi2roff. v2 was put on prep in jan91.
810# If you want an index, see texi2roff doc for postprocessing
811# and add -i to texi2roff invocations below.
812# Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
813# correspondint -e lines when later texi2roff's are current)
814# + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
815# + @c's deleted explicitly because texi2roff sees texinfo commands in them
816# + @ (that's at-BLANK) not recognized by texi2roff, turned into blank
817# + @alphaenumerate is ridiculously new, turned into @enumerate
818
9c7810d6 819ld.ms: $(srcdir)/ld.texinfo
8073190b
RP
820 sed -e '/\\input texinfo/d' \
821 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
822 -e '/^@ifinfo/,/^@end ifinfo/d' \
823 -e '/^@c/d' \
824 -e 's/{.*,,/{/' \
825 -e 's/@ / /g' \
826 -e 's/^@alphaenumerate/@enumerate/g' \
827 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 828 $(srcdir)/ld.texinfo | \
e06ba18d
PB
829 $(TEXI2ROFF) $(TEXI2OPT) -ms | \
830 sed -e 's/---/\\(em/g' \
831 >>ld.ms
8073190b
RP
832
833# index for roff output
834ld-index.ms: ld.ms
835 $(ROFF) -ms ld.ms 2>&1 1>/dev/null | \
836 sed -e '/: warning:/d' | \
837 texi2index >ld-index.ms
838
954ac2ea 839# roff output (-mm)
9c7810d6 840ld.mm: $(srcdir)/ld.texinfo
954ac2ea
RP
841 sed -e '/\\input texinfo/d' \
842 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
843 -e '/^@ifinfo/,/^@end ifinfo/d' \
844 -e '/^@c/d' \
9c7810d6
RP
845 -e 's/{.*,,/{/' \
846 -e '/@noindent/d' \
e06ba18d
PB
847 -e 's/@ / /g' \
848 -e 's/^@alphaenumerate/@enumerate/g' \
849 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 850 $(srcdir)/ld.texinfo | \
e06ba18d 851 $(TEXI2ROFF) $(TEXI2OPT) -mm | \
9c7810d6
RP
852 sed -e 's/---/\\(em/g' \
853 >ld.mm
954ac2ea
RP
854
855# index for roff output
856ld-index.mm: ld.mm
857 $(ROFF) -mm ld.mm 2>&1 1>/dev/null | \
858 sed -e '/: warning:/d' | \
859 texi2index >ld-index.mm
860
861# roff output (-me)
9c7810d6 862ld.me: $(srcdir)/ld.texinfo
954ac2ea
RP
863 sed -e '/\\input texinfo/d' \
864 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
865 -e '/^@ifinfo/,/^@end ifinfo/d' \
866 -e '/^@c/d' \
867 -e 's/{.*,,/{/' \
868 -e 's/@ / /g' \
869 -e 's/^@alphaenumerate/@enumerate/g' \
870 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 871 $(srcdir)/ld.texinfo | \
e06ba18d
PB
872 $(TEXI2ROFF) $(TEXI2OPT) -me | \
873 sed -e 's/---/\\(em/g' \
874 >>ld.me
954ac2ea
RP
875
876# index for roff output
877ld-index.me: ld.me
878 $(ROFF) -me ld.me 2>&1 1>/dev/null | \
879 sed -e '/: warning:/d' | \
880 texi2index >ld-index.me
881
e7921bd4 882stage1: force
e06ba18d 883 -mkdir stage1
ab57b174 884 -mv -f $(STAGESTUFF) $(LD_PROG) stage1
e06ba18d 885 -(cd stage1 ; ln -s $(LD_PROG) ld)
f78e2569 886
e7921bd4 887stage2: force
e06ba18d 888 -mkdir stage2
ab57b174 889 -mv -f $(STAGESTUFF) $(LD_PROG) stage2
e06ba18d 890 -(cd stage2 ; ln -s $(LD_PROG) ld)
f78e2569 891
e7921bd4 892stage3: force
e06ba18d 893 -mkdir stage3
ab57b174 894 -mv -f $(STAGESTUFF) $(LD_PROG) stage3
e06ba18d 895 -(cd stage3 ; ln -s $(LD_PROG) ld)
eb02fd64 896
74e6b793 897against = stage2
e46cdcdd
RP
898
899comparison: force
ab57b174 900 for i in $(STAGESTUFF) $(LD_PROG) ; do cmp $$i $(against)/$$i ; done
e46cdcdd 901
e7921bd4 902de-stage1: force
e06ba18d
PB
903 -(cd stage1 ; mv -f * ..)
904 -rm ld
905 -rmdir stage1
e7921bd4
RP
906
907de-stage2: force
e06ba18d
PB
908 -(cd stage2 ; mv -f * ..)
909 -rm ld
910 -rmdir stage2
e7921bd4
RP
911
912de-stage3: force
e06ba18d
PB
913 -(cd stage3 ; mv -f * ..)
914 -rm ld
915 -rmdir stage3
e7921bd4 916
4a6afc88
ILT
917.PHONY: stage1 stage2 stage3 comparison de-stage1 de-stage2 de-stage3
918
ab57b174 919# Stuff that should be included in a distribution:
74e6b793 920LDDISTSTUFF = ldgram.c ldgram.h ldlex.c
8a8965f1 921diststuff: $(LDDISTSTUFF) info
ab57b174
ILT
922
923mostlyclean:
bdec6bdb 924 -rm -f $(STAGESTUFF) ld.?? ld.??? ldlex.[qp]
083038a7 925 -rm -f ld ld1 ld2 ld3 *.o y.output cdtest cdtest.out cdtest.tmp
1ab4cd57 926 -rm -f cdtest-ur cdtest-ur.out cdtest-ur.tmp crtbegin.o crtend.o
dfc84b08 927 -rm -f ldemul-list.h
82ebe9a2 928 -rm -fr tmpdir
ab57b174 929clean: mostlyclean
93d7eb0f 930 -rm -f $(LD_PROG)
417ced0d 931distclean: clean
f40d9bc2 932 -rm -f Makefile config.status TAGS site.exp site.bak config.cache
bdec6bdb 933 -rm -f config.h stamp-h config.log
f40d9bc2 934 -rm -rf ldscripts
4977f3b4
ILT
935maintainer-clean realclean: clean distclean
936 @echo "This command is intended for maintainers to use;"
937 @echo "it deletes files that may require special tools to rebuild."
dfc84b08 938 -rm -f $(GENERATED_CFILES) $(GENERATED_HFILES)
93d7eb0f 939 -rm -f $(LDDISTSTUFF) *.info* configdoc.texi
eb02fd64 940
4a6afc88
ILT
941.PHONY: diststuff mostlyclean clean distclean realclean
942
943lintlog:$(LINTSOURCES) Makefile
2ee11735 944 $(LINT) -abhxzn $(LINTFLAGS) $(LINTSOURCES) \
eb02fd64
RP
945| grep -v "pointer casts may be troublesome" \
946| grep -v "possible pointer alignment problem" \
947| grep -v "ignore" \
948| grep -v "conversion from long may lose accuracy" \
949| grep -v "warning: constant argument to NOT" \
950| grep -v "enumeration type clash, operator CAST" \
951| grep -v "warning: constant in conditional context"\
952| grep -v "archive\.c"
953
954
cbb5c2d1
DM
955TAGS:
956 etags -t $(srcdir)/*.[chly] *.[chly]
eb02fd64 957
eb02fd64 958
b9a5c27f 959install: ld.new$(EXEEXT) installdirs
ba69384d 960 n=`echo ld | sed '$(program_transform_name)'`; \
b9a5c27f 961 $(INSTALL_PROGRAM) ld.new$(EXEEXT) $(bindir)/$$n$(EXEEXT); \
ba69384d 962 $(INSTALL_DATA) $(srcdir)/ld.1 $(man1dir)/$$n.1; \
b9a5c27f
RS
963 rm -f $(tooldir)/bin/ld$(EXEEXT); \
964 ln $(bindir)/$$n $(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
965 || $(INSTALL_PROGRAM) ld.new$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT)
173a0c3d
DM
966 for f in ldscripts/*; do \
967 $(INSTALL_DATA) $$f $(scriptdir)/$$f ; \
d360d135 968 done
ba69384d
ILT
969
970installdirs:
971 $(SHELL) $(srcdir)/../mkinstalldirs $(bindir) $(man1dir) $(scriptdir)/ldscripts $(tooldir)/bin
e06ba18d 972
db0a7149 973install-info: ld.info
ba69384d 974 $(SHELL) $(srcdir)/../mkinstalldirs $(infodir)
82ebe9a2
KR
975 if [ -r ld.info ]; then \
976 dir=. ; \
977 else \
978 dir=$(srcdir) ; \
979 fi ; \
980 for i in `cd $$dir ; echo ld.info*` ; do \
981 $(INSTALL_DATA) $$dir/$$i $(infodir)/$$i ; \
afe3aa73
RP
982 done
983
12fa72d4
SC
984clean-info:
985 -rm -rf *.info*
986
ba69384d 987.PHONY: install installdirs install-info clean-info
eb02fd64 988
4a6afc88
ILT
989# Targets to rebuild dependencies in this Makefile.
990# Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
208bc89e 991.dep: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
4a6afc88
ILT
992 rm -f .dep1
993 $(MAKE) DEP=$(DEP) .dep1
994 sed -f dep.sed <.dep1 >.dep
eb02fd64 995
4a6afc88
ILT
996# This rule really wants a mkdep that runs "gcc -MM".
997.dep1: $(CFILES) $(GENERATED_CFILES)
998 rm -f .dep2
999 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
1000 $(DEP) -f .dep2 $(ALL_CFLAGS) $?
1001 $(srcdir)/../move-if-change .dep2 .dep1
eb02fd64 1002
4a6afc88
ILT
1003dep.sed: dep-in.sed config.status
1004 sed <$(srcdir)/dep-in.sed >dep.sed \
1005 -e 's!@INCDIR@!$(INCDIR)!' \
d66c832b 1006 -e 's!@SRCDIR@!$(srcdir)!'
eb02fd64 1007
4a6afc88
ILT
1008dep: .dep
1009 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
1010 cat .dep >> tmp-Makefile
1011 $(srcdir)/../move-if-change tmp-Makefile Makefile
239d28f3 1012
4a6afc88
ILT
1013dep-in: .dep
1014 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
1015 cat .dep >> tmp-Makefile.in
1016 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
1017
1018.PHONY: dep dep-in
239d28f3 1019
eb02fd64
RP
1020# Dummy target to force execution of dependent targets.
1021#
e7921bd4 1022force:
eb02fd64 1023
4a6afc88 1024.PHONY: force
eb02fd64 1025
d66c832b
ILT
1026Makefile: Makefile.in config.status
1027 CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
1028
1029config.h: stamp-h ; @true
ef346f1a
ILT
1030stamp-h: config.in config.status
1031 CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
d66c832b 1032
ed753c20 1033config.status: configure configure.host configure.tgt
d66c832b 1034 $(SHELL) ./config.status --recheck
eb02fd64 1035
4a6afc88
ILT
1036# What appears below is generated by a hacked mkdep using gcc -MM.
1037
1038# DO NOT DELETE THIS LINE -- mkdep uses it.
1039# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
1040
dd37f215 1041ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1042 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1043 ld.h ldexp.h ldlang.h ldmisc.h ldgram.h ldmain.h ldctor.h
dd37f215 1044ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1045 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h ldemul.h \
1046 ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldemul-list.h
dd37f215 1047ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1048 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1049 ld.h ldmain.h ldmisc.h ldexp.h ldgram.h ldlang.h
dd37f215 1050ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1051 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1052 ld.h ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldgram.h \
1053 ldlex.h ldemul.h
dd37f215 1054ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1055 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1056 $(INCDIR)/obstack.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
4725fb48 1057 ldgram.h ldexp.h ldlang.h ldemul.h ldlex.h ldmisc.h \
3fac4887 1058 ldctor.h ldfile.h $(INCDIR)/fnmatch.h
dd37f215 1059ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1060 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1061 $(INCDIR)/progress.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
1062 ldmisc.h ldwrite.h ldgram.h ldexp.h ldlang.h ldemul.h \
1063 ldlex.h ldfile.h ldctor.h
dd37f215 1064ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1065 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1066 $(INCDIR)/demangle.h ld.h ldmisc.h ldexp.h ldlang.h \
1067 ldgram.h ldlex.h ldmain.h ldfile.h
dd37f215 1068ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1069 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h ldver.h \
1070 ldemul.h ldmain.h
dd37f215 1071ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1072 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1073 $(INCDIR)/libiberty.h ld.h ldexp.h ldlang.h ldwrite.h \
1074 ldmisc.h ldgram.h ldmain.h
dd37f215 1075lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1076 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
1077 $(INCDIR)/getopt.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
1078 ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldfile.h \
1079 ldver.h ldemul.h
1080mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h sysdep.h \
1081 config.h $(INCDIR)/fopen-same.h ld.h ldexp.h ldlang.h \
1082 ldmisc.h mri.h ldgram.h $(INCDIR)/libiberty.h
f14a5192 1083ldcref.o: ldcref.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1084 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1085 $(INCDIR)/libiberty.h ld.h ldmain.h ldmisc.h ldexp.h \
1086 ldlang.h
dd37f215 1087ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
ba69384d
ILT
1088 sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \
1089 ld.h ldexp.h ldver.h ldlang.h ldemul.h ldfile.h ldmisc.h \
1090 ldmain.h mri.h ldlex.h
1091ldlex.o: ldlex.c ../bfd/bfd.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1092 ld.h ldgram.h ldmisc.h ldexp.h ldlang.h ldfile.h ldlex.h \
1093 ldmain.h
239d28f3
SC
1094
1095# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.269165 seconds and 4 git commands to generate.