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