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