Commit | Line | Data |
---|---|---|
49c009b5 | 1 | # Makefile.in generated automatically by automake 1.2 from Makefile.am |
ce4d59e2 | 2 | |
49c009b5 ILT |
3 | # Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. |
4 | # This Makefile.in is free software; the Free Software Foundation | |
5 | # gives unlimited permission to copy, distribute and modify it. | |
eb02fd64 | 6 | |
eb02fd64 | 7 | |
49c009b5 | 8 | SHELL = /bin/sh |
e06ba18d | 9 | |
49c009b5 ILT |
10 | srcdir = @srcdir@ |
11 | top_srcdir = @top_srcdir@ | |
12 | VPATH = @srcdir@ | |
13 | prefix = @prefix@ | |
d66c832b | 14 | exec_prefix = @exec_prefix@ |
49c009b5 | 15 | |
f14a5192 | 16 | bindir = @bindir@ |
49c009b5 ILT |
17 | sbindir = @sbindir@ |
18 | libexecdir = @libexecdir@ | |
f14a5192 | 19 | datadir = @datadir@ |
49c009b5 ILT |
20 | sysconfdir = @sysconfdir@ |
21 | sharedstatedir = @sharedstatedir@ | |
22 | localstatedir = @localstatedir@ | |
23 | libdir = @libdir@ | |
f14a5192 | 24 | infodir = @infodir@ |
49c009b5 | 25 | mandir = @mandir@ |
f14a5192 | 26 | includedir = @includedir@ |
49c009b5 | 27 | oldincludedir = /usr/include |
f14a5192 | 28 | |
49c009b5 ILT |
29 | pkgdatadir = $(datadir)/@PACKAGE@ |
30 | pkglibdir = $(libdir)/@PACKAGE@ | |
31 | pkgincludedir = $(includedir)/@PACKAGE@ | |
e06ba18d | 32 | |
49c009b5 ILT |
33 | top_builddir = . |
34 | ||
35 | ACLOCAL = @ACLOCAL@ | |
36 | AUTOCONF = @AUTOCONF@ | |
37 | AUTOMAKE = @AUTOMAKE@ | |
38 | AUTOHEADER = @AUTOHEADER@ | |
e06ba18d | 39 | |
ba69384d | 40 | INSTALL = @INSTALL@ |
f14a5192 JM |
41 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
42 | INSTALL_DATA = @INSTALL_DATA@ | |
49c009b5 ILT |
43 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
44 | transform = @program_transform_name@ | |
45 | ||
46 | NORMAL_INSTALL = true | |
47 | PRE_INSTALL = true | |
48 | POST_INSTALL = true | |
49 | NORMAL_UNINSTALL = true | |
50 | PRE_UNINSTALL = true | |
51 | POST_UNINSTALL = true | |
52 | build_alias = @build_alias@ | |
53 | build_triplet = @build@ | |
54 | host_alias = @host_alias@ | |
55 | host_triplet = @host@ | |
56 | target_alias = @target_alias@ | |
57 | target_triplet = @target@ | |
d66c832b | 58 | CC = @CC@ |
b9a5c27f | 59 | EXEEXT = @EXEEXT@ |
49c009b5 ILT |
60 | HDEFINES = @HDEFINES@ |
61 | LD = @LD@ | |
62 | LIBTOOL = @LIBTOOL@ | |
63 | LN_S = @LN_S@ | |
64 | MAINT = @MAINT@ | |
65 | MAKEINFO = @MAKEINFO@ | |
66 | NATIVE_LIB_DIRS = @NATIVE_LIB_DIRS@ | |
67 | PACKAGE = @PACKAGE@ | |
68 | RANLIB = @RANLIB@ | |
69 | TDIRS = @TDIRS@ | |
70 | VERSION = @VERSION@ | |
71 | ||
72 | AUTOMAKE_OPTIONS = dejagnu | |
73 | ||
74 | tooldir = $(exec_prefix)/$(target_alias) | |
75 | ||
76 | YACC = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi` | |
77 | YFLAGS = -d | |
78 | LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi` | |
79 | ||
80 | # We put the scripts in the directory $(scriptdir)/ldscripts. | |
81 | # We can't put the scripts in $(datadir) because the SEARCH_DIR | |
82 | # directives need to be different for native and cross linkers. | |
83 | scriptdir = $(tooldir)/lib | |
8c32cf6e | 84 | |
d66c832b ILT |
85 | EMUL = @EMUL@ |
86 | EMULATION_OFILES = @EMULATION_OFILES@ | |
87 | ||
efa6c497 | 88 | # Search path to override the default search path for -lfoo libraries. |
ee17cac9 | 89 | # If LIB_PATH is empty, the ones in the script (if any) are left alone. |
208bc89e | 90 | # (The default is usually /lib:/usr/lib:/usr/local/lib, unless building |
917bffa7 | 91 | # a cross-linker, in which case the default is empty. See genscripts.sh.) |
ee17cac9 PB |
92 | # Otherwise, they are replaced with the ones given in LIB_PATH, |
93 | # which may have the form: LIB_PATH=/lib:/usr/local/lib | |
94 | LIB_PATH = | |
95 | ||
959eba20 JO |
96 | BASEDIR = $(srcdir)/.. |
97 | BFDDIR = $(BASEDIR)/bfd | |
98 | INCDIR = $(BASEDIR)/include | |
4a6afc88 | 99 | DEP = mkdep |
2ee11735 | 100 | |
2412a768 RP |
101 | # What version of the manual to build |
102 | DOCVER = gen | |
103 | ||
5cdea2ac | 104 | #stuff for self hosting (can be overridden in config file). |
d66c832b ILT |
105 | HOSTING_CRT0 = @HOSTING_CRT0@ |
106 | HOSTING_LIBS = @HOSTING_LIBS@ | |
74e6b793 | 107 | HOSTING_EMU = -m $(EMUL) |
5cdea2ac | 108 | |
3a9149a7 | 109 | # Setup the testing framework, if you have one |
32286e08 C |
110 | EXPECT = `if [ -f $$r/../expect/expect ] ; \ |
111 | then echo $$r/../expect/expect ; \ | |
112 | else echo expect ; fi` | |
113 | ||
114 | RUNTEST = `if [ -f $${srcroot}/../dejagnu/runtest ] ; \ | |
115 | then echo $${srcroot}/../dejagnu/runtest ; \ | |
116 | else echo runtest ; fi` | |
099c286e | 117 | |
03372cf4 | 118 | RUNTESTFLAGS = |
32286e08 C |
119 | |
120 | CC_FOR_TARGET = ` \ | |
65d22248 | 121 | if [ -f $$r/../gcc/xgcc ] ; then \ |
32286e08 C |
122 | if [ -f $$r/../newlib/Makefile ] ; then \ |
123 | echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \ | |
124 | else \ | |
125 | echo $$r/../gcc/xgcc -B$$r/../gcc/; \ | |
126 | fi; \ | |
127 | else \ | |
dfc84b08 | 128 | if [ "@host@" = "@target@" ] ; then \ |
32286e08 C |
129 | echo $(CC); \ |
130 | else \ | |
b5f076d4 | 131 | echo gcc | sed '$(program_transform_name)'; \ |
32286e08 C |
132 | fi; \ |
133 | fi` | |
134 | ||
135 | CXX = gcc | |
136 | CXX_FOR_TARGET = ` \ | |
65d22248 | 137 | if [ -f $$r/../gcc/xgcc ] ; then \ |
32286e08 C |
138 | if [ -f $$r/../newlib/Makefile ] ; then \ |
139 | echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \ | |
140 | else \ | |
141 | echo $$r/../gcc/xgcc -B$$r/../gcc/; \ | |
142 | fi; \ | |
143 | else \ | |
dfc84b08 | 144 | if [ "@host@" = "@target@" ] ; then \ |
32286e08 C |
145 | echo $(CXX); \ |
146 | else \ | |
b5f076d4 | 147 | echo gcc | sed '$(program_transform_name)'; \ |
32286e08 C |
148 | fi; \ |
149 | fi` | |
c97b9003 | 150 | |
49c009b5 ILT |
151 | noinst_PROGRAMS = ld-new |
152 | info_TEXINFOS = ld.texinfo | |
153 | noinst_TEXINFOS = ldint.texinfo | |
154 | man_MANS = ld.1 | |
565c93e9 | 155 | |
49c009b5 | 156 | INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) $(HDEFINES) $(CFLAGS) |
f78e2569 | 157 | |
49c009b5 | 158 | BFDLIB = ../bfd/libbfd.la |
959eba20 | 159 | LIBIBERTY = ../libiberty/libiberty.a |
eb02fd64 | 160 | |
efa6c497 ILT |
161 | ALL_EMULATIONS = \ |
162 | ea29k.o \ | |
163 | eaixppc.o \ | |
164 | eaixrs6.o \ | |
165 | ealpha.o \ | |
0c0b16f9 | 166 | earcelf.o \ |
efa6c497 ILT |
167 | earmaoutb.o \ |
168 | earmaoutl.o \ | |
169 | earmcoff.o \ | |
170 | earmpe.o \ | |
171 | ecoff_sparc.o \ | |
e48412a2 MM |
172 | ed10velf.o \ |
173 | $(start-sanitize-d30v) \ | |
174 | ed30velf.o \ | |
175 | $(end-sanitize-d30v) \ | |
efa6c497 ILT |
176 | edelta68.o \ |
177 | eebmon29k.o \ | |
178 | eelf32_sparc.o \ | |
179 | eelf32b4300.o \ | |
180 | eelf32bmip.o \ | |
719de0ea ILT |
181 | eelf32ebmip.o \ |
182 | eelf32elmip.o \ | |
efa6c497 ILT |
183 | eelf32l4300.o \ |
184 | eelf32lmip.o \ | |
185 | eelf32lppc.o \ | |
186 | eelf32ppc.o \ | |
efa6c497 ILT |
187 | eelf_i386.o \ |
188 | egld960.o \ | |
189 | egld960coff.o \ | |
190 | ego32.o \ | |
191 | eh8300.o \ | |
192 | eh8300h.o \ | |
f14a5192 | 193 | eh8300s.o \ |
efa6c497 ILT |
194 | eh8500.o \ |
195 | eh8500b.o \ | |
196 | eh8500c.o \ | |
197 | eh8500m.o \ | |
198 | eh8500s.o \ | |
199 | ehp300bsd.o \ | |
200 | ehp3hpux.o \ | |
201 | ehppaelf.o \ | |
202 | ei386aout.o \ | |
203 | ei386bsd.o \ | |
204 | ei386coff.o \ | |
205 | ei386go32.o \ | |
206 | ei386linux.o \ | |
207 | ei386lynx.o \ | |
208 | ei386mach.o \ | |
209 | ei386moss.o \ | |
210 | ei386msdos.o \ | |
211 | ei386nbsd.o \ | |
212 | ei386nw.o \ | |
213 | ei386pe.o \ | |
214 | elnk960.o \ | |
215 | em68k4knbsd.o \ | |
216 | em68kaout.o \ | |
217 | em68kaux.o \ | |
218 | em68kcoff.o \ | |
219 | em68kelf.o \ | |
220 | em68klinux.o \ | |
221 | em68klynx.o \ | |
222 | em68knbsd.o \ | |
223 | em68kpsos.o \ | |
224 | em88kbcs.o \ | |
225 | emipsbig.o \ | |
226 | emipsbsd.o \ | |
227 | emipsidt.o \ | |
228 | emipsidtl.o \ | |
229 | emipslit.o \ | |
9ae9e582 | 230 | emipslnews.o \ |
efa6c497 ILT |
231 | enews.o \ |
232 | ens32knbsd.o \ | |
1ab4cd57 | 233 | epc532macha.o \ |
efa6c497 ILT |
234 | eppcmacos.o \ |
235 | eppcnw.o \ | |
236 | eppcpe.o \ | |
237 | eriscix.o \ | |
238 | esa29200.o \ | |
239 | esh.o \ | |
79e9dc20 DE |
240 | eshelf.o \ |
241 | eshlelf.o \ | |
efa6c497 ILT |
242 | eshl.o \ |
243 | esparcaout.o \ | |
ba69384d | 244 | esparclinux.o \ |
efa6c497 ILT |
245 | esparclynx.o \ |
246 | esparcnbsd.o \ | |
247 | est2000.o \ | |
248 | esun3.o \ | |
249 | esun4.o \ | |
e48412a2 MM |
250 | $(start-sanitize-tic80) \ |
251 | etic80coff.o \ | |
252 | $(end-sanitize-tic80) \ | |
efa6c497 ILT |
253 | evanilla.o \ |
254 | evax.o \ | |
255 | evsta.o \ | |
256 | ew65.o \ | |
257 | ez8001.o \ | |
258 | ez8002.o | |
7e5c1057 | 259 | |
30bddd33 | 260 | ALL_64_EMULATIONS = \ |
e48412a2 | 261 | eelf64_sparc.o \ |
30bddd33 ILT |
262 | eelf64alpha.o |
263 | ||
74e6b793 | 264 | CFILES = ldctor.c ldemul.c ldexp.c ldfile.c ldlang.c \ |
4a6afc88 | 265 | ldmain.c ldmisc.c ldver.c ldwrite.c lexsup.c \ |
3fac4887 | 266 | mri.c ldcref.c |
eb02fd64 | 267 | |
74e6b793 | 268 | HFILES = config.h ld.h ldctor.h ldemul.h ldexp.h ldfile.h \ |
4a6afc88 | 269 | ldlang.h ldlex.h ldmain.h ldmisc.h ldver.h \ |
3fac4887 | 270 | ldwrite.h mri.h |
eb02fd64 | 271 | |
74e6b793 | 272 | GENERATED_CFILES = ldgram.c ldlex.c |
208bc89e | 273 | GENERATED_HFILES = ldgram.h ldemul-list.h |
eb02fd64 | 274 | |
74e6b793 | 275 | OFILES = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o \ |
4a6afc88 | 276 | ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o \ |
3fac4887 | 277 | ldfile.o ldcref.o ${EMULATION_OFILES} |
eb02fd64 | 278 | |
82ebe9a2 | 279 | STAGESTUFF = *.o ldscripts/* e*.c |
e06ba18d | 280 | |
49c009b5 ILT |
281 | # These all start with e so 'make clean' can find them. |
282 | ||
283 | GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} @host@ @target@ @target_alias@ ${EMUL} "@NATIVE_LIB_DIRS@" | |
284 | GEN_DEPENDS = $(srcdir)/genscripts.sh $(srcdir)/emultempl/stringify.sed | |
285 | ||
286 | ld_new_SOURCES = ldgram.y ldlex.l lexsup.c ldlang.c mri.c ldctor.c ldmain.c \ | |
287 | ldwrite.c ldexp.c ldemul.c ldver.c ldmisc.c ldfile.c ldcref.c | |
24d2330e | 288 | ld_new_DEPENDENCIES = $(EMULATION_OFILES) $(BFDLIB) $(LIBIBERTY) |
49c009b5 ILT |
289 | ld_new_LDADD = $(EMULATION_OFILES) $(BFDLIB) $(LIBIBERTY) @LEXLIB@ |
290 | ||
291 | # This is the real libbfd.a created by libtool. | |
292 | TESTBFDLIB = ../bfd/.libs/libbfd.a | |
293 | ||
294 | MOSTCLEANFILES = $(STAGESTUFF) ld1$(EXEEXT) ld2$(EXEEXT) ld3$(EXEEXT) \ | |
295 | ldemul-list.h tmpdir crtbegin.o crtend.o | |
0c0b16f9 | 296 | CLEANFILES = dep.sed .dep .dep1 bfdsumm.texi |
49c009b5 ILT |
297 | DISTCLEANFILES = ldscripts |
298 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
299 | mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs | |
300 | CONFIG_HEADER = config.h | |
301 | CONFIG_CLEAN_FILES = | |
302 | noinst_PROGRAMS = ld-new$(EXEEXT) | |
303 | PROGRAMS = $(noinst_PROGRAMS) | |
304 | ||
305 | ||
306 | DEFS = @DEFS@ -I. -I$(srcdir) -I. | |
307 | CPPFLAGS = @CPPFLAGS@ | |
308 | LDFLAGS = @LDFLAGS@ | |
309 | LIBS = @LIBS@ | |
310 | ld_new_OBJECTS = ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o \ | |
311 | ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o | |
312 | ld_new_LDFLAGS = | |
313 | LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ | |
314 | LEXLIB = @LEXLIB@ | |
315 | CFLAGS = @CFLAGS@ | |
316 | COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) | |
317 | LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) | |
318 | LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@ | |
319 | TEXI2DVI = `if test -f $(top_srcdir)/../texinfo/util/texi2dvi; then echo $(top_srcdir)/../texinfo/util/texi2dvi; else echo texi2dvi; fi` | |
320 | TEXINFO_TEX = $(top_srcdir)/../texinfo/texinfo.tex | |
321 | INFO_DEPS = ld.info | |
322 | DVIS = ld.dvi | |
323 | TEXINFOS = ld.texinfo | |
324 | MANS = ld.1 | |
325 | ||
326 | NROFF = nroff | |
327 | DIST_COMMON = README ChangeLog Makefile.am Makefile.in NEWS TODO \ | |
328 | acconfig.h acinclude.m4 aclocal.m4 config.in configure configure.in \ | |
329 | ldgram.c ldlex.c stamp-h.in | |
330 | ||
331 | ||
332 | DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) | |
333 | ||
334 | TAR = tar | |
335 | GZIP = --best | |
336 | SOURCES = $(ld_new_SOURCES) | |
337 | OBJECTS = $(ld_new_OBJECTS) | |
338 | ||
339 | default: all | |
340 | ||
341 | .SUFFIXES: | |
342 | .SUFFIXES: .c .dvi .h .info .l .lo .o .ps .texi .texinfo .y | |
343 | $(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | |
344 | cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile | |
345 | ||
346 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
347 | cd $(top_builddir) \ | |
348 | && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
349 | ||
350 | $(ACLOCAL_M4): @MAINT@ configure.in acinclude.m4 | |
351 | cd $(srcdir) && $(ACLOCAL) | |
352 | ||
353 | config.status: $(srcdir)/configure | |
354 | $(SHELL) ./config.status --recheck | |
355 | $(srcdir)/configure: @MAINT@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) | |
356 | cd $(srcdir) && $(AUTOCONF) | |
357 | ||
0c0b16f9 | 358 | config.h: stamp-h ; @: |
49c009b5 ILT |
359 | stamp-h: $(srcdir)/config.in $(top_builddir)/config.status |
360 | cd $(top_builddir) \ | |
361 | && CONFIG_FILES= CONFIG_HEADERS=config.h:config.in \ | |
362 | $(SHELL) ./config.status | |
363 | @echo timestamp > stamp-h | |
364 | $(srcdir)/config.in: @MAINT@$(srcdir)/stamp-h.in | |
365 | $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h | |
366 | cd $(top_srcdir) && $(AUTOHEADER) | |
367 | @echo timestamp > $(srcdir)/stamp-h.in | |
368 | ||
369 | mostlyclean-hdr: | |
370 | ||
371 | clean-hdr: | |
372 | ||
373 | distclean-hdr: | |
374 | rm -f config.h | |
375 | ||
376 | maintainer-clean-hdr: | |
377 | ||
378 | mostlyclean-noinstPROGRAMS: | |
379 | ||
380 | clean-noinstPROGRAMS: | |
381 | test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) | |
382 | ||
383 | distclean-noinstPROGRAMS: | |
384 | ||
385 | maintainer-clean-noinstPROGRAMS: | |
386 | ||
387 | .c.o: | |
388 | $(COMPILE) -c $< | |
389 | ||
390 | mostlyclean-compile: | |
391 | rm -f *.o core | |
392 | ||
393 | clean-compile: | |
394 | ||
395 | distclean-compile: | |
396 | rm -f *.tab.c | |
397 | ||
398 | maintainer-clean-compile: | |
399 | ||
400 | .c.lo: | |
401 | $(LIBTOOL) --mode=compile $(COMPILE) -c $< | |
402 | ||
403 | mostlyclean-libtool: | |
404 | rm -f *.lo | |
405 | ||
406 | clean-libtool: | |
407 | rm -rf .libs | |
408 | ||
409 | distclean-libtool: | |
410 | ||
411 | maintainer-clean-libtool: | |
412 | ||
413 | ld-new$(EXEEXT): $(ld_new_OBJECTS) $(ld_new_DEPENDENCIES) | |
414 | @rm -f ld-new$(EXEEXT) | |
415 | $(LINK) $(ld_new_LDFLAGS) $(ld_new_OBJECTS) $(ld_new_LDADD) $(LIBS) | |
416 | .y.c: | |
417 | $(YACC) $(YFLAGS) $< && mv y.tab.c $@ | |
418 | if test -f y.tab.h; then \ | |
419 | if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \ | |
420 | else :; fi | |
421 | .y.h: | |
422 | $(YACC) $(YFLAGS) $< && mv y.tab.c $@ | |
423 | if test -f y.tab.h; then \ | |
424 | if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \ | |
425 | else :; fi | |
426 | .l.c: | |
427 | $(LEX) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@ | |
428 | ||
429 | ld.info: ld.texinfo | |
430 | ld.dvi: ld.texinfo | |
431 | ||
432 | ||
433 | DVIPS = dvips | |
434 | ||
435 | .texi.info: | |
436 | @rm -f $@ $@-[0-9] $@-[0-9][0-9] | |
437 | $(MAKEINFO) -I $(srcdir) $< | |
438 | ||
439 | .texi.dvi: | |
440 | TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \ | |
441 | MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< | |
442 | ||
443 | .texi: | |
444 | @rm -f $@ $@-[0-9] $@-[0-9][0-9] | |
445 | $(MAKEINFO) -I $(srcdir) $< | |
446 | ||
447 | .texinfo.info: | |
448 | @rm -f $@ $@-[0-9] $@-[0-9][0-9] | |
449 | $(MAKEINFO) -I $(srcdir) $< | |
450 | ||
451 | .texinfo: | |
452 | @rm -f $@ $@-[0-9] $@-[0-9][0-9] | |
453 | $(MAKEINFO) -I $(srcdir) $< | |
454 | ||
455 | .texinfo.dvi: | |
456 | TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \ | |
457 | MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< | |
458 | .dvi.ps: | |
459 | $(DVIPS) $< -o $@ | |
460 | ||
461 | install-info-am: $(INFO_DEPS) | |
462 | @$(NORMAL_INSTALL) | |
463 | $(mkinstalldirs) $(infodir) | |
464 | @for file in $(INFO_DEPS); do \ | |
465 | if test -f $$file; then d=.; else d=$(srcdir); fi; \ | |
466 | for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \ | |
467 | if test -f $$d/$$ifile; then \ | |
468 | echo " $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile"; \ | |
469 | $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \ | |
470 | else : ; fi; \ | |
471 | done; \ | |
472 | done | |
473 | @$(POST_INSTALL) | |
474 | @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ | |
475 | for file in $(INFO_DEPS); do \ | |
476 | echo " install-info --info-dir=$(infodir) $(infodir)/$$file";\ | |
477 | install-info --info-dir=$(infodir) $(infodir)/$$file || :;\ | |
478 | done; \ | |
479 | else : ; fi | |
480 | ||
481 | uninstall-info: | |
482 | $(PRE_UNINSTALL) | |
483 | @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ | |
484 | ii=yes; \ | |
485 | else ii=; fi; \ | |
486 | for file in $(INFO_DEPS); do \ | |
487 | test -z $ii || install-info --info-dir=$(infodir) --remove $$file; \ | |
488 | done | |
489 | $(NORMAL_UNINSTALL) | |
490 | for file in $(INFO_DEPS); do \ | |
491 | (cd $(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \ | |
492 | done | |
493 | ||
494 | dist-info: $(INFO_DEPS) | |
495 | for base in $(INFO_DEPS); do \ | |
496 | if test -f $$base; then d=.; else d=$(srcdir); fi; \ | |
497 | for file in `cd $$d && eval echo $$base*`; do \ | |
498 | test -f $(distdir)/$$file \ | |
499 | || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ | |
500 | || cp -p $$d/$$file $(distdir)/$$file; \ | |
501 | done; \ | |
502 | done | |
503 | ||
504 | mostlyclean-aminfo: | |
505 | rm -f ld.aux ld.cp ld.cps ld.dvi ld.fn ld.fns ld.ky ld.log ld.pg ld.toc \ | |
506 | ld.tp ld.tps ld.vr ld.vrs ld.op ld.tr ld.cv | |
507 | ||
508 | clean-aminfo: | |
509 | ||
510 | distclean-aminfo: | |
511 | ||
512 | maintainer-clean-aminfo: | |
513 | for i in $(INFO_DEPS); do rm -f `eval echo $$i*`; done | |
514 | clean-info: mostlyclean-aminfo | |
515 | install-man: $(MANS) | |
516 | $(NORMAL_INSTALL) | |
517 | $(mkinstalldirs) $(mandir)/man1 | |
518 | @sect=1; \ | |
519 | inst=`echo "ld" | sed '$(transform)'`.1; \ | |
520 | if test -f $(srcdir)/ld.1; then file=$(srcdir)/ld.1; \ | |
521 | else file=ld.1; fi; \ | |
522 | echo " $(INSTALL_DATA) $$file $(mandir)/man$$sect/$$inst"; \ | |
523 | $(INSTALL_DATA) $$file $(mandir)/man$$sect/$$inst | |
524 | ||
525 | uninstall-man: | |
526 | $(NORMAL_UNINSTALL) | |
527 | inst=`echo "ld" | sed '$(transform)'`.1; \ | |
528 | rm -f $(mandir)/man1/$$inst | |
529 | ||
530 | ||
531 | tags: TAGS | |
532 | ||
533 | ID: $(HEADERS) $(SOURCES) | |
534 | here=`pwd` && cd $(srcdir) && mkid -f$$here/ID $(SOURCES) $(HEADERS) | |
535 | ||
536 | TAGS: $(HEADERS) $(SOURCES) config.in $(TAGS_DEPENDENCIES) | |
537 | tags=; \ | |
538 | here=`pwd`; \ | |
539 | test -z "$(ETAGS_ARGS)config.in$(SOURCES)$(HEADERS)$$tags" \ | |
540 | || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.in $(SOURCES) $(HEADERS) -o $$here/TAGS) | |
541 | ||
542 | mostlyclean-tags: | |
543 | ||
544 | clean-tags: | |
545 | ||
546 | distclean-tags: | |
547 | rm -f TAGS ID | |
548 | ||
549 | maintainer-clean-tags: | |
550 | ||
551 | distdir = $(PACKAGE)-$(VERSION) | |
552 | top_distdir = $(distdir) | |
553 | ||
554 | # This target untars the dist file and tries a VPATH configuration. Then | |
555 | # it guarantees that the distribution is self-contained by making another | |
556 | # tarfile. | |
557 | distcheck: dist | |
558 | rm -rf $(distdir) | |
559 | GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz | |
560 | mkdir $(distdir)/=build | |
561 | mkdir $(distdir)/=inst | |
562 | dc_install_base=`cd $(distdir)/=inst && pwd`; \ | |
563 | cd $(distdir)/=build \ | |
564 | && ../configure --srcdir=.. --prefix=$$dc_install_base \ | |
565 | && $(MAKE) \ | |
566 | && $(MAKE) dvi \ | |
567 | && $(MAKE) check \ | |
568 | && $(MAKE) install \ | |
569 | && $(MAKE) installcheck \ | |
570 | && $(MAKE) dist | |
571 | rm -rf $(distdir) | |
572 | @echo "========================"; \ | |
573 | echo "$(distdir).tar.gz is ready for distribution"; \ | |
574 | echo "========================" | |
575 | dist: distdir | |
576 | -chmod -R a+r $(distdir) | |
577 | GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) | |
578 | rm -rf $(distdir) | |
579 | dist-all: distdir | |
580 | -chmod -R a+r $(distdir) | |
581 | GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) | |
582 | rm -rf $(distdir) | |
583 | distdir: $(DISTFILES) | |
584 | rm -rf $(distdir) | |
585 | mkdir $(distdir) | |
586 | -chmod 777 $(distdir) | |
587 | @for file in $(DISTFILES); do \ | |
588 | if test -f $$file; then d=.; else d=$(srcdir); fi; \ | |
589 | test -f $(distdir)/$$file \ | |
590 | || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ | |
591 | || cp -p $$d/$$file $(distdir)/$$file; \ | |
592 | done | |
593 | $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info | |
594 | ||
595 | DEJATOOL = $(PACKAGE) | |
596 | site.exp: Makefile | |
597 | @echo 'Making a new site.exp file...' | |
598 | -@rm -f site.bak | |
599 | @echo '## these variables are automatically generated by make ##' > $@-t | |
600 | @echo '# Do not edit here. If you wish to override these values' >> $@-t | |
601 | @echo '# edit the last section' >> $@-t | |
602 | @echo 'set tool $(DEJATOOL)' >> $@-t | |
603 | @echo 'set srcdir $(srcdir)' >> $@-t | |
604 | @echo 'set objdir' `pwd` >> $@-t | |
605 | @echo 'set host_alias $(host_alias)' >> $@-t | |
606 | @echo 'set host_triplet $(host_triplet)' >> $@-t | |
607 | @echo 'set target_alias $(target_alias)' >> $@-t | |
608 | @echo 'set target_triplet $(target_triplet)' >> $@-t | |
609 | @echo 'set build_alias $(build_alias)' >> $@-t | |
610 | @echo 'set build_triplet $(build_triplet)' >> $@-t | |
611 | @echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t | |
612 | -@sed '1,/^## All variables above are.*##/ d' site.bak >> $@-t | |
613 | -@mv site.exp site.bak | |
614 | @mv $@-t site.exp | |
615 | info: $(INFO_DEPS) | |
616 | dvi: $(DVIS) | |
617 | check: all | |
618 | $(MAKE) check-DEJAGNU | |
619 | installcheck: | |
620 | install-info: install-info-am | |
621 | install-exec: install-exec-local | |
622 | @$(NORMAL_INSTALL) | |
623 | ||
624 | install-data: install-man install-data-local | |
625 | @$(NORMAL_INSTALL) | |
626 | ||
627 | install: install-exec install-data all | |
628 | @: | |
629 | ||
630 | uninstall: uninstall-man | |
631 | ||
632 | all: Makefile $(PROGRAMS) $(MANS) config.h | |
633 | ||
634 | install-strip: | |
635 | $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install | |
636 | installdirs: | |
637 | $(mkinstalldirs) $(mandir)/man1 | |
638 | ||
2ee11735 | 639 | |
49c009b5 ILT |
640 | mostlyclean-generic: |
641 | test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) | |
642 | ||
643 | clean-generic: | |
644 | test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) | |
645 | ||
646 | distclean-generic: | |
647 | rm -f Makefile $(DISTCLEANFILES) | |
648 | rm -f config.cache config.log stamp-h stamp-h[0-9]* | |
649 | test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | |
650 | ||
651 | maintainer-clean-generic: | |
652 | test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | |
653 | test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) | |
654 | mostlyclean: mostlyclean-hdr mostlyclean-noinstPROGRAMS \ | |
655 | mostlyclean-compile mostlyclean-libtool \ | |
656 | mostlyclean-aminfo mostlyclean-tags mostlyclean-generic | |
657 | ||
658 | clean: clean-hdr clean-noinstPROGRAMS clean-compile clean-libtool \ | |
659 | clean-aminfo clean-tags clean-generic mostlyclean | |
660 | ||
661 | distclean: distclean-hdr distclean-noinstPROGRAMS distclean-compile \ | |
662 | distclean-libtool distclean-aminfo distclean-tags \ | |
663 | distclean-generic clean | |
664 | rm -f config.status | |
665 | rm -f libtool | |
666 | ||
667 | maintainer-clean: maintainer-clean-hdr maintainer-clean-noinstPROGRAMS \ | |
668 | maintainer-clean-compile maintainer-clean-libtool \ | |
669 | maintainer-clean-aminfo maintainer-clean-tags \ | |
670 | maintainer-clean-generic distclean | |
671 | @echo "This command is intended for maintainers to use;" | |
672 | @echo "it deletes files that may require special tools to rebuild." | |
673 | rm -f config.status | |
674 | ||
675 | .PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \ | |
676 | maintainer-clean-hdr mostlyclean-noinstPROGRAMS \ | |
677 | distclean-noinstPROGRAMS clean-noinstPROGRAMS \ | |
678 | maintainer-clean-noinstPROGRAMS mostlyclean-compile distclean-compile \ | |
679 | clean-compile maintainer-clean-compile mostlyclean-libtool \ | |
680 | distclean-libtool clean-libtool maintainer-clean-libtool \ | |
681 | install-info-am uninstall-info mostlyclean-aminfo distclean-aminfo \ | |
682 | clean-aminfo maintainer-clean-aminfo install-man uninstall-man tags \ | |
683 | mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \ | |
684 | distdir check-DEJAGNU info dvi installcheck install-info install-exec \ | |
685 | install-data install uninstall all installdirs mostlyclean-generic \ | |
686 | distclean-generic clean-generic maintainer-clean-generic clean \ | |
687 | mostlyclean distclean maintainer-clean | |
cc964c6f | 688 | |
32286e08 | 689 | |
4a6afc88 | 690 | ldmain.o: ldmain.c config.status |
49c009b5 | 691 | $(COMPILE) -c -DDEFAULT_EMULATION='"$(EMUL)"' -DSCRIPTDIR='"$(scriptdir)"' -DTARGET='"@target@"' $(srcdir)/ldmain.c |
4a6afc88 | 692 | |
82ebe9a2 | 693 | ldemul-list.h: Makefile |
7e5c1057 PB |
694 | (echo "/* This file is automatically generated. DO NOT EDIT! */";\ |
695 | for f in `echo " " ${EMULATION_OFILES} "" \ | |
82ebe9a2 | 696 | | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \ |
7e5c1057 PB |
697 | echo "extern ld_emulation_xfer_type ld_$${f}_emulation;"; \ |
698 | done;\ | |
699 | echo "";\ | |
700 | echo "#define EMULATION_LIST \\";\ | |
701 | for f in `echo " " ${EMULATION_OFILES} "" \ | |
82ebe9a2 | 702 | | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \ |
7e5c1057 PB |
703 | echo " &ld_$${f}_emulation, \\"; \ |
704 | done;\ | |
4a6afc88 ILT |
705 | echo " 0") >ldemul-tmp.h |
706 | mv ldemul-tmp.h ldemul-list.h | |
95d31c3c | 707 | @TDIRS@ |
7e5c1057 | 708 | |
efa6c497 ILT |
709 | ea29k.c: $(srcdir)/emulparams/a29k.sh \ |
710 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/a29k.sc ${GEN_DEPENDS} | |
711 | ${GENSCRIPTS} a29k "$(tdir_a29k)" | |
712 | eaixppc.c: $(srcdir)/emulparams/aixppc.sh \ | |
713 | $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS} | |
714 | ${GENSCRIPTS} aixppc "$(tdir_aixppc)" | |
715 | eaixrs6.c: $(srcdir)/emulparams/aixrs6.sh \ | |
716 | $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS} | |
717 | ${GENSCRIPTS} aixrs6 "$(tdir_aixrs6)" | |
718 | ealpha.c: $(srcdir)/emulparams/alpha.sh \ | |
719 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/alpha.sc ${GEN_DEPENDS} | |
720 | ${GENSCRIPTS} alpha "$(tdir_alpha)" | |
efa6c497 ILT |
721 | earcelf.c: $(srcdir)/emulparams/arcelf.sh \ |
722 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | |
723 | ${GENSCRIPTS} arcelf "$(tdir_arcelf)" | |
efa6c497 ILT |
724 | earmaoutb.c: $(srcdir)/emulparams/armaoutb.sh \ |
725 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS} | |
726 | ${GENSCRIPTS} armaoutb "$(tdir_armaoutb)" | |
727 | earmaoutl.c: $(srcdir)/emulparams/armaoutl.sh \ | |
728 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armaout.sc ${GEN_DEPENDS} | |
729 | ${GENSCRIPTS} armaoutl "$(tdir_armaoutl)" | |
730 | earmcoff.c: $(srcdir)/emulparams/armcoff.sh \ | |
731 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/armcoff.sc ${GEN_DEPENDS} | |
732 | ${GENSCRIPTS} armcoff "$(tdir_armcoff)" | |
28d0c3ce | 733 | earmpe.c: $(srcdir)/emulparams/armpe.sh \ |
d66c832b | 734 | $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS} |
95d31c3c | 735 | ${GENSCRIPTS} armpe "$(tdir_armpe)" |
efa6c497 ILT |
736 | ecoff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \ |
737 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS} | |
738 | ${GENSCRIPTS} coff_sparc "$(tdir_coff_sparc)" | |
e9525d96 | 739 | ed10velf.c: $(srcdir)/emulparams/d10velf.sh \ |
10e31c75 | 740 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd10v.sc ${GEN_DEPENDS} |
04c17a75 | 741 | ${GENSCRIPTS} d10velf "$(tdir_d10v)" |
49c009b5 | 742 | start-sanitize-d30v: |
9ae9e582 ILT |
743 | ed30velf.c: $(srcdir)/emulparams/d30velf.sh \ |
744 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elfd30v.sc ${GEN_DEPENDS} | |
745 | ${GENSCRIPTS} d30velf "$(tdir_d30v)" | |
49c009b5 | 746 | end-sanitize-d30v: |
efa6c497 ILT |
747 | edelta68.c: $(srcdir)/emulparams/delta68.sh \ |
748 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS} | |
749 | ${GENSCRIPTS} delta68 "$(tdir_delta68)" | |
750 | eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \ | |
751 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/ebmon29k.sc ${GEN_DEPENDS} | |
752 | ${GENSCRIPTS} ebmon29k "$(tdir_ebmon29k)" | |
79e9dc20 DE |
753 | em32relf.c: $(srcdir)/emulparams/m32relf.sh \ |
754 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | |
755 | ${GENSCRIPTS} m32relf "$(tdir_m32r)" | |
efa6c497 ILT |
756 | eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \ |
757 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | |
758 | ${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)" | |
759 | eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \ | |
760 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | |
761 | ${GENSCRIPTS} elf32b4300 "$(tdir_elf32b4300)" | |
762 | eelf32bmip.c: $(srcdir)/emulparams/elf32bmip.sh \ | |
b9a5c27f | 763 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
efa6c497 | 764 | ${GENSCRIPTS} elf32bmip "$(tdir_elf32bmip)" |
719de0ea | 765 | eelf32ebmip.c: $(srcdir)/emulparams/elf32ebmip.sh \ |
b9a5c27f | 766 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
719de0ea ILT |
767 | ${GENSCRIPTS} elf32ebmip "$(tdir_elf32ebmip)" |
768 | eelf32elmip.c: $(srcdir)/emulparams/elf32elmip.sh \ | |
b9a5c27f | 769 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
719de0ea | 770 | ${GENSCRIPTS} elf32elmip "$(tdir_elf32elmip)" |
efa6c497 ILT |
771 | eelf32l4300.c: $(srcdir)/emulparams/elf32l4300.sh \ |
772 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | |
773 | ${GENSCRIPTS} elf32l4300 "$(tdir_elf32l4300)" | |
774 | eelf32lmip.c: $(srcdir)/emulparams/elf32lmip.sh \ | |
b9a5c27f | 775 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
efa6c497 ILT |
776 | ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)" |
777 | eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \ | |
778 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS} | |
779 | ${GENSCRIPTS} elf32lppc "$(tdir_elf32lppc)" | |
780 | eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \ | |
781 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS} | |
782 | ${GENSCRIPTS} elf32ppc "$(tdir_elf32ppc)" | |
f14a5192 JM |
783 | eelf64alpha.c: $(srcdir)/emulparams/elf64alpha.sh \ |
784 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | |
785 | ${GENSCRIPTS} elf64alpha "$(tdir_elf64alpha)" | |
efa6c497 | 786 | eelf64_sparc.c: $(srcdir)/emulparams/elf64_sparc.sh \ |
e48412a2 | 787 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} |
efa6c497 ILT |
788 | ${GENSCRIPTS} elf64_sparc "$(tdir_elf64_sparc)" |
789 | eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \ | |
790 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | |
791 | ${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)" | |
792 | egld960.c: $(srcdir)/emulparams/gld960.sh \ | |
793 | $(srcdir)/emultempl/gld960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS} | |
794 | ${GENSCRIPTS} gld960 "$(tdir_gld960)" | |
795 | egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \ | |
796 | $(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS} | |
797 | ${GENSCRIPTS} gld960coff "$(tdir_gld960coff)" | |
82ebe9a2 | 798 | ego32.c: $(srcdir)/emulparams/go32.sh \ |
8ddef552 | 799 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
95d31c3c | 800 | ${GENSCRIPTS} go32 "$(tdir_go32)" |
efa6c497 ILT |
801 | eh8300.c: $(srcdir)/emulparams/h8300.sh \ |
802 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300.sc ${GEN_DEPENDS} | |
803 | ${GENSCRIPTS} h8300 "$(tdir_h8300)" | |
804 | eh8300h.c: $(srcdir)/emulparams/h8300h.sh \ | |
805 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300h.sc ${GEN_DEPENDS} | |
806 | ${GENSCRIPTS} h8300h "$(tdir_h8300h)" | |
f14a5192 JM |
807 | eh8300s.c: $(srcdir)/emulparams/h8300s.sh \ |
808 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8300s.sc ${GEN_DEPENDS} | |
809 | ${GENSCRIPTS} h8300s "$(tdir_h8300s)" | |
efa6c497 ILT |
810 | eh8500.c: $(srcdir)/emulparams/h8500.sh \ |
811 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500.sc ${GEN_DEPENDS} | |
812 | ${GENSCRIPTS} h8500 "$(tdir_h8500)" | |
813 | eh8500b.c: $(srcdir)/emulparams/h8500b.sh \ | |
814 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500b.sc ${GEN_DEPENDS} | |
815 | ${GENSCRIPTS} h8500b "$(tdir_h8500b)" | |
816 | eh8500c.c: $(srcdir)/emulparams/h8500c.sh \ | |
817 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500c.sc ${GEN_DEPENDS} | |
818 | ${GENSCRIPTS} h8500c "$(tdir_h8500c)" | |
819 | eh8500m.c: $(srcdir)/emulparams/h8500m.sh \ | |
820 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500m.sc ${GEN_DEPENDS} | |
821 | ${GENSCRIPTS} h8500m "$(tdir_h8500m)" | |
822 | eh8500s.c: $(srcdir)/emulparams/h8500s.sh \ | |
823 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/h8500s.sc ${GEN_DEPENDS} | |
824 | ${GENSCRIPTS} h8500s "$(tdir_h8500s)" | |
82ebe9a2 | 825 | ehp300bsd.c: $(srcdir)/emulparams/hp300bsd.sh \ |
8ddef552 | 826 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
95d31c3c | 827 | ${GENSCRIPTS} hp300bsd "$(tdir_hp300bsd)" |
82ebe9a2 | 828 | ehp3hpux.c: $(srcdir)/emulparams/hp3hpux.sh \ |
8ddef552 | 829 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
95d31c3c | 830 | ${GENSCRIPTS} hp3hpux "$(tdir_hp3hpux)" |
82ebe9a2 | 831 | ehppaelf.c: $(srcdir)/emulparams/hppaelf.sh \ |
db0a7149 | 832 | $(srcdir)/emultempl/hppaelf.em $(srcdir)/scripttempl/hppaelf.sc ${GEN_DEPENDS} |
95d31c3c | 833 | ${GENSCRIPTS} hppaelf "$(tdir_hppaelf)" |
82ebe9a2 | 834 | ei386aout.c: $(srcdir)/emulparams/i386aout.sh \ |
8ddef552 | 835 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
95d31c3c | 836 | ${GENSCRIPTS} i386aout "$(tdir_i386aout)" |
efa6c497 ILT |
837 | ei386bsd.c: $(srcdir)/emulparams/i386bsd.sh \ |
838 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} | |
839 | ${GENSCRIPTS} i386bsd "$(tdir_i386bsd)" | |
840 | ei386coff.c: $(srcdir)/emulparams/i386coff.sh \ | |
841 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS} | |
842 | ${GENSCRIPTS} i386coff "$(tdir_i386coff)" | |
82ebe9a2 | 843 | ei386go32.c: $(srcdir)/emulparams/i386go32.sh \ |
6c86b9ff | 844 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386go32.sc ${GEN_DEPENDS} |
95d31c3c | 845 | ${GENSCRIPTS} i386go32 "$(tdir_i386go32)" |
efa6c497 ILT |
846 | ei386linux.c: $(srcdir)/emulparams/i386linux.sh \ |
847 | $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} | |
848 | ${GENSCRIPTS} i386linux "$(tdir_i386linux)" | |
849 | ei386lynx.c: $(srcdir)/emulparams/i386lynx.sh \ | |
850 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.sc ${GEN_DEPENDS} | |
851 | ${GENSCRIPTS} i386lynx "$(tdir_i386lynx)" | |
82ebe9a2 | 852 | ei386mach.c: $(srcdir)/emulparams/i386mach.sh \ |
3c1af24d | 853 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
95d31c3c | 854 | ${GENSCRIPTS} i386mach "$(tdir_i386mach)" |
943fbd5b KR |
855 | ei386moss.c: $(srcdir)/emulparams/i386moss.sh \ |
856 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | |
95d31c3c | 857 | ${GENSCRIPTS} i386moss "$(tdir_i386moss)" |
943fbd5b KR |
858 | ei386msdos.c: $(srcdir)/emulparams/i386msdos.sh \ |
859 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386msdos.sc ${GEN_DEPENDS} | |
95d31c3c | 860 | ${GENSCRIPTS} i386msdos "$(tdir_i386msdos)" |
efa6c497 ILT |
861 | ei386nbsd.c: $(srcdir)/emulparams/i386nbsd.sh \ |
862 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} | |
863 | ${GENSCRIPTS} i386nbsd "$(tdir_i386nbsd)" | |
864 | ei386nw.c: $(srcdir)/emulparams/i386nw.sh \ | |
865 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS} | |
866 | ${GENSCRIPTS} i386nw "$(tdir_i386nw)" | |
867 | ei386pe.c: $(srcdir)/emulparams/i386pe.sh \ | |
868 | $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/pe.sc ${GEN_DEPENDS} | |
869 | ${GENSCRIPTS} i386pe "$(tdir_i386pe)" | |
82ebe9a2 | 870 | elnk960.c: $(srcdir)/emulparams/lnk960.sh \ |
8ddef552 | 871 | $(srcdir)/emultempl/lnk960.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS} |
95d31c3c | 872 | ${GENSCRIPTS} lnk960 "$(tdir_lnk960)" |
efa6c497 ILT |
873 | em68k4knbsd.c: $(srcdir)/emulparams/m68k4knbsd.sh \ |
874 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} | |
875 | ${GENSCRIPTS} m68k4knbsd "$(tdir_m68k4knbsd)" | |
876 | em68kaout.c: $(srcdir)/emulparams/m68kaout.sh \ | |
877 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} | |
878 | ${GENSCRIPTS} m68kaout "$(tdir_m68kaout)" | |
2e598345 ILT |
879 | em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \ |
880 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS} | |
95d31c3c | 881 | ${GENSCRIPTS} m68kaux "$(tdir_m68kaux)" |
82ebe9a2 | 882 | em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \ |
8ddef552 | 883 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS} |
95d31c3c | 884 | ${GENSCRIPTS} m68kcoff "$(tdir_m68kcoff)" |
417ced0d MM |
885 | em68kelf.c: $(srcdir)/emulparams/m68kelf.sh \ |
886 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | |
95d31c3c | 887 | ${GENSCRIPTS} m68kelf "$(tdir_m68kelf)" |
efa6c497 ILT |
888 | em68klinux.c: $(srcdir)/emulparams/m68klinux.sh \ |
889 | $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} | |
890 | ${GENSCRIPTS} m68klinux "$(tdir_m68klinux)" | |
82ebe9a2 | 891 | em68klynx.c: $(srcdir)/emulparams/m68klynx.sh \ |
028f8872 | 892 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS} |
95d31c3c | 893 | ${GENSCRIPTS} m68klynx "$(tdir_m68klynx)" |
efa6c497 | 894 | em68knbsd.c: $(srcdir)/emulparams/m68knbsd.sh \ |
8ddef552 | 895 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
efa6c497 ILT |
896 | ${GENSCRIPTS} m68knbsd "$(tdir_m68knbsd)" |
897 | em68kpsos.c: $(srcdir)/emulparams/m68kpsos.sh \ | |
898 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/psos.sc ${GEN_DEPENDS} | |
899 | ${GENSCRIPTS} m68kpsos "$(tdir_m68kpsos)" | |
900 | em88kbcs.c: $(srcdir)/emulparams/m88kbcs.sh \ | |
9ae9e582 | 901 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m88kbcs.sc ${GEN_DEPENDS} |
efa6c497 | 902 | ${GENSCRIPTS} m88kbcs "$(tdir_m88kbcs)" |
82ebe9a2 | 903 | emipsbig.c: $(srcdir)/emulparams/mipsbig.sh \ |
8ddef552 | 904 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS} |
efa6c497 | 905 | ${GENSCRIPTS} mipsbig |
82ebe9a2 KR |
906 | emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \ |
907 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS} | |
efa6c497 | 908 | ${GENSCRIPTS} mipsbsd |
82ebe9a2 | 909 | emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \ |
417ced0d | 910 | $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS} |
95d31c3c | 911 | ${GENSCRIPTS} mipsidt "$(tdir_mipsidt)" |
82ebe9a2 | 912 | emipsidtl.c: $(srcdir)/emulparams/mipsidtl.sh \ |
417ced0d | 913 | $(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS} |
95d31c3c | 914 | ${GENSCRIPTS} mipsidtl "$(tdir_mipsidtl)" |
efa6c497 ILT |
915 | emipslit.c: $(srcdir)/emulparams/mipslit.sh \ |
916 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS} | |
917 | ${GENSCRIPTS} mipslit "$(tdir_mipslit)" | |
9ae9e582 ILT |
918 | emipslnews.c: $(srcdir)/emulparams/mipslnews.sh \ |
919 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS} | |
920 | ${GENSCRIPTS} mipslnews | |
10e31c75 JL |
921 | emn10300.c: $(srcdir)/emulparams/mn10300.sh \ |
922 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | |
923 | ${GENSCRIPTS} mn10300 "$(tdir_mn10300)" | |
924 | emn10200.c: $(srcdir)/emulparams/mn10200.sh \ | |
925 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | |
926 | ${GENSCRIPTS} mn10200 "$(tdir_mn10200)" | |
efa6c497 | 927 | enews.c: $(srcdir)/emulparams/news.sh \ |
dd37f215 | 928 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
efa6c497 ILT |
929 | ${GENSCRIPTS} news "$(tdir_news)" |
930 | ens32knbsd.c: $(srcdir)/emulparams/ns32knbsd.sh \ | |
82ebe9a2 | 931 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
efa6c497 | 932 | ${GENSCRIPTS} ns32knbsd "$(tdir_ns32knbsd)" |
1ab4cd57 | 933 | epc532macha.c: $(srcdir)/emulparams/pc532macha.sh \ |
cdf71377 | 934 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
1ab4cd57 | 935 | ${GENSCRIPTS} pc532macha "$(tdir_pc532macha)" |
4fe13b2b MM |
936 | eppcmacos.c: $(srcdir)/emulparams/ppcmacos.sh \ |
937 | $(srcdir)/emultempl/aix.em $(srcdir)/scripttempl/aix.sc ${GEN_DEPENDS} | |
95d31c3c | 938 | ${GENSCRIPTS} ppcmacos "$(tdir_ppcmacos)" |
32286e08 C |
939 | eppcnw.c: $(srcdir)/emulparams/ppcnw.sh \ |
940 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/nw.sc ${GEN_DEPENDS} | |
95d31c3c | 941 | ${GENSCRIPTS} ppcnw "$(tdir_ppcnw)" |
efa6c497 ILT |
942 | eppcpe.c: $(srcdir)/emulparams/ppcpe.sh \ |
943 | $(srcdir)/emultempl/pe.em $(srcdir)/scripttempl/ppcpe.sc ${GEN_DEPENDS} | |
944 | ${GENSCRIPTS} ppcpe "$(tdir_ppcpe)" | |
efa6c497 | 945 | eriscix.c: $(srcdir)/emulparams/riscix.sh \ |
e93e87cb | 946 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
efa6c497 ILT |
947 | ${GENSCRIPTS} riscix "$(tdir_riscix)" |
948 | esa29200.c: $(srcdir)/emulparams/sa29200.sh \ | |
949 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sa29200.sc ${GEN_DEPENDS} | |
950 | ${GENSCRIPTS} sa29200 "$(tdir_sa29200)" | |
951 | esh.c: $(srcdir)/emulparams/sh.sh \ | |
952 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS} | |
953 | ${GENSCRIPTS} sh "$(tdir_sh)" | |
79e9dc20 DE |
954 | eshelf.c: $(srcdir)/emulparams/shelf.sh \ |
955 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | |
956 | ${GENSCRIPTS} shelf "$(tdir_shelf)" | |
957 | eshlelf.c: $(srcdir)/emulparams/shlelf.sh \ | |
958 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} | |
959 | ${GENSCRIPTS} shlelf "$(tdir_shlelf)" | |
efa6c497 ILT |
960 | eshl.c: $(srcdir)/emulparams/shl.sh \ |
961 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sh.sc ${GEN_DEPENDS} | |
962 | ${GENSCRIPTS} shl "$(tdir_shl)" | |
963 | esparcaout.c: $(srcdir)/emulparams/sparcaout.sh \ | |
e93e87cb | 964 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
efa6c497 | 965 | ${GENSCRIPTS} sparcaout "$(tdir_sparcaout)" |
ba69384d ILT |
966 | esparclinux.c: $(srcdir)/emulparams/sparclinux.sh \ |
967 | $(srcdir)/emultempl/linux.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} | |
968 | ${GENSCRIPTS} sparclinux "$(tdir_sparclinux)" | |
efa6c497 ILT |
969 | esparclynx.c: $(srcdir)/emulparams/sparclynx.sh \ |
970 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS} | |
971 | ${GENSCRIPTS} sparclynx "$(tdir_sparclynx)" | |
32286e08 | 972 | esparcnbsd.c: $(srcdir)/emulparams/sparcnbsd.sh \ |
e93e87cb | 973 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} |
95d31c3c | 974 | ${GENSCRIPTS} sparcnbsd "$(tdir_sparcnbsd)" |
efa6c497 ILT |
975 | est2000.c: $(srcdir)/emulparams/st2000.sh \ |
976 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/st2000.sc ${GEN_DEPENDS} | |
977 | ${GENSCRIPTS} st2000 "$(tdir_st2000)" | |
978 | esun3.c: $(srcdir)/emulparams/sun3.sh \ | |
979 | $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} | |
980 | ${GENSCRIPTS} sun3 "$(tdir_sun3)" | |
981 | esun4.c: $(srcdir)/emulparams/sun4.sh \ | |
982 | $(srcdir)/emultempl/sunos.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} | |
983 | ${GENSCRIPTS} sun4 "$(tdir_sun4)" | |
49c009b5 | 984 | start-sanitize-tic80: |
c6c7035c MM |
985 | etic80coff.c: $(srcdir)/emulparams/tic80coff.sh \ |
986 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/tic80coff.sc ${GEN_DEPENDS} | |
987 | ${GENSCRIPTS} tic80coff "$(tdir_tic80coff)" | |
49c009b5 | 988 | end-sanitize-tic80: |
efa6c497 ILT |
989 | evanilla.c: $(srcdir)/emulparams/vanilla.sh \ |
990 | $(srcdir)/emultempl/vanilla.em $(srcdir)/scripttempl/vanilla.sc ${GEN_DEPENDS} | |
991 | ${GENSCRIPTS} vanilla "$(tdir_vanilla)" | |
992 | evax.c: $(srcdir)/emulparams/vax.sh \ | |
993 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} | |
994 | ${GENSCRIPTS} vax "$(tdir_vax)" | |
995 | evsta.c: $(srcdir)/emulparams/vsta.sh \ | |
996 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/aout.sc ${GEN_DEPENDS} | |
997 | ${GENSCRIPTS} vsta "$(tdir_vsta)" | |
04c17a75 | 998 | ev850.c: $(srcdir)/emulparams/v850.sh \ |
d27d34c3 | 999 | $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/v850.sc ${GEN_DEPENDS} |
04c17a75 | 1000 | ${GENSCRIPTS} v850 "$(tdir_v850)" |
efa6c497 ILT |
1001 | ew65.c: $(srcdir)/emulparams/w65.sh \ |
1002 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/w65.sc ${GEN_DEPENDS} | |
1003 | ${GENSCRIPTS} w65 "$(tdir_w65)" | |
65d22248 C |
1004 | ez8001.c: $(srcdir)/emulparams/z8001.sh \ |
1005 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS} | |
95d31c3c | 1006 | ${GENSCRIPTS} z8001 "$(tdir_z8001)" |
65d22248 C |
1007 | ez8002.c: $(srcdir)/emulparams/z8002.sh \ |
1008 | $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/z8000.sc ${GEN_DEPENDS} | |
95d31c3c | 1009 | ${GENSCRIPTS} z8002 "$(tdir_z8002)" |
eb02fd64 | 1010 | |
d17eb3db | 1011 | # The generated emulation files mostly have the same dependencies. |
d66c832b ILT |
1012 | $(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \ |
1013 | ld.h ldmain.h ldemul.h ldfile.h ldmisc.h ldexp.h ldlang.h \ | |
2a80ec10 | 1014 | ldctor.h ldexp.h ldlang.h ldgram.h |
4a6afc88 | 1015 | |
49c009b5 ILT |
1016 | check-DEJAGNU: site.exp |
1017 | srcroot=`cd $(srcdir) && pwd`; export srcroot; \ | |
32286e08 | 1018 | r=`pwd`; export r; \ |
49c009b5 ILT |
1019 | EXPECT=$(EXPECT); export EXPECT; \ |
1020 | if [ -f $(top_builddir)/../expect/expect ]; then \ | |
1021 | TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \ | |
1022 | export TCL_LIBRARY; \ | |
1023 | fi; \ | |
1024 | runtest=$(RUNTEST); \ | |
1025 | if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \ | |
1026 | $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \ | |
1027 | CC="$(CC_FOR_TARGET)" CFLAGS="$(CFLAGS)" \ | |
1028 | CXX="$(CXX_FOR_TARGET)" CXXFLAGS="$(CXXFLAGS)" \ | |
1029 | CC_FOR_HOST="$(CC)" CFLAGS_FOR_HOST="$(CFLAGS)" \ | |
1030 | OFILES="$(OFILES)" BFDLIB="$(TESTBFDLIB)" \ | |
1031 | LIBIBERTY="$(LIBIBERTY)" HOSTING_EMU="$(HOSTING_EMU)" \ | |
1032 | HOSTING_CRT0="$(HOSTING_CRT0)" HOSTING_LIBS="$(HOSTING_LIBS)" \ | |
1033 | $(RUNTESTFLAGS); \ | |
1034 | else echo "WARNING: could not find \`runtest'" 1>&2; :;\ | |
1035 | fi | |
e7921bd4 | 1036 | |
7e5c1057 | 1037 | # Rules for testing by relinking ld itself. |
32286e08 C |
1038 | # A similar test is in the testsuite. This target is for ease of use |
1039 | # when porting ld. | |
eb02fd64 | 1040 | |
49c009b5 ILT |
1041 | ld-partial.o: ld-new$(EXEEXT) |
1042 | ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld-partial.o -r $(OFILES) | |
1043 | ld1$(EXEEXT): ld-partial.o | |
1044 | ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1$(EXEEXT) $(HOSTING_CRT0) ld-partial.o $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) | |
eb02fd64 | 1045 | |
49c009b5 ILT |
1046 | ld1-full$(EXEEXT): ld-new |
1047 | ./ld-new$(EXEEXT) $(HOSTING_EMU) -o ld1-full$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) | |
eb02fd64 | 1048 | |
49c009b5 ILT |
1049 | ld2$(EXEEXT): ld1$(EXEEXT) |
1050 | ./ld1$(EXEEXT) $(HOSTING_EMU) -o ld2$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) | |
60048a2c | 1051 | |
49c009b5 ILT |
1052 | ld3$(EXEEXT): ld2$(EXEEXT) |
1053 | ./ld2$(EXEEXT) $(HOSTING_EMU) -o ld3$(EXEEXT) $(HOSTING_CRT0) $(OFILES) $(TESTBFDLIB) $(LIBIBERTY) $(HOSTING_LIBS) | |
eb02fd64 | 1054 | |
49c009b5 ILT |
1055 | bootstrap: ld3$(EXEEXT) |
1056 | cmp ld2$(EXEEXT) ld3$(EXEEXT) | |
d20fb445 | 1057 | |
4a6afc88 ILT |
1058 | .PHONY: bootstrap |
1059 | ||
8ddef552 | 1060 | # A test program for C++ constructors and destructors. |
32286e08 C |
1061 | # This test is now in the testsuite. |
1062 | # | |
1063 | #cdtest: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new | |
1064 | # ./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \ | |
1065 | # cdtest-main.o cdtest-bar.o cdtest-foo.o $(HOSTING_LIBS) | |
1066 | # | |
1067 | #cdtest.out: cdtest | |
1068 | # ./cdtest > cdtest.tmp | |
1069 | # mv cdtest.tmp cdtest.out | |
1070 | # | |
1071 | #cdtest-ur.o: cdtest-main.o cdtest-bar.o cdtest-foo.o ld.new | |
1072 | # ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \ | |
1073 | # cdtest-bar.o cdtest-foo.o | |
1074 | # | |
1075 | #cdtest-ur: cdtest-ur.o | |
1076 | # ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \ | |
1077 | # $(HOSTING_LIBS) | |
1078 | # | |
1079 | #cdtest-ur.out: cdtest-ur | |
1080 | # ./cdtest-ur > cdtest-ur.tmp | |
1081 | # mv cdtest-ur.tmp cdtest-ur.out | |
1082 | # | |
1083 | #check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp | |
1084 | # diff $(srcdir)/cdtest.exp cdtest.out | |
1085 | # diff $(srcdir)/cdtest.exp cdtest-ur.out | |
1086 | # | |
1087 | #.PHONY: check-cdtest | |
4a6afc88 | 1088 | |
d301e438 | 1089 | # END OF CHECK TARGETS |
917bffa7 | 1090 | |
8073190b | 1091 | # DOCUMENTATION TARGETS |
2412a768 RP |
1092 | # Manual configuration file; not usually attached to normal configuration, |
1093 | # because almost all configs use "gen" version of manual. | |
1094 | # Set DOCVER above to change. | |
1095 | configdoc.texi: ${DOCVER}-doc.texi | |
49c009b5 ILT |
1096 | ln -s ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \ |
1097 | || ln ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi >/dev/null 2>&1 \ | |
1098 | || cp ${srcdir}/${DOCVER}-doc.texi ./configdoc.texi | |
2412a768 | 1099 | |
0c0b16f9 DE |
1100 | ld.info: $(srcdir)/ld.texinfo configdoc.texi bfdsumm.texi |
1101 | ld.dvi: $(srcdir)/ld.texinfo configdoc.texi bfdsumm.texi | |
1102 | ||
1103 | # We want to include a file from the BFD documentation. automake | |
1104 | # doesn't give us a way to set the include directories for makeinfo, | |
1105 | # so we just create a file locally to include it. | |
1106 | bfdsumm.texi: Makefile | |
1107 | echo @include $(BFDDIR)/doc/bfdsumm.texi > bfdsumm.texi | |
2412a768 | 1108 | |
49c009b5 | 1109 | .PHONY: install-exec-local install-data-local |
8d317d2a | 1110 | |
49c009b5 ILT |
1111 | install-exec-local: ld-new$(EXEEXT) |
1112 | $(mkinstalldirs) $(bindir) $(tooldir)/bin | |
1113 | @list='$(noinst_PROGRAMS)'; for p in $$list; do \ | |
1114 | if test -f $$p; then \ | |
1115 | echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/-new//'|sed '$(transform)'`"; \ | |
1116 | $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/-new//'|sed '$(transform)'`; \ | |
1117 | else :; fi; \ | |
d360d135 | 1118 | done |
49c009b5 ILT |
1119 | rm -f $(tooldir)/bin/ld$(EXEEXT) |
1120 | n=`echo ld | sed '$(transform)'`; \ | |
1121 | ln $(bindir)/$$n$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \ | |
1122 | || $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(tooldir)/bin/ld$(EXEEXT) | |
ba69384d | 1123 | |
49c009b5 ILT |
1124 | install-data-local: |
1125 | $(mkinstalldirs) $(scriptdir) | |
1126 | for f in ldscripts/*; do \ | |
1127 | $(INSTALL_DATA) $$f $(scriptdir)/$$f ; \ | |
afe3aa73 RP |
1128 | done |
1129 | ||
4a6afc88 ILT |
1130 | # Targets to rebuild dependencies in this Makefile. |
1131 | # Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES). | |
208bc89e | 1132 | .dep: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h |
4a6afc88 ILT |
1133 | rm -f .dep1 |
1134 | $(MAKE) DEP=$(DEP) .dep1 | |
1135 | sed -f dep.sed <.dep1 >.dep | |
eb02fd64 | 1136 | |
4a6afc88 ILT |
1137 | # This rule really wants a mkdep that runs "gcc -MM". |
1138 | .dep1: $(CFILES) $(GENERATED_CFILES) | |
1139 | rm -f .dep2 | |
1140 | echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2 | |
49c009b5 | 1141 | $(DEP) -f .dep2 $(INCLUDES) $? |
4a6afc88 | 1142 | $(srcdir)/../move-if-change .dep2 .dep1 |
eb02fd64 | 1143 | |
4a6afc88 ILT |
1144 | dep.sed: dep-in.sed config.status |
1145 | sed <$(srcdir)/dep-in.sed >dep.sed \ | |
1146 | -e 's!@INCDIR@!$(INCDIR)!' \ | |
d66c832b | 1147 | -e 's!@SRCDIR@!$(srcdir)!' |
eb02fd64 | 1148 | |
4a6afc88 ILT |
1149 | dep: .dep |
1150 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile | |
1151 | cat .dep >> tmp-Makefile | |
1152 | $(srcdir)/../move-if-change tmp-Makefile Makefile | |
239d28f3 | 1153 | |
4a6afc88 ILT |
1154 | dep-in: .dep |
1155 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in | |
1156 | cat .dep >> tmp-Makefile.in | |
1157 | $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in | |
1158 | ||
49c009b5 ILT |
1159 | dep-am: .dep |
1160 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am | |
1161 | cat .dep >> tmp-Makefile.am | |
1162 | $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am | |
eb02fd64 | 1163 | |
49c009b5 | 1164 | .PHONY: dep dep-in dep-am |
eb02fd64 | 1165 | |
4a6afc88 ILT |
1166 | # What appears below is generated by a hacked mkdep using gcc -MM. |
1167 | ||
1168 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
1169 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
1170 | ||
dd37f215 | 1171 | ldctor.o: ldctor.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
ba69384d ILT |
1172 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \ |
1173 | ld.h ldexp.h ldlang.h ldmisc.h ldgram.h ldmain.h ldctor.h | |
dd37f215 | 1174 | ldemul.o: ldemul.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
ba69384d ILT |
1175 | sysdep.h config.h $(INCDIR)/fopen-same.h ld.h ldemul.h \ |
1176 | ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldemul-list.h | |
dd37f215 | 1177 | ldexp.o: ldexp.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
ba69384d ILT |
1178 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \ |
1179 | ld.h ldmain.h ldmisc.h ldexp.h ldgram.h ldlang.h | |
dd37f215 | 1180 | ldfile.o: ldfile.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
ba69384d ILT |
1181 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \ |
1182 | ld.h ldmisc.h ldexp.h ldlang.h ldfile.h ldmain.h ldgram.h \ | |
1183 | ldlex.h ldemul.h | |
dd37f215 | 1184 | ldlang.o: ldlang.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
ba69384d ILT |
1185 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \ |
1186 | $(INCDIR)/obstack.h $(INCDIR)/bfdlink.h ld.h ldmain.h \ | |
4725fb48 | 1187 | ldgram.h ldexp.h ldlang.h ldemul.h ldlex.h ldmisc.h \ |
3fac4887 | 1188 | ldctor.h ldfile.h $(INCDIR)/fnmatch.h |
dd37f215 | 1189 | ldmain.o: ldmain.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
ba69384d ILT |
1190 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \ |
1191 | $(INCDIR)/progress.h $(INCDIR)/bfdlink.h ld.h ldmain.h \ | |
1192 | ldmisc.h ldwrite.h ldgram.h ldexp.h ldlang.h ldemul.h \ | |
1193 | ldlex.h ldfile.h ldctor.h | |
dd37f215 | 1194 | ldmisc.o: ldmisc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
ba69384d ILT |
1195 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \ |
1196 | $(INCDIR)/demangle.h ld.h ldmisc.h ldexp.h ldlang.h \ | |
1197 | ldgram.h ldlex.h ldmain.h ldfile.h | |
dd37f215 | 1198 | ldver.o: ldver.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
ba69384d ILT |
1199 | sysdep.h config.h $(INCDIR)/fopen-same.h ld.h ldver.h \ |
1200 | ldemul.h ldmain.h | |
dd37f215 | 1201 | ldwrite.o: ldwrite.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
ba69384d ILT |
1202 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \ |
1203 | $(INCDIR)/libiberty.h ld.h ldexp.h ldlang.h ldwrite.h \ | |
1204 | ldmisc.h ldgram.h ldmain.h | |
dd37f215 | 1205 | lexsup.o: lexsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
ba69384d ILT |
1206 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \ |
1207 | $(INCDIR)/getopt.h $(INCDIR)/bfdlink.h ld.h ldmain.h \ | |
1208 | ldmisc.h ldexp.h ldlang.h ldgram.h ldlex.h ldfile.h \ | |
1209 | ldver.h ldemul.h | |
1210 | mri.o: mri.c ../bfd/bfd.h $(INCDIR)/ansidecl.h sysdep.h \ | |
1211 | config.h $(INCDIR)/fopen-same.h ld.h ldexp.h ldlang.h \ | |
1212 | ldmisc.h mri.h ldgram.h $(INCDIR)/libiberty.h | |
f14a5192 | 1213 | ldcref.o: ldcref.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
ba69384d ILT |
1214 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \ |
1215 | $(INCDIR)/libiberty.h ld.h ldmain.h ldmisc.h ldexp.h \ | |
1216 | ldlang.h | |
dd37f215 | 1217 | ldgram.o: ldgram.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \ |
ba69384d ILT |
1218 | sysdep.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/bfdlink.h \ |
1219 | ld.h ldexp.h ldver.h ldlang.h ldemul.h ldfile.h ldmisc.h \ | |
1220 | ldmain.h mri.h ldlex.h | |
1221 | ldlex.o: ldlex.c ../bfd/bfd.h sysdep.h config.h $(INCDIR)/fopen-same.h \ | |
1222 | ld.h ldgram.h ldmisc.h ldexp.h ldlang.h ldfile.h ldlex.h \ | |
1223 | ldmain.h | |
239d28f3 SC |
1224 | |
1225 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY | |
49c009b5 ILT |
1226 | |
1227 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | |
1228 | # Otherwise a system limit (for SysV at least) may be exceeded. | |
1229 | .NOEXPORT: |