# Makefile for newlib.
|
# Makefile.in generated automatically by automake 1.4 from Makefile.am
|
# Copyright (c) 1994, 1995, 1997 Cygnus Support.
|
|
# All rights reserved.
|
|
#
|
|
# Redistribution and use in source and binary forms are permitted
|
|
# provided that the above copyright notice and this paragraph are
|
|
# duplicated in all such forms and that any documentation,
|
|
# advertising materials, and other materials related to such
|
|
# distribution and use acknowledge that the software was developed
|
|
# at Cygnus Support, Inc. Cygnus Support, Inc. may not be used to
|
|
# endorse or promote products derived from this software without
|
|
# specific prior written permission.
|
|
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
|
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
# This copy of $(VERSION) is used when building net newlib releases.
|
|
VERSION = 1.8.1
|
|
|
|
srcdir = .
|
|
|
|
prefix = /usr/local
|
|
|
|
exec_prefix = $(prefix)
|
|
bindir = $(exec_prefix)/bin
|
|
libdir = $(exec_prefix)/lib
|
|
tooldir = $(exec_prefix)
|
|
|
|
datadir = $(prefix)/share
|
|
|
|
mandir = $(prefix)/man
|
|
man1dir = $(mandir)/man1
|
|
man2dir = $(mandir)/man2
|
|
man3dir = $(mandir)/man3
|
|
man4dir = $(mandir)/man4
|
|
man5dir = $(mandir)/man5
|
|
man6dir = $(mandir)/man6
|
|
man7dir = $(mandir)/man7
|
|
man8dir = $(mandir)/man8
|
|
man9dir = $(mandir)/man9
|
|
infodir = $(prefix)/info
|
|
includedir = $(prefix)/include
|
|
|
|
SHELL = /bin/sh
|
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
|
# This Makefile.in is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
# with or without modifications, as long as this notice is preserved.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
# PARTICULAR PURPOSE.
|
|
|
|
|
|
SHELL = @SHELL@
|
|
|
|
srcdir = @srcdir@
|
|
top_srcdir = @top_srcdir@
|
|
VPATH = @srcdir@
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
sbindir = @sbindir@
|
|
libexecdir = @libexecdir@
|
|
datadir = @datadir@
|
|
sysconfdir = @sysconfdir@
|
|
sharedstatedir = @sharedstatedir@
|
|
localstatedir = @localstatedir@
|
|
libdir = @libdir@
|
|
infodir = @infodir@
|
|
mandir = @mandir@
|
|
includedir = @includedir@
|
|
oldincludedir = /usr/include
|
|
|
|
DESTDIR =
|
|
|
|
pkgdatadir = $(datadir)/@PACKAGE@
|
|
pkglibdir = $(libdir)/@PACKAGE@
|
|
pkgincludedir = $(includedir)/@PACKAGE@
|
|
|
|
top_builddir = .
|
|
|
|
ACLOCAL = @ACLOCAL@
|
|
AUTOCONF = @AUTOCONF@
|
|
AUTOMAKE = @AUTOMAKE@
|
|
AUTOHEADER = @AUTOHEADER@
|
|
|
|
INSTALL = @INSTALL@
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
|
transform = @program_transform_name@
|
|
|
|
NORMAL_INSTALL = :
|
|
PRE_INSTALL = :
|
|
POST_INSTALL = :
|
|
NORMAL_UNINSTALL = :
|
|
PRE_UNINSTALL = :
|
|
POST_UNINSTALL = :
|
|
host_alias = @host_alias@
|
|
host_triplet = @host@
|
|
AR = @AR@
|
|
AS = @AS@
|
|
CC = @CC@
|
|
CPP = @CPP@
|
|
CRT0 = @CRT0@
|
|
CRT0_DIR = @CRT0_DIR@
|
|
EXEEXT = @EXEEXT@
|
|
MAINT = @MAINT@
|
|
MAKEINFO = @MAKEINFO@
|
|
NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
|
|
PACKAGE = @PACKAGE@
|
|
RANLIB = @RANLIB@
|
|
VERSION = 1.8.2
|
|
machine_dir = @machine_dir@
|
|
newlib_basedir = @newlib_basedir@
|
|
sys_dir = @sys_dir@
|
|
|
|
AUTOMAKE_OPTIONS = cygnus
|
|
|
# Multilib support variables.
|
# Multilib support variables.
|
# TOP is used instead of MULTI{BUILD,SRC}TOP.
|
|
MULTISRCTOP =
|
MULTISRCTOP =
|
MULTIBUILDTOP =
|
MULTIBUILDTOP =
|
MULTIDIRS =
|
MULTIDIRS =
|
MULTISUBDIR =
|
MULTISUBDIR =
|
MULTIDO = true
|
MULTIDO = true
|
MULTICLEAN = true
|
MULTICLEAN = true
|
|
|
INSTALL = $$srcrootpre/../install-sh -c
|
# Work around what appears to be a GNU make bug handling MAKEFLAGS
|
INSTALL_PROGRAM = $(INSTALL)
|
# values defined in terms of make variables, as is the case for CC and
|
INSTALL_DATA = $(INSTALL)
|
# friends when we are called from the top level Makefile.
|
|
AM_MAKEFLAGS = \
|
AR_FLAGS = qv
|
|
MAKEINFO = makeinfo
|
|
|
|
# We must compile makedoc with a program that runs on the build
|
|
# environment.
|
|
CC_FOR_BUILD = cc
|
|
CFLAGS_FOR_BUILD =
|
|
|
|
TOP = .
|
|
SRCTOP = .
|
|
|
|
machine_dir =
|
|
sys_dir =
|
|
CRT0_DIR =
|
|
CRT0 =
|
|
|
|
#### Host, target, and site specific Makefile fragments come in here.
|
|
###
|
|
|
|
SUBDIRS = libc libm doc testsuite
|
|
|
|
# These are roughly topologically sorted in order to make porting more
|
|
# streamlined.
|
|
FLAGS_TO_PASS = \
|
|
"prefix=$(prefix)" \
|
|
"exec_prefix=$(exec_prefix)" \
|
|
"infodir=$(infodir)" \
|
|
"tooldir=$(tooldir)" \
|
|
"CC=$(CC)" \
|
|
"CFLAGS=$(CFLAGS)" \
|
|
"AR=$(AR)" \
|
|
"AR_FLAGS=$(AR_FLAGS)" \
|
"AR_FLAGS=$(AR_FLAGS)" \
|
"DLLTOOL=$(DLLTOOL)" \
|
"CC_FOR_BUILD=$(CC_FOR_BUILD)" \
|
"RANLIB=$(RANLIB)" \
|
"CFLAGS=$(CFLAGS)" \
|
"MAKEINFO=$(MAKEINFO)" \
|
"CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
|
|
"CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
|
"INSTALL=$(INSTALL)" \
|
"INSTALL=$(INSTALL)" \
|
"INSTALL_DATA=$(INSTALL_DATA)" \
|
"INSTALL_DATA=$(INSTALL_DATA)" \
|
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
|
|
"INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
|
|
"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)" \
|
|
"AR=$(AR)" \
|
"AS=$(AS)" \
|
"AS=$(AS)" \
|
"CROSS_CFLAGS=$(CROSS_CFLAGS)" \
|
"CC=$(CC)" \
|
"TARGET_CFLAGS=$(TARGET_CFLAGS)" \
|
"LD=$(LD)" \
|
"INCLUDES=$(INCLUDES)"
|
"LIBCFLAGS=$(LIBCFLAGS)" \
|
|
"NM=$(NM)" \
|
|
"PICFLAG=$(PICFLAG)" \
|
|
"RANLIB=$(RANLIB)" \
|
|
"DESTDIR=$(DESTDIR)"
|
|
|
|
|
|
@HAVE_DOC_TRUE@DOCDIR = \
|
|
@HAVE_DOC_TRUE@doc
|
|
|
|
SUBDIRS = libc libm $(DOCDIR) .
|
|
|
|
tooldir = $(exec_prefix)/$(host_alias)
|
|
toollibdir = $(tooldir)/lib$(MULTISUBDIR)
|
|
|
|
AR_FLAGS = rc
|
|
|
|
toollib_LIBRARIES = libm.a libc.a
|
|
toollib_DATA = $(CRT0)
|
|
noinst_DATA = stmp-targ-include
|
|
|
# The functions ldexp, frexp and modf are traditionally supplied in
|
# The functions ldexp, frexp and modf are traditionally supplied in
|
# both libc.a and libm.a. We build them in libm.a and copy them over,
|
# both libc.a and libm.a. We build them in libm.a and copy them over,
|
# along with some required supporting routines.
|
# along with some required supporting routines.
|
MATHOBJS_IN_LIBC = \
|
MATHOBJS_IN_LIBC = \
|
s_isinf.o sf_isinf.o \
|
s_isinf.o sf_isinf.o \
|
s_isnan.o sf_isnan.o \
|
s_isnan.o sf_isnan.o \
|
s_ldexp.o sf_ldexp.o \
|
s_ldexp.o sf_ldexp.o \
|
s_frexp.o sf_frexp.o s_modf.o sf_modf.o \
|
s_frexp.o sf_frexp.o s_modf.o sf_modf.o \
|
s_scalbn.o sf_scalbn.o s_finite.o sf_finite.o \
|
s_scalbn.o sf_scalbn.o s_finite.o sf_finite.o \
|
s_copysign.o sf_copysign.o s_infconst.o
|
s_copysign.o sf_copysign.o s_infconst.o
|
|
|
all: stmp-targ-include libm.a libc.a $(CRT0) force
|
|
rootpre=`pwd`/; export rootpre; \
|
CLEANFILES = targ-include stmp-targ-include
|
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre ; \
|
|
$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=all
|
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
|
|
|
|
MAKEOVERRIDES =
|
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
|
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
|
|
CONFIG_CLEAN_FILES =
|
|
LIBRARIES = $(toollib_LIBRARIES)
|
|
|
|
|
|
DEFS = @DEFS@ -I. -I$(srcdir)
|
|
CPPFLAGS = @CPPFLAGS@
|
|
LDFLAGS = @LDFLAGS@
|
|
LIBS = @LIBS@
|
|
libm_a_LIBADD =
|
|
libm_a_SOURCES = libm.a.c
|
|
libm_a_OBJECTS = libm.a.o
|
|
libc_a_LIBADD =
|
|
libc_a_SOURCES = libc.a.c
|
|
libc_a_OBJECTS = libc.a.o
|
|
CFLAGS = @CFLAGS@
|
|
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
|
CCLD = $(CC)
|
|
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
|
DATA = $(noinst_DATA) $(toollib_DATA)
|
|
|
|
DIST_COMMON = README ChangeLog Makefile.am Makefile.in NEWS \
|
|
acinclude.m4 aclocal.m4 configure configure.in
|
|
|
|
|
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
|
|
|
TAR = tar
|
|
GZIP_ENV = --best
|
|
DIST_SUBDIRS = libc libm doc .
|
|
SOURCES = libm.a.c libc.a.c
|
|
OBJECTS = libm.a.o libc.a.o
|
|
|
|
all: all-redirect
|
|
.SUFFIXES:
|
|
.SUFFIXES: .S .c .o .s
|
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
|
cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
cd $(top_builddir) \
|
|
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in acinclude.m4
|
|
cd $(srcdir) && $(ACLOCAL)
|
|
|
|
config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
|
$(SHELL) ./config.status --recheck
|
|
$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
|
|
cd $(srcdir) && $(AUTOCONF)
|
|
|
|
mostlyclean-toollibLIBRARIES:
|
|
|
|
clean-toollibLIBRARIES:
|
|
-test -z "$(toollib_LIBRARIES)" || rm -f $(toollib_LIBRARIES)
|
|
|
|
distclean-toollibLIBRARIES:
|
|
|
|
maintainer-clean-toollibLIBRARIES:
|
|
|
|
install-toollibLIBRARIES: $(toollib_LIBRARIES)
|
|
@$(NORMAL_INSTALL)
|
|
$(mkinstalldirs) $(DESTDIR)$(toollibdir)
|
|
@list='$(toollib_LIBRARIES)'; for p in $$list; do \
|
|
if test -f $$p; then \
|
|
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(toollibdir)/$$p"; \
|
|
$(INSTALL_DATA) $$p $(DESTDIR)$(toollibdir)/$$p; \
|
|
else :; fi; \
|
|
done
|
|
@$(POST_INSTALL)
|
|
@list='$(toollib_LIBRARIES)'; for p in $$list; do \
|
|
if test -f $$p; then \
|
|
echo " $(RANLIB) $(DESTDIR)$(toollibdir)/$$p"; \
|
|
$(RANLIB) $(DESTDIR)$(toollibdir)/$$p; \
|
|
else :; fi; \
|
|
done
|
|
|
|
uninstall-toollibLIBRARIES:
|
|
@$(NORMAL_UNINSTALL)
|
|
list='$(toollib_LIBRARIES)'; for p in $$list; do \
|
|
rm -f $(DESTDIR)$(toollibdir)/$$p; \
|
|
done
|
|
|
|
.c.o:
|
|
$(COMPILE) -c $<
|
|
|
|
.s.o:
|
|
$(COMPILE) -c $<
|
|
|
|
.S.o:
|
|
$(COMPILE) -c $<
|
|
|
|
mostlyclean-compile:
|
|
-rm -f *.o core *.core
|
|
|
|
clean-compile:
|
|
|
|
distclean-compile:
|
|
-rm -f *.tab.c
|
|
|
|
maintainer-clean-compile:
|
|
|
|
install-toollibDATA: $(toollib_DATA)
|
|
@$(NORMAL_INSTALL)
|
|
$(mkinstalldirs) $(DESTDIR)$(toollibdir)
|
|
@list='$(toollib_DATA)'; for p in $$list; do \
|
|
if test -f $(srcdir)/$$p; then \
|
|
echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(toollibdir)/$$p"; \
|
|
$(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(toollibdir)/$$p; \
|
|
else if test -f $$p; then \
|
|
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(toollibdir)/$$p"; \
|
|
$(INSTALL_DATA) $$p $(DESTDIR)$(toollibdir)/$$p; \
|
|
fi; fi; \
|
|
done
|
|
|
|
uninstall-toollibDATA:
|
|
@$(NORMAL_UNINSTALL)
|
|
list='$(toollib_DATA)'; for p in $$list; do \
|
|
rm -f $(DESTDIR)$(toollibdir)/$$p; \
|
|
done
|
|
|
|
# This directory's subdirectories are mostly independent; you can cd
|
|
# into them and run `make' without going through this Makefile.
|
|
# To change the values of `make' variables: instead of editing Makefiles,
|
|
# (1) if the variable is set in `config.status', edit `config.status'
|
|
# (which will cause the Makefiles to be regenerated when you run `make');
|
|
# (2) otherwise, pass the desired values on the `make' command line.
|
|
|
|
@SET_MAKE@
|
|
|
|
all-recursive install-data-recursive install-exec-recursive \
|
|
installdirs-recursive install-recursive uninstall-recursive install-info-recursive \
|
|
check-recursive installcheck-recursive info-recursive dvi-recursive:
|
|
@set fnord $(MAKEFLAGS); amf=$$2; \
|
|
dot_seen=no; \
|
|
target=`echo $@ | sed s/-recursive//`; \
|
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
|
echo "Making $$target in $$subdir"; \
|
|
if test "$$subdir" = "."; then \
|
|
dot_seen=yes; \
|
|
local_target="$$target-am"; \
|
|
else \
|
|
local_target="$$target"; \
|
|
fi; \
|
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
|
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
|
done; \
|
|
if test "$$dot_seen" = "no"; then \
|
|
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
|
fi; test -z "$$fail"
|
|
|
|
mostlyclean-recursive clean-recursive distclean-recursive \
|
|
maintainer-clean-recursive:
|
|
@set fnord $(MAKEFLAGS); amf=$$2; \
|
|
dot_seen=no; \
|
|
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
|
|
rev="$$subdir $$rev"; \
|
|
test "$$subdir" = "." && dot_seen=yes; \
|
|
done; \
|
|
test "$$dot_seen" = "no" && rev=". $$rev"; \
|
|
target=`echo $@ | sed s/-recursive//`; \
|
|
for subdir in $$rev; do \
|
|
echo "Making $$target in $$subdir"; \
|
|
if test "$$subdir" = "."; then \
|
|
local_target="$$target-am"; \
|
|
else \
|
|
local_target="$$target"; \
|
|
fi; \
|
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
|
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
|
done && test -z "$$fail"
|
|
tags-recursive:
|
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
|
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
|
|
done
|
|
|
|
tags: TAGS
|
|
|
|
ID: $(HEADERS) $(SOURCES) $(LISP)
|
|
list='$(SOURCES) $(HEADERS)'; \
|
|
unique=`for i in $$list; do echo $$i; done | \
|
|
awk ' { files[$$0] = 1; } \
|
|
END { for (i in files) print i; }'`; \
|
|
here=`pwd` && cd $(srcdir) \
|
|
&& mkid -f$$here/ID $$unique $(LISP)
|
|
|
|
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
|
|
tags=; \
|
|
here=`pwd`; \
|
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
|
if test "$$subdir" = .; then :; else \
|
|
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
|
|
fi; \
|
|
done; \
|
|
list='$(SOURCES) $(HEADERS)'; \
|
|
unique=`for i in $$list; do echo $$i; done | \
|
|
awk ' { files[$$0] = 1; } \
|
|
END { for (i in files) print i; }'`; \
|
|
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
|
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
|
|
|
|
mostlyclean-tags:
|
|
|
|
clean-tags:
|
|
|
|
distclean-tags:
|
|
-rm -f TAGS ID
|
|
|
|
maintainer-clean-tags:
|
|
|
|
distdir = $(PACKAGE)-$(VERSION)
|
|
top_distdir = $(distdir)
|
|
|
|
# This target untars the dist file and tries a VPATH configuration. Then
|
|
# it guarantees that the distribution is self-contained by making another
|
|
# tarfile.
|
|
distcheck: dist
|
|
-rm -rf $(distdir)
|
|
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
|
|
mkdir $(distdir)/=build
|
|
mkdir $(distdir)/=inst
|
|
dc_install_base=`cd $(distdir)/=inst && pwd`; \
|
|
cd $(distdir)/=build \
|
|
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
|
|
&& $(MAKE) $(AM_MAKEFLAGS) \
|
|
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
|
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
|
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
|
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
|
&& $(MAKE) $(AM_MAKEFLAGS) dist
|
|
-rm -rf $(distdir)
|
|
@banner="$(distdir).tar.gz is ready for distribution"; \
|
|
dashes=`echo "$$banner" | sed s/./=/g`; \
|
|
echo "$$dashes"; \
|
|
echo "$$banner"; \
|
|
echo "$$dashes"
|
|
dist: distdir
|
|
-chmod -R a+r $(distdir)
|
|
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
|
-rm -rf $(distdir)
|
|
dist-all: distdir
|
|
-chmod -R a+r $(distdir)
|
|
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
|
|
-rm -rf $(distdir)
|
|
distdir: $(DISTFILES)
|
|
-rm -rf $(distdir)
|
|
mkdir $(distdir)
|
|
-chmod 777 $(distdir)
|
|
@for file in $(DISTFILES); do \
|
|
if test -f $$file; then d=.; else d=$(srcdir); fi; \
|
|
if test -d $$d/$$file; then \
|
|
cp -pr $$/$$file $(distdir)/$$file; \
|
|
else \
|
|
test -f $(distdir)/$$file \
|
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
|
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
|
fi; \
|
|
done
|
|
for subdir in $(DIST_SUBDIRS); do \
|
|
if test "$$subdir" = .; then :; else \
|
|
test -d $(distdir)/$$subdir \
|
|
|| mkdir $(distdir)/$$subdir \
|
|
|| exit 1; \
|
|
chmod 777 $(distdir)/$$subdir; \
|
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
|
|
|| exit 1; \
|
|
fi; \
|
|
done
|
|
info-am:
|
|
info: info-recursive
|
|
dvi-am:
|
|
dvi: dvi-recursive
|
|
check-am:
|
|
check: check-recursive
|
|
installcheck-am:
|
|
installcheck: installcheck-recursive
|
|
install-info-am:
|
|
install-info: install-info-recursive
|
|
install-exec-am:
|
|
install-exec: install-exec-recursive
|
|
|
|
install-data-am: install-toollibLIBRARIES install-toollibDATA \
|
|
install-data-local
|
|
install-data: install-data-recursive
|
|
|
|
install-am: all-am
|
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
|
install: install-recursive
|
|
uninstall-am: uninstall-toollibLIBRARIES uninstall-toollibDATA
|
|
uninstall: uninstall-recursive
|
|
all-am: Makefile $(LIBRARIES) $(DATA)
|
|
all-redirect: all-recursive
|
|
install-strip:
|
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
|
installdirs: installdirs-recursive
|
|
installdirs-am:
|
|
$(mkinstalldirs) $(DESTDIR)$(toollibdir) $(DESTDIR)$(toollibdir)
|
|
|
|
|
|
mostlyclean-generic:
|
|
|
|
clean-generic:
|
|
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
|
|
|
distclean-generic:
|
|
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
|
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
|
|
|
maintainer-clean-generic:
|
|
mostlyclean-am: mostlyclean-toollibLIBRARIES mostlyclean-compile \
|
|
mostlyclean-tags mostlyclean-generic
|
|
|
|
mostlyclean: mostlyclean-recursive
|
|
|
|
clean-am: clean-toollibLIBRARIES clean-compile clean-tags clean-generic \
|
|
mostlyclean-am
|
|
|
|
clean: clean-recursive
|
|
|
|
distclean-am: distclean-toollibLIBRARIES distclean-compile \
|
|
distclean-tags distclean-generic clean-am
|
|
|
|
distclean: distclean-recursive
|
|
-rm -f config.status
|
|
|
|
maintainer-clean-am: maintainer-clean-toollibLIBRARIES \
|
|
maintainer-clean-compile maintainer-clean-tags \
|
|
maintainer-clean-generic distclean-am
|
|
@echo "This command is intended for maintainers to use;"
|
|
@echo "it deletes files that may require special tools to rebuild."
|
|
|
|
maintainer-clean: maintainer-clean-recursive
|
|
-rm -f config.status
|
|
|
|
.PHONY: mostlyclean-toollibLIBRARIES distclean-toollibLIBRARIES \
|
|
clean-toollibLIBRARIES maintainer-clean-toollibLIBRARIES \
|
|
uninstall-toollibLIBRARIES install-toollibLIBRARIES mostlyclean-compile \
|
|
distclean-compile clean-compile maintainer-clean-compile \
|
|
uninstall-toollibDATA install-toollibDATA install-data-recursive \
|
|
uninstall-data-recursive install-exec-recursive \
|
|
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
|
|
all-recursive check-recursive installcheck-recursive info-recursive \
|
|
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
|
|
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
|
|
distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
|
|
dvi-am dvi check check-am installcheck-am installcheck install-info-am \
|
|
install-info install-exec-am install-exec install-data-local \
|
|
install-data-am install-data install-am install uninstall-am uninstall \
|
|
all-redirect all-am all installdirs-am installdirs mostlyclean-generic \
|
|
distclean-generic clean-generic maintainer-clean-generic clean \
|
|
mostlyclean distclean maintainer-clean
|
|
|
|
|
libc.a: libc/libc.a libm.a
|
libc.a: libc/libc.a libm.a
|
rm -rf libc.a libg.a tmp
|
rm -rf libc.a libg.a tmp
|
mkdir tmp
|
mkdir tmp
|
rootpre=`pwd`/; export rootpre; \
|
|
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre ; \
|
|
cd tmp ; \
|
cd tmp ; \
|
$(AR) x ../libm.a $(MATHOBJS_IN_LIBC) ; \
|
$(AR) x ../libm.a $(MATHOBJS_IN_LIBC) ; \
|
$(AR) x ../libc/libc.a ; \
|
$(AR) x ../libc/libc.a ; \
|
$(AR) $(AR_FLAGS) ../$@ *.o
|
$(AR) $(AR_FLAGS) ../$@ *.o
|
$(RANLIB) libc.a
|
$(RANLIB) libc.a
|
ln libc.a libg.a
|
ln libc.a libg.a
|
rm -rf tmp
|
rm -rf tmp
|
|
|
libc/libc.a: stmp-targ-include force
|
libc/libc.a: ; @true
|
@rootpre=`pwd`/; export rootpre; \
|
|
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
|
|
cd libc; $(MAKE) $(FLAGS_TO_PASS) all
|
|
|
|
libm.a: libm/libm.a
|
libm.a: libm/libm.a
|
rm -f $@
|
rm -f $@
|
ln libm/libm.a $@ >/dev/null 2>/dev/null || cp libm/libm.a $@
|
ln libm/libm.a $@ >/dev/null 2>/dev/null || cp libm/libm.a $@
|
|
|
libm/libm.a: stmp-targ-include force
|
libm/libm.a: ; @true
|
@rootpre=`pwd`/; export rootpre; \
|
|
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
|
|
cd libm; $(MAKE) $(FLAGS_TO_PASS)
|
|
|
|
crt0.o: $(CRT0_DIR)/$(CRT0)
|
crt0.o: $(CRT0_DIR)/$(CRT0)
|
rm -f $@
|
rm -f $@
|
ln $(CRT0_DIR)/$(CRT0) $@ >/dev/null 2>/dev/null \
|
ln $(CRT0_DIR)/$(CRT0) $@ >/dev/null 2>/dev/null \
|
|| cp $(CRT0_DIR)/$(CRT0) $@
|
|| cp $(CRT0_DIR)/$(CRT0) $@
|
|
|
$(CRT0_DIR)/$(CRT0): force
|
$(CRT0_DIR)/$(CRT0): ; @true
|
@rootpre=`pwd`/; export rootpre; \
|
|
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
|
all-recursive: stmp-targ-include
|
(cd $(CRT0_DIR) ; \
|
|
$(MAKE) $(FLAGS_TO_PASS) $(CRT0)) \
|
|
|| exit 1
|
|
|
|
# The targ-include directory just holds the includes files for the
|
# The targ-include directory just holds the includes files for the
|
# particular system and machine we have been configured for. It is
|
# particular system and machine we have been configured for. It is
|
# used while building.
|
# used while building.
|
stmp-targ-include: config.status
|
stmp-targ-include: config.status
|
-rm -rf targ-include stmp-targ-include
|
-rm -rf targ-include stmp-targ-include
|
mkdir targ-include targ-include/sys targ-include/machine
|
mkdir targ-include targ-include/sys targ-include/machine
|
-for i in $(srcdir)/libc/machine/$(machine_dir)/machine/*.h; do \
|
-for i in $(srcdir)/libc/machine/$(machine_dir)/machine/*.h; do \
|
if [ -f $$i ]; then \
|
if [ -f $$i ]; then \
|
cp $$i targ-include/machine/`basename $$i`; \
|
cp $$i targ-include/machine/`basename $$i`; \
|
else true; fi ; \
|
else true; fi ; \
|
done
|
done
|
-for i in $(srcdir)/libc/sys/$(sys_dir)/include/*.h; do \
|
-for i in $(srcdir)/libc/sys/$(sys_dir)/include/*.h; do \
|
if [ -f $$i ]; then \
|
if [ -f $$i ]; then \
|
cp $$i targ-include/`basename $$i`; \
|
cp $$i targ-include/`basename $$i`; \
|
else true; fi ; \
|
else true; fi ; \
|
done
|
done
|
-for i in $(srcdir)/libc/sys/$(sys_dir)/sys/*.h; do \
|
-for i in $(srcdir)/libc/sys/$(sys_dir)/sys/*.h; do \
|
if [ -f $$i ]; then \
|
if [ -f $$i ]; then \
|
cp $$i targ-include/sys/`basename $$i`; \
|
cp $$i targ-include/sys/`basename $$i`; \
|
else true; fi ; \
|
else true; fi ; \
|
done
|
done
|
touch $@
|
touch $@
|
|
|
testsuite:
|
install-data-local: install-toollibLIBRARIES
|
if [ -d testsuite ]; then \
|
rm -f $(toollibdir)/libg.a
|
(rootme=`pwd`/ ; export rootme ; \
|
ln $(toollibdir)/libc.a $(toollibdir)/libg.a
|
rootsrc=`cd $(srcdir); pwd`/ ; export rootsrc ; \
|
$(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
|
cd testsuite; $(MAKE) FLAGS_TO_PASS=$(FLAGS_TO_PASS)); \
|
|
else true ; fi
|
|
|
|
check: force
|
|
if [ -d testsuite ]; then \
|
|
rootme=`pwd`; export rootme; cd testsuite; \
|
|
$(MAKE) $(FLAGS_TO_PASS) check; \
|
|
else true; fi
|
|
|
|
.PHONY: clean-info
|
|
|
|
subdir_do:
|
|
@for i in $(DODIRS); do \
|
|
if [ -f ./$$i/Makefile ] ; then \
|
|
if (cd ./$$i; $(MAKE) $(FLAGS_TO_PASS) $(DO)) ; \
|
|
then true ; \
|
|
else exit 1 ; \
|
|
fi ; \
|
|
else true; \
|
|
fi ; \
|
|
done
|
|
|
|
info dvi docs:
|
|
@rootpre=`pwd`/; export rootpre; \
|
|
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
|
|
(cd ./doc; $(MAKE) "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
|
|
"CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
|
|
$(FLAGS_TO_PASS) all);
|
|
@rootpre=`pwd`/; export rootpre; \
|
|
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
|
|
for i in $(SUBDIRS); do \
|
|
if [ -f ./$$i/Makefile ] ; then \
|
|
if (cd ./$$i; $(MAKE) "CHEW=$(CHEW)" \
|
|
$(FLAGS_TO_PASS) $@) ; \
|
|
then true ; \
|
|
else exit 1 ; \
|
|
fi ; \
|
|
else true; \
|
|
fi ; \
|
|
done
|
|
|
|
clean-here:
|
|
rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E
|
|
rm -rf targ-include stmp-targ-include
|
|
|
|
clean: clean-here
|
|
@rootpre=`pwd`/; export rootpre; \
|
|
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
|
|
$(MAKE) DO=$@ DODIRS="$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
|
|
@$(MULTICLEAN) multi-clean DO=$@
|
|
|
|
mostlyclean:
|
|
rm -f TEMP errs core *.o *~ \#* TAGS *.E
|
|
@rootpre=`pwd`/; export rootpre; \
|
|
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
|
|
$(MAKE) DO=$@ DODIRS="$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
|
|
@$(MULTICLEAN) multi-clean DO=$@
|
|
|
|
distclean maintainer-clean realclean: clean-here
|
|
@rootpre=`pwd`/; export rootpre; \
|
|
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
|
|
$(MAKE) DO=$@ DODIRS="$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
|
|
@$(MULTICLEAN) multi-clean DO=$@
|
|
rm -f Makefile config.status
|
|
|
|
install:
|
|
@rootpre=`pwd`/; export rootpre; \
|
|
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
|
|
$(MAKE) DO=install DODIRS="$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
|
|
# install all the libraries we find
|
|
for i in *.a ; do \
|
|
$(INSTALL_PROGRAM) $$i $(tooldir)/lib$(MULTISUBDIR)/$$i ; \
|
|
done
|
|
# but libg.a is a copy of libc.a
|
|
-rm -f $(tooldir)/lib$(MULTISUBDIR)/libg.a
|
|
ln $(tooldir)/lib$(MULTISUBDIR)/libc.a $(tooldir)/lib$(MULTISUBDIR)/libg.a
|
|
# ranlibize them all
|
|
for i in $(tooldir)/lib$(MULTISUBDIR)/*.a ; do \
|
|
$(RANLIB) $$i ; \
|
|
done
|
|
# now crt0
|
|
-if [ -f crt0.o ] ; then \
|
|
$(INSTALL_PROGRAM) crt0.o $(tooldir)/lib$(MULTISUBDIR)/crt0.o; \
|
|
else true; fi
|
|
# and all the headers
|
|
@$(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
|
|
-if [ -z "$(MULTISUBDIR)" ]; then \
|
-if [ -z "$(MULTISUBDIR)" ]; then \
|
for i in $(srcdir)/libc/include/*.h; do \
|
for i in $(srcdir)/libc/include/*.h; do \
|
$(INSTALL_DATA) $$i $(tooldir)/include/`basename $$i`; \
|
$(INSTALL_DATA) $$i $(tooldir)/include/`basename $$i`; \
|
done; \
|
done; \
|
for i in $(srcdir)/libc/include/machine/*.h; do \
|
for i in $(srcdir)/libc/include/machine/*.h; do \
|
$(INSTALL_DATA) $$i $(tooldir)/include/machine/`basename $$i`; \
|
$(INSTALL_DATA) $$i $(tooldir)/include/machine/`basename $$i`; \
|
done; \
|
done; \
|
for i in $(srcdir)/libc/machine/$(machine_dir)/machine/*.h; do \
|
for i in $(srcdir)/libc/machine/$(machine_dir)/machine/*.h; do \
|
if [ -f $$i ]; then \
|
if [ -f $$i ]; then \
|
$(INSTALL_DATA) $$i $(tooldir)/include/machine/`basename $$i`; \
|
$(INSTALL_DATA) $$i $(tooldir)/include/machine/`basename $$i`; \
|
else true; fi ; \
|
else true; fi ; \
|
done; \
|
done; \
|
for i in $(srcdir)/libc/include/sys/*.h; do \
|
for i in $(srcdir)/libc/include/sys/*.h; do \
|
$(INSTALL_DATA) $$i $(tooldir)/include/sys/`basename $$i`; \
|
$(INSTALL_DATA) $$i $(tooldir)/include/sys/`basename $$i`; \
|
done; \
|
done; \
|
for i in $(srcdir)/libc/sys/$(sys_dir)/sys/*.h; do \
|
for i in $(srcdir)/libc/sys/$(sys_dir)/sys/*.h; do \
|
if [ -f $$i ]; then \
|
if [ -f $$i ]; then \
|
$(INSTALL_DATA) $$i $(tooldir)/include/sys/`basename $$i`; \
|
$(INSTALL_DATA) $$i $(tooldir)/include/sys/`basename $$i`; \
|
else true; fi ; \
|
else true; fi ; \
|
done ; \
|
done ; \
|
for i in $(srcdir)/libc/sys/$(sys_dir)/include/*.h; do \
|
for i in $(srcdir)/libc/sys/$(sys_dir)/include/*.h; do \
|
if [ -f $$i ]; then \
|
if [ -f $$i ]; then \
|
$(INSTALL_DATA) $$i $(tooldir)/include/`basename $$i`; \
|
$(INSTALL_DATA) $$i $(tooldir)/include/`basename $$i`; \
|
else true; fi ; \
|
else true; fi ; \
|
done ; \
|
done ; \
|
else true; fi
|
else true; fi
|
|
|
install-info:
|
# Force makedoc to be built before building info files.
|
@rootpre=`pwd`/; export rootpre; \
|
info-recursive: doc/makedoc
|
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
|
dvi-recursive: doc/makedoc
|
$(MAKE) DO=install-info DODIRS="$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
|
doc/makedoc:
|
|
cd doc && $(MAKE) all
|
clean-info:
|
|
@rootpre=`pwd`/; export rootpre; \
|
# Multilib support.
|
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
|
.PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
|
$(MAKE) DO=clean-info DODIRS="$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
|
maintainer-clean-multi
|
|
|
norecurse etags tags: TAGS
|
all-recursive: all-multi
|
|
mostlyclean-recursive: mostlyclean-multi
|
TAGS: force
|
clean-recursive: clean-multi
|
etags `make ls`
|
distclean-recursive: distclean-multi
|
|
maintainer-clean-recursive: maintainer-clean-multi
|
ls:
|
|
@echo Makefile
|
all-multi:
|
@for i in $(SUBDIRS); \
|
$(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
|
do \
|
mostlyclean-multi:
|
(cd $$i; \
|
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
|
pwd=`pwd`; \
|
clean-multi:
|
wd=`basename $$pwd`; \
|
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
|
for j in `make ls`; \
|
distclean-multi:
|
do \
|
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
|
echo $$wd/$$j; \
|
maintainer-clean-multi:
|
done) \
|
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
|
done
|
|
|
|
.PHONY: force
|
|
force:
|
|
|
|
## This is ugly, but I don't want GNU make to put these variables in
|
|
## the environment. They are not used here, but are sometimes passed
|
|
## in from the top level Makefile. Older makes will see this as a set
|
|
## of targets with no dependencies and no actions.
|
|
unexport CXX CXX_FOR_TARGET BISON :
|
|
|
|
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
.NOEXPORT:
|
.NOEXPORT:
|
MAKEOVERRIDES=
|
|
|
|
|
|
# with the gnu make, this is done automatically.
|
|
|
|
Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag)
|
|
$(SHELL) config.status
|
|
|
|
# end of Makefile.in
|
|
|
|