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