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