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