Fri Feb 25 18:55:54 1994 Ted Lemon (mellon@pepper.ncd.com)
[deliverable/binutils-gdb.git] / ld / Makefile.in
CommitLineData
ce4d59e2 1# Makefile for the GNU linker ld (version 2)
74e6b793 2# Copyright (C) 1989, 90, 91, 92, 93, 1994 Free Software Foundation, Inc.
ce4d59e2 3
d4e5e3c3 4# This file is part of GNU ld.
ce4d59e2
SC
5
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
eb02fd64
RP
20
21srcdir = .
3a9149a7 22objdir = .
eb02fd64 23
e06ba18d
PB
24prefix = /usr/local
25
0bb95ac8 26program_transform_name =
12fa72d4
SC
27exec_prefix = $(prefix)
28bindir = $(exec_prefix)/bin
29libdir = $(exec_prefix)/lib
034351e3 30tooldir = $(exec_prefix)/$(target_alias)
e06ba18d 31datadir = $(prefix)/lib
12fa72d4 32mandir = $(prefix)/man
e06ba18d
PB
33man1dir = $(mandir)/man1
34man2dir = $(mandir)/man2
35man3dir = $(mandir)/man3
36man4dir = $(mandir)/man4
37man5dir = $(mandir)/man5
38man6dir = $(mandir)/man6
39man7dir = $(mandir)/man7
40man8dir = $(mandir)/man8
41man9dir = $(mandir)/man9
12fa72d4 42infodir = $(prefix)/info
e06ba18d
PB
43includedir = $(prefix)/include
44docdir = $(datadir)/doc
173a0c3d 45# We put the scripts in the directory $(scriptdir)/ldscripts.
559d7baf
RP
46# We can't put the scripts in $(datadir) because the SEARCH_DIR
47# directives need to be different for native and cross linkers.
173a0c3d 48scriptdir = $(tooldir)/lib
e06ba18d
PB
49
50SHELL = /bin/sh
51
e0d005f2 52INSTALL = `cd $(srcdir); pwd`/../install.sh -c
e06ba18d
PB
53INSTALL_PROGRAM = $(INSTALL)
54INSTALL_DATA = $(INSTALL)
5ebaf24b 55INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
c97b9003
DZ
56INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
57
e06ba18d
PB
58AR = ar
59AR_FLAGS = qv
77b19d3d 60CFLAGS = -g
e06ba18d 61MAKEINFO = makeinfo
2412a768 62TEXI2DVI = texi2dvi
e06ba18d 63RANLIB = ranlib
2412a768 64CC_FOR_BUILD=$(CC)
bf3acf44 65BISON = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi`
2df68136 66LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
8c32cf6e 67
ee17cac9
PB
68# Seach path to override the default search path for -lfoo libraries.
69# If LIB_PATH is empty, the ones in the script (if any) are left alone.
917bffa7
PB
70# (The default is usually /lib:usr/lib:/usr/local/lib, unless building
71# a cross-linker, in which case the default is empty. See genscripts.sh.)
ee17cac9
PB
72# Otherwise, they are replaced with the ones given in LIB_PATH,
73# which may have the form: LIB_PATH=/lib:/usr/local/lib
74LIB_PATH =
75
d17eb3db
ILT
76# Additional libraries which are used when ld is built native. This
77# is set by some host makefile fragments.
78NATIVE_LIB_DIRS =
79
959eba20
JO
80BASEDIR = $(srcdir)/..
81BFDDIR = $(BASEDIR)/bfd
82INCDIR = $(BASEDIR)/include
83INCLUDES = -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR)
4a6afc88 84DEP = mkdep
2ee11735 85
2412a768
RP
86# What version of the manual to build
87DOCVER = gen
88
8073190b 89# Where to find texinfo.tex to format docn with TeX
d17eb3db 90TEXIDIR = $(srcdir)/../texinfo
8d317d2a 91
959eba20
JO
92# Where to find other docs needed to format with TeX
93TEXINPUTS = $(TEXIDIR):$(BFDDIR)/doc:$(srcdir)
94
10a69a37 95# Whether to get roff to put indexing entries on stderr
954ac2ea
RP
96TEXI2OPT =
97# You neeed this to generate ld-index.ms (or .mm or .me)
98# TEXI2OPT = -i
8073190b 99
e06ba18d
PB
100TEXI2ROFF=texi2roff
101
8073190b
RP
102# Which roff program to use to generate index for texi2roff'd doc
103ROFF = groff
104
5cdea2ac 105#stuff for self hosting (can be overridden in config file).
74e6b793
SS
106HOSTING_CRT0 = /lib/crt0.o
107HOSTING_LIBS = `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else gcc -print-libgcc-file-name; fi` -lc
108HOSTING_EMU = -m $(EMUL)
5cdea2ac 109
3a9149a7
JW
110CXX = `if [ -f ../gcc/xgcc ] ; then \
111 echo ../gcc/xgcc -B../gcc/; \
112 else echo gcc; \
113 fi`
114CXXFLAGS = -fgnu-linker
115
8a6665ae 116# FIX_ME: using ../gcc/xgcc breaks the cdtest.
74e6b793 117CXX = g++
8a6665ae 118
3a9149a7
JW
119# Setup the testing framework, if you have one
120RUNTEST = runtest
03372cf4 121RUNTESTFLAGS =
3a9149a7
JW
122RUNTEST_CC = `if [ -f ../gcc/xgcc ] ; then \
123 echo ../gcc/xgcc -B../gcc/; \
124 else echo gcc; \
125 fi`
126RUNTEST_CFLAGS = $(CFLAGS)
127RUNTEST_CXX = `if [ -f ../gcc/xgcc ] ; then \
128 echo ../gcc/xgcc -B../gcc/; \
129 else echo gcc; \
130 fi`
108f145b 131# FIX_ME: using ../gcc/xgcc breaks the cdtest.
d17eb3db 132RUNTEST_CXX = $(CXX)
3a9149a7 133RUNTEST_CXXFLAGS = $(CXXFLAGS)
c97b9003 134
4a6afc88
ILT
135# go directly to ld.new in case this ld isn't capable of
136# linking native object on this host. It can be renamed on
137# install.
138LD_PROG = ld.new
139
140all: $(LD_PROG)
141.PHONY: all
58bf66f9 142
7e5c1057 143### Host, target, and site specific Makefile fragments come in here.
63545898 144####
2ee11735 145
74e6b793 146LINTFLAGS = $(INCLUDES) $(EXTRA_DEF)
2ee11735 147
565c93e9
DM
148# The .cc suffix is used by `make check'.
149
150.SUFFIXES: .y $(SUFFIXES) .cc
151
173a0c3d
DM
152# Suppress smart makes who think they know how to automake Yacc files
153.y.c:
154
4a6afc88 155# This rule is used for the check-cdtest target.
565c93e9 156.cc.o:
3a9149a7 157 $(CXX) -c -I$(srcdir) $(CXXFLAGS) $(CFLAGS) $<
565c93e9 158
74e6b793 159ALL_CFLAGS = $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(CFLAGS)
77b19d3d 160.c.o:
4a6afc88 161 $(CC) -c $(ALL_CFLAGS) $<
f78e2569 162
eb02fd64 163# for self hosting
959eba20
JO
164BFDLIB = ../bfd/libbfd.a
165LIBIBERTY = ../libiberty/libiberty.a
eb02fd64 166
74e6b793 167ALL_EMULATIONS = em_lnk960.o em_sun3.o em_i386aout.o em_go32.o em_vsta.o \
63545898 168 em_m88kbcs.o em_a29k.o em_news.o em_hp300bsd.o em_hp3hpux.o \
4ab3a31f 169 em_h8300.o em_h8300h.o em_ebmon29k.o em_sun4.o em_gld960.o \
3c1af24d 170 em_m68kcoff.o em_st2000.o em_sa29200.o em_i386mach.o \
e637dcf0 171 em_vanilla.o em_i386coff.o em_z8ksim.o em_mipslit.o em_i386bsd.o \
8ddef552 172 em_mipsbig.o em_mipsbsd.o em_mipsidt.o em_vax.o em_h8500.o \
9e0f78c8 173 em_h8500b.o em_h8500s.o em_h8500c.o em_h8500m.o \
db0a7149 174 em_hppaelf.o em_mipsidtl.o em_sh.o em_elf_i386.o em_alpha.o \
4a6afc88 175 em_i386lynx.o em_m68klynx.o em_sparclynx.o em_coff_sparc.o \
c361ce46 176 em_delta68.o em_elf32ppc.o \
58bf66f9 177 $(OTHER_EMULATIONS)
7e5c1057 178
959eba20 179# This is now set by configure.in.
74e6b793 180#EMULATION_OFILES = ${ALL_EMULATIONS}
7e5c1057 181
74e6b793 182CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
4a6afc88
ILT
183 ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
184 mri.c
eb02fd64 185
74e6b793
SS
186
187HFILES = config.h ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
4a6afc88
ILT
188 ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
189 ldwrite.h mri.h
eb02fd64 190
74e6b793
SS
191GENERATED_CFILES = ldgram.c ldlex.c
192GENERATED_HFILES = ldgram.h ldemul-list.h
eb02fd64 193
74e6b793 194OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
4a6afc88
ILT
195 ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \
196 ldfile.o ${EMULATION_OFILES}
eb02fd64 197
74e6b793 198LINTSOURCES = $(CFILES) $(GENERATED_CFILES) em_*.c
eb02fd64 199
4a6afc88 200STAGESTUFF = *.o ldscripts/* em_*.c $(GENERATED_CFILES) $(GENERATED_HFILES)
e06ba18d
PB
201
202info: ld.info
4a6afc88 203.PHONY: info
2ee11735 204
173a0c3d 205ldgram.h ldgram.c: ldgram.y
5ff21fa5 206 $(BISON) $(BISONFLAGS) -d $(srcdir)/ldgram.y
31e54f5d
RP
207 mv -f y.tab.c ldgram.c
208 mv -f y.tab.h ldgram.h
cc964c6f 209
a6152e39 210# EMUL is the name of a file in the emulparams subdir, without the .sh.
4a6afc88
ILT
211ldmain.o: ldmain.c config.status
212 if [ -z "$(EMUL)" ] ; then \
213 echo "you must set a default emulation" 1>&2 ; \
214 exit 1 ; \
215 else \
216 $(CC) -c $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' $(CFLAGS) $< ; \
217 fi
218
219ldemul-list.h: config.status
7e5c1057
PB
220 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
221 for f in `echo " " ${EMULATION_OFILES} "" \
ab57b174 222 | sed -e 's/em_/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
7e5c1057
PB
223 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
224 done;\
225 echo "";\
226 echo "#define EMULATION_LIST \\";\
227 for f in `echo " " ${EMULATION_OFILES} "" \
ab57b174 228 | sed -e 's/em_/ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
7e5c1057
PB
229 echo " &ld_$${f}_emulation, \\"; \
230 done;\
4a6afc88
ILT
231 echo " 0") >ldemul-tmp.h
232 mv ldemul-tmp.h ldemul-list.h
7e5c1057 233
4a6afc88 234ldlex.c: ldlex.l
5ff21fa5 235 $(LEX) -I -Cem $(srcdir)/ldlex.l
4a6afc88
ILT
236 -sed -e '/^int.*free();/d' \
237 -e '/^char.*malloc();/d' \
0b2f8d2e 238 -e 's/malloc/xmalloc/g' \
4a6afc88
ILT
239 < lex.yy.c > ldlex.c.new
240 -rm lex.yy.c
241 mv ldlex.c.new ./ldlex.c
19b03b7a 242
ab57b174 243# These all start with em_ so 'make clean' can find them.
c61b4184 244
74e6b793
SS
245GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} ${host_alias} ${target_alias} ${EMUL} "$(NATIVE_LIB_DIRS)"
246GEN_DEPENDS = $(srcdir)/genscripts.sh
7e5c1057 247
8ddef552
DM
248em_sun4.c: $(srcdir)/emulparams/sun4.sh \
249 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 250 ${GENSCRIPTS} sun4
8ddef552
DM
251em_sun3.c: $(srcdir)/emulparams/sun3.sh \
252 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 253 ${GENSCRIPTS} sun3
8a432746
ILT
254em_vsta.c: $(srcdir)/emulparams/vsta.sh \
255 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
256 ${GENSCRIPTS} vsta
8ddef552
DM
257em_go32.c: $(srcdir)/emulparams/go32.sh \
258 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 259 ${GENSCRIPTS} go32
8ddef552
DM
260em_news.c: $(srcdir)/emulparams/news.sh \
261 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 262 ${GENSCRIPTS} news
8ddef552
DM
263em_vax.c: $(srcdir)/emulparams/vax.sh \
264 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 265 ${GENSCRIPTS} vax
8ddef552
DM
266em_hp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
267 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 268 ${GENSCRIPTS} hp300bsd
8ddef552
DM
269em_hp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
270 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 271 ${GENSCRIPTS} hp3hpux
db0a7149
KR
272em_hppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
273 $(srcdir)/emultempl/hppaelf.em $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
274 ${GENSCRIPTS} hppaelf
8ddef552
DM
275em_i386aout.c: $(srcdir)/emulparams/i386aout.sh \
276 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 277 ${GENSCRIPTS} i386aout
3c1af24d
KR
278em_i386mach.c: $(srcdir)/emulparams/i386mach.sh \
279 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
280 ${GENSCRIPTS} i386mach
8ddef552
DM
281em_ebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
282 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
a6152e39 283 ${GENSCRIPTS} ebmon29k
8ddef552
DM
284em_sa29200.c: $(srcdir)/emulparams/sa29200.sh \
285 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
a6152e39 286 ${GENSCRIPTS} sa29200
8ddef552
DM
287em_a29k.c: $(srcdir)/emulparams/a29k.sh \
288 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
a6152e39 289 ${GENSCRIPTS} a29k
8ddef552 290em_m88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
d301e438 291 $(srcdir)/emultempl/m88kbcs.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
a6152e39 292 ${GENSCRIPTS} m88kbcs
8ddef552
DM
293em_h8300.c: $(srcdir)/emulparams/h8300.sh \
294 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
a6152e39 295 ${GENSCRIPTS} h8300
4ab3a31f
DE
296em_h8300h.c: $(srcdir)/emulparams/h8300h.sh \
297 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
a6152e39 298 ${GENSCRIPTS} h8300h
8ddef552
DM
299em_h8500.c: $(srcdir)/emulparams/h8500.sh \
300 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
a6152e39 301 ${GENSCRIPTS} h8500
9e0f78c8
SC
302em_h8500b.c: $(srcdir)/emulparams/h8500b.sh \
303 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
304 ${GENSCRIPTS} h8500b
305em_h8500c.c: $(srcdir)/emulparams/h8500c.sh \
306 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
307 ${GENSCRIPTS} h8500c
308em_h8500m.c: $(srcdir)/emulparams/h8500m.sh \
309 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
310 ${GENSCRIPTS} h8500m
311em_h8500s.c: $(srcdir)/emulparams/h8500s.sh \
312 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
313 ${GENSCRIPTS} h8500s
8ddef552
DM
314em_sh.c: $(srcdir)/emulparams/sh.sh \
315 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
a6152e39 316 ${GENSCRIPTS} sh
8ddef552
DM
317em_st2000.c: $(srcdir)/emulparams/st2000.sh \
318 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
a6152e39 319 ${GENSCRIPTS} st2000
8ddef552
DM
320em_z8ksim.c: $(srcdir)/emulparams/z8ksim.sh \
321 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8ksim.sc ${GEN_DEPENDS}
a6152e39 322 ${GENSCRIPTS} z8ksim
8ddef552
DM
323em_vanilla.c: $(srcdir)/emulparams/vanilla.sh \
324 $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
a6152e39 325 ${GENSCRIPTS} vanilla
8ddef552
DM
326em_lnk960.c: $(srcdir)/emulparams/lnk960.sh \
327 $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
a6152e39 328 ${GENSCRIPTS} lnk960
8ddef552
DM
329em_gld960.c: $(srcdir)/emulparams/gld960.sh \
330 $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
a6152e39 331 ${GENSCRIPTS} gld960
8ddef552
DM
332em_m68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
333 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
a6152e39 334 ${GENSCRIPTS} m68kcoff
8a432746
ILT
335em_delta68.c: $(srcdir)/emulparams/delta68.sh \
336 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
337 ${GENSCRIPTS} delta68
d17eb3db
ILT
338em_m68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
339 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
340 ${GENSCRIPTS} m68klynx
8ddef552
DM
341em_i386coff.c: $(srcdir)/emulparams/i386coff.sh \
342 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
a6152e39 343 ${GENSCRIPTS} i386coff
d17eb3db
ILT
344em_i386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
345 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
346 ${GENSCRIPTS} i386lynx
7b95fe96
SS
347em_sparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
348 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
349 ${GENSCRIPTS} sparclynx
8ddef552
DM
350em_mipslit.c: $(srcdir)/emulparams/mipslit.sh \
351 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
a6152e39 352 ${GENSCRIPTS} mipslit
8ddef552
DM
353em_i386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
354 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 355 ${GENSCRIPTS} i386bsd
8ddef552
DM
356em_mipsbig.c: $(srcdir)/emulparams/mipsbig.sh \
357 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
a6152e39 358 ${GENSCRIPTS} mipsbig
8ddef552
DM
359em_mipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
360 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 361 ${GENSCRIPTS} mipsbsd
8ddef552
DM
362em_mipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
363 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
a6152e39 364 ${GENSCRIPTS} mipsidt
8ddef552
DM
365em_mipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
366 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
a6152e39 367 ${GENSCRIPTS} mipsidtl
d17eb3db
ILT
368em_elf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
369 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
370 ${GENSCRIPTS} elf_i386
371em_elf32mipb.c: $(srcdir)/emulparams/elf32mipb.sh \
372 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
373 ${GENSCRIPTS} elf32mipb
374em_alpha.c: $(srcdir)/emulparams/alpha.sh \
375 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
376 ${GENSCRIPTS} alpha
4a6afc88
ILT
377em_coff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
378 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
379 ${GENSCRIPTS} coff_sparc
c361ce46
ILT
380em_elf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
381 $(srcdir)/emultempl/ppc.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
382 ${GENSCRIPTS} elf32ppc
eb02fd64 383
e77463a1 384$(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
74e6b793 385 $(CC) $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(EXTRALIBS)
d17eb3db
ILT
386
387# The generated emulation files mostly have the same dependencies.
4a6afc88 388$(EMULATION_OFILES): ../bfd/bfd.h ../bfd/sysdep.h $(INCDIR)/bfdlink.h \
c361ce46
ILT
389 ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h config.h \
390 ldctor.h ldexp.h ldlang.h
4a6afc88 391
3a9149a7
JW
392# These targets are for the dejagnu testsuites. The file site.exp
393# contains global variables that all the testsuites will use.
394# There is a current debate as to how and where to generate test
395# outputs. Rob feels each test should be built in $(objdir) with
396# a unique name. Cassidy feels that we should create a directory
397# called $(objdir)/tmpdir and do the work there. This way, there
398# is no potential conflict with existing objects, ie: as there
399# was in the past with loop.o and flow.o, and, there is no chance
400# of filling /tmp, which would cause other problems. Lastly, this
401# allow retention of the testcase name making debugging easier.
402#
403testdir = $(objdir)/tmpdir
404
d301e438 405site.exp: ./config.status Makefile
3a9149a7 406 @if [ -d $(testdir) ]; then true; else mkdir $(testdir); fi
d301e438 407 @echo "Making a new config file..."
3a9149a7 408 @rm -f ./tmp?
d301e438 409 @touch site.exp
3a9149a7 410 @mv site.exp site.bak
d301e438
JW
411 @echo "## variables are automatically generated by make ##" > ./tmp0
412 @echo "# Do not edit here. If you wish to override these" >> ./tmp0
413 @echo "# values, add them to the last section" >> ./tmp0
3a9149a7
JW
414 @echo "# HOST AND TARGET INFO" >> ./tmp0
415 @echo "set host_os $(host_os)" >> ./tmp0
416 @echo "set host_alias $(host_alias)" >> ./tmp0
417 @echo "set host_cpu $(host_cpu)" >> ./tmp0
418 @echo "set host_vendor $(host_vendor)" >> ./tmp0
419 @echo "set target_os $(target_os)" >> ./tmp0
420 @echo "set target_alias $(target_alias)" >> ./tmp0
421 @echo "set target_cpu $(target_cpu)" >> ./tmp0
422 @echo "set target_vendor $(target_vendor)" >> ./tmp0
423 @echo "set host_triplet $(host_canonical)" >> ./tmp0
424 @echo "set target_triplet $(target_canonical)" >> ./tmp0
425 @echo "# DIRECTORY INFO" >> ./tmp0
d301e438 426 @echo "set objdir `pwd`" >> ./tmp0
3a9149a7 427 @echo "set tmpdir `cd $(testdir); pwd`" >> ./tmp0
d301e438
JW
428 @echo "" >> ./tmp0
429 @echo "# LD DEPENDANCIES" >> ./tmp0
3a9149a7
JW
430 @echo "set OFILES \"$(OFILES)\"" >> ./tmp0
431 @echo "set BFDLIB \"$(BFDLIB)\"" >> ./tmp0
432 @echo "set LIBIBERTY \"$(LIBIBERTY)\"" >> ./tmp0
433 @echo "set HOSTING_EMU \"$(HOSTING_EMU)\"" >> ./tmp0
434 @echo "set HOSTING_CRT0 \"$(HOSTING_CRT0)\"" >> ./tmp0
435 @echo "set HOSTING_LIBS \"$(HOSTING_LIBS)\"" >> ./tmp0
d301e438
JW
436 @echo "" >> ./tmp0
437 @echo "## Variables generated by configure. Do Not Edit ##" >> ./tmp0
438 @cat ./tmp0 > site.exp
439 @cat site.bak | sed \
440 -e '1,/^## Variables generated by.*##/ d' >> site.exp
441 -@rm -f ./tmp?
8ddef552 442
959eba20 443check: ld.new site.exp
f3c6455f
KR
444 @if [ $(host_canonical) = $(target_canonical) ]; then \
445 $(RUNTEST) --tool ld \
446 --srcdir $(srcdir)/testsuite $(RUNTESTFLAGS) \
447 CC="$(RUNTEST_CC)" CFLAGS="$(RUNTEST_CFLAGS)" \
448 CXX="$(RUNTEST_CXX)" CXXFLAGS="$(RUNTEST_CXXFLAGS)" ;\
449 if [ $$? != 0 ]; then exit 1; else true; fi ;\
450 else \
451 echo No cross-linker tests yet. ;\
452 fi
d301e438 453
8ddef552 454installcheck:
4a6afc88 455.PHONY: check installcheck
e7921bd4 456
7e5c1057 457# Rules for testing by relinking ld itself.
eb02fd64 458
7e5c1057 459ld-partial.o: ld.new
a04f1d00 460 ./ld.new $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
7e5c1057 461ld1: ld-partial.o
a04f1d00 462 ./ld.new $(HOSTING_EMU) -o ld1 $(HOSTING_CRT0) ld-partial.o $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 463
7e5c1057 464ld1-full: ld.new
a04f1d00 465 ./ld.new $(HOSTING_EMU) -o ld1-full $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 466
d20fb445 467ld2: ld1
a04f1d00 468 ./ld1 $(HOSTING_EMU) -o ld2 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
60048a2c 469
eb02fd64 470ld3: ld2
a04f1d00 471 ./ld2 $(HOSTING_EMU) -o ld3 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 472
d20fb445
SC
473bootstrap: ld3
474 cmp ld2 ld3
475
4a6afc88
ILT
476.PHONY: bootstrap
477
8ddef552
DM
478# A test program for C++ constructors and destructors.
479
ef868186 480cdtest: cdtest-main.o cdtest-func.o cdtest-foo.o ld.new
a04f1d00 481 ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
917bffa7
PB
482 cdtest-main.o cdtest-func.o cdtest-foo.o $(HOSTING_LIBS)
483
484check-cdtest: cdtest $(srcdir)/cdtest.exp
485 ./cdtest >cdtest.out
486 diff $(srcdir)/cdtest.exp cdtest.out
4a6afc88
ILT
487
488.PHONY: check-cdtest
489
d301e438 490# END OF CHECK TARGETS
917bffa7 491
8073190b 492# DOCUMENTATION TARGETS
2412a768
RP
493# Manual configuration file; not usually attached to normal configuration,
494# because almost all configs use "gen" version of manual.
495# Set DOCVER above to change.
496configdoc.texi: ${DOCVER}-doc.texi
034351e3
PB
497 ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi || \
498 ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi || \
499 cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
2412a768 500
8073190b 501# TeX output
2412a768 502dvi: ld.dvi
d4e5e3c3 503ld.dvi: $(srcdir)/ld.texinfo configdoc.texi $(BFDDIR)/doc/bfdsumm.texi
4a6afc88 504 TEXINPUTS=$(BFDDIR)/doc:$$TEXINPUTS $(TEXI2DVI) $(srcdir)/ld.texinfo
2412a768 505
4b91c519 506ldint.dvi: $(srcdir)/ldint.texinfo
2412a768 507 $(TEXI2DVI) $(srcdir)/ldint.texinfo
8d317d2a 508
8073190b 509# info file for online browsing
4ecfad79 510ld.info: $(srcdir)/ld.texinfo configdoc.texi $(BFDDIR)/doc/bfdsumm.texi
959eba20 511 $(MAKEINFO) -I$(BFDDIR)/doc -o ld.info $(srcdir)/ld.texinfo
eb02fd64 512
4b91c519
PB
513ldint.info: $(srcdir)/ldint.texinfo
514 $(MAKEINFO) -o ldint.info $(srcdir)/ldint.texinfo
515
4a6afc88
ILT
516.PHONY: dvi
517
954ac2ea 518#separate targets for "ms", "me", and "mm" forms of roff doc
e06ba18d
PB
519# Try to use a recent texi2roff. v2 was put on prep in jan91.
520# If you want an index, see texi2roff doc for postprocessing
521# and add -i to texi2roff invocations below.
522# Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
523# correspondint -e lines when later texi2roff's are current)
524# + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
525# + @c's deleted explicitly because texi2roff sees texinfo commands in them
526# + @ (that's at-BLANK) not recognized by texi2roff, turned into blank
527# + @alphaenumerate is ridiculously new, turned into @enumerate
528
9c7810d6 529ld.ms: $(srcdir)/ld.texinfo
8073190b
RP
530 sed -e '/\\input texinfo/d' \
531 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
532 -e '/^@ifinfo/,/^@end ifinfo/d' \
533 -e '/^@c/d' \
534 -e 's/{.*,,/{/' \
535 -e 's/@ / /g' \
536 -e 's/^@alphaenumerate/@enumerate/g' \
537 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 538 $(srcdir)/ld.texinfo | \
e06ba18d
PB
539 $(TEXI2ROFF) $(TEXI2OPT) -ms | \
540 sed -e 's/---/\\(em/g' \
541 >>ld.ms
8073190b
RP
542
543# index for roff output
544ld-index.ms: ld.ms
545 $(ROFF) -ms ld.ms 2>&1 1>/dev/null | \
546 sed -e '/: warning:/d' | \
547 texi2index >ld-index.ms
548
954ac2ea 549# roff output (-mm)
9c7810d6 550ld.mm: $(srcdir)/ld.texinfo
954ac2ea
RP
551 sed -e '/\\input texinfo/d' \
552 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
553 -e '/^@ifinfo/,/^@end ifinfo/d' \
554 -e '/^@c/d' \
9c7810d6
RP
555 -e 's/{.*,,/{/' \
556 -e '/@noindent/d' \
e06ba18d
PB
557 -e 's/@ / /g' \
558 -e 's/^@alphaenumerate/@enumerate/g' \
559 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 560 $(srcdir)/ld.texinfo | \
e06ba18d 561 $(TEXI2ROFF) $(TEXI2OPT) -mm | \
9c7810d6
RP
562 sed -e 's/---/\\(em/g' \
563 >ld.mm
954ac2ea
RP
564
565# index for roff output
566ld-index.mm: ld.mm
567 $(ROFF) -mm ld.mm 2>&1 1>/dev/null | \
568 sed -e '/: warning:/d' | \
569 texi2index >ld-index.mm
570
571# roff output (-me)
9c7810d6 572ld.me: $(srcdir)/ld.texinfo
954ac2ea
RP
573 sed -e '/\\input texinfo/d' \
574 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
575 -e '/^@ifinfo/,/^@end ifinfo/d' \
576 -e '/^@c/d' \
577 -e 's/{.*,,/{/' \
578 -e 's/@ / /g' \
579 -e 's/^@alphaenumerate/@enumerate/g' \
580 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 581 $(srcdir)/ld.texinfo | \
e06ba18d
PB
582 $(TEXI2ROFF) $(TEXI2OPT) -me | \
583 sed -e 's/---/\\(em/g' \
584 >>ld.me
954ac2ea
RP
585
586# index for roff output
587ld-index.me: ld.me
588 $(ROFF) -me ld.me 2>&1 1>/dev/null | \
589 sed -e '/: warning:/d' | \
590 texi2index >ld-index.me
591
e7921bd4 592stage1: force
e06ba18d 593 -mkdir stage1
ab57b174 594 -mv -f $(STAGESTUFF) $(LD_PROG) stage1
e06ba18d 595 -(cd stage1 ; ln -s $(LD_PROG) ld)
f78e2569 596
e7921bd4 597stage2: force
e06ba18d 598 -mkdir stage2
ab57b174 599 -mv -f $(STAGESTUFF) $(LD_PROG) stage2
e06ba18d 600 -(cd stage2 ; ln -s $(LD_PROG) ld)
f78e2569 601
e7921bd4 602stage3: force
e06ba18d 603 -mkdir stage3
ab57b174 604 -mv -f $(STAGESTUFF) $(LD_PROG) stage3
e06ba18d 605 -(cd stage3 ; ln -s $(LD_PROG) ld)
eb02fd64 606
74e6b793 607against = stage2
e46cdcdd
RP
608
609comparison: force
ab57b174 610 for i in $(STAGESTUFF) $(LD_PROG) ; do cmp $$i $(against)/$$i ; done
e46cdcdd 611
e7921bd4 612de-stage1: force
e06ba18d
PB
613 -(cd stage1 ; mv -f * ..)
614 -rm ld
615 -rmdir stage1
e7921bd4
RP
616
617de-stage2: force
e06ba18d
PB
618 -(cd stage2 ; mv -f * ..)
619 -rm ld
620 -rmdir stage2
e7921bd4
RP
621
622de-stage3: force
e06ba18d
PB
623 -(cd stage3 ; mv -f * ..)
624 -rm ld
625 -rmdir stage3
e7921bd4 626
4a6afc88
ILT
627.PHONY: stage1 stage2 stage3 comparison de-stage1 de-stage2 de-stage3
628
ab57b174 629# Stuff that should be included in a distribution:
74e6b793 630LDDISTSTUFF = ldgram.c ldgram.h ldlex.c
ab57b174
ILT
631diststuff: $(LDDISTSTUFF)
632
633mostlyclean:
634 -rm -f $(STAGESTUFF) ld.?? ld.??? ldlex.[qp]
917bffa7 635 -rm -f ld ld1 ld2 ld3 *.o y.output cdtest cdtest.out
ab57b174
ILT
636clean: mostlyclean
637 -rm -f $(LD_PROG)
3c1af24d
KR
638distclean:
639 -rm -fr Makefile config.status TAGS sysdep.h ldscripts site.exp \
640 $(STAGESTUFF) ld.?? ld.??s ld.toc ld.aux ld.log ldlex.[qp] \
641 $(LD_PROG) ld ld1 ld2 ld3 *.o y.output cdtest cdtest.out
642realclean: clean distclean
ab57b174 643 -rm -f $(LDDISTSTUFF)
eb02fd64 644
4a6afc88
ILT
645.PHONY: diststuff mostlyclean clean distclean realclean
646
647lintlog:$(LINTSOURCES) Makefile
2ee11735 648 $(LINT) -abhxzn $(LINTFLAGS) $(LINTSOURCES) \
eb02fd64
RP
649| grep -v "pointer casts may be troublesome" \
650| grep -v "possible pointer alignment problem" \
651| grep -v "ignore" \
652| grep -v "conversion from long may lose accuracy" \
653| grep -v "warning: constant argument to NOT" \
654| grep -v "enumeration type clash, operator CAST" \
655| grep -v "warning: constant in conditional context"\
656| grep -v "archive\.c"
657
658
cbb5c2d1
DM
659TAGS:
660 etags -t $(srcdir)/*.[chly] *.[chly]
eb02fd64 661
eb02fd64 662
91b3a2b6 663install:
8ddef552
DM
664 $(INSTALL_XFORM) ld.new $(bindir)/ld
665 $(INSTALL_XFORM1) $(srcdir)/ld.1 $(man1dir)/ld.1
173a0c3d
DM
666 for f in ldscripts/*; do \
667 $(INSTALL_DATA) $$f $(scriptdir)/$$f ; \
d360d135 668 done
9cd039e7 669 -n=`t='$(program_transform_name)'; echo ld | sed -e "" $$t`; \
56409445
ILT
670 rm -f $(tooldir)/bin/ld; \
671 ln $(bindir)/$$n $(tooldir)/bin/ld \
e357065c 672 || $(INSTALL_PROGRAM) ld.new $(tooldir)/bin/ld
e06ba18d 673
db0a7149
KR
674install-info: ld.info
675 for i in $<* ; do \
e06ba18d 676 $(INSTALL_DATA) $$i $(infodir)/$$i ; \
afe3aa73
RP
677 done
678
12fa72d4
SC
679clean-info:
680 -rm -rf *.info*
681
4a6afc88 682.PHONY: install install-info clean-info
eb02fd64 683
4a6afc88
ILT
684# Targets to rebuild dependencies in this Makefile.
685# Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
686.dep: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES)
687 rm -f .dep1
688 $(MAKE) DEP=$(DEP) .dep1
689 sed -f dep.sed <.dep1 >.dep
eb02fd64 690
4a6afc88
ILT
691# This rule really wants a mkdep that runs "gcc -MM".
692.dep1: $(CFILES) $(GENERATED_CFILES)
693 rm -f .dep2
694 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
695 $(DEP) -f .dep2 $(ALL_CFLAGS) $?
696 $(srcdir)/../move-if-change .dep2 .dep1
eb02fd64 697
4a6afc88
ILT
698dep.sed: dep-in.sed config.status
699 sed <$(srcdir)/dep-in.sed >dep.sed \
700 -e 's!@INCDIR@!$(INCDIR)!' \
701 -e 's!@srcdir@!$(srcdir)!'
eb02fd64 702
4a6afc88
ILT
703dep: .dep
704 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
705 cat .dep >> tmp-Makefile
706 $(srcdir)/../move-if-change tmp-Makefile Makefile
239d28f3 707
4a6afc88
ILT
708dep-in: .dep
709 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
710 cat .dep >> tmp-Makefile.in
711 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
712
713.PHONY: dep dep-in
239d28f3 714
eb02fd64
RP
715# Dummy target to force execution of dependent targets.
716#
e7921bd4 717force:
eb02fd64 718
4a6afc88 719.PHONY: force
eb02fd64 720
f1eb48b6 721Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
a26878d1 722 $(SHELL) ./config.status
eb02fd64 723
4a6afc88
ILT
724# What appears below is generated by a hacked mkdep using gcc -MM.
725
726# DO NOT DELETE THIS LINE -- mkdep uses it.
727# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
728
729ldctor.o : ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
730 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
731 $(INCDIR)/bfdlink.h ld.h ldexp.h ldlang.h ldmisc.h \
732 ldgram.h ldctor.h
733ldemul.o : ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
734 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
735 config.h ld.h ldemul.h ldmisc.h ldfile.h ldmain.h ldemul-list.h
736ldexp.o : ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
737 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
738 $(INCDIR)/bfdlink.h ld.h ldmain.h ldmisc.h ldexp.h \
739 ldgram.h ldlang.h
740ldfile.o : ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
741 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
d4e5e3c3 742 ld.h ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldgram.h ldlex.h
4a6afc88
ILT
743ldlang.o : ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
744 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
745 $(INCDIR)/bfdlink.h ld.h ldmain.h ldgram.h ldexp.h \
746 ldlang.h ldemul.h ldlex.h ldmisc.h ldctor.h ldfile.h
747ldmain.o : ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
748 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
749 $(INCDIR)/bfdlink.h config.h ld.h ldmain.h ldmisc.h \
750 ldwrite.h ldgram.h ldexp.h ldlang.h ldemul.h ldlex.h \
751 ldfile.h ldctor.h
752ldmisc.o : ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
753 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
d4e5e3c3 754 ld.h ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldmain.h ldfile.h
4a6afc88
ILT
755ldver.o : ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
756 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
757 ld.h ldver.h ldemul.h ldmain.h
758ldwrite.o : ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
759 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
760 $(INCDIR)/bfdlink.h ld.h ldexp.h ldlang.h ldwrite.h \
761 ldmisc.h ldgram.h ldmain.h
762lexsup.o : lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
763 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
d4e5e3c3
DM
764 $(INCDIR)/getopt.h $(INCDIR)/bfdlink.h config.h \
765 ldgram.h ldlex.h ld.h ldexp.h ldgram.h ldmisc.h ldmain.h ldfile.h
4a6afc88
ILT
766mri.o : mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/obstack.h \
767 ../bfd/sysdep.h $(INCDIR)/fopen-same.h ld.h ldexp.h \
768 ldlang.h ldmisc.h mri.h ldgram.h
769ldgram.o : ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
770 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
771 $(INCDIR)/bfdlink.h ld.h ldexp.h ldver.h ldlang.h ldemul.h \
772 ldfile.h ldmisc.h ldmain.h mri.h ldlex.h
773ldlex.o : ldlex.c ../bfd/bfd.h $(INCDIR)/obstack.h \
fb55f9b8 774 ld.h ldgram.h ldmisc.h ldexp.h ldlang.h ldfile.h ldlex.h ldmain.h
239d28f3
SC
775
776# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.233125 seconds and 4 git commands to generate.