]>
Commit | Line | Data |
---|---|---|
786ab12c | 1 | # Makefile.in generated automatically by automake 1.4-p6 from Makefile.am |
8a0efa53 | 2 | |
b11926e7 | 3 | # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. |
8a0efa53 CF |
4 | # This Makefile.in is free software; the Free Software Foundation |
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. | |
12 | ||
13 | ||
14 | SHELL = @SHELL@ | |
15 | ||
16 | srcdir = @srcdir@ | |
17 | top_srcdir = @top_srcdir@ | |
18 | VPATH = @srcdir@ | |
19 | prefix = @prefix@ | |
20 | exec_prefix = @exec_prefix@ | |
21 | ||
22 | bindir = @bindir@ | |
23 | sbindir = @sbindir@ | |
24 | libexecdir = @libexecdir@ | |
25 | datadir = @datadir@ | |
26 | sysconfdir = @sysconfdir@ | |
27 | sharedstatedir = @sharedstatedir@ | |
28 | localstatedir = @localstatedir@ | |
29 | libdir = @libdir@ | |
30 | infodir = @infodir@ | |
31 | mandir = @mandir@ | |
32 | includedir = @includedir@ | |
33 | oldincludedir = /usr/include | |
34 | ||
35 | DESTDIR = | |
36 | ||
37 | pkgdatadir = $(datadir)/@PACKAGE@ | |
38 | pkglibdir = $(libdir)/@PACKAGE@ | |
39 | pkgincludedir = $(includedir)/@PACKAGE@ | |
40 | ||
41 | top_builddir = . | |
42 | ||
43 | ACLOCAL = @ACLOCAL@ | |
44 | AUTOCONF = @AUTOCONF@ | |
45 | AUTOMAKE = @AUTOMAKE@ | |
46 | AUTOHEADER = @AUTOHEADER@ | |
47 | ||
48 | INSTALL = @INSTALL@ | |
49 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) | |
50 | INSTALL_DATA = @INSTALL_DATA@ | |
51 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
52 | transform = @program_transform_name@ | |
53 | ||
54 | NORMAL_INSTALL = : | |
55 | PRE_INSTALL = : | |
56 | POST_INSTALL = : | |
57 | NORMAL_UNINSTALL = : | |
58 | PRE_UNINSTALL = : | |
59 | POST_UNINSTALL = : | |
eaa75b70 TF |
60 | build_alias = @build_alias@ |
61 | build_triplet = @build@ | |
8a0efa53 CF |
62 | host_alias = @host_alias@ |
63 | host_triplet = @host@ | |
eaa75b70 TF |
64 | target_alias = @target_alias@ |
65 | target_triplet = @target@ | |
8a0efa53 CF |
66 | AR = @AR@ |
67 | AS = @AS@ | |
2e1a7175 | 68 | AWK = @AWK@ |
8a0efa53 | 69 | CC = @CC@ |
2e1a7175 | 70 | CC_FOR_BUILD = @CC_FOR_BUILD@ |
7b2b12d5 | 71 | CC_FOR_NEWLIB = @CC_FOR_NEWLIB@ |
8a0efa53 CF |
72 | CPP = @CPP@ |
73 | CRT0 = @CRT0@ | |
74 | CRT0_DIR = @CRT0_DIR@ | |
6e6cd5bd JJ |
75 | CRT1 = @CRT1@ |
76 | CRT1_DIR = @CRT1_DIR@ | |
0953fe64 TF |
77 | CXX = @CXX@ |
78 | CXXCPP = @CXXCPP@ | |
2e1a7175 | 79 | DLLTOOL = @DLLTOOL@ |
8a0efa53 | 80 | EXEEXT = @EXEEXT@ |
d389acba | 81 | EXTRA_DIRS = @EXTRA_DIRS@ |
0953fe64 TF |
82 | GCJ = @GCJ@ |
83 | GCJFLAGS = @GCJFLAGS@ | |
2e1a7175 TF |
84 | LDFLAGS = @LDFLAGS@ |
85 | LIBM_MACHINE_OBJECTLIST = @LIBM_MACHINE_OBJECTLIST@ | |
86 | LIBTOOL = @LIBTOOL@ | |
87 | LN_S = @LN_S@ | |
88 | MACHINE_OBJECTLIST = @MACHINE_OBJECTLIST@ | |
8a0efa53 CF |
89 | MAINT = @MAINT@ |
90 | MAKEINFO = @MAKEINFO@ | |
91 | NEWLIB_CFLAGS = @NEWLIB_CFLAGS@ | |
2e1a7175 | 92 | OBJDUMP = @OBJDUMP@ |
0953fe64 | 93 | OBJEXT = @OBJEXT@ |
8a0efa53 | 94 | PACKAGE = @PACKAGE@ |
2e1a7175 | 95 | POSIX_OBJECTLIST = @POSIX_OBJECTLIST@ |
8a0efa53 | 96 | RANLIB = @RANLIB@ |
2e1a7175 | 97 | SIGNAL_OBJECTLIST = @SIGNAL_OBJECTLIST@ |
90b65e2d | 98 | STDIO64_OBJECTLIST = @STDIO64_OBJECTLIST@ |
0953fe64 | 99 | STRIP = @STRIP@ |
2e1a7175 | 100 | SYSCALL_OBJECTLIST = @SYSCALL_OBJECTLIST@ |
fa4a16a1 | 101 | SYS_MACH_OBJECTLIST = @SYS_MACH_OBJECTLIST@ |
2e1a7175 TF |
102 | SYS_OBJECTLIST = @SYS_OBJECTLIST@ |
103 | UNIX_OBJECTLIST = @UNIX_OBJECTLIST@ | |
8a0efa53 | 104 | VERSION = @VERSION@ |
2e1a7175 | 105 | aext = @aext@ |
f7a74742 | 106 | libc_cv_initfinit_array = @libc_cv_initfinit_array@ |
2e1a7175 | 107 | libm_machine_dir = @libm_machine_dir@ |
8a0efa53 CF |
108 | machine_dir = @machine_dir@ |
109 | newlib_basedir = @newlib_basedir@ | |
2e1a7175 | 110 | oext = @oext@ |
8a0efa53 CF |
111 | sys_dir = @sys_dir@ |
112 | ||
eaa75b70 | 113 | AUTOMAKE_OPTIONS = cygnus dejagnu |
8a0efa53 CF |
114 | |
115 | # Multilib support variables. | |
116 | MULTISRCTOP = | |
117 | MULTIBUILDTOP = | |
118 | MULTIDIRS = | |
119 | MULTISUBDIR = | |
120 | MULTIDO = true | |
121 | MULTICLEAN = true | |
122 | ||
2e1a7175 | 123 | LIBTOOL_VERSION_INFO = 0:0:0 |
786ab12c JJ |
124 | @NEWLIB_HW_FP_TRUE@MATHDIR = mathfp |
125 | @NEWLIB_HW_FP_FALSE@MATHDIR = math | |
2e1a7175 | 126 | |
8a0efa53 CF |
127 | # Work around what appears to be a GNU make bug handling MAKEFLAGS |
128 | # values defined in terms of make variables, as is the case for CC and | |
129 | # friends when we are called from the top level Makefile. | |
786ab12c | 130 | AM_MAKEFLAGS = "AR_FLAGS=$(AR_FLAGS)" "CC_FOR_BUILD=$(CC_FOR_BUILD)" "CFLAGS=$(CFLAGS)" "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" "LDFLAGS=$(LDFLAGS)" "LIBCFLAGS=$(LIBCFLAGS)" "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" "MAKE=$(MAKE)" "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" "PICFLAG=$(PICFLAG)" "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" "SHELL=$(SHELL)" "EXPECT=$(EXPECT)" "RUNTEST=$(RUNTEST)" "RUNTESTFLAGS=$(RUNTESTFLAGS)" "exec_prefix=$(exec_prefix)" "infodir=$(infodir)" "libdir=$(libdir)" "prefix=$(prefix)" "tooldir=$(tooldir)" "top_toollibdir=$(toollibdir)" "AR=$(AR)" "AS=$(AS)" "CC=$(CC_FOR_NEWLIB)" "LD=$(LD)" "LIBCFLAGS=$(LIBCFLAGS)" "NM=$(NM)" "PICFLAG=$(PICFLAG)" "RANLIB=$(RANLIB)" "DESTDIR=$(DESTDIR)" |
8a0efa53 CF |
131 | |
132 | ||
a08c98bb | 133 | FLAGS_TO_PASS = $(AM_MAKEFLAGS) |
786ab12c | 134 | @HAVE_DOC_TRUE@DOCDIR = doc |
08e857b4 | 135 | @HAVE_DOC_FALSE@DOCDIR = |
8a0efa53 | 136 | |
786ab12c | 137 | SUBDIRS = libc libm $(DOCDIR) . $(EXTRA_DIRS) |
fa4a16a1 | 138 | |
8a0efa53 CF |
139 | |
140 | tooldir = $(exec_prefix)/$(host_alias) | |
141 | toollibdir = $(tooldir)/lib$(MULTISUBDIR) | |
142 | ||
143 | AR_FLAGS = rc | |
144 | ||
786ab12c JJ |
145 | @USE_LIBTOOL_TRUE@toollib_LTLIBRARIES = libm.la libc.la |
146 | @USE_LIBTOOL_FALSE@toollib_LIBRARIES = libm.a libc.a | |
2e1a7175 | 147 | |
8a0efa53 CF |
148 | noinst_DATA = stmp-targ-include |
149 | ||
6e6cd5bd | 150 | toollib_DATA = $(CRT0) $(CRT1) |
2e1a7175 | 151 | |
8a0efa53 CF |
152 | # The functions ldexp, frexp and modf are traditionally supplied in |
153 | # both libc.a and libm.a. We build them in libm.a and copy them over, | |
154 | # along with some required supporting routines. | |
8fa6cb9a | 155 | MATHOBJS_IN_LIBC = s_isinf.$(oext) sf_isinf.$(oext) s_isnan.$(oext) sf_isnan.$(oext) s_nan.$(oext) sf_nan.$(oext) s_ldexp.$(oext) sf_ldexp.$(oext) s_frexp.$(oext) sf_frexp.$(oext) s_modf.$(oext) sf_modf.$(oext) s_scalbn.$(oext) sf_scalbn.$(oext) s_finite.$(oext) sf_finite.$(oext) s_copysign.$(oext) sf_copysign.$(oext) s_infconst.$(oext) |
786ab12c JJ |
156 | |
157 | ||
158 | LIBC_OBJECTLISTS = $(POSIX_OBJECTLIST) $(SIGNAL_OBJECTLIST) $(SYSCALL_OBJECTLIST) $(UNIX_OBJECTLIST) $(STDIO64_OBJECTLIST) libc/argz/objectlist.awk.in libc/stdlib/objectlist.awk.in libc/time/objectlist.awk.in libc/ctype/objectlist.awk.in libc/search/objectlist.awk.in libc/string/objectlist.awk.in libc/locale/objectlist.awk.in libc/misc/objectlist.awk.in libc/reent/objectlist.awk.in libc/errno/objectlist.awk.in libc/stdio/objectlist.awk.in $(MACHINE_OBJECTLIST) $(SYS_OBJECTLIST) $(SYS_MACH_OBJECTLIST) | |
159 | ||
160 | ||
161 | LIBM_OBJECTLISTS = libm/$(MATHDIR)/objectlist.awk.in libm/common/objectlist.awk.in $(LIBM_MACHINE_OBJECTLIST) | |
2e1a7175 TF |
162 | |
163 | ||
a2b1a849 | 164 | libm_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) -release newlib -no-undefined -Xcompiler -nostdlib -Xlinker --version-script=$(srcdir)/libc/sys/linux/shared.ld -lgcc -objectlist libm-libtool-objectlist |
2e1a7175 | 165 | |
a2b1a849 | 166 | libc_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) -release newlib -no-undefined -Xcompiler -nostdlib -Xlinker --version-script=$(srcdir)/libc/sys/linux/shared.ld -lgcc -objectlist libc-libtool-objectlist |
2e1a7175 TF |
167 | |
168 | @USE_LIBTOOL_TRUE@libm_la_SOURCES = | |
786ab12c | 169 | @USE_LIBTOOL_TRUE@libm_la_DEPENDENCIES = libm-libtool-objectlist |
2e1a7175 TF |
170 | |
171 | @USE_LIBTOOL_TRUE@libc_la_SOURCES = | |
786ab12c | 172 | @USE_LIBTOOL_TRUE@libc_la_DEPENDENCIES = libc-libtool-objectlist |
8a0efa53 CF |
173 | |
174 | CLEANFILES = targ-include stmp-targ-include | |
175 | ||
176 | CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host | |
177 | ||
178 | MAKEOVERRIDES = | |
eaa75b70 TF |
179 | |
180 | # dejagnu support | |
181 | ||
182 | RUNTESTFLAGS = | |
8a0efa53 CF |
183 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
184 | mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs | |
8da1639b | 185 | CONFIG_HEADER = newlib.h |
8a0efa53 CF |
186 | CONFIG_CLEAN_FILES = |
187 | LIBRARIES = $(toollib_LIBRARIES) | |
188 | ||
189 | ||
8da1639b | 190 | DEFS = @DEFS@ -I. -I$(srcdir) -I. |
8a0efa53 | 191 | CPPFLAGS = @CPPFLAGS@ |
8a0efa53 CF |
192 | LIBS = @LIBS@ |
193 | libm_a_LIBADD = | |
194 | libm_a_SOURCES = libm.a.c | |
0953fe64 | 195 | libm_a_OBJECTS = libm.a.$(OBJEXT) |
8a0efa53 CF |
196 | libc_a_LIBADD = |
197 | libc_a_SOURCES = libc.a.c | |
0953fe64 | 198 | libc_a_OBJECTS = libc.a.$(OBJEXT) |
2e1a7175 TF |
199 | LTLIBRARIES = $(toollib_LTLIBRARIES) |
200 | ||
201 | libm_la_LIBADD = | |
202 | @USE_LIBTOOL_TRUE@libm_la_OBJECTS = | |
203 | libc_la_LIBADD = | |
204 | @USE_LIBTOOL_TRUE@libc_la_OBJECTS = | |
8a0efa53 CF |
205 | CFLAGS = @CFLAGS@ |
206 | COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | |
2e1a7175 | 207 | LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
8a0efa53 | 208 | CCLD = $(CC) |
2e1a7175 | 209 | LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ |
8a0efa53 CF |
210 | DATA = $(noinst_DATA) $(toollib_DATA) |
211 | ||
8da1639b JJ |
212 | DIST_COMMON = README ./stamp-h.in ChangeLog Makefile.am Makefile.in \ |
213 | NEWS acinclude.m4 aclocal.m4 configure configure.in newlib.hin | |
8a0efa53 CF |
214 | |
215 | ||
216 | DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) | |
217 | ||
a36cd013 | 218 | TAR = gtar |
8a0efa53 | 219 | GZIP_ENV = --best |
d389acba | 220 | DIST_SUBDIRS = libc libm doc . @EXTRA_DIRS@ |
eaa75b70 TF |
221 | EXPECT = `if test -f $(top_builddir)/../expect/expect; then echo $(top_builddir)/../expect/expect; else echo expect; fi` |
222 | RUNTEST = `if test -f $(top_srcdir)/../dejagnu/runtest; then echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi` | |
2e1a7175 | 223 | SOURCES = libm.a.c libc.a.c $(libm_la_SOURCES) $(libc_la_SOURCES) |
0953fe64 | 224 | OBJECTS = libm.a.$(OBJEXT) libc.a.$(OBJEXT) $(libm_la_OBJECTS) $(libc_la_OBJECTS) |
8a0efa53 CF |
225 | |
226 | all: all-redirect | |
227 | .SUFFIXES: | |
0953fe64 | 228 | .SUFFIXES: .S .c .lo .o .obj .s |
8a0efa53 CF |
229 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) |
230 | cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile | |
231 | ||
232 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
233 | cd $(top_builddir) \ | |
234 | && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
235 | ||
236 | $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in acinclude.m4 | |
237 | cd $(srcdir) && $(ACLOCAL) | |
238 | ||
239 | config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | |
240 | $(SHELL) ./config.status --recheck | |
241 | $(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) | |
242 | cd $(srcdir) && $(AUTOCONF) | |
243 | ||
8da1639b JJ |
244 | newlib.h: stamp-h |
245 | @if test ! -f $@; then \ | |
246 | rm -f stamp-h; \ | |
247 | $(MAKE) stamp-h; \ | |
248 | else :; fi | |
249 | stamp-h: $(srcdir)/newlib.hin $(top_builddir)/config.status | |
250 | cd $(top_builddir) \ | |
251 | && CONFIG_FILES= CONFIG_HEADERS=newlib.h:newlib.hin \ | |
252 | $(SHELL) ./config.status | |
253 | @echo timestamp > stamp-h 2> /dev/null | |
254 | $(srcdir)/newlib.hin: @MAINTAINER_MODE_TRUE@$(srcdir)/stamp-h.in | |
255 | @if test ! -f $@; then \ | |
256 | rm -f $(srcdir)/stamp-h.in; \ | |
257 | $(MAKE) $(srcdir)/stamp-h.in; \ | |
258 | else :; fi | |
259 | $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) | |
260 | cd $(top_srcdir) && $(AUTOHEADER) | |
261 | @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null | |
262 | ||
263 | mostlyclean-hdr: | |
264 | ||
265 | clean-hdr: | |
266 | ||
267 | distclean-hdr: | |
268 | -rm -f newlib.h | |
269 | ||
270 | maintainer-clean-hdr: | |
271 | ||
8a0efa53 CF |
272 | mostlyclean-toollibLIBRARIES: |
273 | ||
274 | clean-toollibLIBRARIES: | |
275 | -test -z "$(toollib_LIBRARIES)" || rm -f $(toollib_LIBRARIES) | |
276 | ||
277 | distclean-toollibLIBRARIES: | |
278 | ||
279 | maintainer-clean-toollibLIBRARIES: | |
280 | ||
281 | install-toollibLIBRARIES: $(toollib_LIBRARIES) | |
282 | @$(NORMAL_INSTALL) | |
283 | $(mkinstalldirs) $(DESTDIR)$(toollibdir) | |
284 | @list='$(toollib_LIBRARIES)'; for p in $$list; do \ | |
285 | if test -f $$p; then \ | |
286 | echo " $(INSTALL_DATA) $$p $(DESTDIR)$(toollibdir)/$$p"; \ | |
287 | $(INSTALL_DATA) $$p $(DESTDIR)$(toollibdir)/$$p; \ | |
288 | else :; fi; \ | |
289 | done | |
290 | @$(POST_INSTALL) | |
291 | @list='$(toollib_LIBRARIES)'; for p in $$list; do \ | |
292 | if test -f $$p; then \ | |
293 | echo " $(RANLIB) $(DESTDIR)$(toollibdir)/$$p"; \ | |
294 | $(RANLIB) $(DESTDIR)$(toollibdir)/$$p; \ | |
295 | else :; fi; \ | |
296 | done | |
297 | ||
298 | uninstall-toollibLIBRARIES: | |
299 | @$(NORMAL_UNINSTALL) | |
300 | list='$(toollib_LIBRARIES)'; for p in $$list; do \ | |
301 | rm -f $(DESTDIR)$(toollibdir)/$$p; \ | |
302 | done | |
303 | ||
304 | .c.o: | |
305 | $(COMPILE) -c $< | |
306 | ||
0953fe64 TF |
307 | # FIXME: We should only use cygpath when building on Windows, |
308 | # and only if it is available. | |
309 | .c.obj: | |
310 | $(COMPILE) -c `cygpath -w $<` | |
311 | ||
8a0efa53 CF |
312 | .s.o: |
313 | $(COMPILE) -c $< | |
314 | ||
315 | .S.o: | |
316 | $(COMPILE) -c $< | |
317 | ||
318 | mostlyclean-compile: | |
319 | -rm -f *.o core *.core | |
0953fe64 | 320 | -rm -f *.$(OBJEXT) |
8a0efa53 CF |
321 | |
322 | clean-compile: | |
323 | ||
324 | distclean-compile: | |
325 | -rm -f *.tab.c | |
326 | ||
327 | maintainer-clean-compile: | |
328 | ||
2e1a7175 TF |
329 | .c.lo: |
330 | $(LIBTOOL) --mode=compile $(COMPILE) -c $< | |
331 | ||
332 | .s.lo: | |
333 | $(LIBTOOL) --mode=compile $(COMPILE) -c $< | |
334 | ||
335 | .S.lo: | |
336 | $(LIBTOOL) --mode=compile $(COMPILE) -c $< | |
337 | ||
338 | mostlyclean-libtool: | |
339 | -rm -f *.lo | |
340 | ||
341 | clean-libtool: | |
342 | -rm -rf .libs _libs | |
343 | ||
344 | distclean-libtool: | |
345 | ||
346 | maintainer-clean-libtool: | |
347 | ||
348 | mostlyclean-toollibLTLIBRARIES: | |
349 | ||
350 | clean-toollibLTLIBRARIES: | |
351 | -test -z "$(toollib_LTLIBRARIES)" || rm -f $(toollib_LTLIBRARIES) | |
352 | ||
353 | distclean-toollibLTLIBRARIES: | |
354 | ||
355 | maintainer-clean-toollibLTLIBRARIES: | |
356 | ||
357 | install-toollibLTLIBRARIES: $(toollib_LTLIBRARIES) | |
358 | @$(NORMAL_INSTALL) | |
359 | $(mkinstalldirs) $(DESTDIR)$(toollibdir) | |
360 | @list='$(toollib_LTLIBRARIES)'; for p in $$list; do \ | |
361 | if test -f $$p; then \ | |
362 | echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(toollibdir)/$$p"; \ | |
363 | $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(toollibdir)/$$p; \ | |
364 | else :; fi; \ | |
365 | done | |
366 | ||
367 | uninstall-toollibLTLIBRARIES: | |
368 | @$(NORMAL_UNINSTALL) | |
369 | list='$(toollib_LTLIBRARIES)'; for p in $$list; do \ | |
370 | $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(toollibdir)/$$p; \ | |
371 | done | |
372 | ||
373 | libm.la: $(libm_la_OBJECTS) $(libm_la_DEPENDENCIES) | |
374 | $(LINK) -rpath $(toollibdir) $(libm_la_LDFLAGS) $(libm_la_OBJECTS) $(libm_la_LIBADD) $(LIBS) | |
375 | ||
376 | libc.la: $(libc_la_OBJECTS) $(libc_la_DEPENDENCIES) | |
377 | $(LINK) -rpath $(toollibdir) $(libc_la_LDFLAGS) $(libc_la_OBJECTS) $(libc_la_LIBADD) $(LIBS) | |
378 | ||
8a0efa53 CF |
379 | install-toollibDATA: $(toollib_DATA) |
380 | @$(NORMAL_INSTALL) | |
381 | $(mkinstalldirs) $(DESTDIR)$(toollibdir) | |
382 | @list='$(toollib_DATA)'; for p in $$list; do \ | |
383 | if test -f $(srcdir)/$$p; then \ | |
384 | echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(toollibdir)/$$p"; \ | |
385 | $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(toollibdir)/$$p; \ | |
386 | else if test -f $$p; then \ | |
387 | echo " $(INSTALL_DATA) $$p $(DESTDIR)$(toollibdir)/$$p"; \ | |
388 | $(INSTALL_DATA) $$p $(DESTDIR)$(toollibdir)/$$p; \ | |
389 | fi; fi; \ | |
390 | done | |
391 | ||
392 | uninstall-toollibDATA: | |
393 | @$(NORMAL_UNINSTALL) | |
394 | list='$(toollib_DATA)'; for p in $$list; do \ | |
395 | rm -f $(DESTDIR)$(toollibdir)/$$p; \ | |
396 | done | |
397 | ||
398 | # This directory's subdirectories are mostly independent; you can cd | |
399 | # into them and run `make' without going through this Makefile. | |
400 | # To change the values of `make' variables: instead of editing Makefiles, | |
401 | # (1) if the variable is set in `config.status', edit `config.status' | |
402 | # (which will cause the Makefiles to be regenerated when you run `make'); | |
403 | # (2) otherwise, pass the desired values on the `make' command line. | |
404 | ||
405 | @SET_MAKE@ | |
406 | ||
407 | all-recursive install-data-recursive install-exec-recursive \ | |
408 | installdirs-recursive install-recursive uninstall-recursive install-info-recursive \ | |
409 | check-recursive installcheck-recursive info-recursive dvi-recursive: | |
410 | @set fnord $(MAKEFLAGS); amf=$$2; \ | |
411 | dot_seen=no; \ | |
412 | target=`echo $@ | sed s/-recursive//`; \ | |
413 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
414 | echo "Making $$target in $$subdir"; \ | |
415 | if test "$$subdir" = "."; then \ | |
416 | dot_seen=yes; \ | |
417 | local_target="$$target-am"; \ | |
418 | else \ | |
419 | local_target="$$target"; \ | |
420 | fi; \ | |
421 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
422 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ | |
423 | done; \ | |
424 | if test "$$dot_seen" = "no"; then \ | |
425 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | |
426 | fi; test -z "$$fail" | |
427 | ||
428 | mostlyclean-recursive clean-recursive distclean-recursive \ | |
429 | maintainer-clean-recursive: | |
430 | @set fnord $(MAKEFLAGS); amf=$$2; \ | |
431 | dot_seen=no; \ | |
432 | rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ | |
433 | rev="$$subdir $$rev"; \ | |
b11926e7 | 434 | test "$$subdir" != "." || dot_seen=yes; \ |
8a0efa53 CF |
435 | done; \ |
436 | test "$$dot_seen" = "no" && rev=". $$rev"; \ | |
437 | target=`echo $@ | sed s/-recursive//`; \ | |
438 | for subdir in $$rev; do \ | |
439 | echo "Making $$target in $$subdir"; \ | |
440 | if test "$$subdir" = "."; then \ | |
441 | local_target="$$target-am"; \ | |
442 | else \ | |
443 | local_target="$$target"; \ | |
444 | fi; \ | |
445 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
446 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ | |
447 | done && test -z "$$fail" | |
448 | tags-recursive: | |
449 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
450 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | |
451 | done | |
452 | ||
453 | tags: TAGS | |
454 | ||
455 | ID: $(HEADERS) $(SOURCES) $(LISP) | |
456 | list='$(SOURCES) $(HEADERS)'; \ | |
457 | unique=`for i in $$list; do echo $$i; done | \ | |
458 | awk ' { files[$$0] = 1; } \ | |
459 | END { for (i in files) print i; }'`; \ | |
460 | here=`pwd` && cd $(srcdir) \ | |
461 | && mkid -f$$here/ID $$unique $(LISP) | |
462 | ||
8da1639b | 463 | TAGS: tags-recursive $(HEADERS) $(SOURCES) newlib.hin $(TAGS_DEPENDENCIES) $(LISP) |
8a0efa53 CF |
464 | tags=; \ |
465 | here=`pwd`; \ | |
466 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
467 | if test "$$subdir" = .; then :; else \ | |
468 | test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ | |
469 | fi; \ | |
470 | done; \ | |
471 | list='$(SOURCES) $(HEADERS)'; \ | |
472 | unique=`for i in $$list; do echo $$i; done | \ | |
473 | awk ' { files[$$0] = 1; } \ | |
474 | END { for (i in files) print i; }'`; \ | |
8da1639b JJ |
475 | test -z "$(ETAGS_ARGS)newlib.hin$$unique$(LISP)$$tags" \ |
476 | || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags newlib.hin $$unique $(LISP) -o $$here/TAGS) | |
8a0efa53 CF |
477 | |
478 | mostlyclean-tags: | |
479 | ||
480 | clean-tags: | |
481 | ||
482 | distclean-tags: | |
483 | -rm -f TAGS ID | |
484 | ||
485 | maintainer-clean-tags: | |
486 | ||
487 | distdir = $(PACKAGE)-$(VERSION) | |
488 | top_distdir = $(distdir) | |
489 | ||
490 | # This target untars the dist file and tries a VPATH configuration. Then | |
491 | # it guarantees that the distribution is self-contained by making another | |
492 | # tarfile. | |
493 | distcheck: dist | |
494 | -rm -rf $(distdir) | |
495 | GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz | |
496 | mkdir $(distdir)/=build | |
497 | mkdir $(distdir)/=inst | |
498 | dc_install_base=`cd $(distdir)/=inst && pwd`; \ | |
499 | cd $(distdir)/=build \ | |
500 | && ../configure --srcdir=.. --prefix=$$dc_install_base \ | |
501 | && $(MAKE) $(AM_MAKEFLAGS) \ | |
502 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ | |
503 | && $(MAKE) $(AM_MAKEFLAGS) check \ | |
504 | && $(MAKE) $(AM_MAKEFLAGS) install \ | |
505 | && $(MAKE) $(AM_MAKEFLAGS) installcheck \ | |
506 | && $(MAKE) $(AM_MAKEFLAGS) dist | |
507 | -rm -rf $(distdir) | |
508 | @banner="$(distdir).tar.gz is ready for distribution"; \ | |
509 | dashes=`echo "$$banner" | sed s/./=/g`; \ | |
510 | echo "$$dashes"; \ | |
511 | echo "$$banner"; \ | |
512 | echo "$$dashes" | |
513 | dist: distdir | |
514 | -chmod -R a+r $(distdir) | |
515 | GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) | |
516 | -rm -rf $(distdir) | |
517 | dist-all: distdir | |
518 | -chmod -R a+r $(distdir) | |
519 | GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) | |
520 | -rm -rf $(distdir) | |
521 | distdir: $(DISTFILES) | |
522 | -rm -rf $(distdir) | |
523 | mkdir $(distdir) | |
524 | -chmod 777 $(distdir) | |
525 | @for file in $(DISTFILES); do \ | |
526 | if test -f $$file; then d=.; else d=$(srcdir); fi; \ | |
527 | if test -d $$d/$$file; then \ | |
a08c98bb | 528 | cp -pr $$d/$$file $(distdir)/$$file; \ |
8a0efa53 CF |
529 | else \ |
530 | test -f $(distdir)/$$file \ | |
531 | || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ | |
532 | || cp -p $$d/$$file $(distdir)/$$file || :; \ | |
533 | fi; \ | |
534 | done | |
535 | for subdir in $(DIST_SUBDIRS); do \ | |
536 | if test "$$subdir" = .; then :; else \ | |
537 | test -d $(distdir)/$$subdir \ | |
538 | || mkdir $(distdir)/$$subdir \ | |
539 | || exit 1; \ | |
540 | chmod 777 $(distdir)/$$subdir; \ | |
541 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \ | |
542 | || exit 1; \ | |
543 | fi; \ | |
544 | done | |
eaa75b70 TF |
545 | |
546 | DEJATOOL = $(PACKAGE) | |
547 | ||
548 | RUNTESTDEFAULTFLAGS = --tool $(DEJATOOL) --srcdir $$srcdir | |
8a0efa53 CF |
549 | info-am: |
550 | info: info-recursive | |
551 | dvi-am: | |
552 | dvi: dvi-recursive | |
553 | check-am: | |
eaa75b70 | 554 | $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU |
8a0efa53 CF |
555 | check: check-recursive |
556 | installcheck-am: | |
557 | installcheck: installcheck-recursive | |
558 | install-info-am: | |
559 | install-info: install-info-recursive | |
8da1639b JJ |
560 | all-recursive-am: newlib.h |
561 | $(MAKE) $(AM_MAKEFLAGS) all-recursive | |
562 | ||
8a0efa53 CF |
563 | install-exec-am: |
564 | install-exec: install-exec-recursive | |
565 | ||
2e1a7175 TF |
566 | install-data-am: install-toollibLIBRARIES install-toollibLTLIBRARIES \ |
567 | install-toollibDATA install-data-local | |
8a0efa53 CF |
568 | install-data: install-data-recursive |
569 | ||
570 | install-am: all-am | |
571 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | |
572 | install: install-recursive | |
2e1a7175 TF |
573 | uninstall-am: uninstall-toollibLIBRARIES uninstall-toollibLTLIBRARIES \ |
574 | uninstall-toollibDATA | |
8a0efa53 | 575 | uninstall: uninstall-recursive |
8da1639b JJ |
576 | all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(DATA) newlib.h |
577 | all-redirect: all-recursive-am | |
8a0efa53 CF |
578 | install-strip: |
579 | $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install | |
580 | installdirs: installdirs-recursive | |
581 | installdirs-am: | |
2e1a7175 TF |
582 | $(mkinstalldirs) $(DESTDIR)$(toollibdir) $(DESTDIR)$(toollibdir) \ |
583 | $(DESTDIR)$(toollibdir) | |
8a0efa53 CF |
584 | |
585 | ||
586 | mostlyclean-generic: | |
587 | ||
588 | clean-generic: | |
589 | -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) | |
590 | ||
591 | distclean-generic: | |
592 | -rm -f Makefile $(CONFIG_CLEAN_FILES) | |
593 | -rm -f config.cache config.log stamp-h stamp-h[0-9]* | |
594 | ||
595 | maintainer-clean-generic: | |
8da1639b JJ |
596 | mostlyclean-am: mostlyclean-hdr mostlyclean-toollibLIBRARIES \ |
597 | mostlyclean-compile mostlyclean-libtool \ | |
598 | mostlyclean-toollibLTLIBRARIES mostlyclean-tags \ | |
599 | mostlyclean-generic | |
8a0efa53 CF |
600 | |
601 | mostlyclean: mostlyclean-recursive | |
602 | ||
8da1639b | 603 | clean-am: clean-hdr clean-toollibLIBRARIES clean-compile clean-libtool \ |
2e1a7175 | 604 | clean-toollibLTLIBRARIES clean-tags clean-generic \ |
8a0efa53 CF |
605 | mostlyclean-am |
606 | ||
607 | clean: clean-recursive | |
608 | ||
8da1639b JJ |
609 | distclean-am: distclean-hdr distclean-toollibLIBRARIES \ |
610 | distclean-compile distclean-libtool \ | |
611 | distclean-toollibLTLIBRARIES distclean-tags \ | |
612 | distclean-generic clean-am | |
2e1a7175 | 613 | -rm -f libtool |
8a0efa53 CF |
614 | |
615 | distclean: distclean-recursive | |
616 | -rm -f config.status | |
617 | ||
8da1639b JJ |
618 | maintainer-clean-am: maintainer-clean-hdr \ |
619 | maintainer-clean-toollibLIBRARIES \ | |
2e1a7175 TF |
620 | maintainer-clean-compile maintainer-clean-libtool \ |
621 | maintainer-clean-toollibLTLIBRARIES \ | |
622 | maintainer-clean-tags maintainer-clean-generic \ | |
623 | distclean-am | |
8a0efa53 CF |
624 | @echo "This command is intended for maintainers to use;" |
625 | @echo "it deletes files that may require special tools to rebuild." | |
626 | ||
627 | maintainer-clean: maintainer-clean-recursive | |
628 | -rm -f config.status | |
629 | ||
8da1639b JJ |
630 | .PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \ |
631 | mostlyclean-toollibLIBRARIES distclean-toollibLIBRARIES \ | |
8a0efa53 CF |
632 | clean-toollibLIBRARIES maintainer-clean-toollibLIBRARIES \ |
633 | uninstall-toollibLIBRARIES install-toollibLIBRARIES mostlyclean-compile \ | |
634 | distclean-compile clean-compile maintainer-clean-compile \ | |
2e1a7175 TF |
635 | mostlyclean-libtool distclean-libtool clean-libtool \ |
636 | maintainer-clean-libtool mostlyclean-toollibLTLIBRARIES \ | |
637 | distclean-toollibLTLIBRARIES clean-toollibLTLIBRARIES \ | |
638 | maintainer-clean-toollibLTLIBRARIES uninstall-toollibLTLIBRARIES \ | |
639 | install-toollibLTLIBRARIES uninstall-toollibDATA install-toollibDATA \ | |
640 | install-data-recursive uninstall-data-recursive install-exec-recursive \ | |
8a0efa53 CF |
641 | uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \ |
642 | all-recursive check-recursive installcheck-recursive info-recursive \ | |
643 | dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \ | |
644 | maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ | |
eaa75b70 TF |
645 | distclean-tags clean-tags maintainer-clean-tags distdir check-DEJAGNU \ |
646 | info-am info dvi-am dvi check check-am installcheck-am installcheck \ | |
8da1639b JJ |
647 | install-info-am install-info all-recursive-am install-exec-am \ |
648 | install-exec install-data-local install-data-am install-data install-am \ | |
649 | install uninstall-am uninstall all-redirect all-am all installdirs-am \ | |
eaa75b70 TF |
650 | installdirs mostlyclean-generic distclean-generic clean-generic \ |
651 | maintainer-clean-generic clean mostlyclean distclean maintainer-clean | |
8a0efa53 CF |
652 | |
653 | ||
2e1a7175 TF |
654 | # objects listed later in LIBM_OBJECTLISTS will override those listed earlier |
655 | @USE_LIBTOOL_TRUE@libm-libtool-objectlist: $(LIBM_OBJECTLISTS) | |
656 | @USE_LIBTOOL_TRUE@ cat $(LIBM_OBJECTLISTS) | $(AWK) '{ libm[$$1] = $$2 }; END { for (x in libm) printf ("%s\n", libm[x]) }' > $@ | |
8a0efa53 | 657 | |
2e1a7175 TF |
658 | # objects listed later in LIBM_OBJECTLISTS and LIBC_OBJECTLISTS will override those listed earlier |
659 | @USE_LIBTOOL_TRUE@libc-libtool-objectlist: $(LIBM_OBJECTLISTS) $(LIBC_OBJECTLISTS) | |
660 | @USE_LIBTOOL_TRUE@ cat $(LIBM_OBJECTLISTS) $(LIBC_OBJECTLISTS) | $(AWK) '{ libc[$$1] = $$2 }; END { for (x in libc) printf ("%s\n", libc[x]) }' > $@ | |
8a0efa53 | 661 | |
2e1a7175 TF |
662 | @USE_LIBTOOL_FALSE@libc.a: libc/libc.a libm.a |
663 | @USE_LIBTOOL_FALSE@ rm -rf libc.a libg.a tmp | |
664 | @USE_LIBTOOL_FALSE@ mkdir tmp | |
665 | @USE_LIBTOOL_FALSE@ cd tmp; \ | |
666 | @USE_LIBTOOL_FALSE@ $(AR) x ../libm.a $(MATHOBJS_IN_LIBC) ; \ | |
667 | @USE_LIBTOOL_FALSE@ $(AR) x ../libc/libc.a ; \ | |
668 | @USE_LIBTOOL_FALSE@ $(AR) $(AR_FLAGS) ../$@ *.o | |
669 | @USE_LIBTOOL_FALSE@ $(RANLIB) libc.a | |
670 | @USE_LIBTOOL_FALSE@ ln libc.a libg.a >/dev/null 2>/dev/null || cp libc.a libg.a | |
671 | @USE_LIBTOOL_FALSE@ rm -rf tmp | |
672 | ||
673 | @USE_LIBTOOL_FALSE@libc/libc.a: ; @true | |
674 | ||
675 | @USE_LIBTOOL_FALSE@libm.a: libm/libm.a | |
676 | @USE_LIBTOOL_FALSE@ rm -f $@ | |
677 | @USE_LIBTOOL_FALSE@ ln libm/libm.a $@ >/dev/null 2>/dev/null || cp libm/libm.a $@ | |
8a0efa53 | 678 | |
2e1a7175 | 679 | @USE_LIBTOOL_FALSE@libm/libm.a: ; @true |
8a0efa53 | 680 | |
5f1c13c6 | 681 | crt0.o: $(CRT0_DIR)$(CRT0) |
8a0efa53 | 682 | rm -f $@ |
5f1c13c6 TF |
683 | ln $(CRT0_DIR)$(CRT0) $@ >/dev/null 2>/dev/null \ |
684 | || cp $(CRT0_DIR)$(CRT0) $@ | |
8a0efa53 | 685 | |
5f1c13c6 | 686 | $(CRT0_DIR)$(CRT0): ; @true |
8a0efa53 | 687 | |
5f1c13c6 | 688 | crt1.o: $(CRT1_DIR)$(CRT1) |
6e6cd5bd | 689 | rm -f $@ |
5f1c13c6 TF |
690 | ln $(CRT0_DIR)$(CRT0) $@ >/dev/null 2>/dev/null \ |
691 | || cp $(CRT0_DIR)$(CRT0) $@ | |
6e6cd5bd | 692 | |
5f1c13c6 | 693 | $(CRT1_DIR)$(CRT1): ; @true |
6e6cd5bd | 694 | |
8a0efa53 CF |
695 | all-recursive: stmp-targ-include |
696 | ||
697 | # The targ-include directory just holds the includes files for the | |
698 | # particular system and machine we have been configured for. It is | |
699 | # used while building. | |
700 | stmp-targ-include: config.status | |
701 | -rm -rf targ-include stmp-targ-include | |
702 | mkdir targ-include targ-include/sys targ-include/machine | |
8da1639b | 703 | cp newlib.h targ-include/newlib.h |
8a0efa53 CF |
704 | -for i in $(srcdir)/libc/machine/$(machine_dir)/machine/*.h; do \ |
705 | if [ -f $$i ]; then \ | |
706 | cp $$i targ-include/machine/`basename $$i`; \ | |
707 | else true; fi ; \ | |
708 | done | |
423152ed JJ |
709 | -for i in $(srcdir)/libc/machine/$(machine_dir)/sys/*.h; do \ |
710 | if [ -f $$i ]; then \ | |
711 | cp $$i targ-include/sys/`basename $$i`; \ | |
712 | else true; fi ; \ | |
713 | done | |
8a0efa53 CF |
714 | -for i in $(srcdir)/libc/sys/$(sys_dir)/include/*.h; do \ |
715 | if [ -f $$i ]; then \ | |
716 | cp $$i targ-include/`basename $$i`; \ | |
717 | else true; fi ; \ | |
718 | done | |
719 | -for i in $(srcdir)/libc/sys/$(sys_dir)/sys/*.h; do \ | |
720 | if [ -f $$i ]; then \ | |
721 | cp $$i targ-include/sys/`basename $$i`; \ | |
722 | else true; fi ; \ | |
723 | done | |
dd7ee147 JJ |
724 | -for i in $(srcdir)/libc/sys/$(sys_dir)/machine/*.h; do \ |
725 | if [ -f $$i ]; then \ | |
726 | cp $$i targ-include/machine/`basename $$i`; \ | |
727 | else true; fi ; \ | |
728 | done | |
fa4a16a1 JJ |
729 | -for i in $(srcdir)/libc/sys/$(sys_dir)/machine/$(machine_dir)/*.h; do \ |
730 | if [ -f $$i ]; then \ | |
731 | cp $$i targ-include/machine/`basename $$i`; \ | |
732 | else true; fi ; \ | |
733 | done | |
5e2cbfb6 JJ |
734 | -for i in $(srcdir)/libc/sys/$(sys_dir)/machine/$(machine_dir)/include/*.h; do \ |
735 | if [ -f $$i ]; then \ | |
736 | cp $$i targ-include/machine/`basename $$i`; \ | |
737 | else true; fi ; \ | |
738 | done | |
8a0efa53 CF |
739 | touch $@ |
740 | ||
a385ae75 | 741 | install-data-local: install-toollibLIBRARIES |
2e1a7175 TF |
742 | @USE_LIBTOOL_FALSE@ rm -f $(DESTDIR)$(toollibdir)/libg.a |
743 | @USE_LIBTOOL_FALSE@ ln $(DESTDIR)$(toollibdir)/libc.a $(DESTDIR)$(toollibdir)/libg.a >/dev/null 2>/dev/null || cp $(DESTDIR)$(toollibdir)/libc.a $(DESTDIR)$(toollibdir)/libg.a | |
b11926e7 | 744 | $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE) |
8a0efa53 | 745 | -if [ -z "$(MULTISUBDIR)" ]; then \ |
adbbb034 | 746 | $(mkinstalldirs) $(DESTDIR)$(tooldir)/include; \ |
8a0efa53 | 747 | for i in $(srcdir)/libc/include/*.h; do \ |
a385ae75 | 748 | $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/`basename $$i`; \ |
8a0efa53 | 749 | done; \ |
f3741c27 | 750 | $(INSTALL_DATA) newlib.h $(DESTDIR)$(tooldir)/include/newlib.h; \ |
adbbb034 | 751 | $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/machine; \ |
8a0efa53 | 752 | for i in $(srcdir)/libc/include/machine/*.h; do \ |
a385ae75 | 753 | $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \ |
8a0efa53 CF |
754 | done; \ |
755 | for i in $(srcdir)/libc/machine/$(machine_dir)/machine/*.h; do \ | |
756 | if [ -f $$i ]; then \ | |
a385ae75 | 757 | $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \ |
8a0efa53 CF |
758 | else true; fi ; \ |
759 | done; \ | |
adbbb034 | 760 | $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/sys; \ |
8a0efa53 | 761 | for i in $(srcdir)/libc/include/sys/*.h; do \ |
a385ae75 | 762 | $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys/`basename $$i`; \ |
8a0efa53 | 763 | done; \ |
423152ed JJ |
764 | for i in $(srcdir)/libc/machine/$(machine_dir)/sys/*.h; do \ |
765 | if [ -f $$i ]; then \ | |
766 | $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys/`basename $$i`; \ | |
767 | else true; fi ; \ | |
768 | done ; \ | |
8a0efa53 CF |
769 | for i in $(srcdir)/libc/sys/$(sys_dir)/sys/*.h; do \ |
770 | if [ -f $$i ]; then \ | |
a385ae75 | 771 | $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys/`basename $$i`; \ |
8a0efa53 CF |
772 | else true; fi ; \ |
773 | done ; \ | |
dd7ee147 JJ |
774 | for i in $(srcdir)/libc/sys/$(sys_dir)/machine/*.h; do \ |
775 | if [ -f $$i ]; then \ | |
776 | $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \ | |
777 | else true; fi ; \ | |
778 | done ; \ | |
8a0efa53 CF |
779 | for i in $(srcdir)/libc/sys/$(sys_dir)/include/*.h; do \ |
780 | if [ -f $$i ]; then \ | |
a385ae75 | 781 | $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/`basename $$i`; \ |
8a0efa53 CF |
782 | else true; fi ; \ |
783 | done ; \ | |
5e2cbfb6 JJ |
784 | for i in $(srcdir)/libc/sys/$(sys_dir)/machine/$(machine_dir)/include/*.h; do \ |
785 | if [ -f $$i ]; then \ | |
786 | $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \ | |
787 | else true; fi ; \ | |
788 | done ; \ | |
8a0efa53 CF |
789 | else true; fi |
790 | ||
791 | # Force makedoc to be built before building info files. | |
792 | info-recursive: doc/makedoc | |
793 | dvi-recursive: doc/makedoc | |
794 | doc/makedoc: | |
795 | cd doc && $(MAKE) all | |
796 | ||
797 | # Multilib support. | |
0717f01c | 798 | .PHONY: all-multi check-multi mostlyclean-multi clean-multi distclean-multi \ |
8a0efa53 CF |
799 | maintainer-clean-multi |
800 | ||
801 | all-recursive: all-multi | |
0717f01c | 802 | check-recursive: check-multi |
8a0efa53 CF |
803 | mostlyclean-recursive: mostlyclean-multi |
804 | clean-recursive: clean-multi | |
805 | distclean-recursive: distclean-multi | |
806 | maintainer-clean-recursive: maintainer-clean-multi | |
807 | ||
b11926e7 | 808 | # The $(MAKE) comments below are to enable parallel building. |
8a0efa53 | 809 | all-multi: |
b11926e7 | 810 | $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE) |
0717f01c | 811 | check-multi: |
b11926e7 | 812 | $(MULTIDO) $(AM_MAKEFLAGS) DO=check multi-do # $(MAKE) |
8a0efa53 | 813 | mostlyclean-multi: |
b11926e7 | 814 | $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean # $(MAKE) |
8a0efa53 | 815 | clean-multi: |
b11926e7 | 816 | $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean # $(MAKE) |
8a0efa53 | 817 | distclean-multi: |
b11926e7 | 818 | $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean # $(MAKE) |
8a0efa53 | 819 | maintainer-clean-multi: |
b11926e7 | 820 | $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean # $(MAKE) |
8a0efa53 | 821 | |
eaa75b70 TF |
822 | site.exp: Makefile |
823 | @echo 'Making a new site.exp file...' | |
824 | @test ! -f site.bak || rm -f site.bak | |
825 | @echo '## these variables are automatically generated by make ##' > $@-t | |
826 | @echo '# Do not edit here. If you wish to override these values' >> $@-t | |
827 | @echo '# edit the last section' >> $@-t | |
828 | @echo 'set tool $(DEJATOOL)' >> $@-t | |
829 | @echo 'set tool_version $(VERSION)' >> $@-t | |
830 | @echo 'set srcdir $(srcdir)/testsuite' >> $@-t | |
831 | @echo 'set objdir' `pwd` >> $@-t | |
1e997c56 | 832 | @echo 'set multibuildtop ./$(MULTIBUILDTOP)' >> $@-t |
4cf4f010 TF |
833 | @echo 'set host_alias $(build_alias)' >> $@-t |
834 | @echo 'set host_triplet $(build_triplet)' >> $@-t | |
eaa75b70 TF |
835 | @echo 'set target_alias $(host_alias)' >> $@-t |
836 | @echo 'set target_triplet $(host_triplet)' >> $@-t | |
837 | @echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t | |
838 | @test ! -f site.exp || sed '1,/^## All variables above are.*##/ d' site.exp >> $@-t | |
839 | @test ! -f site.exp || mv site.exp site.bak | |
840 | @mv $@-t site.exp | |
841 | ||
842 | check-DEJAGNU: site.exp | |
843 | @if [ -d testsuite ] ; then \ | |
844 | true ; \ | |
845 | else \ | |
846 | mkdir testsuite ; \ | |
847 | fi | |
848 | @rm -f testsuite/site.exp | |
849 | @cp site.exp testsuite/site.exp | |
850 | @rootme=`pwd` ; \ | |
851 | export rootme ; \ | |
852 | srcdir=`cd ${srcdir}; pwd` ; \ | |
853 | export srcdir ; \ | |
854 | EXPECT=`if [ -f $${rootme}/${MULTIBUILDTOP}../../expect/expect ] ; then \ | |
855 | echo $${rootme}/${MULTIBUILDTOP}../../expect/expect ; \ | |
856 | else \ | |
857 | echo expect ; \ | |
858 | fi` ; \ | |
859 | export EXPECT ; \ | |
860 | echo "Found expect: $${EXPECT}" ; \ | |
861 | if [ -f $(top_builddir)/$(MULTIBUILDTOP)../../expect/expect ] ; then \ | |
862 | TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd` ; \ | |
863 | export TCL_LIBRARY ; \ | |
864 | echo "Found TCL library directory: $${TCL_LIBRARY}" ; \ | |
865 | fi ; \ | |
866 | RUNTEST=`if [ -f $${srcdir}/../dejagnu/runtest ] ; then \ | |
867 | echo $${srcdir}/../dejagnu/runtest ; \ | |
868 | else \ | |
869 | echo runtest ; \ | |
870 | fi` ; \ | |
871 | export RUNTEST ; \ | |
872 | echo "Found runtest: $${RUNTEST}" ; \ | |
873 | cd testsuite ; \ | |
874 | if $(SHELL) -c "$$RUNTEST --version" > /dev/null 2>&1 ; then \ | |
0717f01c TF |
875 | $$RUNTEST --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite $(RUNTESTFLAGS) ; \ |
876 | : ; \ | |
eaa75b70 TF |
877 | else \ |
878 | echo "WARNING: could not find \`runtest'" 1>&2 ; \ | |
879 | fi | |
880 | ||
8a0efa53 CF |
881 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
882 | # Otherwise a system limit (for SysV at least) may be exceeded. | |
883 | .NOEXPORT: |