Fix rc script order.
[dragonfly.git] / contrib / mpfr / Makefile.am
1 AUTOMAKE_OPTIONS = gnu ansi2knr
2 ACLOCAL_AMFLAGS = -I m4
3
4 SUBDIRS = tests
5
6 nobase_dist_doc_DATA = AUTHORS BUGS COPYING COPYING.LIB FAQ.html NEWS TODO \
7   examples/ReadMe examples/divworst.c examples/rndo-add.c examples/sample.c
8
9 EXTRA_DIST = PATCHES VERSION get_patches.sh round_raw_generic.c gen_inverse.h jyn_asympt.c
10
11 include_HEADERS = mpfr.h mpf2mpfr.h
12
13 lib_LTLIBRARIES = libmpfr.la
14
15 libmpfr_la_SOURCES = mpfr.h mpf2mpfr.h mpfr-gmp.h mpfr-impl.h           \
16 mpfr-longlong.h mpfr-thread.h exceptions.c extract.c uceil_exp2.c       \
17 uceil_log2.c ufloor_log2.c add.c add1.c add_ui.c agm.c clear.c cmp.c    \
18 cmp_abs.c cmp_si.c cmp_ui.c comparisons.c div_2exp.c div_2si.c          \
19 div_2ui.c div.c div_ui.c dump.c eq.c exp10.c exp2.c exp3.c exp.c        \
20 frac.c get_d.c get_exp.c get_str.c init.c inp_str.c isinteger.c         \
21 isinf.c isnan.c isnum.c const_log2.c log.c modf.c mul_2exp.c mul_2si.c  \
22 mul_2ui.c mul.c mul_ui.c neg.c next.c out_str.c printf.c vasprintf.c    \
23 const_pi.c pow.c pow_si.c pow_ui.c print_raw.c print_rnd_mode.c         \
24 random2.c random.c reldiff.c round_prec.c set.c setmax.c setmin.c       \
25 set_d.c set_dfl_prec.c set_exp.c set_rnd.c set_f.c set_prc_raw.c        \
26 set_prec.c set_q.c set_si.c set_str.c set_str_raw.c set_ui.c set_z.c    \
27 sqrt.c sqrt_ui.c sub.c sub1.c sub_ui.c rint.c ui_div.c ui_sub.c         \
28 urandomb.c get_z_exp.c swap.c factorial.c cosh.c sinh.c tanh.c          \
29 sinh_cosh.c acosh.c asinh.c atanh.c atan.c cmp2.c exp_2.c asin.c        \
30 const_euler.c cos.c sin.c tan.c fma.c fms.c hypot.c log1p.c expm1.c     \
31 log2.c log10.c ui_pow.c ui_pow_ui.c minmax.c dim.c signbit.c            \
32 copysign.c setsign.c gmp_op.c init2.c acos.c sin_cos.c set_nan.c        \
33 set_inf.c powerof2.c gamma.c set_ld.c get_ld.c cbrt.c volatile.c        \
34 fits_s.h fits_sshort.c fits_sint.c fits_slong.c fits_u.h fits_ushort.c  \
35 fits_uint.c fits_ulong.c fits_uintmax.c fits_intmax.c get_si.c          \
36 get_ui.c zeta.c cmp_d.c erf.c inits.c inits2.c clears.c sgn.c check.c   \
37 sub1sp.c version.c mpn_exp.c mpfr-gmp.c mp_clz_tab.c sum.c add1sp.c     \
38 free_cache.c si_op.c cmp_ld.c set_ui_2exp.c set_si_2exp.c set_uj.c      \
39 set_sj.c get_sj.c get_uj.c get_z.c iszero.c cache.c sqr.c               \
40 int_ceil_log2.c isqrt.c strtofr.c pow_z.c logging.c mulders.c get_f.c   \
41 round_p.c erfc.c atan2.c subnormal.c const_catalan.c root.c             \
42 gen_inverse.h sec.c csc.c cot.c eint.c sech.c csch.c coth.c             \
43 round_near_x.c constant.c abort_prec_max.c stack_interface.c lngamma.c  \
44 zeta_ui.c set_d64.c get_d64.c jn.c yn.c rem1.c get_patches.c add_d.c    \
45 sub_d.c d_sub.c mul_d.c div_d.c d_div.c li2.c rec_sqrt.c
46
47 libmpfr_la_LIBADD = @LIBOBJS@
48
49 # Libtool -version-info CURRENT[:REVISION[:AGE]] for libmpfr.la
50 #
51 # 1. No interfaces changed, only implementations (good):
52 #    ==> Increment REVISION.
53 # 2. Interfaces added, none removed (good):
54 #    ==> Increment CURRENT, increment AGE, set REVISION to 0.
55 # 3. Interfaces removed or changed (BAD, breaks upward compatibility):
56 #    ==> Increment CURRENT, set AGE and REVISION to 0.
57 #
58 #         MPFR     -version-info
59 #        2.1.x      -
60 #        2.2.x    1:x:0
61 #        2.3.x    2:x:1
62 #        2.4.x    3:x:2
63 libmpfr_la_LDFLAGS = -version-info 3:2:2
64
65 info_TEXINFOS = mpfr.texi
66
67 mpfr_TEXINFOS = fdl.texi
68
69 MAKEINFOFLAGS = --enable-encoding
70
71 # Important note: If for some reason, srcdir is read-only at build time
72 # (and you use objdir != srcdir), then you need to rebuild get_patches.c
73 # (with "make get_patches.c") just after patching the MPFR source. This
74 # should not be a problem in practice, in particular because "make dist"
75 # automatically rebuilds get_patches.c before generating the archives.
76 $(srcdir)/get_patches.c: PATCHES get_patches.sh
77         (cd $(srcdir) && ./get_patches.sh) > $@ || rm -f $@
78
79 # Do not add get_patches.c to CLEANFILES so that this file doesn't
80 # need to be (re)built as long as no patches are applied. Anyway the
81 # update of this file should be regarded as part of the patch process,
82 # and "make clean" shouldn't remove it, just like it doesn't remove
83 # what has been changed by "patch".
84 #CLEANFILES = get_patches.c
85
86 # Tune program
87 EXTRA_PROGRAMS = tuneup
88
89 tuneup_SOURCES = tuneup.c
90 tuneup_LDADD = -lspeed libmpfr.la
91 tuneup_LDFLAGS = -static
92
93 tune:
94         $(MAKE) $(AM_MAKEFLAGS) tuneup$(EXEEXT)
95         ./tuneup -v
96         $(MAKE) $(AM_MAKEFLAGS) clean
97         $(MAKE) $(AM_MAKEFLAGS) libmpfr.la
98
99 # In a "make dist", check that libtool -version-info value is up-to-date.
100 # But if the VERSION file contains "-dev", this is not checked.
101 # Note: this is a heuristic, to detect some mistakes.
102 dist-hook:
103         grep -q -e -dev $(srcdir)/VERSION || \
104           grep -q "`sed -n 's/^\([0-9]*\.[0-9]*\).*/\1/p' $(srcdir)/VERSION`.x" $(srcdir)/Makefile.am
105         grep -q -e -dev $(srcdir)/VERSION || \
106           test "`sed -n 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/p' $(srcdir)/VERSION`" = \
107             "`sed -n 's/.*-version-info [0-9]*:\([0-9]*\):.*/\1/p' $(srcdir)/Makefile.am`"
108
109 # The following needs to be removed once GNU Automake 1.11 support is added.
110 DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 $(distdir).tar.xz \
111         $(distdir).zip
112 dist dist-all: distdir
113         tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
114         tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
115         tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
116         -rm -f $(distdir).zip
117         zip -rq $(distdir).zip $(distdir)
118         $(am__remove_distdir)