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