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