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