2000-02-18 03:39:52 +08:00
|
|
|
## Process this file with automake to generate Makefile.in
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = cygnus
|
|
|
|
|
|
|
|
if NEWLIB_HW_FP
|
2001-12-14 07:50:11 +08:00
|
|
|
MATHDIR = mathfp
|
2000-02-18 03:39:52 +08:00
|
|
|
else
|
2001-12-14 07:50:11 +08:00
|
|
|
MATHDIR = math
|
2000-02-18 03:39:52 +08:00
|
|
|
endif
|
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
SUBDIRS = $(MATHDIR) common machine
|
|
|
|
|
|
|
|
libm_la_LDFLAGS = -Xcompiler -nostdlib
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
if USE_LIBTOOL
|
|
|
|
SUBLIBS = $(MATHDIR)/lib$(MATHDIR).$(aext) common/libcommon.$(aext) $(LIBM_MACHINE_LIB)
|
|
|
|
noinst_LTLIBRARIES = libm.la
|
|
|
|
libm_la_SOURCES =
|
|
|
|
libm_la_LIBADD = $(SUBLIBS)
|
|
|
|
else
|
|
|
|
SUBLIBS = $(MATHDIR)/lib.$(aext) common/lib.$(aext) $(LIBM_MACHINE_LIB)
|
|
|
|
noinst_LIBRARIES = libm.a
|
2000-02-18 03:39:52 +08:00
|
|
|
libm.a: $(SUBLIBS)
|
|
|
|
rm -f $@
|
|
|
|
rm -rf tmp
|
|
|
|
mkdir tmp
|
|
|
|
cd tmp; \
|
|
|
|
for i in $(SUBLIBS); do \
|
|
|
|
$(AR) x ../$$i; \
|
|
|
|
done; \
|
|
|
|
$(AR) $(AR_FLAGS) ../$@ *.o
|
|
|
|
$(RANLIB) $@
|
|
|
|
rm -rf tmp
|
2001-12-14 07:50:11 +08:00
|
|
|
endif
|
2000-02-18 03:39:52 +08:00
|
|
|
|
|
|
|
$(SUBLIBS):
|
|
|
|
|
|
|
|
info_TEXINFOS = libm.texinfo
|
|
|
|
|
|
|
|
libm.info: targetdep.tex math/stmp-def
|
|
|
|
|
2004-07-06 02:44:55 +08:00
|
|
|
libm.dvi: targetdep.tex math/stmp-def
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
stmp-targetdep: force
|
|
|
|
rm -f tmp.texi
|
|
|
|
targetdoc=`pwd`/tmp.texi; \
|
|
|
|
for d in $(SUBDIRS); do \
|
|
|
|
if test "$$d" != "."; then \
|
|
|
|
(cd $$d && $(MAKE) doc) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
$(SHELL) $(newlib_basedir)/../move-if-change tmp.texi targetdep.tex
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
targetdep.tex: stmp-targetdep ; @true
|
|
|
|
|
|
|
|
math/stmp-def: stmp-targetdep ; @true
|
|
|
|
|
|
|
|
.PHONY: force
|
|
|
|
force:
|
|
|
|
|
|
|
|
CLEANFILES = tmp.texi targetdep.tex stmp-targetdep
|
|
|
|
|
|
|
|
ACLOCAL_AMFLAGS = -I ..
|
|
|
|
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
|