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