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