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
|
|
|
|
|
2019-08-09 00:27:06 +08:00
|
|
|
SUBDIRS = $(MATHDIR) common complex fenv machine
|
2001-12-14 07:50:11 +08:00
|
|
|
|
|
|
|
libm_la_LDFLAGS = -Xcompiler -nostdlib
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
if USE_LIBTOOL
|
2019-08-09 00:27:06 +08:00
|
|
|
SUBLIBS = $(MATHDIR)/lib$(MATHDIR).$(aext) common/libcommon.$(aext) complex/libcomplex.$(aext) fenv/libfenv.$(aext) $(LIBM_MACHINE_LIB)
|
2001-12-14 07:50:11 +08:00
|
|
|
noinst_LTLIBRARIES = libm.la
|
|
|
|
libm_la_SOURCES =
|
|
|
|
libm_la_LIBADD = $(SUBLIBS)
|
|
|
|
else
|
2019-08-09 00:27:06 +08:00
|
|
|
SUBLIBS = $(MATHDIR)/lib.$(aext) common/lib.$(aext) complex/lib.$(aext) fenv/lib.$(aext) $(LIBM_MACHINE_LIB)
|
2001-12-14 07:50:11 +08:00
|
|
|
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
|
|
|
|
|
2006-08-02 04:20:25 +08:00
|
|
|
libm_TEXINFOS = targetdep.tex
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2019-08-09 00:27:06 +08:00
|
|
|
libm.dvi: targetdep.tex math/stmp-def complex/stmp-def fenv/stmp-def
|
2004-07-06 02:44:55 +08:00
|
|
|
|
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
|
|
|
|
|
2010-10-18 Marco Atzeri <marco_atzeri@yahoo.it>
* libm/Makefile.am: added complex functions documentation
* libm/libm.texinfo: ditto
* libm/complex/Makefile.am: Ditto
* libm/complex/complex.tex: Ditto
* libm/complex/(cabs.c, cacos.c, cacosh.c, carg.c,
casin.c, casinh.c, catan.c, catanh.c, ccos.c, ccosh.c,
cexp.c, cimag.c, clog.c, conj.c, cpow.c, cproj.c, creal.c,
csin.c, csinh.c, csqrt.c, ctan.c, ctanh.c): Ditto
* libm/Makefile.in: Regenerate
* libm/complex/Makefile.in: Ditto
2010-10-19 06:40:24 +08:00
|
|
|
complex/stmp-def: stmp-targetdep ; @true
|
|
|
|
|
2019-08-09 00:27:06 +08:00
|
|
|
fenv/stmp-def: stmp-targetdep ; @true
|
|
|
|
|
2016-06-25 04:50:15 +08:00
|
|
|
docbook-recursive: force
|
|
|
|
for d in $(SUBDIRS); do \
|
|
|
|
if test "$$d" != "."; then \
|
|
|
|
(cd $$d && $(MAKE) docbook) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
|
|
|
math/stmp-xml complex/stmp-xml: docbook-recursive
|
|
|
|
|
|
|
|
man: math/stmp-xml complex/stmp-xml libm.in.xml
|
|
|
|
xsltproc --xinclude --path ${builddir} --nonet ${srcdir}/../refcontainers.xslt ${srcdir}/libm.in.xml >libm.xml
|
|
|
|
xmlto --skip-validation --searchpath ${builddir} man -m ${srcdir}/../man.xsl libm.xml
|
|
|
|
|
|
|
|
install-man: man
|
|
|
|
mkdir -p $(DESTDIR)$(mandir)/man3
|
|
|
|
$(INSTALL_DATA) *.3 $(DESTDIR)$(mandir)/man3/
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
.PHONY: force
|
|
|
|
force:
|
|
|
|
|
2016-06-25 04:50:15 +08:00
|
|
|
CLEANFILES = tmp.texi targetdep.tex stmp-targetdep *.xml *.3
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2007-05-25 01:33:42 +08:00
|
|
|
ACLOCAL_AMFLAGS = -I .. -I ../..
|
2000-02-18 03:39:52 +08:00
|
|
|
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
|