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