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