source: trunk/third/gmp/Makefile.in @ 18191

Revision 18191, 43.7 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18190, which included commits to RCS files with non-trunk default branches.
Line 
1# Makefile.in generated automatically by automake 1.5 from Makefile.am.
2
3# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4# Free Software Foundation, Inc.
5# This Makefile.in is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
14@SET_MAKE@
15
16# Copyright 1991, 1993, 1994, 1996, 1997, 1999, 2000, 2001, 2002 Free
17# Software Foundation, Inc.
18#
19# This file is part of the GNU MP Library.
20#
21# The GNU MP Library is free software; you can redistribute it and/or modify
22# it under the terms of the GNU Lesser General Public License as published by
23# the Free Software Foundation; either version 2.1 of the License, or (at your
24# option) any later version.
25#
26# The GNU MP Library is distributed in the hope that it will be useful, but
27# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
28# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
29# License for more details.
30#
31# You should have received a copy of the GNU Lesser General Public License
32# along with the GNU MP Library; see the file COPYING.LIB.  If not, write to
33# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
34# MA 02111-1307, USA.
35
36# Libtool -version-info for libgmp.la and libmp.la.  See "Versioning" in the
37# libtool manual.
38#
39# 1. No interfaces changed, only implementations (good): Increment REVISION.
40#
41# 2. Interfaces added, none removed (good): Increment CURRENT, increment
42#    AGE, set REVISION to 0.
43#
44# 3. Interfaces removed (BAD, breaks upward compatibility): Increment
45#    CURRENT, set AGE and REVISION to 0.
46#
47# Do this separately for libgmp and libmp, and only for releases.
48#
49#         GMP      -version-info
50#       release   libgmp  libgmpxx libmp
51#        2.0.x      -        -       -
52#        3.0      3:0:0      -     3:0:0
53#        3.0.1    3:1:0      -     3:0:0
54#        3.1      4:0:1      -     4:0:1
55#        3.1.1    4:1:1      -     4:1:1
56#        4.0      5:0:2    3:0:0   4:2:1
57#        4.0.1    5:1:2    3:1:0   4:3:1
58#        4.1      6:0:3    3:2:0   4:4:1
59#        4.1.1    6:1:3    3:3:0   4:5:1
60#
61# Starting at 3:0:0 is a slight abuse of the versioning system, but it
62# ensures we're past soname libgmp.so.2, which was used on Debian GNU/Linux
63# packages of gmp 2.  Pretend gmp 2 was 2:0:0, so the interface changes for
64# gmp 3 mean 3:0:0 is right.
65
66SHELL = @SHELL@
67
68srcdir = @srcdir@
69top_srcdir = @top_srcdir@
70VPATH = @srcdir@
71prefix = @prefix@
72exec_prefix = @exec_prefix@
73
74bindir = @bindir@
75sbindir = @sbindir@
76libexecdir = @libexecdir@
77datadir = @datadir@
78sysconfdir = @sysconfdir@
79sharedstatedir = @sharedstatedir@
80localstatedir = @localstatedir@
81libdir = @libdir@
82infodir = @infodir@
83mandir = @mandir@
84includedir = @includedir@
85oldincludedir = /usr/include
86pkgdatadir = $(datadir)/@PACKAGE@
87pkglibdir = $(libdir)/@PACKAGE@
88pkgincludedir = $(includedir)/@PACKAGE@
89top_builddir = .
90
91ACLOCAL = @ACLOCAL@
92AUTOCONF = @AUTOCONF@
93AUTOMAKE = @AUTOMAKE@
94AUTOHEADER = @AUTOHEADER@
95
96INSTALL = @INSTALL@
97INSTALL_PROGRAM = @INSTALL_PROGRAM@
98INSTALL_DATA = @INSTALL_DATA@
99INSTALL_SCRIPT = @INSTALL_SCRIPT@
100INSTALL_HEADER = $(INSTALL_DATA)
101transform = @program_transform_name@
102NORMAL_INSTALL = :
103PRE_INSTALL = :
104POST_INSTALL = :
105NORMAL_UNINSTALL = :
106PRE_UNINSTALL = :
107POST_UNINSTALL = :
108host_alias = @host_alias@
109host_triplet = @host@
110AMTAR = @AMTAR@
111AR = @AR@
112AS = @AS@
113AWK = @AWK@
114BITS_PER_MP_LIMB = @BITS_PER_MP_LIMB@
115CALLING_CONVENTIONS_OBJS = @CALLING_CONVENTIONS_OBJS@
116CC = @CC@
117CCAS = @CCAS@
118CPP = @CPP@
119CXX = @CXX@
120CXXCPP = @CXXCPP@
121DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
122DEPDIR = @DEPDIR@
123DLLTOOL = @DLLTOOL@
124ECHO = @ECHO@
125EXEEXT = @EXEEXT@
126GCJ = @GCJ@
127GCJFLAGS = @GCJFLAGS@
128GMP_LDFLAGS = @GMP_LDFLAGS@
129GMP_NAIL_BITS = @GMP_NAIL_BITS@
130HAVE_DECL_OPTARG = @HAVE_DECL_OPTARG@
131HAVE_HOST_CPU_FAMILY_power = @HAVE_HOST_CPU_FAMILY_power@
132HAVE_HOST_CPU_FAMILY_powerpc = @HAVE_HOST_CPU_FAMILY_powerpc@
133HAVE_MPFR_01 = @HAVE_MPFR_01@
134HAVE_STACK_T_01 = @HAVE_STACK_T_01@
135INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
136LEX = @LEX@
137LIBGMP_DLL = @LIBGMP_DLL@
138LIBM = @LIBM@
139LIBREADLINE = @LIBREADLINE@
140LIBTOOL = @LIBTOOL@
141LN_S = @LN_S@
142M4 = @M4@
143MAINT = @MAINT@
144MPFR_CFLAGS = @MPFR_CFLAGS@
145MPFR_LIBS = @MPFR_LIBS@
146OBJDUMP = @OBJDUMP@
147OBJEXT = @OBJEXT@
148PACKAGE = @PACKAGE@
149RANLIB = @RANLIB@
150RC = @RC@
151REPL_VSNPRINTF_OBJ = @REPL_VSNPRINTF_OBJ@
152REPL_VSNPRINTF_PRINTF_OBJ = @REPL_VSNPRINTF_PRINTF_OBJ@
153SPEED_CYCLECOUNTER_OBJ = @SPEED_CYCLECOUNTER_OBJ@
154STRIP = @STRIP@
155TAL_OBJECT = @TAL_OBJECT@
156TUNE_SQR_OBJ = @TUNE_SQR_OBJ@
157U = @U@
158VERSION = @VERSION@
159WITH_READLINE_01 = @WITH_READLINE_01@
160YACC = @YACC@
161am__include = @am__include@
162am__quote = @am__quote@
163gmp_srclinks = @gmp_srclinks@
164install_sh = @install_sh@
165mpn_objects = @mpn_objects@
166mpn_objs_in_libgmp = @mpn_objs_in_libgmp@
167mpn_objs_in_libmp = @mpn_objs_in_libmp@
168
169LIBGMP_LT_CURRENT = 6
170LIBGMP_LT_REVISION = 1
171LIBGMP_LT_AGE = 3
172
173LIBGMPXX_LT_CURRENT = 3
174LIBGMPXX_LT_REVISION = 3
175LIBGMPXX_LT_AGE = 0
176
177LIBMP_LT_CURRENT = 4
178LIBMP_LT_REVISION = 5
179LIBMP_LT_AGE = 1
180
181AUTOMAKE_OPTIONS = gnu no-dependencies ansi2knr
182ACLOCAL_AMFLAGS = -I mpfr
183
184# FIXME: This is a workaround for automake not allowing info_TEXINFOS to be
185# conditionalized.  We want mpfr/mpfr.info only installed under
186# --enable-mpfr, but it and the rest of mpfr always included in a "make
187# dist".
188@MAINTAINER_MODE_TRUE@@WANT_MPFR_FALSE@MPFR_DIR = mpfr
189@WANT_MPFR_TRUE@MPFR_DIR = mpfr
190
191# "tests" ahead of "mpfr" ensures tests/t-constants is run before the
192# mpfr/tests programs.
193#
194SUBDIRS = tests mpn mpz mpq mpf printf scanf cxx mpbsd $(MPFR_DIR) demos tune
195
196@WANT_CXX_TRUE@GMPXX_HEADERS_OPTION = gmpxx.h
197@WANT_CXX_TRUE@@WANT_MPFR_TRUE@MPFRXX_HEADERS_OPTION = mpfrxx.h
198include_HEADERS = $(GMPXX_HEADERS_OPTION) $(MPFRXX_HEADERS_OPTION)
199nodist_include_HEADERS = gmp.h $(MPBSD_HEADERS_OPTION)
200lib_LTLIBRARIES = libgmp.la $(GMPXX_LTLIBRARIES_OPTION) $(MPBSD_LTLIBRARIES_OPTION)
201
202EXTRA_DIST = doc macos \
203  configfsf.guess configfsf.sub .gdbinit INSTALL.autoconf libmp.sym \
204  gmpxx.h mpfrxx.h mpfr/README
205
206
207DISTCLEANFILES = $(nodist_include_HEADERS) config.m4 configure.lineno @gmp_srclinks@
208
209# Generated by current texinfo.tex when processing gmp.texi.
210# FIXME: Maybe this should be added to automake.
211MOSTLYCLEANFILES = gmp.tmp
212
213# Tell gmp.h it's building gmp, not an application, used by windows DLL stuff.
214INCLUDES = -D__GMP_WITHIN_GMP
215
216MPF_OBJECTS = mpf/init$U.lo mpf/init2$U.lo mpf/set$U.lo mpf/set_ui$U.lo     \
217  mpf/set_si$U.lo mpf/set_str$U.lo mpf/set_d$U.lo mpf/set_z$U.lo            \
218  mpf/iset$U.lo mpf/iset_ui$U.lo mpf/iset_si$U.lo mpf/iset_str$U.lo         \
219  mpf/iset_d$U.lo mpf/clear$U.lo mpf/get_str$U.lo mpf/dump$U.lo             \
220  mpf/size$U.lo mpf/eq$U.lo mpf/reldiff$U.lo mpf/sqrt$U.lo mpf/random2$U.lo \
221  mpf/inp_str$U.lo mpf/out_str$U.lo mpf/add$U.lo mpf/add_ui$U.lo            \
222  mpf/sub$U.lo mpf/sub_ui$U.lo mpf/ui_sub$U.lo mpf/mul$U.lo mpf/mul_ui$U.lo \
223  mpf/div$U.lo mpf/div_ui$U.lo                                              \
224  mpf/cmp$U.lo mpf/cmp_d$U.lo mpf/cmp_ui$U.lo mpf/cmp_si$U.lo               \
225  mpf/mul_2exp$U.lo mpf/div_2exp$U.lo mpf/abs$U.lo mpf/neg$U.lo             \
226  mpf/set_q$U.lo mpf/get_d$U.lo mpf/get_d_2exp$U.lo mpf/set_dfl_prec$U.lo   \
227  mpf/set_prc$U.lo mpf/set_prc_raw$U.lo mpf/get_dfl_prec$U.lo               \
228  mpf/get_prc$U.lo mpf/ui_div$U.lo mpf/sqrt_ui$U.lo                         \
229  mpf/ceilfloor$U.lo mpf/trunc$U.lo mpf/pow_ui$U.lo                         \
230  mpf/urandomb$U.lo mpf/swap$U.lo                                           \
231  mpf/fits_sint$U.lo mpf/fits_slong$U.lo mpf/fits_sshort$U.lo               \
232  mpf/fits_uint$U.lo mpf/fits_ulong$U.lo mpf/fits_ushort$U.lo               \
233  mpf/get_si$U.lo mpf/get_ui$U.lo                                           \
234  mpf/int_p$U.lo
235
236
237MPZ_OBJECTS = mpz/abs$U.lo mpz/add$U.lo mpz/add_ui$U.lo                 \
238  mpz/aorsmul$U.lo mpz/aorsmul_i$U.lo mpz/and$U.lo mpz/array_init$U.lo  \
239  mpz/bin_ui$U.lo mpz/bin_uiui$U.lo                                     \
240  mpz/cdiv_q$U.lo mpz/cdiv_q_ui$U.lo                                    \
241  mpz/cdiv_qr$U.lo mpz/cdiv_qr_ui$U.lo                                  \
242  mpz/cdiv_r$U.lo mpz/cdiv_r_ui$U.lo mpz/cdiv_ui$U.lo                   \
243  mpz/cfdiv_q_2exp$U.lo mpz/cfdiv_r_2exp$U.lo                           \
244  mpz/clear$U.lo mpz/clrbit$U.lo                                        \
245  mpz/cmp$U.lo mpz/cmp_d$U.lo mpz/cmp_si$U.lo mpz/cmp_ui$U.lo           \
246  mpz/cmpabs$U.lo mpz/cmpabs_d$U.lo mpz/cmpabs_ui$U.lo                  \
247  mpz/com$U.lo                                                          \
248  mpz/cong$U.lo mpz/cong_2exp$U.lo mpz/cong_ui$U.lo                     \
249  mpz/divexact$U.lo mpz/divegcd$U.lo mpz/dive_ui$U.lo                   \
250  mpz/divis$U.lo mpz/divis_ui$U.lo mpz/divis_2exp$U.lo mpz/dump$U.lo    \
251  mpz/export$U.lo mpz/fac_ui$U.lo mpz/fdiv_q$U.lo                       \
252  mpz/fdiv_q_ui$U.lo mpz/fdiv_qr$U.lo mpz/fdiv_qr_ui$U.lo               \
253  mpz/fdiv_r$U.lo mpz/fdiv_r_ui$U.lo                                    \
254  mpz/fdiv_ui$U.lo mpz/fib_ui$U.lo mpz/fib2_ui$U.lo mpz/fits_sint$U.lo  \
255  mpz/fits_slong$U.lo mpz/fits_sshort$U.lo mpz/fits_uint$U.lo           \
256  mpz/fits_ulong$U.lo mpz/fits_ushort$U.lo mpz/gcd$U.lo                 \
257  mpz/gcd_ui$U.lo mpz/gcdext$U.lo mpz/get_d$U.lo mpz/get_d_2exp$U.lo    \
258  mpz/get_si$U.lo mpz/get_str$U.lo mpz/get_ui$U.lo mpz/getlimbn$U.lo    \
259  mpz/hamdist$U.lo                                                      \
260  mpz/import$U.lo mpz/init$U.lo mpz/init2$U.lo mpz/inp_raw$U.lo         \
261  mpz/inp_str$U.lo mpz/invert$U.lo                                      \
262  mpz/ior$U.lo mpz/iset$U.lo mpz/iset_d$U.lo mpz/iset_si$U.lo           \
263  mpz/iset_str$U.lo mpz/iset_ui$U.lo mpz/jacobi$U.lo mpz/kronsz$U.lo    \
264  mpz/kronuz$U.lo mpz/kronzs$U.lo mpz/kronzu$U.lo                       \
265  mpz/lcm$U.lo mpz/lcm_ui$U.lo mpz/lucnum_ui$U.lo mpz/lucnum2_ui$U.lo   \
266  mpz/millerrabin$U.lo mpz/mod$U.lo mpz/mul$U.lo mpz/mul_2exp$U.lo      \
267  mpz/mul_si$U.lo mpz/mul_ui$U.lo                                       \
268  mpz/n_pow_ui$U.lo mpz/neg$U.lo mpz/nextprime$U.lo                     \
269  mpz/out_raw$U.lo mpz/out_str$U.lo mpz/perfpow$U.lo mpz/perfsqr$U.lo   \
270  mpz/popcount$U.lo mpz/pow_ui$U.lo mpz/powm$U.lo mpz/powm_ui$U.lo      \
271  mpz/pprime_p$U.lo mpz/random$U.lo mpz/random2$U.lo                    \
272  mpz/realloc$U.lo mpz/realloc2$U.lo                                    \
273  mpz/remove$U.lo mpz/root$U.lo mpz/rrandomb$U.lo mpz/scan0$U.lo        \
274  mpz/scan1$U.lo mpz/set$U.lo mpz/set_d$U.lo mpz/set_f$U.lo             \
275  mpz/set_q$U.lo mpz/set_si$U.lo mpz/set_str$U.lo mpz/set_ui$U.lo       \
276  mpz/setbit$U.lo                                                       \
277  mpz/size$U.lo mpz/sizeinbase$U.lo mpz/sqrt$U.lo                       \
278  mpz/sqrtrem$U.lo mpz/sub$U.lo mpz/sub_ui$U.lo mpz/swap$U.lo           \
279  mpz/tdiv_ui$U.lo mpz/tdiv_q$U.lo mpz/tdiv_q_2exp$U.lo                 \
280  mpz/tdiv_q_ui$U.lo mpz/tdiv_qr$U.lo mpz/tdiv_qr_ui$U.lo               \
281  mpz/tdiv_r$U.lo mpz/tdiv_r_2exp$U.lo mpz/tdiv_r_ui$U.lo               \
282  mpz/tstbit$U.lo mpz/ui_pow_ui$U.lo mpz/ui_sub$U.lo mpz/urandomb$U.lo  \
283  mpz/urandomm$U.lo mpz/xor$U.lo
284
285
286MPQ_OBJECTS = mpq/abs$U.lo mpq/aors$U.lo                                \
287  mpq/canonicalize$U.lo mpq/clear$U.lo                                  \
288  mpq/cmp$U.lo mpq/cmp_si$U.lo mpq/cmp_ui$U.lo mpq/div$U.lo             \
289  mpq/get_d$U.lo mpq/get_den$U.lo mpq/get_num$U.lo mpq/get_str$U.lo     \
290  mpq/init$U.lo mpq/inp_str$U.lo mpq/inv$U.lo                           \
291  mpq/md_2exp$U.lo mpq/mul$U.lo mpq/neg$U.lo mpq/out_str$U.lo           \
292  mpq/set$U.lo mpq/set_den$U.lo mpq/set_num$U.lo                        \
293  mpq/set_si$U.lo mpq/set_str$U.lo mpq/set_ui$U.lo                      \
294  mpq/equal$U.lo mpq/set_z$U.lo mpq/set_d$U.lo                          \
295  mpq/set_f$U.lo mpq/swap$U.lo
296
297
298MPN_OBJECTS = @mpn_objs_in_libgmp@
299
300PRINTF_OBJECTS = \
301  @REPL_VSNPRINTF_PRINTF_OBJ@                                           \
302  printf/asprintf$U.lo printf/asprntffuns$U.lo                          \
303  printf/doprnt$U.lo printf/doprntf$U.lo printf/doprnti$U.lo            \
304  printf/fprintf$U.lo                                                   \
305  printf/obprintf$U.lo printf/obvprintf$U.lo printf/obprntffuns$U.lo    \
306  printf/printf$U.lo printf/printffuns$U.lo                             \
307  printf/snprintf$U.lo printf/snprntffuns$U.lo                          \
308  printf/sprintf$U.lo printf/sprintffuns$U.lo                           \
309  printf/vasprintf$U.lo printf/vfprintf$U.lo printf/vprintf$U.lo        \
310  printf/vsnprintf$U.lo printf/vsprintf$U.lo
311
312
313SCANF_OBJECTS = \
314  scanf/doscan$U.lo scanf/fscanf$U.lo scanf/fscanffuns$U.lo     \
315  scanf/scanf$U.lo scanf/sscanf$U.lo scanf/sscanffuns$U.lo      \
316  scanf/vfscanf$U.lo scanf/vscanf$U.lo scanf/vsscanf$U.lo
317
318
319CXX_OBJECTS = \
320  cxx/isfuns$U.lo cxx/ismpf$U.lo cxx/ismpq$U.lo cxx/ismpz$U.lo  \
321  cxx/osdoprnti$U.lo cxx/osfuns$U.lo                            \
322  cxx/osmpf$U.lo cxx/osmpq$U.lo cxx/osmpz$U.lo
323
324
325MPBSD_OBJECTS = mpbsd/add$U.lo mpbsd/tdiv_qr$U.lo mpbsd/set$U.lo        \
326  mpbsd/powm$U.lo mpbsd/sub$U.lo mpbsd/cmp$U.lo mpbsd/mfree$U.lo        \
327  mpbsd/mtox$U.lo mpbsd/realloc$U.lo mpbsd/gcd$U.lo mpbsd/itom$U.lo     \
328  mpbsd/min$U.lo mpbsd/mul$U.lo mpbsd/mout$U.lo mpbsd/rpow$U.lo         \
329  mpbsd/sdiv$U.lo mpbsd/sqrtrem$U.lo mpbsd/xtom$U.lo
330
331
332
333# In the current libtool it doesn't work to build libgmp.la from convenience
334# libraries like mpz/libmpz.la.  Or rather it works, but it ends up putting
335# PIC objects into libgmp.a when shared and static are both built.
336#
337# For now the big lists of objects above are used.  Something like mpz/*.lo
338# would probably work, but might risk missing something out or getting
339# something extra.  The source files for each .lo are listed in the
340# Makefile.am's in the subdirectories.
341#
342# Currently, unlike libmp below, we're not using -export-symbols, since the
343# tune and speed programs, and perhaps some of the test programs, want to
344# access undocumented symbols.
345libgmp_la_SOURCES = gmp-impl.h longlong.h                               \
346  assert.c compat.c errno.c extract-dbl.c insert-dbl.c memory.c         \
347  mp_bpl.c mp_clz_tab.c mp_minv_tab.c mp_set_fns.c                      \
348  rand.c randclr.c randdef.c randlc.c randlc2s.c randlc2x.c randraw.c   \
349  rands.c randsd.c randsdui.c version.c
350
351libgmp_la_DEPENDENCIES = @TAL_OBJECT@ \
352  $(MPF_OBJECTS) $(MPZ_OBJECTS) $(MPN_OBJECTS) $(MPQ_OBJECTS) \
353  $(PRINTF_OBJECTS)  $(SCANF_OBJECTS)
354
355libgmp_la_LIBADD = $(libgmp_la_DEPENDENCIES)
356libgmp_la_LDFLAGS = $(GMP_LDFLAGS) \
357  -version-info $(LIBGMP_LT_CURRENT):$(LIBGMP_LT_REVISION):$(LIBGMP_LT_AGE)
358
359
360
361# We need at least one .cc file in $(libgmpxx_la_SOURCES) so automake will
362# use $(CXXLINK) rather than the plain C $(LINK).  cxx/osfuns.cc is an
363# arbitrary choice for that.
364@WANT_CXX_TRUE@GMPXX_LTLIBRARIES_OPTION = libgmpxx.la
365libgmpxx_la_SOURCES = dummy.cc
366libgmpxx_la_DEPENDENCIES = $(CXX_OBJECTS) libgmp.la
367libgmpxx_la_LIBADD = $(libgmpxx_la_DEPENDENCIES)
368libgmpxx_la_LDFLAGS = $(GMP_LDFLAGS) \
369  -version-info $(LIBGMPXX_LT_CURRENT):$(LIBGMPXX_LT_REVISION):$(LIBGMPXX_LT_AGE)
370
371
372
373# The selected mpz objects here support mpz/powm.c (built as mpbsd/powm.lo)
374# and can probably be removed when that switches to an mpn implementation.
375# (Apart from mpz/n_pow_ui$U.lo, which supports mpbsd/rpow.c)
376@WANT_MPBSD_TRUE@MPBSD_HEADERS_OPTION = mp.h
377@WANT_MPBSD_TRUE@MPBSD_LTLIBRARIES_OPTION = libmp.la
378libmp_la_SOURCES = assert.c errno.c memory.c mp_bpl.c mp_clz_tab.c      \
379  mp_minv_tab.c mp_set_fns.c
380
381MPN_OBJS_IN_LIBMP = @mpn_objs_in_libmp@
382libmp_la_DEPENDENCIES = $(srcdir)/libmp.sym                             \
383  @TAL_OBJECT@ $(MPBSD_OBJECTS) $(MPN_OBJS_IN_LIBMP)                    \
384  mpz/add$U.lo mpz/gcdext$U.lo mpz/invert$U.lo mpz/mul$U.lo             \
385  mpz/n_pow_ui$U.lo mpz/realloc$U.lo mpz/set$U.lo mpz/sub$U.lo          \
386  mpz/tdiv_q$U.lo
387
388libmp_la_LIBADD = $(libmp_la_DEPENDENCIES)
389libmp_la_LDFLAGS = $(GMP_LDFLAGS) \
390  -version-info $(LIBMP_LT_CURRENT):$(LIBMP_LT_REVISION):$(LIBMP_LT_AGE) \
391  -export-symbols $(srcdir)/libmp.sym
392
393
394# Optional objects, listed in a dummy library to generate ansi2knr rules and
395# get them in "make dist".
396#
397EXTRA_LTLIBRARIES = libdummy.la
398libdummy_la_SOURCES = tal-debug.c tal-notreent.c tal-reent.c
399
400info_TEXINFOS = gmp.texi
401gmp_TEXINFOS = fdl.texi
402subdir = .
403ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
404mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
405CONFIG_HEADER = config.h
406CONFIG_CLEAN_FILES = gmp.h mp.h
407LTLIBRARIES = $(lib_LTLIBRARIES)
408
409libdummy_la_LDFLAGS =
410libdummy_la_LIBADD =
411am_libdummy_la_OBJECTS = tal-debug$U.lo tal-notreent$U.lo tal-reent$U.lo
412libdummy_la_OBJECTS = $(am_libdummy_la_OBJECTS)
413am_libgmp_la_OBJECTS = assert$U.lo compat$U.lo errno$U.lo \
414        extract-dbl$U.lo insert-dbl$U.lo memory$U.lo mp_bpl$U.lo \
415        mp_clz_tab$U.lo mp_minv_tab$U.lo mp_set_fns$U.lo rand$U.lo \
416        randclr$U.lo randdef$U.lo randlc$U.lo randlc2s$U.lo \
417        randlc2x$U.lo randraw$U.lo rands$U.lo randsd$U.lo randsdui$U.lo \
418        version$U.lo
419libgmp_la_OBJECTS = $(am_libgmp_la_OBJECTS)
420am_libgmpxx_la_OBJECTS = dummy.lo
421libgmpxx_la_OBJECTS = $(am_libgmpxx_la_OBJECTS)
422am_libmp_la_OBJECTS = assert$U.lo errno$U.lo memory$U.lo mp_bpl$U.lo \
423        mp_clz_tab$U.lo mp_minv_tab$U.lo mp_set_fns$U.lo
424libmp_la_OBJECTS = $(am_libmp_la_OBJECTS)
425
426DEFS = @DEFS@
427DEFAULT_INCLUDES =  -I. -I$(srcdir) -I.
428CPPFLAGS = @CPPFLAGS@
429LDFLAGS = @LDFLAGS@
430LIBS = @LIBS@
431depcomp =
432COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
433        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
434LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
435        $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
436CCLD = $(CC)
437LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
438        $(AM_LDFLAGS) $(LDFLAGS) -o $@
439CFLAGS = @CFLAGS@
440CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
441        $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
442LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
443        $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
444        $(AM_CXXFLAGS) $(CXXFLAGS)
445CXXLD = $(CXX)
446CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
447        $(AM_LDFLAGS) $(LDFLAGS) -o $@
448CXXFLAGS = @CXXFLAGS@
449DIST_SOURCES = $(libdummy_la_SOURCES) $(libgmp_la_SOURCES) \
450        $(libgmpxx_la_SOURCES) $(libmp_la_SOURCES)
451INFO_DEPS = gmp.info
452DVIS = gmp.dvi
453TEXINFOS = gmp.texi
454HEADERS = $(include_HEADERS) $(nodist_include_HEADERS)
455
456
457RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \
458        uninstall-info-recursive all-recursive install-data-recursive \
459        install-exec-recursive installdirs-recursive install-recursive \
460        uninstall-recursive check-recursive installcheck-recursive
461DIST_COMMON = README $(gmp_TEXINFOS) $(include_HEADERS) ./stamp-h1.in \
462        AUTHORS COPYING COPYING.LIB ChangeLog INSTALL Makefile.am \
463        Makefile.in NEWS acconfig.h acinclude.m4 aclocal.m4 ansi2knr.1 \
464        ansi2knr.c config.guess config.in config.sub configure \
465        configure.in gmp-h.in install-sh ltmain.sh mdate-sh missing \
466        mkinstalldirs mp-h.in stamp-vti texinfo.tex version.texi
467DIST_SUBDIRS = tests mpn mpz mpq mpf printf scanf cxx mpbsd mpfr demos \
468        tune
469SOURCES = $(libdummy_la_SOURCES) $(libgmp_la_SOURCES) $(libgmpxx_la_SOURCES) $(libmp_la_SOURCES)
470
471all: config.h
472        $(MAKE) $(AM_MAKEFLAGS) all-recursive
473
474.SUFFIXES:
475.SUFFIXES: .c .cc .dvi .info .lo .o .obj .ps .texi
476
477mostlyclean-libtool:
478        -rm -f *.lo
479
480clean-libtool:
481        -rm -rf .libs _libs
482
483distclean-libtool:
484        -rm -f libtool
485$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
486        cd $(top_srcdir) && \
487          $(AUTOMAKE) --gnu  Makefile
488Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in  $(top_builddir)/config.status
489        cd $(top_builddir) && \
490          CONFIG_HEADERS= CONFIG_LINKS= \
491          CONFIG_FILES=$@ $(SHELL) ./config.status
492
493$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
494        $(SHELL) ./config.status --recheck
495$(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
496        cd $(srcdir) && $(AUTOCONF)
497
498$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in acinclude.m4 mpfr/acinclude.m4
499        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
500config.h: stamp-h1
501        @if test ! -f $@; then \
502                rm -f stamp-h1; \
503                $(MAKE) stamp-h1; \
504        else :; fi
505stamp-h1: $(srcdir)/config.in $(top_builddir)/config.status
506        @rm -f stamp-h1 stamp-h1T
507        @echo timestamp > stamp-h1T 2> /dev/null
508        cd $(top_builddir) \
509          && CONFIG_FILES= CONFIG_HEADERS=config.h:config.in \
510             $(SHELL) ./config.status
511        @mv stamp-h1T stamp-h1
512$(srcdir)/config.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/./stamp-h1.in
513        @if test ! -f $@; then \
514                rm -f $(srcdir)/./stamp-h1.in; \
515                $(MAKE) $(srcdir)/./stamp-h1.in; \
516        else :; fi
517$(srcdir)/./stamp-h1.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/acconfig.h
518        @rm -f $(srcdir)/./stamp-h1.in $(srcdir)/./stamp-h1.inT
519        @echo timestamp > $(srcdir)/./stamp-h1.inT 2> /dev/null
520        cd $(top_srcdir) && $(AUTOHEADER)
521        @mv $(srcdir)/./stamp-h1.inT $(srcdir)/./stamp-h1.in
522
523distclean-hdr:
524        -rm -f config.h
525gmp.h: $(top_builddir)/config.status gmp-h.in
526        cd $(top_builddir) && CONFIG_FILES=$@:gmp-h.in CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
527mp.h: $(top_builddir)/config.status mp-h.in
528        cd $(top_builddir) && CONFIG_FILES=$@:mp-h.in CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
529install-libLTLIBRARIES: $(lib_LTLIBRARIES)
530        @$(NORMAL_INSTALL)
531        $(mkinstalldirs) $(DESTDIR)$(libdir)
532        @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
533          if test -f $$p; then \
534            echo " $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$p"; \
535            $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$p; \
536          else :; fi; \
537        done
538
539uninstall-libLTLIBRARIES:
540        @$(NORMAL_UNINSTALL)
541        @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
542          echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p"; \
543          $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
544        done
545
546clean-libLTLIBRARIES:
547        -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
548libdummy.la: $(libdummy_la_OBJECTS) $(libdummy_la_DEPENDENCIES)
549        $(LINK)  $(libdummy_la_LDFLAGS) $(libdummy_la_OBJECTS) $(libdummy_la_LIBADD) $(LIBS)
550libgmp.la: $(libgmp_la_OBJECTS) $(libgmp_la_DEPENDENCIES)
551        $(LINK) -rpath $(libdir) $(libgmp_la_LDFLAGS) $(libgmp_la_OBJECTS) $(libgmp_la_LIBADD) $(LIBS)
552libgmpxx.la: $(libgmpxx_la_OBJECTS) $(libgmpxx_la_DEPENDENCIES)
553        $(CXXLINK) -rpath $(libdir) $(libgmpxx_la_LDFLAGS) $(libgmpxx_la_OBJECTS) $(libgmpxx_la_LIBADD) $(LIBS)
554libmp.la: $(libmp_la_OBJECTS) $(libmp_la_DEPENDENCIES)
555        $(LINK) -rpath $(libdir) $(libmp_la_LDFLAGS) $(libmp_la_OBJECTS) $(libmp_la_LIBADD) $(LIBS)
556
557mostlyclean-compile:
558        -rm -f *.$(OBJEXT) core *.core
559
560distclean-compile:
561        -rm -f *.tab.c
562
563ANSI2KNR = @ANSI2KNR@
564ansi2knr: ansi2knr.$(OBJEXT)
565        $(LINK) ansi2knr.$(OBJEXT) $(LIBS)
566ansi2knr.$(OBJEXT): $(CONFIG_HEADER)
567
568clean-krextra:
569        -rm -f ansi2knr
570
571mostlyclean-kr:
572        -test "$U" = "" || rm -f *_.c
573
574.c.o:
575        $(COMPILE) -c `test -f $< || echo '$(srcdir)/'`$<
576
577.c.obj:
578        $(COMPILE) -c `cygpath -w $<`
579
580.c.lo:
581        $(LTCOMPILE) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
582assert_.c: assert.c $(ANSI2KNR)
583        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/assert.c; then echo $(srcdir)/assert.c; else echo assert.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > assert_.c || rm -f assert_.c
584compat_.c: compat.c $(ANSI2KNR)
585        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/compat.c; then echo $(srcdir)/compat.c; else echo compat.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > compat_.c || rm -f compat_.c
586errno_.c: errno.c $(ANSI2KNR)
587        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/errno.c; then echo $(srcdir)/errno.c; else echo errno.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > errno_.c || rm -f errno_.c
588extract-dbl_.c: extract-dbl.c $(ANSI2KNR)
589        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/extract-dbl.c; then echo $(srcdir)/extract-dbl.c; else echo extract-dbl.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > extract-dbl_.c || rm -f extract-dbl_.c
590insert-dbl_.c: insert-dbl.c $(ANSI2KNR)
591        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/insert-dbl.c; then echo $(srcdir)/insert-dbl.c; else echo insert-dbl.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > insert-dbl_.c || rm -f insert-dbl_.c
592memory_.c: memory.c $(ANSI2KNR)
593        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/memory.c; then echo $(srcdir)/memory.c; else echo memory.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > memory_.c || rm -f memory_.c
594mp_bpl_.c: mp_bpl.c $(ANSI2KNR)
595        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/mp_bpl.c; then echo $(srcdir)/mp_bpl.c; else echo mp_bpl.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > mp_bpl_.c || rm -f mp_bpl_.c
596mp_clz_tab_.c: mp_clz_tab.c $(ANSI2KNR)
597        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/mp_clz_tab.c; then echo $(srcdir)/mp_clz_tab.c; else echo mp_clz_tab.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > mp_clz_tab_.c || rm -f mp_clz_tab_.c
598mp_minv_tab_.c: mp_minv_tab.c $(ANSI2KNR)
599        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/mp_minv_tab.c; then echo $(srcdir)/mp_minv_tab.c; else echo mp_minv_tab.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > mp_minv_tab_.c || rm -f mp_minv_tab_.c
600mp_set_fns_.c: mp_set_fns.c $(ANSI2KNR)
601        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/mp_set_fns.c; then echo $(srcdir)/mp_set_fns.c; else echo mp_set_fns.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > mp_set_fns_.c || rm -f mp_set_fns_.c
602rand_.c: rand.c $(ANSI2KNR)
603        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/rand.c; then echo $(srcdir)/rand.c; else echo rand.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > rand_.c || rm -f rand_.c
604randclr_.c: randclr.c $(ANSI2KNR)
605        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/randclr.c; then echo $(srcdir)/randclr.c; else echo randclr.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > randclr_.c || rm -f randclr_.c
606randdef_.c: randdef.c $(ANSI2KNR)
607        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/randdef.c; then echo $(srcdir)/randdef.c; else echo randdef.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > randdef_.c || rm -f randdef_.c
608randlc_.c: randlc.c $(ANSI2KNR)
609        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/randlc.c; then echo $(srcdir)/randlc.c; else echo randlc.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > randlc_.c || rm -f randlc_.c
610randlc2s_.c: randlc2s.c $(ANSI2KNR)
611        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/randlc2s.c; then echo $(srcdir)/randlc2s.c; else echo randlc2s.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > randlc2s_.c || rm -f randlc2s_.c
612randlc2x_.c: randlc2x.c $(ANSI2KNR)
613        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/randlc2x.c; then echo $(srcdir)/randlc2x.c; else echo randlc2x.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > randlc2x_.c || rm -f randlc2x_.c
614randraw_.c: randraw.c $(ANSI2KNR)
615        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/randraw.c; then echo $(srcdir)/randraw.c; else echo randraw.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > randraw_.c || rm -f randraw_.c
616rands_.c: rands.c $(ANSI2KNR)
617        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/rands.c; then echo $(srcdir)/rands.c; else echo rands.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > rands_.c || rm -f rands_.c
618randsd_.c: randsd.c $(ANSI2KNR)
619        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/randsd.c; then echo $(srcdir)/randsd.c; else echo randsd.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > randsd_.c || rm -f randsd_.c
620randsdui_.c: randsdui.c $(ANSI2KNR)
621        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/randsdui.c; then echo $(srcdir)/randsdui.c; else echo randsdui.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > randsdui_.c || rm -f randsdui_.c
622tal-debug_.c: tal-debug.c $(ANSI2KNR)
623        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/tal-debug.c; then echo $(srcdir)/tal-debug.c; else echo tal-debug.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > tal-debug_.c || rm -f tal-debug_.c
624tal-notreent_.c: tal-notreent.c $(ANSI2KNR)
625        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/tal-notreent.c; then echo $(srcdir)/tal-notreent.c; else echo tal-notreent.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > tal-notreent_.c || rm -f tal-notreent_.c
626tal-reent_.c: tal-reent.c $(ANSI2KNR)
627        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/tal-reent.c; then echo $(srcdir)/tal-reent.c; else echo tal-reent.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > tal-reent_.c || rm -f tal-reent_.c
628version_.c: version.c $(ANSI2KNR)
629        $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/version.c; then echo $(srcdir)/version.c; else echo version.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > version_.c || rm -f version_.c
630assert_.$(OBJEXT) assert_.lo compat_.$(OBJEXT) compat_.lo \
631errno_.$(OBJEXT) errno_.lo extract-dbl_.$(OBJEXT) extract-dbl_.lo \
632insert-dbl_.$(OBJEXT) insert-dbl_.lo memory_.$(OBJEXT) memory_.lo \
633mp_bpl_.$(OBJEXT) mp_bpl_.lo mp_clz_tab_.$(OBJEXT) mp_clz_tab_.lo \
634mp_minv_tab_.$(OBJEXT) mp_minv_tab_.lo mp_set_fns_.$(OBJEXT) \
635mp_set_fns_.lo rand_.$(OBJEXT) rand_.lo randclr_.$(OBJEXT) randclr_.lo \
636randdef_.$(OBJEXT) randdef_.lo randlc_.$(OBJEXT) randlc_.lo \
637randlc2s_.$(OBJEXT) randlc2s_.lo randlc2x_.$(OBJEXT) randlc2x_.lo \
638randraw_.$(OBJEXT) randraw_.lo rands_.$(OBJEXT) rands_.lo \
639randsd_.$(OBJEXT) randsd_.lo randsdui_.$(OBJEXT) randsdui_.lo \
640tal-debug_.$(OBJEXT) tal-debug_.lo tal-notreent_.$(OBJEXT) \
641tal-notreent_.lo tal-reent_.$(OBJEXT) tal-reent_.lo version_.$(OBJEXT) \
642version_.lo : $(ANSI2KNR)
643
644.cc.o:
645        $(CXXCOMPILE) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
646
647.cc.obj:
648        $(CXXCOMPILE) -c -o $@ `cygpath -w $<`
649
650.cc.lo:
651        $(LTCXXCOMPILE) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
652
653$(srcdir)/version.texi: @MAINTAINER_MODE_TRUE@ $(srcdir)/stamp-vti
654        @:
655$(srcdir)/stamp-vti: gmp.texi $(top_srcdir)/configure.in
656        @(set `$(SHELL) $(srcdir)/mdate-sh $(srcdir)/gmp.texi`; \
657        echo "@set UPDATED $$1 $$2 $$3"; \
658        echo "@set UPDATED-MONTH $$2 $$3"; \
659        echo "@set EDITION $(VERSION)"; \
660        echo "@set VERSION $(VERSION)") > vti.tmp
661        @cmp -s vti.tmp $(srcdir)/version.texi \
662          || (echo "Updating $(srcdir)/version.texi"; \
663              cp vti.tmp $(srcdir)/version.texi)
664        -@rm -f vti.tmp
665        @cp $(srcdir)/version.texi $@
666
667mostlyclean-vti:
668        -rm -f vti.tmp
669
670maintainer-clean-vti:
671@MAINTAINER_MODE_TRUE@  -rm -f $(srcdir)/stamp-vti $(srcdir)/version.texi
672
673gmp.info: gmp.texi $(srcdir)/version.texi $(gmp_TEXINFOS)
674gmp.dvi: gmp.texi $(srcdir)/version.texi $(gmp_TEXINFOS)
675
676.texi.info:
677        @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
678        cd $(srcdir) \
679          && $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) \
680               `echo $< | sed 's,.*/,,'`
681
682.texi.dvi:
683        TEXINPUTS=$(srcdir):$$TEXINPUTS \
684        MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \
685        $(TEXI2DVI) $<
686
687.texi:
688        @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
689        cd $(srcdir) \
690          && $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) \
691               `echo $< | sed 's,.*/,,'`
692
693MAKEINFO = @MAKEINFO@
694TEXI2DVI = texi2dvi
695DVIPS = dvips
696.dvi.ps:
697        $(DVIPS) $< -o $@
698
699uninstall-info-am:
700        $(PRE_UNINSTALL)
701        @if (install-info --version && \
702             install-info --version | fgrep -i -v debian) >/dev/null 2>&1; then \
703          list='$(INFO_DEPS)'; \
704          for file in $$list; do \
705            echo " install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$$file"; \
706            install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$$file; \
707          done; \
708        else :; fi
709        @$(NORMAL_UNINSTALL)
710        @list='$(INFO_DEPS)'; \
711        for file in $$list; do \
712          (if cd $(DESTDIR)$(infodir); then \
713             echo " rm -f $$file $$file-[0-9] $$file-[0-9][0-9])"; \
714             rm -f $$file $$file-[0-9] $$file-[0-9][0-9]; \
715           else :; fi); \
716        done
717
718dist-info: $(INFO_DEPS)
719        list='$(INFO_DEPS)'; \
720        for base in $$list; do \
721          d=$(srcdir); \
722          for file in `CDPATH=: && cd $$d && eval echo $$base*`; do \
723            test -f $(distdir)/$$file \
724            || cp -p $$d/$$file $(distdir)/$$file; \
725          done; \
726        done
727
728mostlyclean-aminfo:
729        -rm -f gmp.aux gmp.cp gmp.cps gmp.dvi gmp.fn gmp.fns gmp.ky gmp.log gmp.pg \
730          gmp.ps gmp.toc gmp.tp gmp.vr gmp.vrs
731
732maintainer-clean-aminfo:
733        cd $(srcdir) && \
734        for i in $(INFO_DEPS); do \
735          rm -f $$i; \
736          if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \
737            rm -f $$i-[0-9]*; \
738          fi; \
739        done
740install-includeHEADERS: $(include_HEADERS)
741        @$(NORMAL_INSTALL)
742        $(mkinstalldirs) $(DESTDIR)$(includedir)
743        @list='$(include_HEADERS)'; for p in $$list; do \
744          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
745          f="`echo $$p | sed -e 's|^.*/||'`"; \
746          echo " $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(includedir)/$$f"; \
747          $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(includedir)/$$f; \
748        done
749
750uninstall-includeHEADERS:
751        @$(NORMAL_UNINSTALL)
752        @list='$(include_HEADERS)'; for p in $$list; do \
753          f="`echo $$p | sed -e 's|^.*/||'`"; \
754          echo " rm -f $(DESTDIR)$(includedir)/$$f"; \
755          rm -f $(DESTDIR)$(includedir)/$$f; \
756        done
757install-nodist_includeHEADERS: $(nodist_include_HEADERS)
758        @$(NORMAL_INSTALL)
759        $(mkinstalldirs) $(DESTDIR)$(includedir)
760        @list='$(nodist_include_HEADERS)'; for p in $$list; do \
761          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
762          f="`echo $$p | sed -e 's|^.*/||'`"; \
763          echo " $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(includedir)/$$f"; \
764          $(INSTALL_HEADER) $$d$$p $(DESTDIR)$(includedir)/$$f; \
765        done
766
767uninstall-nodist_includeHEADERS:
768        @$(NORMAL_UNINSTALL)
769        @list='$(nodist_include_HEADERS)'; for p in $$list; do \
770          f="`echo $$p | sed -e 's|^.*/||'`"; \
771          echo " rm -f $(DESTDIR)$(includedir)/$$f"; \
772          rm -f $(DESTDIR)$(includedir)/$$f; \
773        done
774
775# This directory's subdirectories are mostly independent; you can cd
776# into them and run `make' without going through this Makefile.
777# To change the values of `make' variables: instead of editing Makefiles,
778# (1) if the variable is set in `config.status', edit `config.status'
779#     (which will cause the Makefiles to be regenerated when you run `make');
780# (2) otherwise, pass the desired values on the `make' command line.
781$(RECURSIVE_TARGETS):
782        @set fnord $(MAKEFLAGS); amf=$$2; \
783        dot_seen=no; \
784        target=`echo $@ | sed s/-recursive//`; \
785        list='$(SUBDIRS)'; for subdir in $$list; do \
786          echo "Making $$target in $$subdir"; \
787          if test "$$subdir" = "."; then \
788            dot_seen=yes; \
789            local_target="$$target-am"; \
790          else \
791            local_target="$$target"; \
792          fi; \
793          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
794           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
795        done; \
796        if test "$$dot_seen" = "no"; then \
797          $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
798        fi; test -z "$$fail"
799
800mostlyclean-recursive clean-recursive distclean-recursive \
801maintainer-clean-recursive:
802        @set fnord $(MAKEFLAGS); amf=$$2; \
803        dot_seen=no; \
804        case "$@" in \
805          distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
806          *) list='$(SUBDIRS)' ;; \
807        esac; \
808        rev=''; for subdir in $$list; do \
809          if test "$$subdir" = "."; then :; else \
810            rev="$$subdir $$rev"; \
811          fi; \
812        done; \
813        rev="$$rev ."; \
814        target=`echo $@ | sed s/-recursive//`; \
815        for subdir in $$rev; do \
816          echo "Making $$target in $$subdir"; \
817          if test "$$subdir" = "."; then \
818            local_target="$$target-am"; \
819          else \
820            local_target="$$target"; \
821          fi; \
822          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
823           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
824        done && test -z "$$fail"
825tags-recursive:
826        list='$(SUBDIRS)'; for subdir in $$list; do \
827          test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
828        done
829
830tags: TAGS
831
832ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
833        list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
834        unique=`for i in $$list; do \
835            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
836          done | \
837          $(AWK) '    { files[$$0] = 1; } \
838               END { for (i in files) print i; }'`; \
839        mkid -fID $$unique $(LISP)
840
841TAGS: tags-recursive $(HEADERS) $(SOURCES) config.in $(TAGS_DEPENDENCIES) \
842                $(TAGS_FILES) $(LISP)
843        tags=; \
844        here=`pwd`; \
845        list='$(SUBDIRS)'; for subdir in $$list; do \
846          if test "$$subdir" = .; then :; else \
847            test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
848          fi; \
849        done; \
850        list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
851        unique=`for i in $$list; do \
852            if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
853          done | \
854          $(AWK) '    { files[$$0] = 1; } \
855               END { for (i in files) print i; }'`; \
856        test -z "$(ETAGS_ARGS)config.in$$unique$(LISP)$$tags" \
857          || etags $(ETAGS_ARGS) $$tags config.in $$unique $(LISP)
858
859GTAGS:
860        here=`CDPATH=: && cd $(top_builddir) && pwd` \
861          && cd $(top_srcdir) \
862          && gtags -i $(GTAGS_ARGS) $$here
863
864distclean-tags:
865        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
866
867DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
868
869top_distdir = .
870# Avoid unsightly `./'.
871distdir = $(PACKAGE)-$(VERSION)
872
873GZIP_ENV = --best
874
875distdir: $(DISTFILES)
876        -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
877        mkdir $(distdir)
878        $(mkinstalldirs) $(distdir)/. $(distdir)/demos $(distdir)/demos/calc $(distdir)/demos/expr $(distdir)/mpfr
879        @for file in $(DISTFILES); do \
880          if test -f $$file; then d=.; else d=$(srcdir); fi; \
881          dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
882          if test "$$dir" != "$$file" && test "$$dir" != "."; then \
883            $(mkinstalldirs) "$(distdir)/$$dir"; \
884          fi; \
885          if test -d $$d/$$file; then \
886            cp -pR $$d/$$file $(distdir) \
887            || exit 1; \
888          else \
889            test -f $(distdir)/$$file \
890            || cp -p $$d/$$file $(distdir)/$$file \
891            || exit 1; \
892          fi; \
893        done
894        for subdir in $(DIST_SUBDIRS); do \
895          if test "$$subdir" = .; then :; else \
896            test -d $(distdir)/$$subdir \
897            || mkdir $(distdir)/$$subdir \
898            || exit 1; \
899            (cd $$subdir && \
900              $(MAKE) $(AM_MAKEFLAGS) \
901                top_distdir="$(top_distdir)" \
902                distdir=../$(distdir)/$$subdir \
903                distdir) \
904              || exit 1; \
905          fi; \
906        done
907        $(MAKE) $(AM_MAKEFLAGS) \
908          top_distdir="${top_distdir}" distdir="$(distdir)" \
909          dist-info dist-hook
910        -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
911          ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
912          ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
913          ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
914        || chmod -R a+r $(distdir)
915dist: distdir
916        $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
917        -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
918
919# This target untars the dist file and tries a VPATH configuration.  Then
920# it guarantees that the distribution is self-contained by making another
921# tarfile.
922distcheck: dist
923        -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
924        GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
925        chmod -R a-w $(distdir); chmod a+w $(distdir)
926        mkdir $(distdir)/=build
927        mkdir $(distdir)/=inst
928        chmod a-w $(distdir)
929        dc_install_base=`CDPATH=: && cd $(distdir)/=inst && pwd` \
930          && cd $(distdir)/=build \
931          && ../configure --srcdir=.. --prefix=$$dc_install_base \
932          && $(MAKE) $(AM_MAKEFLAGS) \
933          && $(MAKE) $(AM_MAKEFLAGS) dvi \
934          && $(MAKE) $(AM_MAKEFLAGS) check \
935          && $(MAKE) $(AM_MAKEFLAGS) install \
936          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
937          && $(MAKE) $(AM_MAKEFLAGS) uninstall \
938          && (test `find $$dc_install_base -type f -print | wc -l` -le 1 \
939             || (echo "Error: files left after uninstall" 1>&2; \
940                 exit 1) ) \
941          && $(MAKE) $(AM_MAKEFLAGS) dist \
942          && $(MAKE) $(AM_MAKEFLAGS) distclean \
943          && rm -f $(distdir).tar.gz \
944          && (test `find . -type f -print | wc -l` -eq 0 \
945             || (echo "Error: files left after distclean" 1>&2; \
946                 exit 1) )
947        -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
948        @echo "$(distdir).tar.gz is ready for distribution" | \
949          sed 'h;s/./=/g;p;x;p;x'
950check-am: all-am
951check: check-recursive
952all-am: Makefile $(INFO_DEPS) $(ANSI2KNR) $(LTLIBRARIES) $(HEADERS) \
953                config.h
954installdirs: installdirs-recursive
955installdirs-am:
956        $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(infodir) $(DESTDIR)$(includedir) $(DESTDIR)$(includedir)
957
958install: install-recursive
959install-exec: install-exec-recursive
960install-data: install-data-recursive
961uninstall: uninstall-recursive
962
963install-am: all-am
964        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
965
966installcheck: installcheck-recursive
967install-strip:
968        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
969          `test -z '$(STRIP)' || \
970            echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
971mostlyclean-generic:
972        -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
973
974clean-generic:
975
976distclean-generic:
977        -rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]*
978        -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
979
980maintainer-clean-generic:
981        @echo "This command is intended for maintainers to use"
982        @echo "it deletes files that may require special tools to rebuild."
983clean: clean-recursive
984
985clean-am: clean-generic clean-krextra clean-libLTLIBRARIES clean-libtool \
986        mostlyclean-am
987
988dist-all: distdir
989        $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
990        -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
991distclean: distclean-recursive
992        -rm -f config.status config.cache config.log
993distclean-am: clean-am distclean-compile distclean-generic distclean-hdr \
994        distclean-libtool distclean-tags
995
996dvi: dvi-recursive
997
998dvi-am: $(DVIS)
999
1000info: info-recursive
1001
1002info-am: $(INFO_DEPS)
1003
1004install-data-am: install-includeHEADERS install-info-am \
1005        install-nodist_includeHEADERS
1006
1007install-exec-am: install-libLTLIBRARIES
1008
1009install-info: install-info-recursive
1010
1011install-info-am: $(INFO_DEPS)
1012        @$(NORMAL_INSTALL)
1013        $(mkinstalldirs) $(DESTDIR)$(infodir)
1014        @list='$(INFO_DEPS)'; \
1015        for file in $$list; do \
1016          d=$(srcdir); \
1017          for ifile in `CDPATH=: && cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
1018            if test -f $$d/$$ifile; then \
1019              echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
1020              $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
1021            else : ; fi; \
1022          done; \
1023        done
1024        @$(POST_INSTALL)
1025        @if (install-info --version && \
1026             install-info --version | fgrep -i -v debian) >/dev/null 2>&1; then \
1027          list='$(INFO_DEPS)'; \
1028          for file in $$list; do \
1029            echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\
1030            install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
1031          done; \
1032        else : ; fi
1033install-man:
1034
1035installcheck-am:
1036
1037maintainer-clean: maintainer-clean-recursive
1038
1039maintainer-clean-am: distclean-am maintainer-clean-aminfo \
1040        maintainer-clean-generic maintainer-clean-vti
1041
1042mostlyclean: mostlyclean-recursive
1043
1044mostlyclean-am: mostlyclean-aminfo mostlyclean-compile \
1045        mostlyclean-generic mostlyclean-kr mostlyclean-libtool \
1046        mostlyclean-vti
1047
1048uninstall-am: uninstall-includeHEADERS uninstall-info-am \
1049        uninstall-libLTLIBRARIES uninstall-nodist_includeHEADERS
1050
1051uninstall-info: uninstall-info-recursive
1052
1053.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \
1054        clean-generic clean-krextra clean-libLTLIBRARIES clean-libtool \
1055        clean-recursive dist dist-all dist-info distcheck distclean \
1056        distclean-compile distclean-generic distclean-hdr \
1057        distclean-libtool distclean-recursive distclean-tags distdir \
1058        dvi dvi-am dvi-recursive info info-am info-recursive install \
1059        install-am install-data install-data-am install-data-recursive \
1060        install-exec install-exec-am install-exec-recursive \
1061        install-includeHEADERS install-info install-info-am \
1062        install-info-recursive install-libLTLIBRARIES install-man \
1063        install-nodist_includeHEADERS install-recursive install-strip \
1064        installcheck installcheck-am installdirs installdirs-am \
1065        installdirs-recursive maintainer-clean maintainer-clean-aminfo \
1066        maintainer-clean-generic maintainer-clean-recursive \
1067        maintainer-clean-vti mostlyclean mostlyclean-aminfo \
1068        mostlyclean-compile mostlyclean-generic mostlyclean-kr \
1069        mostlyclean-libtool mostlyclean-recursive mostlyclean-vti tags \
1070        tags-recursive uninstall uninstall-am uninstall-includeHEADERS \
1071        uninstall-info-am uninstall-info-recursive \
1072        uninstall-libLTLIBRARIES uninstall-nodist_includeHEADERS \
1073        uninstall-recursive
1074
1075
1076# Avoid: CVS - cvs directories
1077#        *~  - emacs backups
1078#        .#* - cvs merge originals
1079#
1080# *~ and .#* only occur when a whole directory without it's own Makefile.am
1081# is distributed, like "doc" or the mpn cpu subdirectories.
1082#
1083dist-hook:
1084        -find $(distdir) \( -name CVS -type d \) -o -name "*~" -o -name ".#*" \
1085                | xargs rm -rf
1086# Tell versions [3.59,3.63) of GNU make to not export all variables.
1087# Otherwise a system limit (for SysV at least) may be exceeded.
1088.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.