source: trunk/libs/newlib/src/newlib/libm/Makefile.am @ 543

Last change on this file since 543 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.9 KB
Line 
1## Process this file with automake to generate Makefile.in
2
3AUTOMAKE_OPTIONS = cygnus
4
5if NEWLIB_HW_FP
6MATHDIR = mathfp
7else
8MATHDIR = math
9endif
10
11SUBDIRS = $(MATHDIR) common complex machine
12
13libm_la_LDFLAGS = -Xcompiler -nostdlib
14
15if USE_LIBTOOL
16SUBLIBS = $(MATHDIR)/lib$(MATHDIR).$(aext) common/libcommon.$(aext) complex/libcomplex.$(aext)  $(LIBM_MACHINE_LIB)
17noinst_LTLIBRARIES = libm.la
18libm_la_SOURCES =
19libm_la_LIBADD = $(SUBLIBS)
20else
21SUBLIBS = $(MATHDIR)/lib.$(aext) common/lib.$(aext) complex/lib.$(aext) $(LIBM_MACHINE_LIB)
22noinst_LIBRARIES = libm.a
23libm.a: $(SUBLIBS)
24        rm -f $@
25        rm -rf tmp
26        mkdir tmp
27        cd tmp; \
28          for i in $(SUBLIBS); do \
29            $(AR) x ../$$i; \
30        done; \
31        $(AR) $(AR_FLAGS) ../$@ *.o
32        $(RANLIB) $@
33        rm -rf tmp
34endif
35
36$(SUBLIBS):
37
38info_TEXINFOS = libm.texinfo
39
40libm_TEXINFOS = targetdep.tex
41
42libm.dvi: targetdep.tex math/stmp-def complex/stmp-def
43
44stmp-targetdep: force
45        rm -f tmp.texi
46        targetdoc=`pwd`/tmp.texi; \
47        for d in $(SUBDIRS); do \
48          if test "$$d" != "."; then \
49            (cd $$d && $(MAKE) doc) || exit 1; \
50          fi; \
51        done
52        $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi targetdep.tex
53        touch $@
54
55targetdep.tex: stmp-targetdep ; @true
56
57math/stmp-def: stmp-targetdep ; @true
58
59complex/stmp-def: stmp-targetdep ; @true
60
61docbook-recursive: force
62        for d in $(SUBDIRS); do \
63          if test "$$d" != "."; then \
64            (cd $$d && $(MAKE) docbook) || exit 1; \
65          fi; \
66        done
67
68math/stmp-xml complex/stmp-xml: docbook-recursive
69
70man: math/stmp-xml complex/stmp-xml libm.in.xml
71        xsltproc --xinclude --path ${builddir} --nonet ${srcdir}/../refcontainers.xslt ${srcdir}/libm.in.xml >libm.xml
72        xmlto --skip-validation --searchpath ${builddir} man -m ${srcdir}/../man.xsl libm.xml
73
74install-man: man
75        mkdir -p $(DESTDIR)$(mandir)/man3
76        $(INSTALL_DATA) *.3 $(DESTDIR)$(mandir)/man3/
77
78.PHONY: force
79force:
80
81CLEANFILES = tmp.texi targetdep.tex stmp-targetdep *.xml *.3
82
83ACLOCAL_AMFLAGS = -I .. -I ../..
84CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
Note: See TracBrowser for help on using the repository browser.