Correct handling of .sa file.
[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 119# Setup the testing framework, if you have one
099c286e
BC
120EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; then \
121 echo $${rootme}/../../expect/expect ; \
122 else echo expect ; fi`
123
124RUNTEST = `if [ -f $${srcdir}/../../dejagnu/runtest ] ; then \
125 echo $${srcdir}/../../dejagnu/runtest ; \
126 else echo runtest ; fi`
03372cf4 127RUNTESTFLAGS =
3a9149a7
JW
128RUNTEST_CC = `if [ -f ../gcc/xgcc ] ; then \
129 echo ../gcc/xgcc -B../gcc/; \
130 else echo gcc; \
131 fi`
132RUNTEST_CFLAGS = $(CFLAGS)
133RUNTEST_CXX = `if [ -f ../gcc/xgcc ] ; then \
134 echo ../gcc/xgcc -B../gcc/; \
135 else echo gcc; \
136 fi`
108f145b 137# FIX_ME: using ../gcc/xgcc breaks the cdtest.
d17eb3db 138RUNTEST_CXX = $(CXX)
3a9149a7 139RUNTEST_CXXFLAGS = $(CXXFLAGS)
c97b9003 140
4a6afc88
ILT
141# go directly to ld.new in case this ld isn't capable of
142# linking native object on this host. It can be renamed on
143# install.
144LD_PROG = ld.new
145
146all: $(LD_PROG)
147.PHONY: all
58bf66f9 148
7e5c1057 149### Host, target, and site specific Makefile fragments come in here.
63545898 150####
2ee11735 151
74e6b793 152LINTFLAGS = $(INCLUDES) $(EXTRA_DEF)
2ee11735 153
565c93e9
DM
154# The .cc suffix is used by `make check'.
155
156.SUFFIXES: .y $(SUFFIXES) .cc
157
173a0c3d
DM
158# Suppress smart makes who think they know how to automake Yacc files
159.y.c:
160
4a6afc88 161# This rule is used for the check-cdtest target.
565c93e9 162.cc.o:
3a9149a7 163 $(CXX) -c -I$(srcdir) $(CXXFLAGS) $(CFLAGS) $<
565c93e9 164
74e6b793 165ALL_CFLAGS = $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(CFLAGS)
77b19d3d 166.c.o:
4a6afc88 167 $(CC) -c $(ALL_CFLAGS) $<
f78e2569 168
eb02fd64 169# for self hosting
959eba20
JO
170BFDLIB = ../bfd/libbfd.a
171LIBIBERTY = ../libiberty/libiberty.a
eb02fd64 172
82ebe9a2
KR
173ALL_EMULATIONS = elnk960.o esun3.o ei386aout.o ego32.o evsta.o \
174 em88kbcs.o ea29k.o enews.o ehp300bsd.o ehp3hpux.o \
175 eh8300.o eh8300h.o eebmon29k.o esun4.o egld960.o \
176 em68kcoff.o est2000.o esa29200.o ei386mach.o \
177 evanilla.o ei386coff.o ez8ksim.o emipslit.o ei386bsd.o \
178 emipsbig.o emipsbsd.o emipsidt.o evax.o eh8500.o \
179 eh8500b.o eh8500s.o eh8500c.o eh8500m.o \
180 ehppaelf.o emipsidtl.o esh.o eelf_i386.o ealpha.o \
181 ei386lynx.o em68klynx.o esparclynx.o ecoff_sparc.o \
182 eelf32ppc.o ei386go32.o em68kaout.o \
58bf66f9 183 $(OTHER_EMULATIONS)
7e5c1057 184
959eba20 185# This is now set by configure.in.
74e6b793 186#EMULATION_OFILES = ${ALL_EMULATIONS}
7e5c1057 187
74e6b793 188CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
4a6afc88
ILT
189 ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
190 mri.c
eb02fd64 191
74e6b793
SS
192
193HFILES = config.h ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
4a6afc88
ILT
194 ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
195 ldwrite.h mri.h
eb02fd64 196
74e6b793
SS
197GENERATED_CFILES = ldgram.c ldlex.c
198GENERATED_HFILES = ldgram.h ldemul-list.h
eb02fd64 199
74e6b793 200OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
4a6afc88
ILT
201 ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \
202 ldfile.o ${EMULATION_OFILES}
eb02fd64 203
82ebe9a2 204LINTSOURCES = $(CFILES) $(GENERATED_CFILES) e*.c
eb02fd64 205
82ebe9a2 206STAGESTUFF = *.o ldscripts/* e*.c
e06ba18d
PB
207
208info: ld.info
4a6afc88 209.PHONY: info
2ee11735 210
173a0c3d 211ldgram.h ldgram.c: ldgram.y
5ff21fa5 212 $(BISON) $(BISONFLAGS) -d $(srcdir)/ldgram.y
31e54f5d
RP
213 mv -f y.tab.c ldgram.c
214 mv -f y.tab.h ldgram.h
cc964c6f 215
a6152e39 216# EMUL is the name of a file in the emulparams subdir, without the .sh.
4a6afc88
ILT
217ldmain.o: ldmain.c config.status
218 if [ -z "$(EMUL)" ] ; then \
219 echo "you must set a default emulation" 1>&2 ; \
220 exit 1 ; \
221 else \
222 $(CC) -c $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' $(CFLAGS) $< ; \
223 fi
224
82ebe9a2 225ldemul-list.h: Makefile
7e5c1057
PB
226 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
227 for f in `echo " " ${EMULATION_OFILES} "" \
82ebe9a2 228 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
7e5c1057
PB
229 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
230 done;\
231 echo "";\
232 echo "#define EMULATION_LIST \\";\
233 for f in `echo " " ${EMULATION_OFILES} "" \
82ebe9a2 234 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
7e5c1057
PB
235 echo " &ld_$${f}_emulation, \\"; \
236 done;\
4a6afc88
ILT
237 echo " 0") >ldemul-tmp.h
238 mv ldemul-tmp.h ldemul-list.h
7e5c1057 239
4a6afc88 240ldlex.c: ldlex.l
5ff21fa5 241 $(LEX) -I -Cem $(srcdir)/ldlex.l
4a6afc88
ILT
242 -sed -e '/^int.*free();/d' \
243 -e '/^char.*malloc();/d' \
0b2f8d2e 244 -e 's/malloc/xmalloc/g' \
4a6afc88
ILT
245 < lex.yy.c > ldlex.c.new
246 -rm lex.yy.c
247 mv ldlex.c.new ./ldlex.c
19b03b7a 248
82ebe9a2 249# These all start with e so 'make clean' can find them.
c61b4184 250
74e6b793 251GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} ${host_alias} ${target_alias} ${EMUL} "$(NATIVE_LIB_DIRS)"
c06e55d9 252GEN_DEPENDS = $(srcdir)/genscripts.sh $(srcdir)/emultempl/stringify.sed
7e5c1057 253
82ebe9a2 254esun4.c: $(srcdir)/emulparams/sun4.sh \
ed601bea 255 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 256 ${GENSCRIPTS} sun4
82ebe9a2 257esun3.c: $(srcdir)/emulparams/sun3.sh \
8ddef552 258 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 259 ${GENSCRIPTS} sun3
82ebe9a2 260evsta.c: $(srcdir)/emulparams/vsta.sh \
8a432746
ILT
261 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
262 ${GENSCRIPTS} vsta
82ebe9a2 263ego32.c: $(srcdir)/emulparams/go32.sh \
8ddef552 264 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 265 ${GENSCRIPTS} go32
82ebe9a2 266enews.c: $(srcdir)/emulparams/news.sh \
8ddef552 267 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 268 ${GENSCRIPTS} news
82ebe9a2 269evax.c: $(srcdir)/emulparams/vax.sh \
8ddef552 270 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 271 ${GENSCRIPTS} vax
82ebe9a2 272ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
8ddef552 273 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 274 ${GENSCRIPTS} hp300bsd
82ebe9a2 275ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
8ddef552 276 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 277 ${GENSCRIPTS} hp3hpux
82ebe9a2 278ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
db0a7149
KR
279 $(srcdir)/emultempl/hppaelf.em $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
280 ${GENSCRIPTS} hppaelf
82ebe9a2 281ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
8ddef552 282 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 283 ${GENSCRIPTS} i386aout
82ebe9a2 284ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
6c86b9ff
SC
285 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
286 ${GENSCRIPTS} i386go32
82ebe9a2 287ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
3c1af24d
KR
288 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
289 ${GENSCRIPTS} i386mach
82ebe9a2 290eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
8ddef552 291 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
a6152e39 292 ${GENSCRIPTS} ebmon29k
82ebe9a2 293esa29200.c: $(srcdir)/emulparams/sa29200.sh \
8ddef552 294 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
a6152e39 295 ${GENSCRIPTS} sa29200
82ebe9a2 296ea29k.c: $(srcdir)/emulparams/a29k.sh \
8ddef552 297 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
a6152e39 298 ${GENSCRIPTS} a29k
82ebe9a2 299em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
d301e438 300 $(srcdir)/emultempl/m88kbcs.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
a6152e39 301 ${GENSCRIPTS} m88kbcs
82ebe9a2 302eh8300.c: $(srcdir)/emulparams/h8300.sh \
8ddef552 303 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
a6152e39 304 ${GENSCRIPTS} h8300
82ebe9a2 305eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
4ab3a31f 306 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
a6152e39 307 ${GENSCRIPTS} h8300h
82ebe9a2 308eh8500.c: $(srcdir)/emulparams/h8500.sh \
8ddef552 309 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
a6152e39 310 ${GENSCRIPTS} h8500
82ebe9a2 311eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
9e0f78c8
SC
312 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
313 ${GENSCRIPTS} h8500b
82ebe9a2 314eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
9e0f78c8
SC
315 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
316 ${GENSCRIPTS} h8500c
82ebe9a2 317eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
9e0f78c8
SC
318 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
319 ${GENSCRIPTS} h8500m
82ebe9a2 320eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
9e0f78c8
SC
321 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
322 ${GENSCRIPTS} h8500s
82ebe9a2 323esh.c: $(srcdir)/emulparams/sh.sh \
8ddef552 324 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
a6152e39 325 ${GENSCRIPTS} sh
82ebe9a2 326est2000.c: $(srcdir)/emulparams/st2000.sh \
8ddef552 327 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
a6152e39 328 ${GENSCRIPTS} st2000
82ebe9a2 329ez8ksim.c: $(srcdir)/emulparams/z8ksim.sh \
8ddef552 330 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8ksim.sc ${GEN_DEPENDS}
a6152e39 331 ${GENSCRIPTS} z8ksim
82ebe9a2 332evanilla.c: $(srcdir)/emulparams/vanilla.sh \
8ddef552 333 $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
a6152e39 334 ${GENSCRIPTS} vanilla
82ebe9a2 335elnk960.c: $(srcdir)/emulparams/lnk960.sh \
8ddef552 336 $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
a6152e39 337 ${GENSCRIPTS} lnk960
82ebe9a2 338egld960.c: $(srcdir)/emulparams/gld960.sh \
8ddef552 339 $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
a6152e39 340 ${GENSCRIPTS} gld960
82ebe9a2
KR
341egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
342 $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
343 ${GENSCRIPTS} gld960coff
344em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
8ddef552 345 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
a6152e39 346 ${GENSCRIPTS} m68kcoff
82ebe9a2 347em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
028f8872 348 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS}
d17eb3db 349 ${GENSCRIPTS} m68klynx
82ebe9a2 350ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
8ddef552 351 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
a6152e39 352 ${GENSCRIPTS} i386coff
82ebe9a2 353ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
028f8872 354 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.sc ${GEN_DEPENDS}
d17eb3db 355 ${GENSCRIPTS} i386lynx
82ebe9a2 356emipslit.c: $(srcdir)/emulparams/mipslit.sh \
8ddef552 357 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
a6152e39 358 ${GENSCRIPTS} mipslit
82ebe9a2 359ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
8ddef552 360 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
a6152e39 361 ${GENSCRIPTS} i386bsd
82ebe9a2 362emipsbig.c: $(srcdir)/emulparams/mipsbig.sh \
8ddef552 363 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
a6152e39 364 ${GENSCRIPTS} mipsbig
82ebe9a2
KR
365emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
366 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
a6152e39 367 ${GENSCRIPTS} mipsbsd
82ebe9a2 368emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
8ddef552 369 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
a6152e39 370 ${GENSCRIPTS} mipsidt
82ebe9a2 371emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
8ddef552 372 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
a6152e39 373 ${GENSCRIPTS} mipsidtl
82ebe9a2 374eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
2a9fa50c 375 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
d17eb3db 376 ${GENSCRIPTS} elf_i386
82ebe9a2 377eelf32mipb.c: $(srcdir)/emulparams/elf32mipb.sh \
d17eb3db
ILT
378 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
379 ${GENSCRIPTS} elf32mipb
82ebe9a2 380ealpha.c: $(srcdir)/emulparams/alpha.sh \
d17eb3db
ILT
381 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
382 ${GENSCRIPTS} alpha
82ebe9a2 383ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
4a6afc88
ILT
384 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
385 ${GENSCRIPTS} coff_sparc
82ebe9a2 386esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
028f8872
SS
387 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS}
388 ${GENSCRIPTS} sparclynx
82ebe9a2 389eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
099c286e 390 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
c361ce46 391 ${GENSCRIPTS} elf32ppc
82ebe9a2
KR
392em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
393 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
394 ${GENSCRIPTS} m68kaout
eb02fd64 395
e77463a1 396$(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
74e6b793 397 $(CC) $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(EXTRALIBS)
d17eb3db
ILT
398
399# The generated emulation files mostly have the same dependencies.
4a6afc88 400$(EMULATION_OFILES): ../bfd/bfd.h ../bfd/sysdep.h $(INCDIR)/bfdlink.h \
c361ce46
ILT
401 ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h config.h \
402 ldctor.h ldexp.h ldlang.h
4a6afc88 403
3a9149a7
JW
404# These targets are for the dejagnu testsuites. The file site.exp
405# contains global variables that all the testsuites will use.
406# There is a current debate as to how and where to generate test
407# outputs. Rob feels each test should be built in $(objdir) with
408# a unique name. Cassidy feels that we should create a directory
409# called $(objdir)/tmpdir and do the work there. This way, there
410# is no potential conflict with existing objects, ie: as there
411# was in the past with loop.o and flow.o, and, there is no chance
412# of filling /tmp, which would cause other problems. Lastly, this
413# allow retention of the testcase name making debugging easier.
414#
415testdir = $(objdir)/tmpdir
416
d301e438 417site.exp: ./config.status Makefile
3a9149a7 418 @if [ -d $(testdir) ]; then true; else mkdir $(testdir); fi
d301e438 419 @echo "Making a new config file..."
3a9149a7 420 @rm -f ./tmp?
d301e438 421 @touch site.exp
3a9149a7 422 @mv site.exp site.bak
d301e438
JW
423 @echo "## variables are automatically generated by make ##" > ./tmp0
424 @echo "# Do not edit here. If you wish to override these" >> ./tmp0
425 @echo "# values, add them to the last section" >> ./tmp0
3a9149a7
JW
426 @echo "# HOST AND TARGET INFO" >> ./tmp0
427 @echo "set host_os $(host_os)" >> ./tmp0
428 @echo "set host_alias $(host_alias)" >> ./tmp0
429 @echo "set host_cpu $(host_cpu)" >> ./tmp0
430 @echo "set host_vendor $(host_vendor)" >> ./tmp0
431 @echo "set target_os $(target_os)" >> ./tmp0
432 @echo "set target_alias $(target_alias)" >> ./tmp0
433 @echo "set target_cpu $(target_cpu)" >> ./tmp0
434 @echo "set target_vendor $(target_vendor)" >> ./tmp0
435 @echo "set host_triplet $(host_canonical)" >> ./tmp0
436 @echo "set target_triplet $(target_canonical)" >> ./tmp0
437 @echo "# DIRECTORY INFO" >> ./tmp0
d301e438 438 @echo "set objdir `pwd`" >> ./tmp0
3a9149a7 439 @echo "set tmpdir `cd $(testdir); pwd`" >> ./tmp0
d301e438
JW
440 @echo "" >> ./tmp0
441 @echo "# LD DEPENDANCIES" >> ./tmp0
3a9149a7
JW
442 @echo "set OFILES \"$(OFILES)\"" >> ./tmp0
443 @echo "set BFDLIB \"$(BFDLIB)\"" >> ./tmp0
444 @echo "set LIBIBERTY \"$(LIBIBERTY)\"" >> ./tmp0
445 @echo "set HOSTING_EMU \"$(HOSTING_EMU)\"" >> ./tmp0
446 @echo "set HOSTING_CRT0 \"$(HOSTING_CRT0)\"" >> ./tmp0
447 @echo "set HOSTING_LIBS \"$(HOSTING_LIBS)\"" >> ./tmp0
d301e438
JW
448 @echo "" >> ./tmp0
449 @echo "## Variables generated by configure. Do Not Edit ##" >> ./tmp0
450 @cat ./tmp0 > site.exp
451 @cat site.bak | sed \
452 -e '1,/^## Variables generated by.*##/ d' >> site.exp
453 -@rm -f ./tmp?
8ddef552 454
959eba20 455check: ld.new site.exp
f3c6455f 456 @if [ $(host_canonical) = $(target_canonical) ]; then \
099c286e
BC
457 rootme=`pwd`; export rootme; \
458 srcdir=${srcdir} ; export srcdir ; \
459 EXPECT=${EXPECT} ; export EXPECT ; \
460 if [ -f $${rootme}/../expect/expect ] ; then \
461 TCL_LIBRARY=$${srcdir}/../tcl/library ; \
462 export TCL_LIBRARY ; fi ; \
f3c6455f
KR
463 $(RUNTEST) --tool ld \
464 --srcdir $(srcdir)/testsuite $(RUNTESTFLAGS) \
465 CC="$(RUNTEST_CC)" CFLAGS="$(RUNTEST_CFLAGS)" \
466 CXX="$(RUNTEST_CXX)" CXXFLAGS="$(RUNTEST_CXXFLAGS)" ;\
467 if [ $$? != 0 ]; then exit 1; else true; fi ;\
468 else \
469 echo No cross-linker tests yet. ;\
470 fi
d301e438 471
8ddef552 472installcheck:
4a6afc88 473.PHONY: check installcheck
e7921bd4 474
7e5c1057 475# Rules for testing by relinking ld itself.
eb02fd64 476
7e5c1057 477ld-partial.o: ld.new
a04f1d00 478 ./ld.new $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
7e5c1057 479ld1: ld-partial.o
a04f1d00 480 ./ld.new $(HOSTING_EMU) -o ld1 $(HOSTING_CRT0) ld-partial.o $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 481
7e5c1057 482ld1-full: ld.new
a04f1d00 483 ./ld.new $(HOSTING_EMU) -o ld1-full $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 484
d20fb445 485ld2: ld1
a04f1d00 486 ./ld1 $(HOSTING_EMU) -o ld2 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
60048a2c 487
eb02fd64 488ld3: ld2
a04f1d00 489 ./ld2 $(HOSTING_EMU) -o ld3 $(HOSTING_CRT0) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(HOSTING_LIBS)
eb02fd64 490
d20fb445
SC
491bootstrap: ld3
492 cmp ld2 ld3
493
4a6afc88
ILT
494.PHONY: bootstrap
495
8ddef552
DM
496# A test program for C++ constructors and destructors.
497
82ebe9a2 498cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
a04f1d00 499 ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
82ebe9a2 500 cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS)
917bffa7 501
099c286e
BC
502cdtest.out: cdtest
503 ./cdtest > cdtest.tmp
504 mv cdtest.tmp cdtest.out
505
82ebe9a2 506cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
099c286e 507 ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
82ebe9a2 508 cdtest-bar.o cdtest-foo.o
099c286e
BC
509
510cdtest-ur: cdtest-ur.o
511 ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
512 $(HOSTING_LIBS)
513
514cdtest-ur.out: cdtest-ur
515 ./cdtest-ur > cdtest-ur.tmp
516 mv cdtest-ur.tmp cdtest-ur.out
517
518check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
917bffa7 519 diff $(srcdir)/cdtest.exp cdtest.out
099c286e 520 diff $(srcdir)/cdtest.exp cdtest-ur.out
4a6afc88
ILT
521
522.PHONY: check-cdtest
523
d301e438 524# END OF CHECK TARGETS
917bffa7 525
8073190b 526# DOCUMENTATION TARGETS
2412a768
RP
527# Manual configuration file; not usually attached to normal configuration,
528# because almost all configs use "gen" version of manual.
529# Set DOCVER above to change.
530configdoc.texi: ${DOCVER}-doc.texi
034351e3
PB
531 ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi || \
532 ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi || \
533 cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
2412a768 534
8073190b 535# TeX output
2412a768 536dvi: ld.dvi
d4e5e3c3 537ld.dvi: $(srcdir)/ld.texinfo configdoc.texi $(BFDDIR)/doc/bfdsumm.texi
4a6afc88 538 TEXINPUTS=$(BFDDIR)/doc:$$TEXINPUTS $(TEXI2DVI) $(srcdir)/ld.texinfo
2412a768 539
4b91c519 540ldint.dvi: $(srcdir)/ldint.texinfo
2412a768 541 $(TEXI2DVI) $(srcdir)/ldint.texinfo
8d317d2a 542
8073190b 543# info file for online browsing
4ecfad79 544ld.info: $(srcdir)/ld.texinfo configdoc.texi $(BFDDIR)/doc/bfdsumm.texi
959eba20 545 $(MAKEINFO) -I$(BFDDIR)/doc -o ld.info $(srcdir)/ld.texinfo
eb02fd64 546
4b91c519
PB
547ldint.info: $(srcdir)/ldint.texinfo
548 $(MAKEINFO) -o ldint.info $(srcdir)/ldint.texinfo
549
4a6afc88
ILT
550.PHONY: dvi
551
954ac2ea 552#separate targets for "ms", "me", and "mm" forms of roff doc
e06ba18d
PB
553# Try to use a recent texi2roff. v2 was put on prep in jan91.
554# If you want an index, see texi2roff doc for postprocessing
555# and add -i to texi2roff invocations below.
556# Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
557# correspondint -e lines when later texi2roff's are current)
558# + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
559# + @c's deleted explicitly because texi2roff sees texinfo commands in them
560# + @ (that's at-BLANK) not recognized by texi2roff, turned into blank
561# + @alphaenumerate is ridiculously new, turned into @enumerate
562
9c7810d6 563ld.ms: $(srcdir)/ld.texinfo
8073190b
RP
564 sed -e '/\\input texinfo/d' \
565 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
566 -e '/^@ifinfo/,/^@end ifinfo/d' \
567 -e '/^@c/d' \
568 -e 's/{.*,,/{/' \
569 -e 's/@ / /g' \
570 -e 's/^@alphaenumerate/@enumerate/g' \
571 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 572 $(srcdir)/ld.texinfo | \
e06ba18d
PB
573 $(TEXI2ROFF) $(TEXI2OPT) -ms | \
574 sed -e 's/---/\\(em/g' \
575 >>ld.ms
8073190b
RP
576
577# index for roff output
578ld-index.ms: ld.ms
579 $(ROFF) -ms ld.ms 2>&1 1>/dev/null | \
580 sed -e '/: warning:/d' | \
581 texi2index >ld-index.ms
582
954ac2ea 583# roff output (-mm)
9c7810d6 584ld.mm: $(srcdir)/ld.texinfo
954ac2ea
RP
585 sed -e '/\\input texinfo/d' \
586 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
587 -e '/^@ifinfo/,/^@end ifinfo/d' \
588 -e '/^@c/d' \
9c7810d6
RP
589 -e 's/{.*,,/{/' \
590 -e '/@noindent/d' \
e06ba18d
PB
591 -e 's/@ / /g' \
592 -e 's/^@alphaenumerate/@enumerate/g' \
593 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 594 $(srcdir)/ld.texinfo | \
e06ba18d 595 $(TEXI2ROFF) $(TEXI2OPT) -mm | \
9c7810d6
RP
596 sed -e 's/---/\\(em/g' \
597 >ld.mm
954ac2ea
RP
598
599# index for roff output
600ld-index.mm: ld.mm
601 $(ROFF) -mm ld.mm 2>&1 1>/dev/null | \
602 sed -e '/: warning:/d' | \
603 texi2index >ld-index.mm
604
605# roff output (-me)
9c7810d6 606ld.me: $(srcdir)/ld.texinfo
954ac2ea
RP
607 sed -e '/\\input texinfo/d' \
608 -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
e06ba18d
PB
609 -e '/^@ifinfo/,/^@end ifinfo/d' \
610 -e '/^@c/d' \
611 -e 's/{.*,,/{/' \
612 -e 's/@ / /g' \
613 -e 's/^@alphaenumerate/@enumerate/g' \
614 -e 's/^@end alphaenumerate/@end enumerate/g' \
9c7810d6 615 $(srcdir)/ld.texinfo | \
e06ba18d
PB
616 $(TEXI2ROFF) $(TEXI2OPT) -me | \
617 sed -e 's/---/\\(em/g' \
618 >>ld.me
954ac2ea
RP
619
620# index for roff output
621ld-index.me: ld.me
622 $(ROFF) -me ld.me 2>&1 1>/dev/null | \
623 sed -e '/: warning:/d' | \
624 texi2index >ld-index.me
625
e7921bd4 626stage1: force
e06ba18d 627 -mkdir stage1
ab57b174 628 -mv -f $(STAGESTUFF) $(LD_PROG) stage1
e06ba18d 629 -(cd stage1 ; ln -s $(LD_PROG) ld)
f78e2569 630
e7921bd4 631stage2: force
e06ba18d 632 -mkdir stage2
ab57b174 633 -mv -f $(STAGESTUFF) $(LD_PROG) stage2
e06ba18d 634 -(cd stage2 ; ln -s $(LD_PROG) ld)
f78e2569 635
e7921bd4 636stage3: force
e06ba18d 637 -mkdir stage3
ab57b174 638 -mv -f $(STAGESTUFF) $(LD_PROG) stage3
e06ba18d 639 -(cd stage3 ; ln -s $(LD_PROG) ld)
eb02fd64 640
74e6b793 641against = stage2
e46cdcdd
RP
642
643comparison: force
ab57b174 644 for i in $(STAGESTUFF) $(LD_PROG) ; do cmp $$i $(against)/$$i ; done
e46cdcdd 645
e7921bd4 646de-stage1: force
e06ba18d
PB
647 -(cd stage1 ; mv -f * ..)
648 -rm ld
649 -rmdir stage1
e7921bd4
RP
650
651de-stage2: force
e06ba18d
PB
652 -(cd stage2 ; mv -f * ..)
653 -rm ld
654 -rmdir stage2
e7921bd4
RP
655
656de-stage3: force
e06ba18d
PB
657 -(cd stage3 ; mv -f * ..)
658 -rm ld
659 -rmdir stage3
e7921bd4 660
4a6afc88
ILT
661.PHONY: stage1 stage2 stage3 comparison de-stage1 de-stage2 de-stage3
662
ab57b174 663# Stuff that should be included in a distribution:
74e6b793 664LDDISTSTUFF = ldgram.c ldgram.h ldlex.c
ab57b174
ILT
665diststuff: $(LDDISTSTUFF)
666
667mostlyclean:
668 -rm -f $(STAGESTUFF) ld.?? ld.??? ldlex.[qp]
083038a7
ILT
669 -rm -f ld ld1 ld2 ld3 *.o y.output cdtest cdtest.out cdtest.tmp
670 -rm -f cdtest-ur cdtest-ur.out cdtest-ur.tmp
82ebe9a2
KR
671 -rm -f $(GENERATED_CFILES) $(GENERATED_HFILES)
672 -rm -fr tmpdir
ab57b174 673clean: mostlyclean
1e45c4c3 674 -rm -f $(LD_PROG) configdoc.texi
3c1af24d 675distclean:
82ebe9a2 676 -rm -fr Makefile config.status TAGS sysdep.h ldscripts site.exp site.bak \
3c1af24d 677 $(STAGESTUFF) ld.?? ld.??s ld.toc ld.aux ld.log ldlex.[qp] \
1e45c4c3 678 $(LD_PROG) ld ld1 ld2 ld3 *.o y.output cdtest cdtest.out \
82ebe9a2 679 configdoc.texi tmpdir
3c1af24d 680realclean: clean distclean
ab57b174 681 -rm -f $(LDDISTSTUFF)
eb02fd64 682
4a6afc88
ILT
683.PHONY: diststuff mostlyclean clean distclean realclean
684
685lintlog:$(LINTSOURCES) Makefile
2ee11735 686 $(LINT) -abhxzn $(LINTFLAGS) $(LINTSOURCES) \
eb02fd64
RP
687| grep -v "pointer casts may be troublesome" \
688| grep -v "possible pointer alignment problem" \
689| grep -v "ignore" \
690| grep -v "conversion from long may lose accuracy" \
691| grep -v "warning: constant argument to NOT" \
692| grep -v "enumeration type clash, operator CAST" \
693| grep -v "warning: constant in conditional context"\
694| grep -v "archive\.c"
695
696
cbb5c2d1
DM
697TAGS:
698 etags -t $(srcdir)/*.[chly] *.[chly]
eb02fd64 699
eb02fd64 700
91b3a2b6 701install:
8ddef552
DM
702 $(INSTALL_XFORM) ld.new $(bindir)/ld
703 $(INSTALL_XFORM1) $(srcdir)/ld.1 $(man1dir)/ld.1
173a0c3d
DM
704 for f in ldscripts/*; do \
705 $(INSTALL_DATA) $$f $(scriptdir)/$$f ; \
d360d135 706 done
9cd039e7 707 -n=`t='$(program_transform_name)'; echo ld | sed -e "" $$t`; \
56409445 708 rm -f $(tooldir)/bin/ld; \
188ce705 709 ln $(bindir)/$$n $(tooldir)/bin/ld >/dev/null 2>/dev/null \
e357065c 710 || $(INSTALL_PROGRAM) ld.new $(tooldir)/bin/ld
e06ba18d 711
db0a7149 712install-info: ld.info
82ebe9a2
KR
713 if [ -r ld.info ]; then \
714 dir=. ; \
715 else \
716 dir=$(srcdir) ; \
717 fi ; \
718 for i in `cd $$dir ; echo ld.info*` ; do \
719 $(INSTALL_DATA) $$dir/$$i $(infodir)/$$i ; \
afe3aa73
RP
720 done
721
12fa72d4
SC
722clean-info:
723 -rm -rf *.info*
724
4a6afc88 725.PHONY: install install-info clean-info
eb02fd64 726
4a6afc88
ILT
727# Targets to rebuild dependencies in this Makefile.
728# Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
729.dep: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES)
730 rm -f .dep1
731 $(MAKE) DEP=$(DEP) .dep1
732 sed -f dep.sed <.dep1 >.dep
eb02fd64 733
4a6afc88
ILT
734# This rule really wants a mkdep that runs "gcc -MM".
735.dep1: $(CFILES) $(GENERATED_CFILES)
736 rm -f .dep2
737 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
738 $(DEP) -f .dep2 $(ALL_CFLAGS) $?
739 $(srcdir)/../move-if-change .dep2 .dep1
eb02fd64 740
4a6afc88
ILT
741dep.sed: dep-in.sed config.status
742 sed <$(srcdir)/dep-in.sed >dep.sed \
743 -e 's!@INCDIR@!$(INCDIR)!' \
744 -e 's!@srcdir@!$(srcdir)!'
eb02fd64 745
4a6afc88
ILT
746dep: .dep
747 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
748 cat .dep >> tmp-Makefile
749 $(srcdir)/../move-if-change tmp-Makefile Makefile
239d28f3 750
4a6afc88
ILT
751dep-in: .dep
752 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
753 cat .dep >> tmp-Makefile.in
754 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
755
756.PHONY: dep dep-in
239d28f3 757
eb02fd64
RP
758# Dummy target to force execution of dependent targets.
759#
e7921bd4 760force:
eb02fd64 761
4a6afc88 762.PHONY: force
eb02fd64 763
f1eb48b6 764Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
a26878d1 765 $(SHELL) ./config.status
eb02fd64 766
4a6afc88
ILT
767# What appears below is generated by a hacked mkdep using gcc -MM.
768
769# DO NOT DELETE THIS LINE -- mkdep uses it.
770# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
771
772ldctor.o : ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
773 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
774 $(INCDIR)/bfdlink.h ld.h ldexp.h ldlang.h ldmisc.h \
775 ldgram.h ldctor.h
776ldemul.o : ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
777 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
778 config.h ld.h ldemul.h ldmisc.h ldfile.h ldmain.h ldemul-list.h
779ldexp.o : ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
780 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
781 $(INCDIR)/bfdlink.h ld.h ldmain.h ldmisc.h ldexp.h \
782 ldgram.h ldlang.h
783ldfile.o : ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
784 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
4725fb48
ILT
785 ld.h ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldgram.h \
786 ldlex.h
4a6afc88
ILT
787ldlang.o : ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
788 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
4725fb48
ILT
789 $(INCDIR)/libiberty.h $(INCDIR)/bfdlink.h ld.h ldmain.h \
790 ldgram.h ldexp.h ldlang.h ldemul.h ldlex.h ldmisc.h \
791 ldctor.h ldfile.h
4a6afc88
ILT
792ldmain.o : ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
793 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
4725fb48
ILT
794 $(INCDIR)/libiberty.h $(INCDIR)/bfdlink.h config.h \
795 ld.h ldmain.h ldmisc.h ldwrite.h ldgram.h ldexp.h ldlang.h \
796 ldemul.h ldlex.h ldfile.h ldctor.h
4a6afc88
ILT
797ldmisc.o : ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
798 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
4725fb48
ILT
799 ld.h ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldmain.h \
800 ldfile.h
4a6afc88
ILT
801ldver.o : ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
802 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
803 ld.h ldver.h ldemul.h ldmain.h
804ldwrite.o : ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
805 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
806 $(INCDIR)/bfdlink.h ld.h ldexp.h ldlang.h ldwrite.h \
807 ldmisc.h ldgram.h ldmain.h
808lexsup.o : lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
809 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
4725fb48
ILT
810 $(INCDIR)/getopt.h $(INCDIR)/bfdlink.h config.h ld.h \
811 ldmain.h ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h \
812 ldfile.h ldver.h
4a6afc88
ILT
813mri.o : mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/obstack.h \
814 ../bfd/sysdep.h $(INCDIR)/fopen-same.h ld.h ldexp.h \
815 ldlang.h ldmisc.h mri.h ldgram.h
816ldgram.o : ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
817 $(INCDIR)/obstack.h ../bfd/sysdep.h $(INCDIR)/fopen-same.h \
818 $(INCDIR)/bfdlink.h ld.h ldexp.h ldver.h ldlang.h ldemul.h \
819 ldfile.h ldmisc.h ldmain.h mri.h ldlex.h
820ldlex.o : ldlex.c ../bfd/bfd.h $(INCDIR)/obstack.h \
4725fb48
ILT
821 ../bfd/sysdep.h $(INCDIR)/fopen-same.h ld.h ldgram.h \
822 ldmisc.h ldexp.h ldlang.h ldfile.h ldlex.h ldmain.h
239d28f3
SC
823
824# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.196602 seconds and 4 git commands to generate.