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