1 ## Process this file with automake to generate Makefile.in
3 # Copyright 1996, 1998, 1999, 2000, 2001, 2002, 2005 Free Software Foundation,
6 # This file is part of the GNU MP Library.
8 # The GNU MP Library is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU Lesser General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or (at your
11 # option) any later version.
13 # The GNU MP Library is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16 # License for more details.
18 # You should have received a copy of the GNU Lesser General Public License
19 # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
22 INCLUDES = -D__GMP_WITHIN_GMP -I$(top_srcdir) \
23 -DOPERATION_`echo $* | sed 's/_$$//'`
25 OFILES = @mpn_objects@
28 # All possible mpn normal and optional function files are listed here, to
29 # get automake to generate ansi2knr rules for each. Such rules will be
30 # ignored for any that are instead implemented with a .asm (or whatever) for
31 # a particular target.
33 nodist_EXTRA_libmpn_la_SOURCES = \
34 add.c add_1.c add_n.c \
35 addmul_1.c addmul_2.c addmul_3.c addmul_4.c addmul_5.c addmul_6.c \
36 addmul_7.c addmul_8.c \
38 cmp.c com.c copyd.c copyi.c \
39 dive_1.c diveby3.c divis.c divrem.c divrem_1.c divrem_2.c \
40 sbpi1_bdiv_qr.c sbpi1_bdiv_q.c \
41 sbpi1_div_qr.c sbpi1_div_q.c sbpi1_divappr_q.c \
42 dcpi1_bdiv_qr.c dcpi1_bdiv_q.c \
43 dcpi1_div_qr.c dcpi1_div_q.c dcpi1_divappr_q.c \
44 dump.c fib2_ui.c gcd.c \
45 gcd_1.c gcdext.c get_d.c get_str.c \
46 hamdist.c hgcd2.c hgcd.c invert_limb.c \
47 ior_n.c iorn_n.c jacbase.c lshift.c \
48 matrix22_mul.c mod_1.c mod_34lsub1.c mode1o.c \
49 mod_1_1.c mod_1_2.c mod_1_3.c mod_1_4.c \
50 mul.c mul_1.c mul_2.c mul_3.c mul_4.c mul_fft.c mul_n.c mul_basecase.c \
52 toom22_mul.c toom32_mul.c toom42_mul.c toom52_mul.c toom62_mul.c \
53 toom33_mul.c toom43_mul.c toom53_mul.c toom63_mul.c \
55 toom6h_mul.c toom6_sqr.c toom8h_mul.c toom8_sqr.c \
56 toom_couple_handling.c \
57 toom2_sqr.c toom3_sqr.c toom4_sqr.c \
58 toom_eval_dgr3_pm1.c toom_eval_dgr3_pm2.c \
59 toom_eval_pm1.c toom_eval_pm1.c toom_eval_pm2exp.c toom_eval_pm2rexp.c \
60 toom_interpolate_5pts.c toom_interpolate_6pts.c toom_interpolate_7pts.c \
61 toom_interpolate_8pts.c toom_interpolate_12pts.c toom_interpolate_16pts.c \
62 invertappr.c invert.c binvert.c mulmod_bnm1.c sqrmod_bnm1.c \
63 mullo_n.c mullo_basecase.c nand_n.c neg.c nior_n.c perfsqr.c \
64 popcount.c pre_divrem_1.c pre_mod_1.c pow_1.c random.c random2.c rshift.c \
65 rootrem.c scan0.c scan1.c set_str.c \
66 sqr_basecase.c sqr_diagonal.c \
67 sqrtrem.c sub.c sub_1.c sub_n.c submul_1.c \
68 tdiv_qr.c udiv_qrnnd.c udiv_w_sdiv.c xor_n.c xnor_n.c
70 noinst_LTLIBRARIES = libmpn.la
71 nodist_libmpn_la_SOURCES = fib_table.c mp_bases.c
72 libmpn_la_LIBADD = $(OFILES)
73 libmpn_la_DEPENDENCIES = $(OFILES)
75 TARG_DIST = a29k alpha arm clipper cray generic i960 ia64 lisp m68k m88k \
76 minithres mips32 mips64 ns32k pa32 pa64 power powerpc32 powerpc64 pyr s390 \
77 sh sparc32 sparc64 thumb vax x86 x86_64 z8000 z8000x
79 EXTRA_DIST = asm-defs.m4 cpp-ccas m4-ccas $(TARG_DIST)
82 # These are BUILT_SOURCES at the top-level, so normally they're built before
83 # recursing into this directory.
86 cd ..; $(MAKE) $(AM_MAKEFLAGS) mpn/fib_table.c
88 cd ..; $(MAKE) $(AM_MAKEFLAGS) mpn/mp_bases.c
90 cd ..; $(MAKE) $(AM_MAKEFLAGS) mpn/perfsqr.h
93 $(COMPILE) -g -O1 -I $(top_srcdir)/tune -DTUNE_GCD_P=1 gcd.c -o tune-gcd-p -L ../.libs -L../tune/.libs -lspeed -lgmp -lm