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