4f1a06a3e7bb9ae31b0a26c27c40a5e5a703229b
[deliverable/binutils-gdb.git] / ld / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2
3 ## FIXME: work around apparent automake bug.
4 INTLLIBS = @INTLLIBS@
5
6 AUTOMAKE_OPTIONS = cygnus dejagnu
7
8 SUBDIRS = po
9
10 tooldir = $(exec_prefix)/$(target_alias)
11
12 YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
13 YFLAGS = -d
14 LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
15
16 WARN_CFLAGS = @WARN_CFLAGS@
17 AM_CFLAGS = $(WARN_CFLAGS)
18
19 # We put the scripts in the directory $(scriptdir)/ldscripts.
20 # We can't put the scripts in $(datadir) because the SEARCH_DIR
21 # directives need to be different for native and cross linkers.
22 scriptdir = $(tooldir)/lib
23
24 EMUL = @EMUL@
25 EMULATION_OFILES = @EMULATION_OFILES@
26 EMUL_EXTRA_OFILES = @EMUL_EXTRA_OFILES@
27
28 # Search path to override the default search path for -lfoo libraries.
29 # If LIB_PATH is empty, the ones in the script (if any) are left alone.
30 # (The default is usually /lib:/usr/lib:/usr/local/lib, unless building
31 # a cross-linker, in which case the default is empty. See genscripts.sh.)
32 # Otherwise, they are replaced with the ones given in LIB_PATH,
33 # which may have the form: LIB_PATH=/lib:/usr/local/lib
34 LIB_PATH =
35
36 BASEDIR = $(srcdir)/..
37 BFDDIR = $(BASEDIR)/bfd
38 INCDIR = $(BASEDIR)/include
39 MKDEP = gcc -MM
40
41 # What version of the manual to build
42 DOCVER = gen
43
44 # Options to extract the man page from ld.texinfo
45 MANCONF = -Dman
46
47 TEXI2POD = perl $(BASEDIR)/etc/texi2pod.pl
48
49 POD2MAN = pod2man --center="GNU Development Tools" \
50 --release="binutils-$(VERSION)" --section=1
51
52 #stuff for self hosting (can be overridden in config file).
53 HOSTING_CRT0 = @HOSTING_CRT0@
54 HOSTING_LIBS = @HOSTING_LIBS@
55 HOSTING_EMU = -m $(EMUL)
56
57 # Setup the testing framework, if you have one
58 EXPECT = `if [ -f $$r/../expect/expect ] ; \
59 then echo $$r/../expect/expect ; \
60 else echo expect ; fi`
61
62 RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; \
63 then echo $${srcroot}/../dejagnu/runtest ; \
64 else echo runtest ; fi`
65
66 RUNTESTFLAGS =
67
68 CC_FOR_TARGET = ` \
69 if [ -f $$r/../gcc/xgcc ] ; then \
70 if [ -f $$r/../newlib/Makefile ] ; then \
71 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
72 else \
73 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
74 fi; \
75 else \
76 if [ "@host@" = "@target@" ] ; then \
77 echo $(CC); \
78 else \
79 echo gcc | sed '$(transform)'; \
80 fi; \
81 fi`
82
83 CXX = gcc
84 CXX_FOR_TARGET = ` \
85 if [ -f $$r/../gcc/xgcc ] ; then \
86 if [ -f $$r/../newlib/Makefile ] ; then \
87 echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
88 else \
89 echo $$r/../gcc/xgcc -B$$r/../gcc/; \
90 fi; \
91 else \
92 if [ "@host@" = "@target@" ] ; then \
93 echo $(CXX); \
94 else \
95 echo gcc | sed '$(transform)'; \
96 fi; \
97 fi`
98
99 noinst_PROGRAMS = ld-new
100 info_TEXINFOS = ld.texinfo
101 noinst_TEXINFOS = ldint.texinfo
102 man_MANS = ld.1
103
104 INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) -I$(top_srcdir)/../intl -I../intl $(HDEFINES) $(CFLAGS) -DLOCALEDIR="\"$(prefix)/share/locale\""
105
106 BFDLIB = ../bfd/libbfd.la
107 LIBIBERTY = ../libiberty/libiberty.a
108
109 ALL_EMULATIONS = \
110 ea29k.o \
111 eaixppc.o \
112 eaixrs6.o \
113 ealpha.o \
114 earcelf.o \
115 earm_epoc_pe.o \
116 earmaoutb.o \
117 earmaoutl.o \
118 earmcoff.o \
119 earmelf.o \
120 earmelf_linux.o \
121 earmelf_oabi.o \
122 earmnbsd.o \
123 earmpe.o \
124 eavr1200.o \
125 eavr23xx.o \
126 eavr4433.o \
127 eavr44x4.o \
128 eavr85xx.o \
129 eavrmega103.o \
130 eavrmega161.o \
131 eavrmega603.o \
132 ecoff_sparc.o \
133 ecrisaout.o \
134 ecriself.o \
135 ecrislinux.o \
136 ed10velf.o \
137 ed30v_e.o \
138 ed30v_o.o \
139 ed30velf.o \
140 edelta68.o \
141 eebmon29k.o \
142 eelf32_i960.o \
143 eelf32_i860.o \
144 eelf32_sparc.o \
145 eelf32b4300.o \
146 eelf32bmip.o \
147 eelf32bmipn32.o \
148 eelf32btsmip.o \
149 eelf32ltsmip.o \
150 eelf32ebmip.o \
151 eelf32elmip.o \
152 eelf32fr30.o \
153 eelf32i370.o \
154 eelf32l4300.o \
155 eelf32lmip.o \
156 eelf32lppc.o \
157 eelf32lppcsim.o \
158 eelf32mcore.o \
159 eelf32openrisc.o \
160 eelf32ppc.o \
161 eelf32ppclinux.o \
162 eelf32ppcsim.o \
163 eelf32xstormy16.o \
164 eelf_i386.o \
165 eelf_i386_be.o \
166 eelf_i386_chaos.o \
167 eelf_i386_ldso.o \
168 eelf_s390.o \
169 egld960.o \
170 egld960coff.o \
171 eh8300.o \
172 eh8300h.o \
173 eh8300s.o \
174 eh8300elf.o \
175 eh8300helf.o \
176 eh8300self.o \
177 eh8500.o \
178 eh8500b.o \
179 eh8500c.o \
180 eh8500m.o \
181 eh8500s.o \
182 ehp300bsd.o \
183 ehp3hpux.o \
184 ehppaelf.o \
185 ehppalinux.o \
186 ei386aout.o \
187 ei386beos.o \
188 ei386bsd.o \
189 ei386coff.o \
190 ei386go32.o \
191 ei386linux.o \
192 ei386lynx.o \
193 ei386mach.o \
194 ei386moss.o \
195 ei386msdos.o \
196 ei386nbsd.o \
197 ei386nw.o \
198 ei386pe.o \
199 ei386pe_posix.o \
200 elnk960.o \
201 em68hc11elf.o \
202 em68hc11elfb.o \
203 em68hc12elf.o \
204 em68hc12elfb.o \
205 em68k4knbsd.o \
206 em68kaout.o \
207 em68kaux.o \
208 em68kcoff.o \
209 em68kelf.o \
210 em68kelfnbsd.o \
211 em68klinux.o \
212 em68klynx.o \
213 em68knbsd.o \
214 em68kpsos.o \
215 em88kbcs.o \
216 emcorepe.o \
217 emipsbig.o \
218 emipsbsd.o \
219 emipsidt.o \
220 emipsidtl.o \
221 emipslit.o \
222 emipslnews.o \
223 emipspe.o \
224 enews.o \
225 ens32knbsd.o \
226 epc532macha.o \
227 epdp11.o \
228 epjelf.o \
229 epjlelf.o \
230 eppcmacos.o \
231 eppcnw.o \
232 eppcpe.o \
233 eriscix.o \
234 esa29200.o \
235 esh.o \
236 eshelf.o \
237 eshelf_linux.o \
238 eshlelf_linux.o \
239 eshl.o \
240 eshlelf.o \
241 eshpe.o \
242 esparcaout.o \
243 esparclinux.o \
244 esparclynx.o \
245 esparcnbsd.o \
246 est2000.o \
247 esun3.o \
248 esun4.o \
249 etic30aout.o \
250 etic30coff.o \
251 etic54xcoff.o \
252 etic80coff.o \
253 evanilla.o \
254 evax.o \
255 evsta.o \
256 ew65.o \
257 ez8001.o \
258 ez8002.o
259
260 ALL_64_EMULATIONS = \
261 eelf64_aix.o \
262 eelf64_ia64.o \
263 eelf_x86_64.o \
264 eelf64_s390.o \
265 eelf64_sparc.o \
266 eelf64alpha.o \
267 eelf64alpha_nbsd.o \
268 eelf64bmip.o \
269 eelf64btsmip.o \
270 eelf64ltsmip.o \
271 eelf64hppa.o \
272 eelf64mmix.o \
273 emmo.o \
274 eelf64ppc.o \
275 eelf64lppc.o \
276 ehppa64linux.o
277
278 ALL_EMUL_EXTRA_OFILES = \
279 deffilep.o \
280 pe-dll.o
281
282 CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \
283 ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \
284 mri.c ldcref.c pe-dll.c
285
286 HFILES = ld.h ldctor.h ldemul.h ldexp.h ldfile.h \
287 ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \
288 ldwrite.h mri.h deffile.h pe-dll.h
289
290 GENERATED_CFILES = ldgram.c ldlex.c deffilep.c
291 GENERATED_HFILES = ldgram.h ldemul-list.h deffilep.h
292
293 OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \
294 ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \
295 ldfile.o ldcref.o ${EMULATION_OFILES} ${EMUL_EXTRA_OFILES}
296
297 STAGESTUFF = *.o ldscripts/* e*.c
298
299 # At the moment this is just a list of those emulation template files
300 # that contain internationalised strings.
301 EMULATION_FILES = emultempl/pe.em emultempl/armcoff.em
302
303 POTFILES = $(CFILES) $(HFILES) $(EMULATION_FILES)
304
305 po/POTFILES.in: @MAINT@ Makefile
306 for file in $(POTFILES); do echo $$file; done | sort > tmp \
307 && mv tmp $(srcdir)/po/POTFILES.in
308
309 ldmain.o: ldmain.c config.status
310 $(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' -DTARGET='"@target@"' $(srcdir)/ldmain.c
311
312 ldemul-list.h: Makefile
313 (echo "/* This file is automatically generated. DO NOT EDIT! */";\
314 for f in `echo " " ${EMULATION_OFILES} "" \
315 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
316 echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \
317 done;\
318 echo "";\
319 echo "#define EMULATION_LIST \\";\
320 for f in `echo " " ${EMULATION_OFILES} "" \
321 | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \
322 echo " &ld_$${f}_emulation, \\"; \
323 done;\
324 echo " 0") >ldemul-tmp.h
325 mv ldemul-tmp.h ldemul-list.h
326
327 stringify.sed: ${srcdir}/emultempl/$(STRINGIFY)
328 cp ${srcdir}/emultempl/$(STRINGIFY) stringify.sed
329
330 # These all start with e so 'make clean' can find them.
331
332 GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} "${exec_prefix}" @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@"
333 GEN_DEPENDS = $(srcdir)/genscripts.sh stringify.sed
334 @TDIRS@
335
336 ea29k.c: $(srcdir)/emulparams/a29k.sh \
337 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS}
338 ${GENSCRIPTS} a29k "$(tdir_a29k)"
339 eaixppc.c: $(srcdir)/emulparams/aixppc.sh \
340 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
341 ${GENSCRIPTS} aixppc "$(tdir_aixppc)"
342 eaixrs6.c: $(srcdir)/emulparams/aixrs6.sh \
343 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
344 ${GENSCRIPTS} aixrs6 "$(tdir_aixrs6)"
345 ealpha.c: $(srcdir)/emulparams/alpha.sh \
346 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS}
347 ${GENSCRIPTS} alpha "$(tdir_alpha)"
348 earcelf.c: $(srcdir)/emulparams/arcelf.sh \
349 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
350 ${GENSCRIPTS} arcelf "$(tdir_arcelf)"
351 earmelf.c: $(srcdir)/emulparams/armelf.sh \
352 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
353 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
354 ${GENSCRIPTS} armelf "$(tdir_armelf)"
355 earmelf_oabi.c: $(srcdir)/emulparams/armelf_oabi.sh \
356 $(srcdir)/emultempl/armelf_oabi.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
357 ${GENSCRIPTS} armelf_oabi "$(tdir_armelf)"
358 earmelf_linux.c: $(srcdir)/emulparams/armelf_linux.sh \
359 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/armelf.em \
360 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
361 ${GENSCRIPTS} armelf_linux "$(tdir_armelf_linux)"
362 earmaoutb.c: $(srcdir)/emulparams/armaoutb.sh \
363 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
364 ${GENSCRIPTS} armaoutb "$(tdir_armaoutb)"
365 earmaoutl.c: $(srcdir)/emulparams/armaoutl.sh \
366 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS}
367 ${GENSCRIPTS} armaoutl "$(tdir_armaoutl)"
368 earmcoff.c: $(srcdir)/emulparams/armcoff.sh \
369 $(srcdir)/emultempl/armcoff.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS}
370 ${GENSCRIPTS} armcoff "$(tdir_armcoff)"
371 earmnbsd.c: $(srcdir)/emulparams/armnbsd.sh \
372 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
373 ${GENSCRIPTS} armnbsd "$(tdir_armnbsd)"
374 earm_epoc_pe.c: $(srcdir)/emulparams/arm_epoc_pe.sh \
375 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/epocpe.sc ${GEN_DEPENDS}
376 ${GENSCRIPTS} arm_epoc_pe "$(tdir_armpe)"
377 earmpe.c: $(srcdir)/emulparams/armpe.sh \
378 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
379 ${GENSCRIPTS} armpe "$(tdir_armpe)"
380 eavr85xx.c: $(srcdir)/emulparams/avr85xx.sh \
381 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
382 ${GEN_DEPENDS}
383 ${GENSCRIPTS} avr85xx "$(tdir_avr85xx)"
384 eavr1200.c: $(srcdir)/emulparams/avr1200.sh \
385 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
386 ${GEN_DEPENDS}
387 ${GENSCRIPTS} avr1200 "$(tdir_avr85xx)"
388 eavr23xx.c: $(srcdir)/emulparams/avr23xx.sh \
389 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
390 ${GEN_DEPENDS}
391 ${GENSCRIPTS} avr23xx "$(tdir_avr85xx)"
392 eavr44x4.c: $(srcdir)/emulparams/avr44x4.sh \
393 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
394 ${GEN_DEPENDS}
395 ${GENSCRIPTS} avr44x4 "$(tdir_avr85xx)"
396 eavr4433.c: $(srcdir)/emulparams/avr4433.sh \
397 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
398 ${GEN_DEPENDS}
399 ${GENSCRIPTS} avr4433 "$(tdir_avr85xx)"
400 eavrmega603.c: $(srcdir)/emulparams/avrmega603.sh \
401 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
402 ${GEN_DEPENDS}
403 ${GENSCRIPTS} avrmega603 "$(tdir_avr85xx)"
404 eavrmega103.c: $(srcdir)/emulparams/avrmega103.sh \
405 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
406 ${GEN_DEPENDS}
407 ${GENSCRIPTS} avrmega103 "$(tdir_avr85xx)"
408 eavrmega161.c: $(srcdir)/emulparams/avrmega161.sh \
409 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf32avr.sc \
410 ${GEN_DEPENDS}
411 ${GENSCRIPTS} avrmega161 "$(tdir_avr85xx)"
412 ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
413 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
414 ${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)"
415 ecrisaout.c: $(srcdir)/emulparams/crisaout.sh \
416 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/crisaout.sc ${GEN_DEPENDS}
417 ${GENSCRIPTS} crisaout "$(tdir_cris)"
418 ecriself.c: $(srcdir)/emulparams/criself.sh \
419 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
420 ${GENSCRIPTS} criself "$(tdir_cris)"
421 ecrislinux.c: $(srcdir)/emulparams/crislinux.sh \
422 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
423 ${GENSCRIPTS} crislinux "$(tdir_cris)"
424 ed10velf.c: $(srcdir)/emulparams/d10velf.sh \
425 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfd10v.sc ${GEN_DEPENDS}
426 ${GENSCRIPTS} d10velf "$(tdir_d10v)"
427 ed30velf.c: $(srcdir)/emulparams/d30velf.sh \
428 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
429 ${GENSCRIPTS} d30velf "$(tdir_d30v)"
430 ed30v_o.c: $(srcdir)/emulparams/d30v_o.sh \
431 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
432 ${GENSCRIPTS} d30v_o "$(tdir_d30v)"
433 ed30v_e.c: $(srcdir)/emulparams/d30v_e.sh \
434 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS}
435 ${GENSCRIPTS} d30v_e "$(tdir_d30v)"
436 edelta68.c: $(srcdir)/emulparams/delta68.sh \
437 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS}
438 ${GENSCRIPTS} delta68 "$(tdir_delta68)"
439 eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
440 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS}
441 ${GENSCRIPTS} ebmon29k "$(tdir_ebmon29k)"
442 eelf32xstormy16.c: $(srcdir)/emulparams/elf32xstormy16.sh \
443 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
444 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
445 ${GENSCRIPTS} elf32xstormy16 "$(tdir_xstormy16)"
446 eelf32fr30.c: $(srcdir)/emulparams/elf32fr30.sh \
447 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
448 ${GENSCRIPTS} elf32fr30 "$(tdir_fr30)"
449 eelf32mcore.c: $(srcdir)/emulparams/elf32mcore.sh \
450 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
451 ${GENSCRIPTS} elf32mcore "$(tdir_mcore)"
452 em32relf.c: $(srcdir)/emulparams/m32relf.sh \
453 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
454 ${GENSCRIPTS} m32relf "$(tdir_m32r)"
455 eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
456 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
457 ${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)"
458 eelf32_i860.c: $(srcdir)/emulparams/elf32_i860.sh \
459 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
460 ${GENSCRIPTS} elf32_i860 "$(tdir_elf32_i860)"
461 eelf32_i960.c: $(srcdir)/emulparams/elf32_i960.sh \
462 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
463 ${GENSCRIPTS} elf32_i960 "$(tdir_elf32_i960)"
464 eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \
465 $(srcdir)/emulparams/elf32bmip.sh \
466 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
467 ${GENSCRIPTS} elf32b4300 "$(tdir_elf32b4300)"
468 eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \
469 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
470 ${GENSCRIPTS} elf32bmip "$(tdir_elf32bmip)"
471 eelf32bsmip.c: $(srcdir)/emulparams/elf32bsmip.sh \
472 $(srcdir)/emulparams/elf32bmip.sh \
473 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
474 ${GENSCRIPTS} elf32bsmip "$(tdir_elf32bsmip)"
475 eelf32btsmip.c: $(srcdir)/emulparams/elf32btsmip.sh \
476 $(srcdir)/emulparams/elf32bmip.sh \
477 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
478 ${GENSCRIPTS} elf32btsmip "$(tdir_elf32btsmip)"
479 eelf32ltsmip.c: $(srcdir)/emulparams/elf32ltsmip.sh \
480 $(srcdir)/emulparams/elf32btsmip.sh $(srcdir)/emulparams/elf32bmip.sh \
481 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
482 ${GENSCRIPTS} elf32ltsmip "$(tdir_elf32ltsmip)"
483 eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \
484 $(srcdir)/emulparams/elf32bmip.sh \
485 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
486 ${GENSCRIPTS} elf32ebmip "$(tdir_elf32ebmip)"
487 eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \
488 $(srcdir)/emulparams/elf32lmip.sh $(srcdir)/emulparams/elf32bmip.sh \
489 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
490 ${GENSCRIPTS} elf32elmip "$(tdir_elf32elmip)"
491 eelf32bmipn32.c: $(srcdir)/emulparams/elf32bmipn32.sh \
492 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
493 ${GENSCRIPTS} elf32bmipn32 "$(tdir_elf32bmipn32)"
494 eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \
495 $(srcdir)/emulparams/elf32b4300.sh $(srcdir)/emulparams/elf32bmip.sh \
496 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
497 ${GENSCRIPTS} elf32l4300 "$(tdir_elf32l4300)"
498 eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \
499 $(srcdir)/emulparams/elf32bmip.sh \
500 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
501 ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)"
502 eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \
503 $(srcdir)/emulparams/elf32ppc.sh \
504 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
505 ${GENSCRIPTS} elf32lppc "$(tdir_elf32lppc)"
506 eelf32lppcsim.c: $(srcdir)/emulparams/elf32lppcsim.sh \
507 $(srcdir)/emulparams/elf32lppc.sh $(srcdir)/emulparams/elf32ppc.sh \
508 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
509 ${GENSCRIPTS} elf32lppcsim "$(tdir_elf32lppcsim)"
510 eelf32lsmip.c: $(srcdir)/emulparams/elf32lsmip.sh \
511 $(srcdir)/emulparams/elf32lmip.sh $(srcdir)/emulparams/elf32bmip.sh \
512 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
513 ${GENSCRIPTS} elf32lsmip "$(tdir_elf32lsmip)"
514 eelf32openrisc.c: $(srcdir)/emulparams/elf32openrisc.sh \
515 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
516 ${GENSCRIPTS} elf32openrisc "$(tdir_openrisc)"
517 eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
518 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
519 ${GENSCRIPTS} elf32ppc "$(tdir_elf32ppc)"
520 eelf32ppcsim.c: $(srcdir)/emulparams/elf32ppcsim.sh \
521 $(srcdir)/emulparams/elf32ppc.sh \
522 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
523 ${GENSCRIPTS} elf32ppcsim "$(tdir_elf32ppcsim)"
524 eelf32ppclinux.c: $(srcdir)/emulparams/elf32ppclinux.sh \
525 $(srcdir)/emulparams/elf32ppc.sh \
526 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
527 ${GENSCRIPTS} elf32ppclinux "$(tdir_elf32ppclinux)"
528 eelf64ppc.c: $(srcdir)/emulparams/elf64ppc.sh \
529 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
530 ${GENSCRIPTS} elf64ppc "$(tdir_elf64ppc)"
531 eelf64lppc.c: $(srcdir)/emulparams/elf64lppc.sh \
532 $(srcdir)/emulparams/elf64ppc.sh \
533 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
534 ${GENSCRIPTS} elf64lppc "$(tdir_elf64lppc)"
535 eelf32i370.c: $(srcdir)/emulparams/elf32i370.sh \
536 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfi370.sc ${GEN_DEPENDS}
537 ${GENSCRIPTS} elf32i370 "$(tdir_elf32i370)"
538 eelf64alpha.c: $(srcdir)/emulparams/elf64alpha.sh \
539 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
540 ${GENSCRIPTS} elf64alpha "$(tdir_elf64alpha)"
541 eelf64alpha_nbsd.c: $(srcdir)/emulparams/elf64alpha_nbsd.sh \
542 $(srcdir)/emulparams/elf64alpha.sh \
543 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
544 ${GENSCRIPTS} elf64alpha_nbsd "$(tdir_elf64alpha_nbsd)"
545 eelf64hppa.c: $(srcdir)/emulparams/elf64hppa.sh \
546 $(srcdir)/emulparams/hppa64linux.sh \
547 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
548 ${GENSCRIPTS} elf64hppa "$(tdir_elf64hppa)"
549 eelf64_aix.c: $(srcdir)/emulparams/elf64_aix.sh \
550 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
551 ${GENSCRIPTS} elf64_aix "$(tdir_elf64_aix)"
552 eelf64_ia64.c: $(srcdir)/emulparams/elf64_ia64.sh \
553 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/needrelax.em \
554 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
555 ${GENSCRIPTS} elf64_ia64 "$(tdir_elf64_ia64)"
556 eelf64_s390.c: $(srcdir)/emulparams/elf64_s390.sh \
557 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
558 ${GENSCRIPTS} elf64_s390 "$(tdir_elf64_s390)"
559 eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \
560 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
561 ${GENSCRIPTS} elf64_sparc "$(tdir_elf64_sparc)"
562 eelf64bmip.c: $(srcdir)/emulparams/elf64bmip.sh \
563 $(srcdir)/emulparams/elf32bmipn32.sh \
564 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
565 ${GENSCRIPTS} elf64bmip "$(tdir_elf64bmip)"
566 eelf64mmix.c: $(srcdir)/emulparams/elf64mmix.sh \
567 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/mmix-elfnmmo.em \
568 $(srcdir)/emultempl/mmixelf.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
569 ${GENSCRIPTS} elf64mmix "$(tdir_elf64mmix)"
570 emmo.c: $(srcdir)/emulparams/mmo.sh $(srcdir)/emultempl/mmix-elfnmmo.em \
571 $(srcdir)/emultempl/generic.em $(srcdir)/emultempl/mmo.em \
572 $(srcdir)/scripttempl/mmo.sc ${GEN_DEPENDS}
573 ${GENSCRIPTS} mmo "$(tdir_mmo)"
574 eelf64btsmip.c: $(srcdir)/emulparams/elf64btsmip.sh \
575 $(srcdir)/emulparams/elf32bmipn32.sh \
576 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
577 ${GENSCRIPTS} elf64btsmip "$(tdir_elf64btsmip)"
578 eelf64ltsmip.c: $(srcdir)/emulparams/elf64ltsmip.sh \
579 $(srcdir)/emulparams/elf64btsmip.sh $(srcdir)/emulparams/elf32bmipn32.sh \
580 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
581 ${GENSCRIPTS} elf64ltsmip "$(tdir_elf64ltsmip)"
582 eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
583 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
584 ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
585 eelf_x86_64.c: $(srcdir)/emulparams/elf_x86_64.sh \
586 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
587 ${GENSCRIPTS} elf_x86_64 "$(tdir_elf_x86_64)"
588 eelf_i386_be.c: $(srcdir)/emulparams/elf_i386_be.sh \
589 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
590 ${GENSCRIPTS} elf_i386_be "$(tdir_elf_i386_be)"
591 eelf_i386_chaos.c: $(srcdir)/emulparams/elf_i386_chaos.sh \
592 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
593 ${GENSCRIPTS} elf_i386_chaos "$(tdir_elf_i386_chaos)"
594 eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
595 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
596 ${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)"
597 eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \
598 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
599 ${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)"
600 egld960.c: $(srcdir)/emulparams/gld960.sh \
601 $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
602 ${GENSCRIPTS} gld960 "$(tdir_gld960)"
603 egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
604 $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
605 ${GENSCRIPTS} gld960coff "$(tdir_gld960coff)"
606 eh8300.c: $(srcdir)/emulparams/h8300.sh \
607 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS}
608 ${GENSCRIPTS} h8300 "$(tdir_h8300)"
609 eh8300h.c: $(srcdir)/emulparams/h8300h.sh \
610 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS}
611 ${GENSCRIPTS} h8300h "$(tdir_h8300h)"
612 eh8300s.c: $(srcdir)/emulparams/h8300s.sh \
613 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300s.sc ${GEN_DEPENDS}
614 ${GENSCRIPTS} h8300s "$(tdir_h8300s)"
615 eh8300elf.c: $(srcdir)/emulparams/h8300elf.sh \
616 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
617 ${GENSCRIPTS} h8300elf "$(tdir_h8300elf)"
618 eh8300helf.c: $(srcdir)/emulparams/h8300helf.sh \
619 $(srcdir)/emulparams/h8300elf.sh \
620 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
621 ${GENSCRIPTS} h8300helf "$(tdir_h8300helf)"
622 eh8300self.c: $(srcdir)/emulparams/h8300self.sh \
623 $(srcdir)/emulparams/h8300elf.sh \
624 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
625 ${GENSCRIPTS} h8300self "$(tdir_h8300self)"
626 eh8500.c: $(srcdir)/emulparams/h8500.sh \
627 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS}
628 ${GENSCRIPTS} h8500 "$(tdir_h8500)"
629 eh8500b.c: $(srcdir)/emulparams/h8500b.sh \
630 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS}
631 ${GENSCRIPTS} h8500b "$(tdir_h8500b)"
632 eh8500c.c: $(srcdir)/emulparams/h8500c.sh \
633 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS}
634 ${GENSCRIPTS} h8500c "$(tdir_h8500c)"
635 eh8500m.c: $(srcdir)/emulparams/h8500m.sh \
636 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS}
637 ${GENSCRIPTS} h8500m "$(tdir_h8500m)"
638 eh8500s.c: $(srcdir)/emulparams/h8500s.sh \
639 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS}
640 ${GENSCRIPTS} h8500s "$(tdir_h8500s)"
641 ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \
642 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
643 ${GENSCRIPTS} hp300bsd "$(tdir_hp300bsd)"
644 ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \
645 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
646 ${GENSCRIPTS} hp3hpux "$(tdir_hp3hpux)"
647 ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \
648 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
649 $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS}
650 ${GENSCRIPTS} hppaelf "$(tdir_hppaelf)"
651 ehppalinux.c: $(srcdir)/emulparams/hppalinux.sh \
652 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/hppaelf.em \
653 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
654 ${GENSCRIPTS} hppalinux "$(tdir_hppalinux)"
655 ehppa64linux.c: $(srcdir)/emulparams/hppa64linux.sh \
656 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
657 ${GENSCRIPTS} hppa64linux "$(tdir_hppa64linux)"
658 ei386aout.c: $(srcdir)/emulparams/i386aout.sh \
659 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
660 ${GENSCRIPTS} i386aout "$(tdir_i386aout)"
661 ei386beos.c: $(srcdir)/emulparams/i386beos.sh \
662 $(srcdir)/emultempl/beos.em $(srcdir)/scripttempl/i386beos.sc ${GEN_DEPENDS}
663 ${GENSCRIPTS} i386beos "$(tdir_i386beos)"
664 ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \
665 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
666 ${GENSCRIPTS} i386bsd "$(tdir_i386bsd)"
667 ei386coff.c: $(srcdir)/emulparams/i386coff.sh \
668 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
669 ${GENSCRIPTS} i386coff "$(tdir_i386coff)"
670 ei386go32.c: $(srcdir)/emulparams/i386go32.sh \
671 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS}
672 ${GENSCRIPTS} i386go32 "$(tdir_i386go32)"
673 ei386linux.c: $(srcdir)/emulparams/i386linux.sh \
674 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
675 ${GENSCRIPTS} i386linux "$(tdir_i386linux)"
676 ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
677 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.sc ${GEN_DEPENDS}
678 ${GENSCRIPTS} i386lynx "$(tdir_i386lynx)"
679 ei386mach.c: $(srcdir)/emulparams/i386mach.sh \
680 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
681 ${GENSCRIPTS} i386mach "$(tdir_i386mach)"
682 ei386moss.c: $(srcdir)/emulparams/i386moss.sh \
683 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
684 ${GENSCRIPTS} i386moss "$(tdir_i386moss)"
685 ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \
686 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS}
687 ${GENSCRIPTS} i386msdos "$(tdir_i386msdos)"
688 ei386nbsd.c: $(srcdir)/emulparams/i386nbsd.sh \
689 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
690 ${GENSCRIPTS} i386nbsd "$(tdir_i386nbsd)"
691 ei386nw.c: $(srcdir)/emulparams/i386nw.sh \
692 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
693 ${GENSCRIPTS} i386nw "$(tdir_i386nw)"
694 ei386pe.c: $(srcdir)/emulparams/i386pe.sh \
695 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
696 ${GENSCRIPTS} i386pe "$(tdir_i386pe)"
697 ei386pe_posix.c: $(srcdir)/emulparams/i386pe_posix.sh \
698 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
699 ${GENSCRIPTS} i386pe_posix "$(tdir_i386pe_posix)"
700 elnk960.c: $(srcdir)/emulparams/lnk960.sh \
701 $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
702 ${GENSCRIPTS} lnk960 "$(tdir_lnk960)"
703 em68hc11elf.c: $(srcdir)/emulparams/m68hc11elf.sh \
704 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
705 ${GENSCRIPTS} m68hc11elf "$(tdir_m68hc11)"
706 em68hc11elfb.c: $(srcdir)/emulparams/m68hc11elfb.sh \
707 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc11.sc ${GEN_DEPENDS}
708 ${GENSCRIPTS} m68hc11elfb "$(tdir_m68hc11b)"
709 em68hc12elf.c: $(srcdir)/emulparams/m68hc12elf.sh \
710 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
711 ${GENSCRIPTS} m68hc12elf "$(tdir_m68hc12)"
712 em68hc12elfb.c: $(srcdir)/emulparams/m68hc12elfb.sh \
713 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfm68hc12.sc ${GEN_DEPENDS}
714 ${GENSCRIPTS} m68hc12elfb "$(tdir_m68hc12b)"
715 em68k4knbsd.c: $(srcdir)/emulparams/m68k4knbsd.sh \
716 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
717 ${GENSCRIPTS} m68k4knbsd "$(tdir_m68k4knbsd)"
718 em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \
719 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
720 ${GENSCRIPTS} m68kaout "$(tdir_m68kaout)"
721 em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \
722 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS}
723 ${GENSCRIPTS} m68kaux "$(tdir_m68kaux)"
724 em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
725 $(srcdir)/emultempl/m68kcoff.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
726 ${GENSCRIPTS} m68kcoff "$(tdir_m68kcoff)"
727 em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \
728 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/m68kelf.em \
729 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
730 ${GENSCRIPTS} m68kelf "$(tdir_m68kelf)"
731 em68kelfnbsd.c: $(srcdir)/emulparams/m68kelfnbsd.sh \
732 $(srcdir)/emulparams/m68kelf.sh \
733 $(srcdir)/emultempl/elf32.em $(srcdir)/emultempl/m68kelf.em \
734 $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
735 ${GENSCRIPTS} m68kelfnbsd "$(tdir_m68kelfnbsd)"
736 em68klinux.c: $(srcdir)/emulparams/m68klinux.sh \
737 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
738 ${GENSCRIPTS} m68klinux "$(tdir_m68klinux)"
739 em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \
740 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS}
741 ${GENSCRIPTS} m68klynx "$(tdir_m68klynx)"
742 em68knbsd.c: $(srcdir)/emulparams/m68knbsd.sh \
743 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
744 ${GENSCRIPTS} m68knbsd "$(tdir_m68knbsd)"
745 em68kpsos.c: $(srcdir)/emulparams/m68kpsos.sh \
746 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS}
747 ${GENSCRIPTS} m68kpsos "$(tdir_m68kpsos)"
748 em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \
749 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS}
750 ${GENSCRIPTS} m88kbcs "$(tdir_m88kbcs)"
751 emcorepe.c: $(srcdir)/emulparams/mcorepe.sh \
752 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
753 ${GENSCRIPTS} mcorepe "$(tdir_mcorepe)"
754 emipsbig.c: $(srcdir)/emulparams/mipsbig.sh \
755 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
756 ${GENSCRIPTS} mipsbig
757 emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
758 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
759 ${GENSCRIPTS} mipsbsd
760 emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
761 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
762 ${GENSCRIPTS} mipsidt "$(tdir_mipsidt)"
763 emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \
764 $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
765 ${GENSCRIPTS} mipsidtl "$(tdir_mipsidtl)"
766 emipslit.c: $(srcdir)/emulparams/mipslit.sh \
767 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
768 ${GENSCRIPTS} mipslit "$(tdir_mipslit)"
769 emipslnews.c: $(srcdir)/emulparams/mipslnews.sh \
770 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
771 ${GENSCRIPTS} mipslnews
772 emipspe.c: $(srcdir)/emulparams/mipspe.sh \
773 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
774 ${GENSCRIPTS} mipspe "$(tdir_mips)"
775 emn10300.c: $(srcdir)/emulparams/mn10300.sh \
776 $(srcdir)/emulparams/mn10200.sh \
777 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
778 ${GENSCRIPTS} mn10300 "$(tdir_mn10300)"
779 emn10200.c: $(srcdir)/emulparams/mn10200.sh \
780 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
781 ${GENSCRIPTS} mn10200 "$(tdir_mn10200)"
782 enews.c: $(srcdir)/emulparams/news.sh \
783 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
784 ${GENSCRIPTS} news "$(tdir_news)"
785 ens32knbsd.c: $(srcdir)/emulparams/ns32knbsd.sh \
786 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
787 ${GENSCRIPTS} ns32knbsd "$(tdir_ns32knbsd)"
788 epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \
789 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
790 ${GENSCRIPTS} pc532macha "$(tdir_pc532macha)"
791 epdp11.c: $(srcdir)/emulparams/pdp11.sh \
792 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
793 ${GENSCRIPTS} pdp11 "$(tdir_pdp11)"
794 epjelf.c: $(srcdir)/emulparams/pjelf.sh \
795 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
796 ${GENSCRIPTS} pjelf "$(tdir_pjelf)"
797 epjlelf.c: $(srcdir)/emulparams/pjlelf.sh \
798 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
799 ${GENSCRIPTS} pjlelf "$(tdir_pjlelf)"
800 eppcmacos.c: $(srcdir)/emulparams/ppcmacos.sh \
801 $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS}
802 ${GENSCRIPTS} ppcmacos "$(tdir_ppcmacos)"
803 eppcnw.c: $(srcdir)/emulparams/ppcnw.sh \
804 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS}
805 ${GENSCRIPTS} ppcnw "$(tdir_ppcnw)"
806 eppcpe.c: $(srcdir)/emulparams/ppcpe.sh \
807 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/ppcpe.sc ${GEN_DEPENDS}
808 ${GENSCRIPTS} ppcpe "$(tdir_ppcpe)"
809 eriscix.c: $(srcdir)/emulparams/riscix.sh \
810 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
811 ${GENSCRIPTS} riscix "$(tdir_riscix)"
812 esa29200.c: $(srcdir)/emulparams/sa29200.sh \
813 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS}
814 ${GENSCRIPTS} sa29200 "$(tdir_sa29200)"
815 esh.c: $(srcdir)/emulparams/sh.sh \
816 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
817 ${GENSCRIPTS} sh "$(tdir_sh)"
818 eshelf.c: $(srcdir)/emulparams/shelf.sh \
819 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
820 ${GENSCRIPTS} shelf "$(tdir_shelf)"
821 eshelf_linux.c: $(srcdir)/emulparams/shelf_linux.sh \
822 $(srcdir)/emulparams/shlelf_linux.sh \
823 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
824 ${GENSCRIPTS} shelf_linux "$(tdir_shelf_linux)"
825 eshlelf_linux.c: $(srcdir)/emulparams/shlelf_linux.sh \
826 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
827 ${GENSCRIPTS} shlelf_linux "$(tdir_shlelf_linux)"
828 eshlelf.c: $(srcdir)/emulparams/shlelf.sh \
829 $(srcdir)/emulparams/shelf.sh \
830 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
831 ${GENSCRIPTS} shlelf "$(tdir_shlelf)"
832 eshl.c: $(srcdir)/emulparams/shl.sh \
833 $(srcdir)/emulparams/sh.sh \
834 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS}
835 ${GENSCRIPTS} shl "$(tdir_shl)"
836 eshpe.c: $(srcdir)/emulparams/shpe.sh \
837 $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS}
838 ${GENSCRIPTS} shpe "$(tdir_shl)"
839 esparcaout.c: $(srcdir)/emulparams/sparcaout.sh \
840 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
841 ${GENSCRIPTS} sparcaout "$(tdir_sparcaout)"
842 esparclinux.c: $(srcdir)/emulparams/sparclinux.sh \
843 $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
844 ${GENSCRIPTS} sparclinux "$(tdir_sparclinux)"
845 esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
846 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS}
847 ${GENSCRIPTS} sparclynx "$(tdir_sparclynx)"
848 esparcnbsd.c: $(srcdir)/emulparams/sparcnbsd.sh \
849 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
850 ${GENSCRIPTS} sparcnbsd "$(tdir_sparcnbsd)"
851 est2000.c: $(srcdir)/emulparams/st2000.sh \
852 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS}
853 ${GENSCRIPTS} st2000 "$(tdir_st2000)"
854 esun3.c: $(srcdir)/emulparams/sun3.sh \
855 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
856 ${GENSCRIPTS} sun3 "$(tdir_sun3)"
857 esun4.c: $(srcdir)/emulparams/sun4.sh \
858 $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
859 ${GENSCRIPTS} sun4 "$(tdir_sun4)"
860 etic30aout.c: $(srcdir)/emulparams/tic30aout.sh \
861 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30aout.sc ${GEN_DEPENDS}
862 ${GENSCRIPTS} tic30aout "$(tdir_tic30aout)"
863 etic30coff.c: $(srcdir)/emulparams/tic30coff.sh \
864 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic30coff.sc ${GEN_DEPENDS}
865 ${GENSCRIPTS} tic30coff "$(tdir_tic30coff)"
866 etic54xcoff.c: $(srcdir)/emulparams/tic54xcoff.sh \
867 $(srcdir)/emultempl/ticoff.em $(srcdir)/scripttempl/tic54xcoff.sc ${GEN_DEPENDS}
868 ${GENSCRIPTS} tic54xcoff "$(tdir_tic54xcoff)"
869 etic80coff.c: $(srcdir)/emulparams/tic80coff.sh \
870 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic80coff.sc ${GEN_DEPENDS}
871 ${GENSCRIPTS} tic80coff "$(tdir_tic80coff)"
872 evanilla.c: $(srcdir)/emulparams/vanilla.sh \
873 $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS}
874 ${GENSCRIPTS} vanilla "$(tdir_vanilla)"
875 evax.c: $(srcdir)/emulparams/vax.sh \
876 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
877 ${GENSCRIPTS} vax "$(tdir_vax)"
878 evsta.c: $(srcdir)/emulparams/vsta.sh \
879 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS}
880 ${GENSCRIPTS} vsta "$(tdir_vsta)"
881 ev850.c: $(srcdir)/emulparams/v850.sh \
882 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/v850.sc ${GEN_DEPENDS}
883 ${GENSCRIPTS} v850 "$(tdir_v850)"
884 ew65.c: $(srcdir)/emulparams/w65.sh \
885 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS}
886 ${GENSCRIPTS} w65 "$(tdir_w65)"
887 ez8001.c: $(srcdir)/emulparams/z8001.sh \
888 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
889 ${GENSCRIPTS} z8001 "$(tdir_z8001)"
890 ez8002.c: $(srcdir)/emulparams/z8002.sh \
891 $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS}
892 ${GENSCRIPTS} z8002 "$(tdir_z8002)"
893
894 # We need this for automake to use YLWRAP.
895 EXTRA_ld_new_SOURCES = deffilep.y
896
897 ld_new_SOURCES = ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c \
898 ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c
899 ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLDEPS)
900 ld_new_LDADD = $(EMULATION_OFILES) $(EMUL_EXTRA_OFILES) $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
901
902 # The generated emulation files mostly have the same dependencies.
903 $(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
904 ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \
905 ldctor.h ldexp.h ldlang.h ldgram.h
906
907 # This is the real libbfd.a created by libtool.
908 TESTBFDLIB = @TESTBFDLIB@
909
910 check-DEJAGNU: site.exp
911 srcroot=`cd $(srcdir) && pwd`; export srcroot; \
912 r=`pwd`; export r; \
913 LC_COLLATE=; LC_ALL=; LANG=; export LC_COLLATE LC_ALL LANG; \
914 EXPECT=$(EXPECT); export EXPECT; \
915 if [ -f $(top_builddir)/../expect/expect ]; then \
916 TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
917 export TCL_LIBRARY; \
918 fi; \
919 runtest=$(RUNTEST); \
920 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
921 $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \
922 CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \
923 CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \
924 CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \
925 OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" \
926 LIBIBERTY="$(LIBIBERTY) $(INTLLIBS)" LIBS="$(LIBS)" \
927 $(RUNTESTFLAGS); \
928 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
929 fi
930
931 # Rules for testing by relinking ld itself.
932 # A similar test is in the testsuite. This target is for ease of use
933 # when porting ld.
934
935 ld-partial.o: ld-new$(EXEEXT)
936 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld-partial.o -r $(OFILES)
937 ld1$(EXEEXT): ld-partial.o
938 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1$(EXEEXT) $(HOSTING_CRT0) ld-partial.o $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
939
940 ld1-full$(EXEEXT): ld-new
941 ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1-full$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
942
943 ld2$(EXEEXT): ld1$(EXEEXT)
944 ./ld1$(EXEEXT) $(HOSTING_EMU) -o ld2$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
945
946 ld3$(EXEEXT): ld2$(EXEEXT)
947 ./ld2$(EXEEXT) $(HOSTING_EMU) -o ld3$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) $(LIBS)
948
949 bootstrap: ld3$(EXEEXT)
950 cmp ld2$(EXEEXT) ld3$(EXEEXT)
951
952 .PHONY: bootstrap
953
954 # A test program for C++ constructors and destructors.
955 # This test is now in the testsuite.
956 #
957 #cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
958 # ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
959 # cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS)
960 #
961 #cdtest.out: cdtest
962 # ./cdtest > cdtest.tmp
963 # mv cdtest.tmp cdtest.out
964 #
965 #cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new
966 # ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
967 # cdtest-bar.o cdtest-foo.o
968 #
969 #cdtest-ur: cdtest-ur.o
970 # ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
971 # $(HOSTING_LIBS)
972 #
973 #cdtest-ur.out: cdtest-ur
974 # ./cdtest-ur > cdtest-ur.tmp
975 # mv cdtest-ur.tmp cdtest-ur.out
976 #
977 #check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
978 # diff $(srcdir)/cdtest.exp cdtest.out
979 # diff $(srcdir)/cdtest.exp cdtest-ur.out
980 #
981 #.PHONY: check-cdtest
982
983 # END OF CHECK TARGETS
984
985 # DOCUMENTATION TARGETS
986 # Manual configuration file; not usually attached to normal configuration,
987 # because almost all configs use "gen" version of manual.
988 # Set DOCVER above to change.
989 configdoc.texi: ${DOCVER}-doc.texi
990 ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
991 || ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \
992 || cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi
993
994 ldver.texi: Makefile
995 rm -f $@
996 echo '@set VERSION $(VERSION)' > $@
997
998 ld.info: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
999 @rm -f $@ $@-[0-9] $@-[0-9][0-9]
1000 $(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc $(srcdir)/ld.texinfo
1001
1002 ld.dvi: $(srcdir)/ld.texinfo configdoc.texi ldver.texi
1003 TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
1004 MAKEINFO="$(MAKEINFO) -I $(srcdir) -I $(BFDDIR)/doc" $(TEXI2DVI) -I $(BFDDIR)/doc $(srcdir)/ld.texinfo
1005
1006 # Build the man page from the texinfo file
1007 # The sed command removes the no-adjust Nroff command so that
1008 # the man output looks standard.
1009 ld.1: $(srcdir)/ld.texinfo
1010 touch $@
1011 -$(TEXI2POD) $(MANCONF) < $(srcdir)/ld.texinfo > ld.pod
1012 -($(POD2MAN) ld.pod | \
1013 sed -e '/^.if n .na/d' > $@.T$$$$ && \
1014 mv -f $@.T$$$$ $@) || \
1015 (rm -f $@.T$$$$ && exit 1)
1016 rm -f ld.pod
1017
1018 MAINTAINERCLEANFILES = ldver.texi
1019
1020 # We want to reconfigure if configure.host or configure.tgt changes.
1021 CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host $(srcdir)/configure.tgt
1022
1023 MOSTLYCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) \
1024 ldemul-list.h crtbegin.o crtend.o ld.log ld.sum
1025 mostlyclean-local:
1026 -rm -rf tmpdir
1027 CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
1028
1029 .PHONY: install-exec-local install-data-local
1030
1031 install-exec-local: ld-new$(EXEEXT)
1032 $(mkinstalldirs) $(bindir) $(tooldir)/bin
1033 @list='$(noinst_PROGRAMS)'; for p in $$list; do \
1034 if test -f $$p; then \
1035 echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
1036 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
1037 else :; fi; \
1038 done
1039 n=`echo ld | sed '$(transform)'`; \
1040 if [ "$(bindir)/$$n$(EXEEXT)" != "$(tooldir)/bin/ld$(EXEEXT)" ]; then \
1041 rm -f $(tooldir)/bin/ld$(EXEEXT); \
1042 ln $(bindir)/$$n$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
1043 || $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT); \
1044 fi
1045
1046 install-data-local:
1047 $(mkinstalldirs) $(scriptdir)/ldscripts
1048 for f in ldscripts/*; do \
1049 $(INSTALL_DATA) $$f $(scriptdir)/$$f ; \
1050 done
1051
1052 # Stuff that should be included in a distribution. The diststuff
1053 # target is run by the taz target in ../Makefile.in.
1054 EXTRA_DIST = ldgram.c ldgram.h ldlex.c $(man_MANS)
1055 diststuff: info $(EXTRA_DIST)
1056
1057 DISTCLEANFILES = tdirs site.exp site.bak stringify.sed
1058 distclean-local:
1059 rm -rf ldscripts
1060
1061 Makefile: $(BFDDIR)/configure.in
1062
1063 # Targets to rebuild dependencies in this Makefile.
1064 # Have to get rid of DEP1 here so that "$?" later includes all of $(CFILES).
1065 DEP: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
1066 rm -f DEP1
1067 $(MAKE) MKDEP="$(MKDEP)" DEP1
1068 sed -f dep.sed < DEP1 > DEPA
1069 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA
1070 if grep ' /' DEPA > /dev/null 2> /dev/null; then \
1071 echo 'make DEP failed!'; exit 1; \
1072 else \
1073 mv -f DEPA $@; \
1074 fi
1075
1076 DEP1: $(CFILES) $(GENERATED_CFILES)
1077 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
1078 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
1079 $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
1080 mv -f DEP2 $@
1081
1082 dep.sed: dep-in.sed config.status
1083 sed <$(srcdir)/dep-in.sed >dep.sed \
1084 -e 's!@INCDIR@!$(INCDIR)!' \
1085 -e 's!@SRCDIR@!$(srcdir)!'
1086
1087 dep: DEP
1088 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
1089 cat DEP >> tmp-Makefile
1090 $(srcdir)/../move-if-change tmp-Makefile Makefile
1091
1092 dep-in: DEP
1093 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
1094 cat DEP >> tmp-Makefile.in
1095 $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
1096
1097 dep-am: DEP
1098 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
1099 cat DEP >> tmp-Makefile.am
1100 $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
1101
1102 .PHONY: dep dep-in dep-am
1103
1104 # What appears below is generated by a hacked mkdep using gcc -MM.
1105
1106 # DO NOT DELETE THIS LINE -- mkdep uses it.
1107 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
1108 ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1109 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1110 $(INCDIR)/bfdlink.h $(INCDIR)/safe-ctype.h ld.h $(INCDIR)/bin-bugs.h \
1111 ldexp.h ldlang.h ldmisc.h ldgram.h ldmain.h ldctor.h
1112 ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1113 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1114 ld.h $(INCDIR)/bin-bugs.h ldmisc.h ldexp.h ldlang.h \
1115 ldfile.h ldemul.h ldmain.h ldemul-list.h
1116 ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1117 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1118 $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldmain.h \
1119 ldmisc.h ldexp.h ldgram.h ldlang.h $(INCDIR)/libiberty.h
1120 ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1121 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1122 $(INCDIR)/bfdlink.h $(INCDIR)/safe-ctype.h ld.h $(INCDIR)/bin-bugs.h \
1123 ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldgram.h \
1124 ldlex.h ldemul.h $(INCDIR)/libiberty.h
1125 ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1126 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1127 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h $(INCDIR)/obstack.h \
1128 $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldmain.h \
1129 ldgram.h ldexp.h ldlang.h ldlex.h ldmisc.h ldctor.h \
1130 ldfile.h ldemul.h $(INCDIR)/fnmatch.h $(INCDIR)/demangle.h
1131 ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1132 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1133 $(INCDIR)/safe-ctype.h $(INCDIR)/libiberty.h $(INCDIR)/progress.h \
1134 $(INCDIR)/bfdlink.h $(INCDIR)/filenames.h ld.h $(INCDIR)/bin-bugs.h \
1135 ldmain.h ldmisc.h ldwrite.h ldgram.h ldexp.h ldlang.h \
1136 ldlex.h ldfile.h ldemul.h ldctor.h
1137 ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1138 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1139 $(INCDIR)/libiberty.h $(INCDIR)/demangle.h ld.h $(INCDIR)/bin-bugs.h \
1140 ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldmain.h \
1141 ldfile.h
1142 ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1143 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1144 ld.h $(INCDIR)/bin-bugs.h ldver.h ldexp.h ldlang.h \
1145 ldfile.h ldemul.h ldmain.h
1146 ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1147 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1148 $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h \
1149 ldexp.h ldlang.h ldwrite.h ldmisc.h ldgram.h ldmain.h
1150 lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1151 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1152 $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h $(INCDIR)/bfdlink.h \
1153 ld.h $(INCDIR)/bin-bugs.h ldmain.h ldmisc.h ldexp.h \
1154 ldlang.h ldgram.h ldlex.h ldfile.h ldver.h ldemul.h \
1155 $(INCDIR)/demangle.h
1156 mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/symcat.h \
1157 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
1158 ldexp.h ldlang.h ldmisc.h mri.h ldgram.h $(INCDIR)/libiberty.h
1159 ldcref.o: ldcref.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1160 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1161 $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h ld.h $(INCDIR)/bin-bugs.h \
1162 ldmain.h ldmisc.h ldexp.h ldlang.h
1163 pe-dll.o: pe-dll.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1164 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1165 $(INCDIR)/bfdlink.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \
1166 ld.h $(INCDIR)/bin-bugs.h ldexp.h ldlang.h ldwrite.h \
1167 ldmisc.h ldgram.h ldmain.h ldfile.h ldemul.h $(INCDIR)/coff/internal.h \
1168 ../bfd/libcoff.h deffile.h pe-dll.h
1169 ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
1170 $(INCDIR)/symcat.h sysdep.h config.h $(INCDIR)/fopen-same.h \
1171 $(INCDIR)/bfdlink.h ld.h $(INCDIR)/bin-bugs.h ldexp.h \
1172 ldver.h ldlang.h ldfile.h ldemul.h ldmisc.h ldmain.h \
1173 mri.h ldctor.h ldlex.h
1174 ldlex.o: ldlex.c ../bfd/bfd.h $(INCDIR)/symcat.h sysdep.h \
1175 config.h $(INCDIR)/fopen-same.h $(INCDIR)/safe-ctype.h \
1176 ld.h $(INCDIR)/bin-bugs.h ldgram.h ldmisc.h ldexp.h \
1177 ldlang.h ldfile.h ldlex.h ldmain.h $(INCDIR)/libiberty.h
1178 deffilep.o: deffilep.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
1179 $(INCDIR)/safe-ctype.h ../bfd/bfd.h $(INCDIR)/symcat.h \
1180 sysdep.h config.h $(INCDIR)/fopen-same.h ld.h $(INCDIR)/bin-bugs.h \
1181 ldmisc.h deffile.h
1182 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.056052 seconds and 3 git commands to generate.